|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eodisp.hla.crc.CrcRemoteImpl
public class CrcRemoteImpl
Implements the remote interface of the Central RTI Component (CRC). Delegates
to Crc
. Methods are not synchronized because this class does not
change its state. Methods in Crc
are synchronized though.
Field Summary | |
---|---|
(package private) static org.apache.log4j.Logger |
logger
Log4J logger for this class |
Fields inherited from interface org.eodisp.hla.common.crc.CrcRemote |
---|
REGISTRY_NAME |
Constructor Summary | |
---|---|
CrcRemoteImpl(Crc crc)
|
Method Summary | |
---|---|
FederationExecutionRemote |
createFederationExecution(java.lang.String federationExecutionName,
byte[] fdd)
Implements HLA service 4.2 (See IEEE Std 1516.1-2000). |
void |
destroyFederationExecution(java.lang.String federationExecutionName)
Implements HLA service 4.3 (See IEEE Std 1516.1-2000). |
FederationExecutionRemote |
getFederationExecution(java.lang.String federationExecutionName)
Returns the federation execution with the given name. |
FederateHandle |
joinFederationExecution(java.lang.String federationExecutionName,
java.lang.String federateType,
LrcHandle lrcHandle,
MobileFederateServices serviceReferences)
Implements HLA service 4.4 (See IEEE Std 1516.1-2000). |
LrcHandle |
registerLrc(LrcRemote lrcRemote)
TODO |
void |
reset()
Resets the CRC. |
void |
shutdownAndExit()
Calls shutdown on the CrcApplication and then exits the JVM. |
void |
unregisterLrc(LrcHandle lrcHandle)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static org.apache.log4j.Logger logger
Constructor Detail |
---|
public CrcRemoteImpl(Crc crc)
crc
- the Crc to which this remote implementation class delegats to.Method Detail |
---|
public FederationExecutionRemote createFederationExecution(java.lang.String federationExecutionName, byte[] fdd) throws FederationExecutionAlreadyExists, ErrorReadingFDD
createFederationExecution
in interface CrcRemote
federationExecutionName
- the name of the federation executionfdd
- the federation object model (FOM) as an XML file encoded in
UTF-8
FederationExecutionAlreadyExists
- if a federation execution with the same name has been created
before
ErrorReadingFDD
- if fdd could not be read. This is the case if the given fdd
is not a valid XML file or does not conform to the HLA XMl
Schema.public void destroyFederationExecution(java.lang.String federationExecutionName) throws FederatesCurrentlyJoined, FederationExecutionDoesNotExist
destroyFederationExecution
in interface CrcRemote
FederatesCurrentlyJoined
- if there are still federates joined to this federation
execution
FederationExecutionDoesNotExist
- if no federation execution exists with the given namepublic FederateHandle joinFederationExecution(java.lang.String federationExecutionName, java.lang.String federateType, LrcHandle lrcHandle, MobileFederateServices serviceReferences) throws FederationExecutionDoesNotExist
CrcRemote
joinFederationExecution
in interface CrcRemote
federateType
- the type of the federate that want to join this federation
executionlrcHandle
- a reference to the LRC which runs the federated that wants tho
joinserviceReferences
- unused
FederationExecutionDoesNotExist
public FederationExecutionRemote getFederationExecution(java.lang.String federationExecutionName) throws java.rmi.server.ExportException
getFederationExecution
in interface CrcRemote
federationExecutionName
- the name of the federation execution to be received
java.rmi.server.ExportException
public LrcHandle registerLrc(LrcRemote lrcRemote)
registerLrc
in interface CrcRemote
public void unregisterLrc(LrcHandle lrcHandle)
unregisterLrc
in interface CrcRemote
public void reset()
reset
in interface CrcRemote
public void shutdownAndExit()
CrcApplication
and then exits the JVM. Does
not block
shutdownAndExit
in interface CrcRemote
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |