MAK RTIspy API Documentation for HLA 1.3
Classes | Functions | Variables
simpleDDMMain.cxx File Reference

Classes

class  clockDisplay

Functions

template<class T >
bool convert (const string &param, const string &value, T &dest)
bool parseCmdLine (int argc, char *argv[], simpleDDMFederate *ourFed)
clockDisplaycreateDisplay (simpleDDMFederate *aFederate)
void changeBounds (int lower, int upper, int zone, simpleDDMFederate *aFederate, clockDisplay *aClock=0)
void SetPosition (int seconds, simpleDDMFederate *aFederate, clockDisplay *aDisplay=0)
void SetPositionAndChangeBounds (int seconds, simpleDDMFederate *aFederate, clockDisplay *aDisplay=0)
bool syncOurZoneWithGui (simpleDDMFederate *aFederate, clockDisplay *aDisplay=0)
bool checkForClockwiseChange (simpleDDMFederate *aFederate, clockDisplay *aDisplay=0)
int checkInput (simpleDDMFederate *aFederate, clockDisplay *aDisplay)
float theSendRangeTolerance (20.0f)
float theSizeOfToleratedSendRange (1)
int theCurrentPosition (0)
int theLastPosition (0)
int theZone (theDefaultZone)
static int thePositionUpperBound (simpleDDMFederate::GREATESTSecondsInRegion)
static int thePositionLowerBound (simpleDDMFederate::LOWESTSecondsInRegion)
static int theMaximumRange (simpleDDMFederate::GREATESTSecondsInRegion-simpleDDMFederate::LOWESTSecondsInRegion)
int main (int argc, char **argv)

Variables

keyboard theInput
bool theUseGui = true
bool theDisplayRegionExtents = true
const int theDefaultZone = 0
bool theClockWise = true
bool theChangeClockwiseDirection = false
bool thePauseClock = false
unsigned int theSleepInterval = 200
bool thePrintUpdate = true

Function Documentation

void changeBounds ( int  lower,
int  upper,
int  zone,
simpleDDMFederate aFederate,
clockDisplay aClock = 0 
)
bool checkForClockwiseChange ( simpleDDMFederate aFederate,
clockDisplay aDisplay = 0 
)

References theChangeClockwiseDirection, theClockWise, and theUseGui.

Referenced by main().

int checkInput ( simpleDDMFederate aFederate,
clockDisplay aDisplay 
)
template<class T >
bool convert ( const string &  param,
const string &  value,
T &  dest 
)

Referenced by convert().

clockDisplay * createDisplay ( simpleDDMFederate aFederate)
int main ( int  argc,
char **  argv 
)
bool parseCmdLine ( int  argc,
char *  argv[],
simpleDDMFederate ourFed 
)
void SetPosition ( int  seconds,
simpleDDMFederate aFederate,
clockDisplay aDisplay = 0 
)
void SetPositionAndChangeBounds ( int  seconds,
simpleDDMFederate aFederate,
clockDisplay aDisplay = 0 
)
bool syncOurZoneWithGui ( simpleDDMFederate aFederate,
clockDisplay aDisplay = 0 
)

References theUseGui, and simpleDDMFederate::zone().

Referenced by main().

int theCurrentPosition ( )
int theLastPosition ( )

Referenced by main(), and SetPositionAndChangeBounds().

static int thePositionLowerBound ( simpleDDMFederate::LOWESTSecondsInRegion  )
static

Referenced by main(), and SetPositionAndChangeBounds().

static int thePositionUpperBound ( simpleDDMFederate::GREATESTSecondsInRegion  )
static

Referenced by main(), and SetPositionAndChangeBounds().

float theSendRangeTolerance ( 20.  0f)

Referenced by parseCmdLine().

float theSizeOfToleratedSendRange ( )
int theZone ( theDefaultZone  )

Variable Documentation

bool theChangeClockwiseDirection = false
bool theClockWise = true
const int theDefaultZone = 0
bool theDisplayRegionExtents = true

Referenced by createDisplay(), and parseCmdLine().

keyboard theInput

Referenced by checkInput().

bool thePauseClock = false

Referenced by checkInput(), and main().

bool thePrintUpdate = true
unsigned int theSleepInterval = 200

Referenced by main(), and parseCmdLine().

bool theUseGui = true

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)