|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--HelloWorld
This demo is prepared to demostrate how you can use JavaRTI package. This is a Java version of HelloWorld example coming with HLA RTI releases.
Field Summary | |
(package private) boolean |
advanceGranted
|
(package private) java.util.Hashtable |
attributeName
|
(package private) java.util.Hashtable |
className
RTI Mappers |
(package private) int |
countryCommMsgTypeId
|
(package private) java.lang.String |
countryCommMsgTypeStr
|
(package private) short |
countryCommTypeId
|
(package private) java.lang.String |
countryCommTypeStr
|
(package private) int |
countryNameTypeId
|
(package private) java.lang.String |
countryNameTypeStr
|
(package private) int |
countryPopuTypeId
|
(package private) java.lang.String |
countryPopuTypeStr
|
(package private) short |
countryTypeId
|
(package private) java.lang.String |
countryTypeStr
|
(package private) double |
currentTime
|
(package private) EntityManager |
EntityMng
|
(package private) short |
federateId
|
(package private) java.lang.Object |
guard
|
(package private) java.util.Hashtable |
interactionName
|
(package private) int |
MaximumNumberOfIterations
|
(package private) SimCountry |
myCountry
|
(package private) java.lang.String |
myCountryName
|
(package private) java.io.PrintWriter |
myLog
Log File |
(package private) double |
myPopulation
|
(package private) org.omg.CORBA.ORB |
orb
|
(package private) java.util.Hashtable |
parameterName
|
(package private) double |
requestTime
|
(package private) RTIcap.RTIambassador |
rtiAmb
|
(package private) java.lang.Thread |
runner
|
(package private) double |
timeStep
|
Constructor Summary | |
HelloWorld(RTIcap.RTIambassador _rtiAmb,
java.lang.String countryName,
double initialPopulation,
int number_of_iterations,
org.omg.CORBA.ORB _orb)
|
Method Summary | |
short |
getNameAttributeId()
|
short |
getPopuAttributeId()
|
(package private) boolean |
getRtiIds()
Gets the RTTI (Meta-Object Protocol MOP) handles. |
boolean |
isTimeAdvanceGranted()
|
(package private) boolean |
joinFederationExecution(RTIcap.FederateAmbassador fedAmb)
We want to join the Federation but we do not know its ID and whether it is on. |
(package private) void |
leaveFederationExecution()
Before we leave the Federation 1. |
void |
mySleep(long aa)
|
void |
printSimObjects()
Prints all the objects in the EntityManager. |
(package private) boolean |
publishSubscribe()
Describe our interest for publishing objects and attributes. |
(package private) boolean |
registerMyCountry()
To register a new object to the RTI 1. |
void |
resetTimeAdvanceGranted()
|
void |
run()
|
void |
setCurrentTime(double _newTime)
|
void |
setTimeAdvanceGranted()
This method will be invoked by HwFededarateAmbassador object whenever timeAdvanceGrant timeConstrainedEnabled timeRegulationEnabled messages received. |
void |
start()
|
void |
stop()
|
void |
tickRTI(long sleepTime)
Ticks the RTIambassador. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String myCountryName
double myPopulation
int MaximumNumberOfIterations
java.lang.Thread runner
short federateId
org.omg.CORBA.ORB orb
java.lang.String countryTypeStr
java.lang.String countryNameTypeStr
java.lang.String countryPopuTypeStr
short countryTypeId
int countryNameTypeId
int countryPopuTypeId
java.lang.String countryCommTypeStr
java.lang.String countryCommMsgTypeStr
short countryCommTypeId
int countryCommMsgTypeId
java.lang.Object guard
java.util.Hashtable className
java.util.Hashtable attributeName
java.util.Hashtable interactionName
java.util.Hashtable parameterName
RTIcap.RTIambassador rtiAmb
SimCountry myCountry
EntityManager EntityMng
boolean advanceGranted
double currentTime
double timeStep
double requestTime
java.io.PrintWriter myLog
Constructor Detail |
public HelloWorld(RTIcap.RTIambassador _rtiAmb, java.lang.String countryName, double initialPopulation, int number_of_iterations, org.omg.CORBA.ORB _orb)
Method Detail |
public void start()
public void stop()
boolean getRtiIds()
boolean publishSubscribe()
boolean joinFederationExecution(RTIcap.FederateAmbassador fedAmb)
void leaveFederationExecution()
boolean registerMyCountry()
public void run()
public void resetTimeAdvanceGranted()
public void setTimeAdvanceGranted()
public boolean isTimeAdvanceGranted()
public void setCurrentTime(double _newTime)
public void printSimObjects()
public short getPopuAttributeId()
public short getNameAttributeId()
public final void mySleep(long aa)
public void tickRTI(long sleepTime)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |