#include <EGTNode.h>
Inheritance diagram for EGTNode< T >:
Public Types | |
typedef EGTAbstractNode< T > | Base |
typedef EGTNode< T > | Self |
typedef T | Term |
typedef EGTVector< T * > | Terms |
Public Methods | |
EGTNode (UInt uFuncID, UInt uNumInTerms, UInt uNumOutTerms, UInt uNO) | |
EGTNode (const Self &) | |
virtual | ~EGTNode () |
UInt | GetFuncID () const |
Returns the functional ID number of this node. | |
void | SetNodeID (UInt n) |
Sets the node ID number of this node. | |
UInt | GetNodeID () const |
Returns the node ID number of this node. | |
void | SetNO (UInt n) |
Sets the input/output number. | |
UInt | GetNO () const |
Returns the input/output number. | |
void | SetOrigin (UInt n) |
UInt | GetOrigin () |
virtual bool | IsCandidate () const |
virtual void | SaveExtraData (std::ostream &out) const |
virtual bool | LoadExtraData (std::istream &in) |
virtual void | Display (std::ostream &) const |
Outputs the data of Node. | |
virtual const std::string | GetName () const |
virtual const std::string | GetInLabel (UInt) const |
virtual const std::string | GetOutLabel (UInt) const |
virtual Self * | CreateNode ()=0 |
Creates a node randomly other than an input/output node. | |
virtual Self * | CreateNode (UInt uFuncID)=0 |
Creates a node with the specified functional ID number. | |
virtual Self * | CreateNodeDiff (Int iDiff)=0 |
Creates a node so as to decrease the difference between the number of input terminals and the number of output terminals. | |
virtual Self * | CreateInputNode (UInt n)=0 |
Creates an input node. | |
virtual Self * | CreateOutputNode (UInt n)=0 |
Creates an output node. |
It is assumed that <T> is a subclass of EGTTerminal. EGTNode has two ID numbers: Node ID and Functional ID. Node ID is used to distinguishes this node from other nodes. On the other hand, Functional ID is used to indicate the function of this node.
|
|
|
Reimplemented from EGTAbstractNode< T >. |
|
Reimplemented from EGTAbstractNode< T >. |
|
Reimplemented from EGTAbstractNode< T >. |
|
Constructor
|
|
Copy constructor
|
|
Destructor |
|
Creates an input node.
|
|
Creates a node with the specified functional ID number.
|
|
Creates a node randomly other than an input/output node.
|
|
Creates a node so as to decrease the difference between the number of input terminals and the number of output terminals.
|
|
Creates an output node.
|
|
Outputs the data of Node.
Reimplemented from EGTAbstractNode< T >. |
|
Returns the functional ID number of this node.
|
|
|
|
|
|
Returns the input/output number.
|
|
Returns the node ID number of this node.
|
|
|
|
|
|
|
|
|
|
|
|
Sets the input/output number.
|
|
Sets the node ID number of this node.
|
|
|