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 newFederateDescriptor
which 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.byte
Returns the priority of this federate.boolean
boolean
void
setBinariesDir
(File binariesDir) void
setConfigDir
(File configDir) void
setConfigTargetPath
(Path configTargetPath) void
setDeployAndUndeploy
(boolean deployAndUndeploy) void
setFederateExecutor
(FederateExecutor federateExecutor) void
setHost
(CLocalHost host) void
setInteractions
(Collection<InteractionDescriptor> interactions) void
setJavaFederateParameters
(JavaFederateParameters javaFederateParameters) void
setStartAndStop
(boolean startAndStop)
-
Constructor Details
-
FederateDescriptor
Creates a newFederateDescriptor
which 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
-