Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Node Class Reference

Base abstract 'Node' framework class. More...

#include <node.h>

Inheritance diagram for Node:

AreaNode BackgroundNode StartUpResourceNode List of all members.

Public Member Functions

 Node (World *par)
 update class pointer to parent
 ~Node ()
virtual void RecieveSignal (const string &id, Signal &sig)
 Recieve and Interpret a signal.

Protected Member Functions

void Broadcast (const string &id, Signal &sig)
 Send a signal to parent to broadcast.
void SendSignal (const string &name, const string &id, Signal &sig)
 Send a signal to parent to relay.

Private Attributes

Worldparent
 Node's Parent.

Detailed Description

Base abstract 'Node' framework class.

This class is the class inherited by each node. Node's are different part's of the application, and can be thought of as little clients. Signals are recieved and sent as strings.


Constructor & Destructor Documentation

Node::Node World par  ) 
 

update class pointer to parent

Node::~Node  ) 
 


Member Function Documentation

void Node::Broadcast const string &  id,
Signal sig
[protected]
 

Send a signal to parent to broadcast.

Broadcast should not be overriden as it is used to communicate with the other nodes, via the parent

void Node::RecieveSignal const string &  id,
Signal sig
[virtual]
 

Recieve and Interpret a signal.

RecieveSignal should be overriden, by all derived node classes

Reimplemented in AreaNode, BackgroundNode, and StartUpResourceNode.

void Node::SendSignal const string &  name,
const string &  id,
Signal sig
[protected]
 

Send a signal to parent to relay.

SendSignal should not be overriden as it is used to communicate with the other nodes, via the parent


Member Data Documentation

World* Node::parent [private]
 

Node's Parent.


The documentation for this class was generated from the following files:
Generated on Sun Mar 20 12:22:07 2005 for The Grid by doxygen 1.3.8