User Manual, Developers Guide and API Documentation

applications::session::PDU Class Reference

#include <session/PDU.hpp>

Inheritance diagram for applications::session::PDU:

Inheritance graph
[legend]
Collaboration diagram for applications::session::PDU:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual wns::simulator::Time getCreationTime ()
virtual Bit getFileLength ()
virtual bool getLastPacket ()
virtual const char * getMovieChoice ()
virtual std::string getPacketFrom ()
virtual int getPacketNumber ()
virtual bool getRequest ()
applications::session::SessiongetSender ()
 PDU (Bit packetSize, const wns::pyconfig::View &_pyco)
virtual void setCreationTime (wns::simulator::Time _creationTime)
virtual void setFileLength (Bit _length)
virtual void setLastPacket (bool _lastPacket)
virtual void setMovieChoice (const char *_movieChoice)
virtual void setPacketNumber (int _packetNumber, std::string _packetFrom)
virtual void setRequest (bool _request)
void setSender (applications::session::Session *sender)
virtual ~PDU ()

Private Member Functions

virtual Bit doGetLengthInBits () const

Private Attributes

wns::simulator::Time creationTime
Bit fileLength
bool lastPacket
const char * movieChoice
std::string packetFrom
int packetNumber
bool request
applications::session::Sessionsender


Detailed Description

Definition at line 41 of file PDU.hpp.


Constructor & Destructor Documentation

PDU::PDU ( Bit  packetSize,
const wns::pyconfig::View _pyco 
)

Definition at line 33 of file PDU.cpp.

PDU::~PDU (  )  [virtual]

Reimplemented from wns::osi::PDU.

Definition at line 46 of file PDU.cpp.


Member Function Documentation

Bit PDU::doGetLengthInBits (  )  const [private, virtual]

Returns:
The size of the PDU in bit which is the sum of the PCI returned by PCI::getSize() and the size of the user data (SDU) from the layer above.

Reimplemented from wns::osi::PDU.

Definition at line 51 of file PDU.cpp.

wns::simulator::Time PDU::getCreationTime (  )  [virtual]

Definition at line 87 of file PDU.cpp.

Bit PDU::getFileLength (  )  [virtual]

Definition at line 99 of file PDU.cpp.

bool PDU::getLastPacket (  )  [virtual]

Definition at line 63 of file PDU.cpp.

const char * PDU::getMovieChoice (  )  [virtual]

Definition at line 123 of file PDU.cpp.

std::string PDU::getPacketFrom (  )  [virtual]

Definition at line 142 of file PDU.cpp.

int PDU::getPacketNumber (  )  [virtual]

Definition at line 136 of file PDU.cpp.

bool PDU::getRequest (  )  [virtual]

Definition at line 111 of file PDU.cpp.

applications::session::Session * PDU::getSender (  ) 

Definition at line 69 of file PDU.cpp.

void PDU::setCreationTime ( wns::simulator::Time  _creationTime  )  [virtual]

Definition at line 81 of file PDU.cpp.

void PDU::setFileLength ( Bit  _length  )  [virtual]

Definition at line 93 of file PDU.cpp.

void PDU::setLastPacket ( bool  _lastPacket  )  [virtual]

Definition at line 57 of file PDU.cpp.

void PDU::setMovieChoice ( const char *  _movieChoice  )  [virtual]

Definition at line 117 of file PDU.cpp.

void PDU::setPacketNumber ( int  _packetNumber,
std::string  _packetFrom 
) [virtual]

Definition at line 129 of file PDU.cpp.

void PDU::setRequest ( bool  _request  )  [virtual]

Definition at line 105 of file PDU.cpp.

void PDU::setSender ( applications::session::Session sender  ) 

Definition at line 75 of file PDU.cpp.


Member Data Documentation

Definition at line 111 of file PDU.hpp.

Definition at line 109 of file PDU.hpp.

Definition at line 107 of file PDU.hpp.

Definition at line 110 of file PDU.hpp.

Definition at line 117 of file PDU.hpp.

Definition at line 116 of file PDU.hpp.

Definition at line 108 of file PDU.hpp.

Definition at line 119 of file PDU.hpp.


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

Generated on Sat May 26 03:32:27 2012 for openWNS by  doxygen 1.5.5