Class FederateDescriptor
java.lang.Object
org.eclipse.mosaic.rti.api.parameters.FederateDescriptor
The federation handle is the description of a federate. If a federate is to
join a federation, it must be described using an instance of this class.
-
Constructor Summary
ConstructorsConstructorDescriptionFederateDescriptor(String id, FederateAmbassador ambassador, byte priority) Creates a newFederateDescriptorwhich provides various information for managing the ambassador and the federate it presents. -
Method Summary
Modifier and TypeMethodDescriptiongetHost()getId()Returns the unique identifier of the federate.byteReturns the priority of this federate.booleanbooleanvoidsetBinariesDir(File binariesDir) voidsetConfigDir(File configDir) voidsetConfigTargetPath(Path configTargetPath) voidsetDeployAndUndeploy(boolean deployAndUndeploy) voidsetFederateExecutor(FederateExecutor federateExecutor) voidsetHost(CLocalHost host) voidsetInteractions(Collection<InteractionDescriptor> interactions) voidsetJavaFederateParameters(JavaFederateParameters javaFederateParameters) voidsetStartAndStop(boolean startAndStop)
-
Constructor Details
-
FederateDescriptor
Creates a newFederateDescriptorwhich provides various information for managing the ambassador and the federate it presents.- Parameters:
id- unique string identifying a federateambassador- ambassador representing a federate in federationpriority- the priority for this federate
-
-
Method Details
-
getId
Returns the unique identifier of the federate. -
getAmbassador
-
getPriority
public byte getPriority()Returns the priority of this federate. The lower the value the higher the priority. -
getInteractions
-
setInteractions
-
getConfigTargetPath
-
setConfigTargetPath
-
getBinariesDir
-
setBinariesDir
-
getConfigDir
-
setConfigDir
-
getHost
-
setHost
-
isToDeployAndUndeploy
public boolean isToDeployAndUndeploy() -
setDeployAndUndeploy
public void setDeployAndUndeploy(boolean deployAndUndeploy) -
isToStartAndStop
public boolean isToStartAndStop() -
setStartAndStop
public void setStartAndStop(boolean startAndStop) -
getFederateExecutor
-
setFederateExecutor
-
getJavaFederateParameters
-
setJavaFederateParameters
-