Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Simulator Class Reference

#include <simulator.h>

Inheritance diagram for Simulator:

Handler DistributedSimulator List of all members.

Public Member Functions

 Simulator ()
virtual ~Simulator ()
virtual void Handle (Event *, Time_t)
SchedulerSetScheduler (const Scheduler &)
virtual void Progress (Time_t)
virtual SimulatorEventNodeDownAt (Node *, const Random &)
virtual SimulatorEventNodeUpAt (Node *, const Random &)
virtual SimulatorEventInterfaceDownAt (Interface *, const Random &)
virtual SimulatorEventInterfaceUpAt (Interface *, const Random &)
void PrintStats ()
void CommonRunInit ()
virtual bool DistributedSim ()
virtual void Run ()
void StopAt (Time_t t)
void Halt ()
void Silent (bool s)
void Name (const std::string &)
void DeleteObject (Object *)
void ProgressHook (ProgressHook_t)
void AddNotify (NotifyHandler *, Time_t, void *)
void CleanupOnExit (bool c=true)
void TopologyChanged (bool)
bool IsScheduled (Event *)
QTWindowGetQTWindow ()
void DisplayTopology ()
void DisplayTopologyAndReturn ()
void UpdateTopology ()
void StartAnimation (Time_t, bool=true, bool=false)
void StopAnimation (Time_t)
void PauseAnimation (Time_t)
void AnimationUpdateInterval (Time_t)
void AnimateWirelessTx (bool a, ANIMATE_WIRELESS_TX_FORM wirelessTxForm=CIRCLES)
bool AnimateWirelessTx ()
ANIMATE_WIRELESS_TX_FORM AnimateWirelessTxForm ()
void AnimateBasebandTx (Time_t when, bool a)
bool AnimateBasebandTx ()
bool BasebandTxStart ()
void PauseOnWirelessTx (bool p)
bool PauseOnWirelessTx ()
bool AddBackgroundMap (const std::string &, const RectRegion &=RectRegion())
bool AddBackgroundMap (const StringVec_t &, const RectRegion &=RectRegion())
bool PlaybackTraceFile (const char *)
bool StartPlayback ()
void CustomBackground (CustomBackground_t)
void NodeSelectedCallback (NodeSelected_t)
void EnableAnimationRecorder (bool)
void RecorderMPEGSpeedup (Mult_t)
void EnableHTTPServer ()
Time_t SetupTime ()
Time_t RouteTime ()
Time_t RunTime ()
Time_t TotalTime ()
void AmimationRegion (const Location &, const Location &)
void NewLocation (Meters_t, Meters_t)
void NewLocation (const Location &)
Meters_t SmallestX ()
Meters_t SmallestY ()
Meters_t LargestX ()
Meters_t LargestY ()
bool HasMobility ()
void HasMobility (bool m)

Static Public Member Functions

Time_t Now ()
Size_t ReportMemoryUsage ()
Size_t ReportMemoryUsageMB ()

Public Attributes

bool verbose
unsigned long verbosemod
bool cleanUp
Time_t lastTopologyChange
bool supercomputerInterconnect
bool silent
bool halted
ProgressEventprogressEvent

Static Public Attributes

Simulatorinstance
PHVec_t progressHooks
RectRegion boundingBox
std::string simName
CustomBackground_t pCustomBackground = 0
NodeSelected_t pNodeSelected = 0
bool recorderEnabled = false
Mult_t recorderSpeedup = 10.0

Protected Member Functions

virtual void ProgressResched (Time_t)
Time_t GetSec ()
bool ProcessOneMap (std::string, const RectRegion &, LocationVecVec_t &)
RectRegion FindBoundingBox (LocationVecVec_t &)

Protected Attributes

Time_t simtime
SimulatorUid_t uid
Time_t progressInterval
bool serverEnabled
ProgressTimer progressTimer
Time_t startRouteTime
Time_t startRunTime
QTWindowqtWin
bool animate
bool playbackAnimate
std::ifstream playbackFile
bool animateWirelessTx
ANIMATE_WIRELESS_TX_FORM animateWirelessTxForm
bool animateBasebandTx
bool basebandTxStart
bool pauseWirelessTx
bool haltEventSched
Meters_t smallestX
Meters_t smallestY
Meters_t largestX
Meters_t largestY
bool firstLocation
bool hasMobility

Private Member Functions

void FillEventsFromTrace (Time_t)

Friends

class ProgressTimer

Constructor & Destructor Documentation

Simulator::Simulator  ) 
 

Simulator::~Simulator  )  [virtual]
 


Member Function Documentation

bool Simulator::AddBackgroundMap const StringVec_t ,
const RectRegion = RectRegion()
 

bool Simulator::AddBackgroundMap const std::string &  ,
const RectRegion = RectRegion()
 

void Simulator::AddNotify NotifyHandler ,
Time_t  ,
void * 
 

void Simulator::AmimationRegion const Location ,
const Location
 

bool Simulator::AnimateBasebandTx  ) 
 

void Simulator::AnimateBasebandTx Time_t  when,
bool  a
 

bool Simulator::AnimateWirelessTx  ) 
 

void Simulator::AnimateWirelessTx bool  a,
ANIMATE_WIRELESS_TX_FORM  wirelessTxForm = CIRCLES
 

ANIMATE_WIRELESS_TX_FORM Simulator::AnimateWirelessTxForm  ) 
 

void Simulator::AnimationUpdateInterval Time_t   ) 
 

bool Simulator::BasebandTxStart  ) 
 

void Simulator::CleanupOnExit bool  c = true  )  [inline]
 

void Simulator::CommonRunInit  ) 
 

void Simulator::CustomBackground CustomBackground_t   ) 
 

void Simulator::DeleteObject Object  ) 
 

void Simulator::DisplayTopology  ) 
 

void Simulator::DisplayTopologyAndReturn  ) 
 

virtual bool Simulator::DistributedSim  )  [inline, virtual]
 

Reimplemented in DistributedSimulator.

void Simulator::EnableAnimationRecorder bool   ) 
 

void Simulator::EnableHTTPServer  ) 
 

void Simulator::FillEventsFromTrace Time_t   )  [private]
 

RectRegion Simulator::FindBoundingBox LocationVecVec_t  )  [protected]
 

QTWindow* Simulator::GetQTWindow  )  [inline]
 

Time_t Simulator::GetSec  )  [protected]
 

void Simulator::Halt  ) 
 

void Simulator::Handle Event ,
Time_t 
[virtual]
 

Implements Handler.

void Simulator::HasMobility bool  m  )  [inline]
 

bool Simulator::HasMobility  )  [inline]
 

SimulatorEvent * Simulator::InterfaceDownAt Interface ,
const Random
[virtual]
 

SimulatorEvent * Simulator::InterfaceUpAt Interface ,
const Random
[virtual]
 

bool Simulator::IsScheduled Event  ) 
 

Meters_t Simulator::LargestX  ) 
 

Meters_t Simulator::LargestY  ) 
 

void Simulator::Name const std::string &   ) 
 

void Simulator::NewLocation const Location  ) 
 

void Simulator::NewLocation Meters_t  ,
Meters_t 
 

SimulatorEvent * Simulator::NodeDownAt Node ,
const Random
[virtual]
 

void Simulator::NodeSelectedCallback NodeSelected_t   ) 
 

SimulatorEvent * Simulator::NodeUpAt Node ,
const Random
[virtual]
 

Time_t Simulator::Now  )  [static]
 

void Simulator::PauseAnimation Time_t   ) 
 

bool Simulator::PauseOnWirelessTx  )  [inline]
 

void Simulator::PauseOnWirelessTx bool  p  )  [inline]
 

bool Simulator::PlaybackTraceFile const char *   ) 
 

void Simulator::PrintStats  ) 
 

bool Simulator::ProcessOneMap std::string  ,
const RectRegion ,
LocationVecVec_t
[protected]
 

void Simulator::Progress Time_t   )  [virtual]
 

void Simulator::ProgressHook ProgressHook_t   ) 
 

void Simulator::ProgressResched Time_t   )  [protected, virtual]
 

void Simulator::RecorderMPEGSpeedup Mult_t   ) 
 

Size_t Simulator::ReportMemoryUsage  )  [static]
 

Size_t Simulator::ReportMemoryUsageMB  )  [static]
 

Time_t Simulator::RouteTime  ) 
 

void Simulator::Run  )  [virtual]
 

Reimplemented in DistributedSimulator.

Time_t Simulator::RunTime  ) 
 

Scheduler* Simulator::SetScheduler const Scheduler  ) 
 

Time_t Simulator::SetupTime  ) 
 

void Simulator::Silent bool  s  )  [inline]
 

Meters_t Simulator::SmallestX  ) 
 

Meters_t Simulator::SmallestY  ) 
 

void Simulator::StartAnimation Time_t  ,
bool  = true,
bool  = false
 

bool Simulator::StartPlayback  ) 
 

void Simulator::StopAnimation Time_t   ) 
 

void Simulator::StopAt Time_t  t  ) 
 

void Simulator::TopologyChanged bool   ) 
 

Time_t Simulator::TotalTime  ) 
 

void Simulator::UpdateTopology  ) 
 


Friends And Related Function Documentation

friend class ProgressTimer [friend]
 


Member Data Documentation

bool Simulator::animate [protected]
 

bool Simulator::animateBasebandTx [protected]
 

bool Simulator::animateWirelessTx [protected]
 

ANIMATE_WIRELESS_TX_FORM Simulator::animateWirelessTxForm [protected]
 

bool Simulator::basebandTxStart [protected]
 

RectRegion Simulator::boundingBox [static]
 

bool Simulator::cleanUp
 

bool Simulator::firstLocation [protected]
 

bool Simulator::halted
 

bool Simulator::haltEventSched [protected]
 

bool Simulator::hasMobility [protected]
 

Simulator * Simulator::instance [static]
 

Meters_t Simulator::largestX [protected]
 

Meters_t Simulator::largestY [protected]
 

Time_t Simulator::lastTopologyChange
 

bool Simulator::pauseWirelessTx [protected]
 

CustomBackground_t Simulator::pCustomBackground = 0 [static]
 

bool Simulator::playbackAnimate [protected]
 

std::ifstream Simulator::playbackFile [protected]
 

NodeSelected_t Simulator::pNodeSelected = 0 [static]
 

ProgressEvent* Simulator::progressEvent
 

PHVec_t Simulator::progressHooks [static]
 

Time_t Simulator::progressInterval [protected]
 

ProgressTimer Simulator::progressTimer [protected]
 

QTWindow* Simulator::qtWin [protected]
 

bool Simulator::recorderEnabled = false [static]
 

Mult_t Simulator::recorderSpeedup = 10.0 [static]
 

bool Simulator::serverEnabled [protected]
 

bool Simulator::silent
 

string Simulator::simName [static]
 

Time_t Simulator::simtime [protected]
 

Meters_t Simulator::smallestX [protected]
 

Meters_t Simulator::smallestY [protected]
 

Time_t Simulator::startRouteTime [protected]
 

Time_t Simulator::startRunTime [protected]
 

bool Simulator::supercomputerInterconnect
 

SimulatorUid_t Simulator::uid [protected]
 

bool Simulator::verbose
 

unsigned long Simulator::verbosemod
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 27 16:17:33 2008 for Georgia Tech Network Simulator (GTNetS) by  doxygen 1.3.9.1