|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.tests.HelloWorld
A simple test of the XRTI.
| Field Summary | |
private static byte[] |
emptyTag
An empty user-supplied tag. |
private static java.lang.String |
HELLO_WORLD_OBJECT_MODEL
The Hello World Object Model, stored as a resource. |
private HelloWorldProxyAmbassador |
helloWorldProxyAmbassador
The Hello World proxy ambassador. |
private CountryProxy |
ownCountry
The proxy for our own country. |
private ProxyAmbassador |
proxyAmbassador
The root proxy ambassador. |
private RTIambassador |
rtiAmbassador
The RTI ambassador. |
| Constructor Summary | |
HelloWorld(java.util.Properties configuration,
java.lang.String name,
double initialPopulation,
int numberOfTicks)
Constructor. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Program entry point. |
void |
receiveCommunication(java.lang.String message,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
A generic message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String HELLO_WORLD_OBJECT_MODEL
private static final byte[] emptyTag
private RTIambassador rtiAmbassador
private ProxyAmbassador proxyAmbassador
private HelloWorldProxyAmbassador helloWorldProxyAmbassador
private CountryProxy ownCountry
| Constructor Detail |
public HelloWorld(java.util.Properties configuration,
java.lang.String name,
double initialPopulation,
int numberOfTicks)
configuration - the list of configuration propertiesname - the name of the country to simulateinitialPopulation - the country's initial populationnumberOfTicks - the number of ticks to execute| Method Detail |
public static void main(java.lang.String[] args)
args - the command line arguments
public void receiveCommunication(java.lang.String message,
byte[] userSuppliedTag,
OrderType sentOrdering,
TransportationType theTransport)
throws InteractionClassNotRecognized,
InteractionParameterNotRecognized,
InteractionClassNotSubscribed,
FederateInternalError
receiveCommunication in interface HelloWorldInteractionListenermessage - The contents of the message.userSuppliedTag - a user-supplied tag associated with the interactionsentOrdering - the type of ordering with which the interaction was senttheTransport - the type of transport associated with the interaction
InteractionClassNotRecognized - if the interaction class was not recognized
InteractionParameterNotRecognized - if a parameter of the interaction was not
recognized
InteractionClassNotSubscribed - if the federate had not subscribed to the
interaction class
FederateInternalError - if an error occurs in the federate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||