In file code/C/netnode.H:

class GNetNode : public GObject

Defines the nodes in a network

Inheritance:


public members:

GNetNode()
~GNetNode()
void Reset()
Reset flow to zero
int IncreaseFlow(int pipe, int issource)
Increase the flow on the specified pipe by 1
int DecreaseFlow(int pipe)
Decrease the flow on the specified pipe by 1
int QueryInputFlow(int pipe)
Returns the flow on the specified input pipe
int QueryOutputFlow(int pipe)
Returns the flow on the specified output pipe
int QueryNumInPipes()
Returns the number of input pipes
int QueryNumOutPipes()
Returns the number of output pipes
int QueryCapacityIn(int pipe)
Returns the capacity of the specified input pipe
int QueryCapacityOut(int pipe)
Returns the capacity of the specified output pipe
int SendMessageOut(int pipe, int msg_id, int msg)
Sends msg out along output pipe pipe with id msg_id
int SendMessageIn(int pipe, int msg_id, int msg)
Sends msg out along input pipe pipe with id msg_id
int RecieveMessageOut(int pipe, int msg_id, int &msg)
Recieves output message of msg_id type on pipe pipe
int RecieveMessageIn(int pipe, int msg_id, int &msg)
Recieves input message of msg_id type on pipe pipe
int AddPipe( GPipe *pipe, int direction)
Adds new pipe, pipe, either in (0) or out (1)
void Print()
Prints out this node
int GetDest(int pipe)
Returns the destination of the specified pipe

private members:

GArray < GPipe > in_pipes
Pipes that flow into the node
GArray < GPipe > out_pipes
Pipes that flow out from the node

Inherited from GObject:

public members:

friend ostream& operator<<(ostream& s, GObject &)

Documentation

Provides the encapsulation of a complete node. Thde node consists two arrays that define the pipes that flow into the node and flow out.

this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling