INET Framework for OMNeT++/OMNEST
PacketDrillEvent Class Reference

#include <PacketDrillUtils.h>

Inheritance diagram for PacketDrillEvent:

Public Member Functions

 PacketDrillEvent (enum event_t type_)
 
 ~PacketDrillEvent ()
 
void setLineNumber (int number)
 
int getLineNumber () const
 
void setEventNumber (int number)
 
int getEventNumber () const
 
void setEventTime (int64 usecs)
 
void setEventTime (simtime_t time)
 
simtime_t getEventTime () const
 
void setEventTimeEnd (int64 usecs)
 
void setEventTimeEnd (simtime_t time)
 
simtime_t getEventTimeEnd () const
 
void setEventOffset (int64 usecs)
 
void setEventOffset (simtime_t time)
 
simtime_t getEventOffset () const
 
void setTimeType (enum eventTime_t ttype)
 
enum eventTime_t getTimeType () const
 
void setType (enum event_t tt)
 
enum event_t getType () const
 
PacketDrillPacketgetPacket ()
 
void setPacket (PacketDrillPacket *packet)
 
void setSyscall (struct syscall_spec *syscall)
 
struct syscall_specgetSyscall ()
 
void setCommand (struct command_spec *command)
 
struct command_specgetCommand ()
 

Private Attributes

int lineNumber
 
int eventNumber
 
simtime_t eventTime
 
simtime_t eventTimeEnd
 
simtime_t eventOffset
 
enum eventTime_t timeType
 
enum event_t type
 
union {
   PacketDrillPacket *   packet
 
   struct syscall_spec *   syscall
 
   struct command_spec *   command
 
eventKind
 

Constructor & Destructor Documentation

PacketDrillEvent::PacketDrillEvent ( enum event_t  type_)
256 {
257  lineNumber = -1;
258  eventNumber = -1;
259  timeType = ANY_TIME;
260  type = type_;
263  eventKind.packet = nullptr;
264  eventKind.syscall = nullptr;
265  eventKind.command = nullptr;
266 }
union PacketDrillEvent::@0 eventKind
simtime_t eventOffset
Definition: PacketDrillUtils.h:493
int eventNumber
Definition: PacketDrillUtils.h:490
enum eventTime_t timeType
Definition: PacketDrillUtils.h:494
#define NO_TIME_RANGE
Definition: PacketDrillUtils.h:197
simtime_t eventTimeEnd
Definition: PacketDrillUtils.h:492
int lineNumber
Definition: PacketDrillUtils.h:489
enum event_t type
Definition: PacketDrillUtils.h:495
Definition: PacketDrillUtils.h:237
PacketDrillEvent::~PacketDrillEvent ( )
269 {
270 }

Member Function Documentation

struct command_spec* PacketDrillEvent::getCommand ( )
inline
525 { return eventKind.command; };
union PacketDrillEvent::@0 eventKind
int PacketDrillEvent::getEventNumber ( ) const
inline
506 { return eventNumber; };
int eventNumber
Definition: PacketDrillUtils.h:490
simtime_t PacketDrillEvent::getEventOffset ( ) const
inline

Referenced by inet::PacketDrillApp::runEvent().

515 { return eventOffset; };
simtime_t eventOffset
Definition: PacketDrillUtils.h:493
simtime_t PacketDrillEvent::getEventTime ( ) const
inline

Referenced by inet::PacketDrillApp::adjustTimes(), and inet::PacketDrillApp::runEvent().

509 { return eventTime; };
simtime_t eventTime
Definition: PacketDrillUtils.h:491
simtime_t PacketDrillEvent::getEventTimeEnd ( ) const
inline

Referenced by inet::PacketDrillApp::adjustTimes(), and inet::PacketDrillApp::runEvent().

512 { return eventTimeEnd; };
simtime_t eventTimeEnd
Definition: PacketDrillUtils.h:492
int PacketDrillEvent::getLineNumber ( ) const
inline
504 { return lineNumber; };
int lineNumber
Definition: PacketDrillUtils.h:489
PacketDrillPacket* PacketDrillEvent::getPacket ( )
inline

Referenced by inet::PacketDrillApp::runEvent().

520 { return eventKind.packet; };
union PacketDrillEvent::@0 eventKind
struct syscall_spec* PacketDrillEvent::getSyscall ( )
inline

Referenced by inet::PacketDrillApp::runEvent().

523 { return eventKind.syscall; };
union PacketDrillEvent::@0 eventKind
enum eventTime_t PacketDrillEvent::getTimeType ( ) const
inline

Referenced by inet::PacketDrillApp::adjustTimes(), inet::PacketDrillApp::runEvent(), and inet::PacketDrillApp::syscallRecvFrom().

517 { return timeType; };
enum eventTime_t timeType
Definition: PacketDrillUtils.h:494
enum event_t PacketDrillEvent::getType ( ) const
inline

Referenced by inet::PacketDrillApp::runEvent().

519 { return type; };
enum event_t type
Definition: PacketDrillUtils.h:495
void PacketDrillEvent::setCommand ( struct command_spec command)
inline
524 { eventKind.command = command; };
union PacketDrillEvent::@0 eventKind
struct command_spec * command
Definition: PacketDrillUtils.h:499
void PacketDrillEvent::setEventNumber ( int  number)
inline

Referenced by inet::PacketDrillApp::scheduleEvent().

505 { eventNumber = number; };
int eventNumber
Definition: PacketDrillUtils.h:490
void PacketDrillEvent::setEventOffset ( int64  usecs)
inline
513 { eventOffset = SimTime(usecs, SIMTIME_US); };
simtime_t eventOffset
Definition: PacketDrillUtils.h:493
void PacketDrillEvent::setEventOffset ( simtime_t  time)
inline
514 { eventOffset = time; };
simtime_t eventOffset
Definition: PacketDrillUtils.h:493
void PacketDrillEvent::setEventTime ( int64  usecs)
inline
507 { eventTime = SimTime(usecs, SIMTIME_US); };
simtime_t eventTime
Definition: PacketDrillUtils.h:491
void PacketDrillEvent::setEventTime ( simtime_t  time)
inline
508 { eventTime = time; };
simtime_t eventTime
Definition: PacketDrillUtils.h:491
void PacketDrillEvent::setEventTimeEnd ( int64  usecs)
inline
510 { eventTimeEnd = SimTime(usecs, SIMTIME_US); };
simtime_t eventTimeEnd
Definition: PacketDrillUtils.h:492
void PacketDrillEvent::setEventTimeEnd ( simtime_t  time)
inline
511 { eventTimeEnd = time; };
simtime_t eventTimeEnd
Definition: PacketDrillUtils.h:492
void PacketDrillEvent::setLineNumber ( int  number)
inline
503 { lineNumber = number; };
int lineNumber
Definition: PacketDrillUtils.h:489
void PacketDrillEvent::setPacket ( PacketDrillPacket packet)
inline
521 { eventKind.packet = packet; };
union PacketDrillEvent::@0 eventKind
PacketDrillPacket * packet
Definition: PacketDrillUtils.h:497
void PacketDrillEvent::setSyscall ( struct syscall_spec syscall)
inline
522 { eventKind.syscall = syscall; };
union PacketDrillEvent::@0 eventKind
struct syscall_spec * syscall
Definition: PacketDrillUtils.h:498
void PacketDrillEvent::setTimeType ( enum eventTime_t  ttype)
inline
516 { timeType = ttype; };
enum eventTime_t timeType
Definition: PacketDrillUtils.h:494
void PacketDrillEvent::setType ( enum event_t  tt)
inline
518 { type = tt; };
enum event_t type
Definition: PacketDrillUtils.h:495

Member Data Documentation

struct command_spec* PacketDrillEvent::command
union { ... } PacketDrillEvent::eventKind
int PacketDrillEvent::eventNumber
private
simtime_t PacketDrillEvent::eventOffset
private
simtime_t PacketDrillEvent::eventTime
private
simtime_t PacketDrillEvent::eventTimeEnd
private
int PacketDrillEvent::lineNumber
private
PacketDrillPacket* PacketDrillEvent::packet
struct syscall_spec* PacketDrillEvent::syscall
enum eventTime_t PacketDrillEvent::timeType
private
enum event_t PacketDrillEvent::type
private

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