copyright The Portico Project 2008.

org.portico.shared.msg
Class RTI_TimeAdvanceRequest

java.lang.Object
  extended by com.lbf.commons.messaging.RequestMessage
      extended by org.portico.shared.msg.RTI_RequestMessage
          extended by org.portico.shared.msg.RTI_TimeAdvanceRequest
All Implemented Interfaces:
Externalizable, Serializable

public class RTI_TimeAdvanceRequest
extends RTI_RequestMessage
implements Externalizable

This message is used to convey a time advance request. If a users called timeAdvanceRequestAvailable(), the tara property of an instance will be set to true (otherwise, it will default to false).

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  boolean tara
           
private  double time
           
 
Fields inherited from class org.portico.shared.msg.RTI_RequestMessage
targetFederate, timestamp
 
Constructor Summary
RTI_TimeAdvanceRequest()
           
RTI_TimeAdvanceRequest(double time)
           
RTI_TimeAdvanceRequest(double time, boolean tara)
           
 
Method Summary
 boolean getTara()
           
 double getTime()
           
 void readExternal(ObjectInput input)
           
 void setTara(boolean tara)
           
 void setTime(double time)
           
 void writeExternal(ObjectOutput output)
           
 
Methods inherited from class org.portico.shared.msg.RTI_RequestMessage
bytesToString, getTargetFederate, getTimestamp, isTimestamped, setTargetFederate, setTimestamp, stringToBytes
 
Methods inherited from class com.lbf.commons.messaging.RequestMessage
getIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

time

private double time

tara

private boolean tara
Constructor Detail

RTI_TimeAdvanceRequest

public RTI_TimeAdvanceRequest()

RTI_TimeAdvanceRequest

public RTI_TimeAdvanceRequest(double time)

RTI_TimeAdvanceRequest

public RTI_TimeAdvanceRequest(double time,
                              boolean tara)
Method Detail

getTime

public double getTime()

setTime

public void setTime(double time)

getTara

public boolean getTara()

setTara

public void setTara(boolean tara)

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class RTI_RequestMessage
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class RTI_RequestMessage
Throws:
IOException

copyright The Portico Project 2008.