Main Page   Hardware Class Hierarchy   Hardware API     Mapping Class Hierarchy  Mapping API 

node_manager Class Reference

Class to handle all incoming and outoging message traffic. More...

#include <node_manager.h>

Inheritance diagram for node_manager:

node_manager_RR node_manager_RTOS

Public Member Functions

 node_manager (void)
void JAUS_Message (void *pmsg)
 Common JAUS component interface method. (huh ???).

void initialize (uint8 subsystem, uint8 nodeid)
 Initialize the subsystem and node IDs.


Static Public Member Functions

void destination_node_class (Destination_Node_Class c)
 Configure intranode/inter-node message.

Destination_Node_Class destination_node_class (void)
 Returns Destination Node Class of Message.

void configure (CommunicationDevice *cd)
 Configure node managers I/O subsystem.

void nodeid (uint8 id)
 Sets the nodeid of for this node; should be done at boot.

uint8 nodeid (void)
 Returns node ID of this node.

uint8 source_node ()
 Return node ID from where last message sent.

uint8 subsystem (void)
 Returns node ID of this node.

void operate (bool b)
 Allows filtering of JAUS messages.

bool operate (void)
 Returns operating status of node manager.

void node_manager_class (void *pmsg)
 Handles all manager class messages.

uint8 active_connections (void)
 Returns number of active service connections.

JAUS_MESSAGE service_connection_list (DIRECTORY_OPCODE dcode, jaus_message &jmsg)
 Returns next message to transmit based upon service connection priority etc.

void printsc (void)
 Prints out the service connection table specified.

uint8 dest_node (void)
void connect (bool)
bool connect (void)
void transmit (jaus_message &, uint8)
void callback (fooxmit f)
void send (const char *const msgbuf)

Static Public Attributes

service_connection sc
service_connection command_sc
 keep track of command class service connections received


Static Protected Attributes

Destination_Node_Class _DNC
bool _operate
uint8 _subsystem
uint8 _node
 subsystem number

uint8 nodename
jaus_message _message
bool _ConnectButton
fooxmit _transmit_callback
CommunicationDevice_commChannel

Friends

void SimulatorUpdate (jaus_message &msg)

Detailed Description

Class to handle all incoming and outoging message traffic.

The node manager class defines much of the behavior as defined by the JAUS standard Node Manager Component


Constructor & Destructor Documentation

node_manager void   ) 
 


Member Function Documentation

uint8 active_connections void   )  [static]
 

Returns number of active service connections.

Where:

Parameters:
cc is one of:
  • Create_Serice_Connection_Message
  • Terminate_Service_Connection_Message
icommand is service connection to establish.
rate - currently unused.
isub - subsystem of receipient (must be one same node).
inode - node of receipient (must be one same node).
icomponent - Component controlled (unused)
iinstance - instance of component (unused).
ipriority - priority of service connection.

void callback fooxmit  f  )  [static]
 

void configure CommunicationDevice cd  )  [static]
 

Configure node managers I/O subsystem.

bool connect void   )  [static]
 

void connect bool   )  [static]
 

uint8 dest_node void   )  [static]
 

Destination_Node_Class destination_node_class void   )  [static]
 

Returns Destination Node Class of Message.

if ( (source.bits.node == destination.bits.node) && (source.bits.node == node_manager::nodeid() )) then intra-node

void destination_node_class Destination_Node_Class  c  )  [static]
 

Configure intranode/inter-node message.

void initialize uint8  subsystem,
uint8  nodeid
 

Initialize the subsystem and node IDs.

void JAUS_Message void *  pmsg  ) 
 

Common JAUS component interface method. (huh ???).

void node_manager_class void *  pmsg  )  [static]
 

Handles all manager class messages.

uint8 nodeid void   )  [static]
 

Returns node ID of this node.

void nodeid uint8  id  )  [static]
 

Sets the nodeid of for this node; should be done at boot.

bool operate void   )  [static]
 

Returns operating status of node manager.

void operate bool  b  )  [static]
 

Allows filtering of JAUS messages.

If node manager is off then serial port communication not intercepted by JAUS subsystem.

Note:
- I don't think the operate are used in RTOS version.

void printsc void   )  [static]
 

Prints out the service connection table specified.

void send const char *const  msgbuf  )  [static]
 

JAUS_MESSAGE service_connection_list DIRECTORY_OPCODE  dcode,
jaus_message jmsg
[static]
 

Returns next message to transmit based upon service connection priority etc.

Parameters:
dcode - DIRECTORY_OPCODE to perform on the list.
jmsg - jaus message that will updated for transmission.

uint8 source_node  )  [static]
 

Return node ID from where last message sent.

uint8 subsystem void   )  [static]
 

Returns node ID of this node.

void transmit jaus_message ,
uint8 
[static]
 

Reimplemented in node_manager_RR, and node_manager_RTOS.


Friends And Related Function Documentation

void SimulatorUpdate jaus_message msg  )  [friend]
 


Field Documentation

CommunicationDevice* _commChannel [static, protected]
 

bool _ConnectButton [static, protected]
 

Destination_Node_Class _DNC [static, protected]
 

jaus_message _message [static, protected]
 

uint8 _node [static, protected]
 

subsystem number

bool _operate [static, protected]
 

uint8 _subsystem [static, protected]
 

fooxmit _transmit_callback [static, protected]
 

service_connection command_sc [static]
 

keep track of command class service connections received

NOTE: sc keeps track of command class sent out.

uint8 nodename [static, protected]
 

service_connection sc [static]
 


Generated on Mon Oct 8 19:32:26 2007 for OOMRM Mapping API by doxygen1.3