Public Member Functions | |
IVariableNode (std::string name, int numStates) | |
Constructor. More... | |
~IVariableNode () | |
Destructor. More... | |
int | NumStates () |
Gets the dimension of the node. More... | |
virtual bool | IsSupported (MsgType type)=0 |
Query if message type is supported. More... | |
![]() | |
INode (std::string name) | |
Default constructor. More... | |
~INode () | |
Destructor. More... | |
std::string | Name () |
Gets the name. More... | |
virtual void | SendMsg (std::string toNodeName) |
Sends a message. More... | |
virtual void | ReceiveMsg (std::string fromNodeName, IMessage &message) |
Receives a message. More... | |
virtual void | AddIncoming (INode *node) |
Adds ingoing connection to the node. More... | |
virtual void | AddOutgoing (INode *node) |
Adds outgoing connection to the node. More... | |
virtual void | AddConnection (INode *node, const std::string &tag) |
Adds a custom connection with the given tag. More... | |
virtual bool | IsSupported (MsgType type)=0 |
Query if message type is supported. More... | |
const MsgBox & | GetAllMessages () const |
Gets all the messages of this node. More... | |
void | ClearMessages () |
Clears all incomming messages for next iteration. More... | |
Protected Member Functions | |
virtual IMessage | ComputeMessage (std::string toNodeName, MsgBox &neededMessages)=0 |
Calculate a message to connectd node. More... | |
![]() | |
void | SetMessage (std::string fromNodeName, IMessage &msg) |
Sets a incomming message from specific node. More... | |
virtual IMessage | ComputeMessage (std::string fromNodeName, MsgBox &neededMessages)=0 |
Virtual function to calculate a message to connectd node. More... | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, unsigned int version) |
Private Attributes | |
int | iNumStates |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
![]() | |
std::map< std::string, INode * > | mNodes |
MsgBox | mMessageBox |
std::set< std::string > | sIncomming |
std::set< std::string > | sOutgoing |
std::map< std::string, std::string > | mConnections |
Definition at line 20 of file FgIVariableNode.h.
NeuralEngine::MachineLearning::IVariableNode::IVariableNode | ( | std::string | name, |
int | numStates | ||
) |
Constructor.
Admin, 8/16/2017.
name | The name. |
ID | The identifier. |
NeuralEngine::MachineLearning::IVariableNode::~IVariableNode | ( | ) |
Destructor.
Admin, 8/16/2017.
int NeuralEngine::MachineLearning::IVariableNode::NumStates | ( | ) |
Gets the dimension of the node.
Admin, 8/31/2017.
|
pure virtual |
Query if message type is supported.
Admin, 7/25/2017.
type | The type. |
Implements NeuralEngine::MachineLearning::INode.
Implemented in NeuralEngine::MachineLearning::DiscreteVariableNode.
|
protectedpure virtual |
Calculate a message to connectd node.
Different computations for all kinds of derived classes of node types.
Admin, 7/26/2017.
toNodeName | Identifier for receiver node. |
neededMessages | All incomming messages, exept from receiver node. |
Implements NeuralEngine::MachineLearning::INode.
Implemented in NeuralEngine::MachineLearning::DiscreteVariableNode.
|
inlineprivate |
Definition at line 84 of file FgIVariableNode.h.
|
friend |
Definition at line 81 of file FgIVariableNode.h.
|
private |
Definition at line 79 of file FgIVariableNode.h.