Base Class INode.
More...
#include <FgINode.h>
|
template<class Archive > |
void | serialize (Archive &ar, unsigned int version) |
|
Base Class INode.
Basic functionalities of a Node in a Factor Graph.
Admin, 7/24/2017.
Definition at line 33 of file FgINode.h.
◆ INode()
NeuralEngine::MachineLearning::INode::INode |
( |
std::string |
name | ) |
|
Default constructor.
Admin, 7/24/2017.
◆ ~INode()
NeuralEngine::MachineLearning::INode::~INode |
( |
| ) |
|
Destructor.
Admin, 7/24/2017.
◆ Name()
std::string NeuralEngine::MachineLearning::INode::Name |
( |
| ) |
|
Gets the name.
Hmetal T, 11.08.2017.
- Returns
- A std::string.
◆ SendMsg()
virtual void NeuralEngine::MachineLearning::INode::SendMsg |
( |
std::string |
toNodeName | ) |
|
|
virtual |
Sends a message.
Admin, 7/24/2017.
- Parameters
-
toNodeID | Identifier to which node should be the message send. |
◆ ReceiveMsg()
virtual void NeuralEngine::MachineLearning::INode::ReceiveMsg |
( |
std::string |
fromNodeName, |
|
|
IMessage & |
message |
|
) |
| |
|
virtual |
Receives a message.
Admin, 7/24/2017.
- Parameters
-
fromNodeID | Identifier for from which node the message comes from. |
message | [in,out] The message. |
◆ AddIncoming()
virtual void NeuralEngine::MachineLearning::INode::AddIncoming |
( |
INode * |
node | ) |
|
|
virtual |
Adds ingoing connection to the node.
Admin, 7/25/2017.
- Parameters
-
node | [in,out] If non-null, the node. |
◆ AddOutgoing()
virtual void NeuralEngine::MachineLearning::INode::AddOutgoing |
( |
INode * |
node | ) |
|
|
virtual |
Adds outgoing connection to the node.
Admin, 7/25/2017.
- Parameters
-
node | [in,out] If non-null, the node. |
◆ AddConnection()
virtual void NeuralEngine::MachineLearning::INode::AddConnection |
( |
INode * |
node, |
|
|
const std::string & |
tag |
|
) |
| |
|
virtual |
Adds a custom connection with the given tag.
Admin, 7/25/2017.
- Parameters
-
node | [in,out] If non-null, the node. |
tag | The tag. |
◆ IsSupported()
virtual bool NeuralEngine::MachineLearning::INode::IsSupported |
( |
MsgType |
type | ) |
|
|
pure virtual |
◆ GetAllMessages()
const MsgBox & NeuralEngine::MachineLearning::INode::GetAllMessages |
( |
| ) |
const |
Gets all the messages of this node.
Admin, 7/25/2017.
- Returns
- A reference to a const MsgBox.
◆ ClearMessages()
void NeuralEngine::MachineLearning::INode::ClearMessages |
( |
| ) |
|
Clears all incomming messages for next iteration.
Admin, 7/26/2017.
◆ SetMessage()
void NeuralEngine::MachineLearning::INode::SetMessage |
( |
std::string |
fromNodeName, |
|
|
IMessage & |
msg |
|
) |
| |
|
protected |
Sets a incomming message from specific node.
Admin, 7/25/2017.
- Parameters
-
fromNodeID | Identifier for from node. |
msg | The message. |
◆ ComputeMessage()
virtual IMessage NeuralEngine::MachineLearning::INode::ComputeMessage |
( |
std::string |
fromNodeName, |
|
|
MsgBox & |
neededMessages |
|
) |
| |
|
protectedpure virtual |
◆ serialize()
template<class Archive >
void NeuralEngine::MachineLearning::INode::serialize |
( |
Archive & |
ar, |
|
|
unsigned int |
version |
|
) |
| |
|
inlineprivate |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ mNodes
std::map<std::string, INode*> NeuralEngine::MachineLearning::INode::mNodes |
|
protected |
◆ mMessageBox
MsgBox NeuralEngine::MachineLearning::INode::mMessageBox |
|
protected |
◆ sIncomming
std::set<std::string> NeuralEngine::MachineLearning::INode::sIncomming |
|
protected |
◆ sOutgoing
std::set<std::string> NeuralEngine::MachineLearning::INode::sOutgoing |
|
protected |
◆ mConnections
std::map<std::string, std::string> NeuralEngine::MachineLearning::INode::mConnections |
|
protected |
◆ sName
std::string NeuralEngine::MachineLearning::INode::sName |
|
private |
The documentation for this class was generated from the following file: