|
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.hla13.Impl13Helper
public class Impl13Helper
This class helps provides helper methods to the Default13RTIAmbassador
class and helps
bridge the gap between the Portico compatibility layer and the HLA 1.3 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.rti.FederateAmbassador |
fedamb
|
private LRC |
lrc
|
private LRCState |
state
|
Constructor Summary | |
---|---|
Impl13Helper()
Creates a new helper that can be used within the Default13RTIAmbassador . |
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). |
hla.rti.FederateAmbassador |
getFederateAmbassador()
|
ObjectModel |
getFOM()
|
LRC |
getLRC()
|
org.apache.log4j.Logger |
getLRCLogger()
|
LRCState |
getState()
|
void |
processMessage(com.lbf.commons.messaging.MessageContext context)
|
void |
setFederateAmbassador(hla.rti.FederateAmbassador fedamb)
|
void |
tick()
|
void |
tick(double min,
double max)
|
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.rti.FederateAmbassador fedamb
Constructor Detail |
---|
public Impl13Helper() throws hla.rti.RTIinternalError
Default13RTIAmbassador
. This
constructor in turn creates an instance of the LRC
so that it can pass on messages
once any appropriate transformation has taken place.
hla.rti.RTIinternalError
Method Detail |
---|
public void processMessage(com.lbf.commons.messaging.MessageContext context) throws Exception
Exception
public LRCState getState()
public ObjectModel getFOM()
public void tick() throws hla.rti.ConcurrentAccessAttempted, hla.rti.RTIinternalError
hla.rti.ConcurrentAccessAttempted
hla.rti.RTIinternalError
public void tick(double min, double max) throws hla.rti.ConcurrentAccessAttempted, hla.rti.RTIinternalError
hla.rti.ConcurrentAccessAttempted
hla.rti.RTIinternalError
public void checkAccess() throws hla.rti.ConcurrentAccessAttempted
ConcurrentAccessAttempted
will be thrown.
hla.rti.ConcurrentAccessAttempted
public void checkAdvancing() throws hla.rti.TimeAdvanceAlreadyInProgress
hla.rti.TimeAdvanceAlreadyInProgress
public void checkTimeRegulation() throws hla.rti.EnableTimeRegulationPending
hla.rti.EnableTimeRegulationPending
public void checkTimeConstrained() throws hla.rti.EnableTimeConstrainedPending
hla.rti.EnableTimeConstrainedPending
public void checkValidTime(double time) throws hla.rti.InvalidFederationTime
hla.rti.InvalidFederationTime
public void checkSave() throws hla.rti.SaveInProgress
hla.rti.SaveInProgress
public void checkRestore() throws hla.rti.RestoreInProgress
hla.rti.RestoreInProgress
public void checkJoined() throws hla.rti.FederateNotExecutionMember
hla.rti.FederateNotExecutionMember
public void checkSyncAnnounced(String label) throws hla.rti.SynchronizationLabelNotAnnounced
hla.rti.SynchronizationLabelNotAnnounced
public hla.rti.FederateAmbassador getFederateAmbassador()
public void setFederateAmbassador(hla.rti.FederateAmbassador fedamb)
public LRC getLRC()
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 |