Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

vpr::sim::Controller::EventData Struct Reference

#include <Controller.h>

Collaboration diagram for vpr::sim::Controller::EventData:

Collaboration graph
[legend]
List of all members.

Public Types

enum  EventType { MESSAGE, CONNECTION_INIT, CONNECTION_COMPLETE, LOCALHOST_DELIVERY }

Public Methods

 EventData (const NetworkGraph::net_edge_t _edge, const NetworkLine::LineDirection _dir)
 EventData (vpr::SocketImplSIM *sock, const EventType _type)
bool operator== (const EventData &obj) const

Public Attributes

EventType type
NetworkGraph::net_edge_t edge
NetworkLine::LineDirection direction
vpr::SocketImplSIMsocket

Member Enumeration Documentation

enum vpr::sim::Controller::EventData::EventType
 

Enumeration values:
MESSAGE  Message arrival event.
CONNECTION_INIT  Connection request event.
CONNECTION_COMPLETE  Connection completion event.
LOCALHOST_DELIVERY  Immediate localhost-delivery-of-crap event.

Definition at line 285 of file Controller.h.

00286       {
00287          MESSAGE,             
00288          CONNECTION_INIT,     
00289          CONNECTION_COMPLETE, 
00290          LOCALHOST_DELIVERY   
00291       };


Constructor & Destructor Documentation

vpr::sim::Controller::EventData::EventData const NetworkGraph::net_edge_t    _edge,
const NetworkLine::LineDirection    _dir
[inline]
 

Definition at line 293 of file Controller.h.

00295          : type(MESSAGE), edge(_edge), direction(_dir)
00296       {
00297          ;
00298       }

vpr::sim::Controller::EventData::EventData vpr::SocketImplSIM   sock,
const EventType    _type
[inline]
 

Definition at line 300 of file Controller.h.

00301          : type(_type), socket(sock)
00302       {
00303          ;
00304       }


Member Function Documentation

bool vpr::sim::Controller::EventData::operator== const EventData &    obj const [inline]
 

Definition at line 306 of file Controller.h.

00307       {
00308          bool status = false;
00309 
00310          if ( type == obj.type )
00311          {
00312             // This may need to be expanded to a full if/else if/else block
00313             // if the possible message data types expands beyond the above
00314             // four.
00315             status = (type == MESSAGE) ? (edge == obj.edge && direction == obj.direction)
00316                                        : (socket == obj.socket);
00317          }
00318 
00319          return status;
00320       }


Member Data Documentation

EventType vpr::sim::Controller::EventData::type
 

Definition at line 322 of file Controller.h.

NetworkGraph::net_edge_t vpr::sim::Controller::EventData::edge
 

Definition at line 323 of file Controller.h.

NetworkLine::LineDirection vpr::sim::Controller::EventData::direction
 

Definition at line 324 of file Controller.h.

vpr::SocketImplSIM* vpr::sim::Controller::EventData::socket
 

Definition at line 325 of file Controller.h.


The documentation for this struct was generated from the following file:
Generated on Sun May 2 14:47:19 2004 for VR Juggler Portable Runtime by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002