public class RTIUserFederate
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
ConnectionManager |
connectionManager |
private boolean |
destroy |
private RTIUserAmbassador |
fedAmb |
private java.lang.String |
federateName |
private static java.lang.String |
federationName |
javax.swing.JFrame |
jFrame |
static java.lang.String |
READY_TO_RUN
|
private hla.rti13.java1.RTIambassador |
rtiAmb |
private Container |
user |
Constructor and Description |
---|
RTIUserFederate(java.lang.String federateName,
Container user) |
Modifier and Type | Method and Description |
---|---|
private void |
advanceTime(double timestep)
|
void |
changePositionSpeed() |
void |
checkAndSendInteractions() |
private byte[] |
convertTime(double time)
|
private void |
enableTimePolicy()
|
private java.lang.String |
generateTag() |
private void |
log(java.lang.String message)
|
static void |
main(java.lang.String[] args) |
private void |
publishAndSubscribe()
|
java.lang.Runnable |
resume() |
void |
run() |
void |
runFederate()
|
private void |
sendInteraction()
|
private void |
waitForUser()
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String READY_TO_RUN
private hla.rti13.java1.RTIambassador rtiAmb
private RTIUserAmbassador fedAmb
private Container user
public ConnectionManager connectionManager
private java.lang.String federateName
private static java.lang.String federationName
private boolean destroy
public javax.swing.JFrame jFrame
public RTIUserFederate(java.lang.String federateName, Container user)
private void log(java.lang.String message)
private void waitForUser()
private byte[] convertTime(double time)
public void runFederate() throws hla.rti13.java1.RTIexception
hla.rti13.java1.RTIexception
public java.lang.Runnable resume()
public void changePositionSpeed()
private void enableTimePolicy() throws hla.rti13.java1.RTIexception
hla.rti13.java1.RTIexception
private void publishAndSubscribe() throws hla.rti13.java1.RTIexception
hla.rti13.java1.RTIexception
public void checkAndSendInteractions()
private void sendInteraction() throws hla.rti13.java1.RTIexception
hla.rti13.java1.RTIexception
private void advanceTime(double timestep) throws hla.rti13.java1.RTIexception
hla.rti13.java1.RTIexception
private java.lang.String generateTag()
public static void main(java.lang.String[] args)
public void run()
run
in interface java.lang.Runnable