OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::NetworkSink Class Reference
[Network Classes]

This class implements a simple node that stores a copy of the last event it received and passed on for output to the console. More...

#include <NetworkSink.h>

Inheritance diagram for ot::NetworkSink:

Inheritance graph
[legend]
Collaboration diagram for ot::NetworkSink:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int isEventGenerator ()
virtual void onEventGenerated (Event &e, Node &generator)

Public Attributes

std::string stationName
short int stationNumber
NetworkSendernetworkSender
int modified
Event event

Protected Member Functions

 NetworkSink (std::string &name_, short int number_, NetworkSender *networkSender_)

Friends

class NetworkSinkModule

Detailed Description

This class implements a simple node that stores a copy of the last event it received and passed on for output to the console.

The associated NetworkSinkModule checks for changes and generates a new network package if necessary.

Author:
Gerhard Reitmayr

Definition at line 92 of file NetworkSink.h.


Constructor & Destructor Documentation

ot::NetworkSink::NetworkSink ( std::string &  name_,
short int  number_,
NetworkSender networkSender_ 
) [inline, protected]

constructor method,sets members

Parameters:
name_ the station name
number_ the station number
networkSender_ pointer to the network sender this station belongs to

Definition at line 114 of file NetworkSink.h.


Member Function Documentation

virtual int ot::NetworkSink::isEventGenerator (  )  [inline, virtual]

tests for EventGenerator interface being present.

Is overriden to return 1 always.

Returns:
always 1

Reimplemented from ot::Node.

Definition at line 126 of file NetworkSink.h.

virtual void ot::NetworkSink::onEventGenerated ( Event e,
Node generator 
) [inline, virtual]

this method notifies the object that a new event was generated.

It stores a copy of the received event and passes the event on to its observers.

Parameters:
event reference to the new event. Do not change the event values, make a copy and change that !
generator reference to the EventGenerator object that notified the EventObserver.

Reimplemented from ot::Node.

Definition at line 140 of file NetworkSink.h.


Friends And Related Function Documentation

friend class NetworkSinkModule [friend]

Definition at line 147 of file NetworkSink.h.


Member Data Documentation

the event that is stored

Definition at line 105 of file NetworkSink.h.

flag whether it was modified since last turn

Definition at line 103 of file NetworkSink.h.

network sender pointer

Definition at line 101 of file NetworkSink.h.

station name

Definition at line 97 of file NetworkSink.h.

station number

Definition at line 99 of file NetworkSink.h.


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

copyright (c) 2006 Graz University of Technology