NeuralEngine A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes. |

Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
NeuralEngine::MachineLearning::IVariableNode Class Referenceabstract
Inheritance diagram for NeuralEngine::MachineLearning::IVariableNode:
[legend]
Collaboration diagram for NeuralEngine::MachineLearning::IVariableNode:
[legend]

## 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...
Public Member Functions inherited from NeuralEngine::MachineLearning::INode
| 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...
Protected Member Functions inherited from NeuralEngine::MachineLearning::INode
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
Protected Attributes inherited from NeuralEngine::MachineLearning::INode
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

## Detailed Description

Definition at line 20 of file FgIVariableNode.h.

## Constructor & Destructor Documentation

## ◆ IVariableNode()

NeuralEngine::MachineLearning::IVariableNode::IVariableNode | ( | std::string | name,
|  | int | numStates
| ) |  |

Constructor.

Admin, 8/16/2017.

Parameters

  name | The name.
  ID | The identifier.

## ◆ ~IVariableNode()

NeuralEngine::MachineLearning::IVariableNode::~IVariableNode | ( |  | ) |

Destructor.

Admin, 8/16/2017.

## Member Function Documentation

## ◆ NumStates()

int NeuralEngine::MachineLearning::IVariableNode::NumStates | ( |  | ) |

Gets the dimension of the node.

Admin, 8/31/2017.

Returns
  An int.

## ◆ IsSupported()

virtual bool NeuralEngine::MachineLearning::IVariableNode::IsSupported | ( | MsgType | type | ) |
| pure virtual

Query if message type is supported.

Admin, 7/25/2017.

Parameters

  type | The type.

Returns
  true if supported, false if not.

Implements NeuralEngine::MachineLearning::INode.

Implemented in NeuralEngine::MachineLearning::DiscreteVariableNode.

## ◆ ComputeMessage()

virtual IMessage NeuralEngine::MachineLearning::IVariableNode::ComputeMessage | ( | std::string | toNodeName,
|  | MsgBox & | neededMessages
| ) |  |
| protected pure virtual

Calculate a message to connectd node.

Different computations for all kinds of derived classes of node types.

Admin, 7/26/2017.

Parameters

  toNodeName | Identifier for receiver node.
  neededMessages | All incomming messages, exept from receiver node.

Returns
  The calculated message.

Implements NeuralEngine::MachineLearning::INode.

Implemented in NeuralEngine::MachineLearning::DiscreteVariableNode.

## ◆ serialize()

template<class Archive >

void NeuralEngine::MachineLearning::IVariableNode::serialize | ( | Archive & | ar,
|  | unsigned int | version
| ) |  |
| inline private

Definition at line 84 of file FgIVariableNode.h.

## Friends And Related Function Documentation

## ◆ boost::serialization::access

friend class boost::serialization::access
| friend

Definition at line 81 of file FgIVariableNode.h.

## Member Data Documentation

## ◆ iNumStates

int NeuralEngine::MachineLearning::IVariableNode::iNumStates
| private

Definition at line 79 of file FgIVariableNode.h.

The documentation for this class was generated from the following file:

- FgIVariableNode.h