Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
Public Member Functions | Private Member Functions | Private Attributes
hormodular::Connector Class Reference

Device that connects different modules for communications. More...

#include <Connector.hpp>

Collaboration diagram for hormodular::Connector:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Connector ()
bool connectTo (Connector *remoteConnector)
 Connects a remote connector to this connector.
bool sendHormones ()
 Send the hormones in the output buffer to their destination modules.
bool addOutputHormone (Hormone outputHormone)
 Adds a Hormone to the output buffer.
bool clearInputBuffer ()
 Deletes all the hormones stored in the input buffer.
int getLocalOrientation () const
 Returns the local orientation of the connector with respect to the connected module.
void setLocalOrientation (int localOrientation)
 Sets the local orientation of the connector with respect to the connected module.
std::vector< Hormone > getInputBuffer ()
 Returns the hormones in the input buffer.
Connector * getRemoteConnector ()
 Returns a pointer to the remote connector.

Private Member Functions

bool addInputHormone (Hormone inputHormone)

Private Attributes

std::vector< Hormone > inputBuffer
std::vector< Hormone > outputBuffer
Connector * remoteConnector
int localOrientation

Detailed Description

Device that connects different modules for communications.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends