MAK RTIspy API Documentation for HLA 1516
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
simpleTime1516.SimpleTime1516 Class Reference
+ Inheritance diagram for simpleTime1516.SimpleTime1516:
+ Collaboration diagram for simpleTime1516.SimpleTime1516:

List of all members.

Public Member Functions

 SimpleTime1516 ()
void performExit ()
 This should perform actions to close the program (stop threads, disconnect, resign, exit(0), etc)
boolean parseCmdLine (String[] args)
 This will parse CommandLine Arguments.
void start (String[] args) throws FederateNotExecutionMember, RTIinternalError, IllegalTimeArithmetic, ObjectInstanceNotKnown, AttributeNotDefined, AttributeNotOwned, SaveInProgress, RestoreInProgress, InteractionClassNotPublished, InteractionClassNotDefined, InteractionParameterNotDefined, TimeRegulationIsNotEnabled
 This is the entry point for the main of each SimpleTime Implementation.
void usage ()
 This prints to Standard out the usage (command line arguments you pass in and what they do)
void performFire ()
String version ()

Static Public Member Functions

static void main (String[] args) throws Exception

Private Member Functions

void sleepFunction ()
void yieldFunction ()
void cleanUpProgram (RTIambassador rtiAmb)
void isExiting (RTIambassador rtiAmb)
boolean publishAndSubscribeInteraction (RTIambassador rtiAmb) throws FederateNotExecutionMember
void synchronizeFederation (RTIambassador rtiAmb) throws FederateNotExecutionMember, RTIinternalError, SaveInProgress, RestoreInProgress
void minimalSleepFunction ()
int getIdentifier ()
String getHostname () throws UnknownHostException
void resignAndDestroy (RTIambassador rtiAmb)
boolean publishSubscribeAndRegisterObject (RTIambassador rtiAmb) throws FederateNotExecutionMember
void becomeConstrainedAndRegulating (RTIambassador rtiAmb, LogicalTime currentTime2, LogicalTimeInterval lookAhead)
void joinFedEx (RTIambassador rtiAmb, SimpleTimeFedAmb1516 fedAmb, String federateType)
void createFedEx (RTIambassador rtiAmb, String federationName2, String fedFileName2)
void exit ()
void printOutFedTime (LogicalTime time)
void printOutFedTime (LogicalTimeInterval time)

Private Attributes

LogicalTime currentRTITime
LogicalTime currentTime
boolean dedicatedMachine = false
InteractionClassHandle detonateInteractionHandle
String detonateInteractionName = "MunitionDetonation"
String federationName = "MAKsimpletime"
String fedFileName = "MAKsimpletime.xml"
InteractionClassHandle fireInteractionHandle
String fireInteractionName = "WeaponFire"
String initSyncPointLabel = "begin"
SimpleTimeKeyboard mySimpleTimeKeyboard
Integer phaseLine
int sleepTime = 850
SimpleTimeFedAmb1516Data theAmbData
ObjectClassHandle theClassHandle
String theClassName = "BaseEntity"
ObjectInstanceHandle theObjectHandle
boolean unManagedFederate = false
boolean exit
RTIambassador rtiAmb

Static Private Attributes

static final String VERSION = "SIMPLE_TIME_HLA1516"

Constructor & Destructor Documentation


Member Function Documentation

void simpleTime1516.SimpleTime1516.becomeConstrainedAndRegulating ( RTIambassador  rtiAmb,
LogicalTime  currentTime2,
LogicalTimeInterval  lookAhead 
) [inline, private]
void simpleTime1516.SimpleTime1516.cleanUpProgram ( RTIambassador  rtiAmb) [inline, private]
void simpleTime1516.SimpleTime1516.createFedEx ( RTIambassador  rtiAmb,
String  federationName2,
String  fedFileName2 
) [inline, private]
void simpleTime1516.SimpleTime1516.exit ( ) [inline, private]
String simpleTime1516.SimpleTime1516.getHostname ( ) throws UnknownHostException [inline, private]
void simpleTime1516.SimpleTime1516.isExiting ( RTIambassador  rtiAmb) [inline, private]
void simpleTime1516.SimpleTime1516.joinFedEx ( RTIambassador  rtiAmb,
SimpleTimeFedAmb1516  fedAmb,
String  federateType 
) [inline, private]
static void simpleTime1516.SimpleTime1516.main ( String[]  args) throws Exception [inline, static]
boolean simpleTime1516.SimpleTime1516.parseCmdLine ( String[]  args) [inline]
void simpleTime1516.SimpleTime1516.performExit ( ) [inline, virtual]

This should perform actions to close the program (stop threads, disconnect, resign, exit(0), etc)

Implements common.ISimpleTime.

References simpleTime1516.SimpleTime1516.cleanUpProgram(), simpleTime1516.SimpleTime1516.exit(), and simpleTime1516.SimpleTime1516.rtiAmb.

Referenced by simpleTime1516.SimpleTime1516.joinFedEx().

void simpleTime1516.SimpleTime1516.printOutFedTime ( LogicalTime  time) [inline, private]
void simpleTime1516.SimpleTime1516.printOutFedTime ( LogicalTimeInterval  time) [inline, private]
boolean simpleTime1516.SimpleTime1516.publishAndSubscribeInteraction ( RTIambassador  rtiAmb) throws FederateNotExecutionMember [inline, private]
boolean simpleTime1516.SimpleTime1516.publishSubscribeAndRegisterObject ( RTIambassador  rtiAmb) throws FederateNotExecutionMember [inline, private]
void simpleTime1516.SimpleTime1516.sleepFunction ( ) [inline, private]
void simpleTime1516.SimpleTime1516.start ( String[]  args) throws FederateNotExecutionMember, RTIinternalError, IllegalTimeArithmetic, ObjectInstanceNotKnown, AttributeNotDefined, AttributeNotOwned, SaveInProgress, RestoreInProgress, InteractionClassNotPublished, InteractionClassNotDefined, InteractionParameterNotDefined, TimeRegulationIsNotEnabled [inline]

This is the entry point for the main of each SimpleTime Implementation.

Parameters:
args

Implements common.ISimpleTime.

References simpleTime1516.SimpleTime1516.becomeConstrainedAndRegulating(), simpleTime1516.SimpleTime1516.cleanUpProgram(), simpleTime1516.SimpleTime1516.createFedEx(), simpleTime1516.SimpleTime1516.currentRTITime, simpleTime1516.SimpleTime1516.currentTime, simpleTime1516.SimpleTime1516.detonateInteractionHandle, simpleTime1516.SimpleTime1516.exit(), simpleTime1516.SimpleTime1516.federationName, simpleTime1516.SimpleTime1516.fedFileName, simpleTime1516.SimpleTime1516.fireInteractionHandle, simpleTime1516.SimpleTimeFedAmb1516Data.getAttrValues(), simpleTime1516.SimpleTimeFedAmb1516Data.getParamValues(), simpleTime1516.SimpleTimeFedAmb1516Data.getTheParamNameHandleMap(), simpleTime1516.SimpleTimeFedAmb1516Data.getTimeManagedObject(), simpleTime1516.SimpleTime1516.isExiting(), simpleTime1516.SimpleTimeFedAmb1516Data.isRegulating, simpleTime1516.SimpleTimeFedAmb1516Data.isTimeAdvanced(), simpleTime1516.SimpleTime1516.joinFedEx(), simpleTime1516.SimpleTime1516.mySimpleTimeKeyboard, simpleTime1516.SimpleTime1516.parseCmdLine(), simpleTime1516.SimpleTime1516.printOutFedTime(), simpleTime1516.SimpleTime1516.publishAndSubscribeInteraction(), simpleTime1516.SimpleTime1516.publishSubscribeAndRegisterObject(), simpleTime1516.SimpleTime1516.resignAndDestroy(), simpleTime1516.SimpleTime1516.rtiAmb, simpleTime1516.SimpleTimeFedAmb1516Data.setTimeAdvanced(), simpleTime1516.SimpleTime1516.sleepFunction(), common.SimpleTimeKeyboard.startKeyboardScanner(), common.SimpleTimeKeyboard.stopKeyboardScanner(), simpleTime1516.SimpleTime1516.synchronizeFederation(), simpleTime1516.SimpleTime1516.theAmbData, simpleTime1516.SimpleTime1516.theObjectHandle, simpleTime1516.SimpleTime1516.unManagedFederate, and simpleTime1516.SimpleTime1516.yieldFunction().

Referenced by simpleTime1516.SimpleTime1516.main().

void simpleTime1516.SimpleTime1516.synchronizeFederation ( RTIambassador  rtiAmb) throws FederateNotExecutionMember, RTIinternalError, SaveInProgress, RestoreInProgress [inline, private]

This prints to Standard out the usage (command line arguments you pass in and what they do)

Implements common.ISimpleTime.

Referenced by simpleTime1516.SimpleTime1516.parseCmdLine().

void simpleTime1516.SimpleTime1516.yieldFunction ( ) [inline, private]

Member Data Documentation

String simpleTime1516.SimpleTime1516.detonateInteractionName = "MunitionDetonation" [private]
String simpleTime1516.SimpleTime1516.federationName = "MAKsimpletime" [private]
String simpleTime1516.SimpleTime1516.fedFileName = "MAKsimpletime.xml" [private]
String simpleTime1516.SimpleTime1516.fireInteractionName = "WeaponFire" [private]
String simpleTime1516.SimpleTime1516.theClassName = "BaseEntity" [private]
ObjectInstanceHandle simpleTime1516.SimpleTime1516.theObjectHandle [private]
final String simpleTime1516.SimpleTime1516.VERSION = "SIMPLE_TIME_HLA1516" [static, private]

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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)