#include <BaseEvent.h>
Public Member Functions | |
| BaseEvent (const BaseEvent< S, A > &that) | |
| copy constructor copies over id as well | |
| BaseEvent< S, A > & | operator= (const BaseEvent< S, A > &that) |
| assignment operator assigns id as well | |
| const std::string | detailedString () const |
| Detailed string. | |
| const std::string | toString () const |
| a simpler string representation for debugging | |
| const S & | getSendObj () const |
| Gets the send obj. | |
| const S & | getRecvObj () const |
| Gets the recv obj. | |
| const SimTime & | getSendTime () const |
| Gets the send time. | |
| const SimTime & | getRecvTime () const |
| Gets the recv time. | |
| const A & | getAction () const |
| Gets the action. | |
| size_t | getId () const |
| Gets the id. | |
Protected Member Functions | |
| BaseEvent (size_t id, const S &sendObj, const S &recvObj, const A &action, const SimTime &sendTime, const SimTime &recvTime) | |
| Instantiates a new base event. | |
Private Attributes | |
| size_t | id |
| The id: not guaranteed to be unique. | |
| S | sendObj |
| The send obj. | |
| S | recvObj |
| The recv obj. | |
| A | action |
| The action to be performed on receipt of this event. | |
| SimTime | sendTime |
| The send time. | |
| SimTime | recvTime |
| The recv time. | |
The Class BaseEvent.
| <S> | the type representing the simulation object | |
| <A> | the type representing the action to be performed on receipt of this event |
| BaseEvent< S, A >::BaseEvent | ( | size_t | id, | |
| const S & | sendObj, | |||
| const S & | recvObj, | |||
| const A & | action, | |||
| const SimTime & | sendTime, | |||
| const SimTime & | recvTime | |||
| ) | [inline, protected] |
Instantiates a new base event.
| id,: | not guaranteed to be unique | |
| sendObj | the sending simulation obj | |
| recvObj | the receiving simulatio obj | |
| action | the action | |
| sendTime | the send time | |
| recvTime | the recv time |
| BaseEvent< S, A >::BaseEvent | ( | const BaseEvent< S, A > & | that | ) | [inline] |
copy constructor copies over id as well
Gets the action.
Gets the id.
Gets the recv obj.
Gets the recv time.
Gets the send obj.
Gets the send time.
| BaseEvent<S, A>& BaseEvent< S, A >::operator= | ( | const BaseEvent< S, A > & | that | ) | [inline] |
assignment operator assigns id as well
a simpler string representation for debugging
The action to be performed on receipt of this event.
The id: not guaranteed to be unique.
1.6.3