|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.portico.impl.hla1516.Impl1516Helper
public class Impl1516Helper
This class helps provides helper methods to the Default1516RTIAmbassador
class and helps
bridge the gap between the Portico compatibility layer and the HLA 1516 interface. The basic
thrust of this class (like all ISpecHelper
implementations) is that it provides the
necessary facilities to turn HLA-interface-specific code into Portico-clean, interface
independant code.
org.portico.shared.compat
package
Field Summary | |
---|---|
private hla.rti1516.FederateAmbassador |
fedamb
|
private LRC |
lrc
|
private LRCState |
state
|
Constructor Summary | |
---|---|
Impl1516Helper()
|
Method Summary | |
---|---|
void |
checkAccess()
Check to see if we are currently ticking (and thus not able to make an RTI callback). |
void |
checkAdvancing()
Check to see if we are advancing. |
void |
checkJoined()
This method checks to see if the federate associated with this LRC is joined to a federation. |
void |
checkRestore()
|
void |
checkSave()
|
void |
checkSyncAnnounced(String label)
Checks to see if the given synchronization point label has been announced |
void |
checkTimeConstrained()
Check to see if there is a time constrained enable pending. |
void |
checkTimeRegulation()
Check to see if there is a time regulation enable pending. |
void |
checkValidTime(double time)
Validate that the given time is valid for the current state (that it is equal to or greater than the current LBTS for this federate). |
boolean |
evokeMultiple(double min,
double max)
Try and process as many messages as possible. |
boolean |
evokeSingle(double timeout)
Process a single callback, waiting as long as the given timeout (in seconds) for one if there are none pendings. |
hla.rti1516.FederateAmbassador |
getFederateAmbassador()
|
ObjectModel |
getFOM()
|
org.apache.log4j.Logger |
getLRCLogger()
|
LRCState |
getState()
|
ObjectModel |
parseFOM(URL fdd)
|
void |
processMessage(com.lbf.commons.messaging.MessageContext context)
|
void |
setFederateAmbassador(hla.rti1516.FederateAmbassador fedamb)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LRC lrc
private LRCState state
private hla.rti1516.FederateAmbassador fedamb
Constructor Detail |
---|
public Impl1516Helper() throws hla.rti1516.RTIinternalError
hla.rti1516.RTIinternalError
Method Detail |
---|
public void processMessage(com.lbf.commons.messaging.MessageContext context) throws Exception
Exception
public LRCState getState()
public ObjectModel getFOM()
public boolean evokeSingle(double timeout) throws hla.rti1516.RTIinternalError
timeout
- The length of time to wait if there are no callbacks to process (in seconds)
hla.rti1516.RTIinternalError
public boolean evokeMultiple(double min, double max) throws hla.rti1516.RTIinternalError
max
time doing so.
If there are none to process, wait only as long as min
. Return true if there
are more callbacks that could be processed, false otherwise
min
- The minimum amount of time (in seconds) to wait if there are no callbacks
to processmax
- The maximum amount of time to process messages for (in seconds)
hla.rti1516.RTIinternalError
public ObjectModel parseFOM(URL fdd) throws hla.rti1516.CouldNotOpenFDD, hla.rti1516.ErrorReadingFDD
hla.rti1516.CouldNotOpenFDD
hla.rti1516.ErrorReadingFDD
public void checkAccess() throws hla.rti1516.RTIinternalError
ConcurrentAccessAttempted
will be thrown.
hla.rti1516.RTIinternalError
public void checkAdvancing() throws hla.rti1516.InTimeAdvancingState
hla.rti1516.InTimeAdvancingState
public void checkTimeRegulation() throws hla.rti1516.RequestForTimeRegulationPending
hla.rti1516.RequestForTimeRegulationPending
public void checkTimeConstrained() throws hla.rti1516.RequestForTimeConstrainedPending
hla.rti1516.RequestForTimeConstrainedPending
public void checkValidTime(double time) throws hla.rti1516.InvalidLogicalTime
hla.rti1516.InvalidLogicalTime
public void checkSave() throws hla.rti1516.SaveInProgress
hla.rti1516.SaveInProgress
public void checkRestore() throws hla.rti1516.RestoreInProgress
hla.rti1516.RestoreInProgress
public void checkJoined() throws hla.rti1516.FederateNotExecutionMember
hla.rti1516.FederateNotExecutionMember
public void checkSyncAnnounced(String label) throws hla.rti1516.SynchronizationPointLabelNotAnnounced
hla.rti1516.SynchronizationPointLabelNotAnnounced
public hla.rti1516.FederateAmbassador getFederateAmbassador()
public void setFederateAmbassador(hla.rti1516.FederateAmbassador fedamb)
public org.apache.log4j.Logger getLRCLogger()
|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |