Class FederateDescriptor


  • public class FederateDescriptor
    extends Object
    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 Detail

      • FederateDescriptor

        public FederateDescriptor​(String id,
                                  FederateAmbassador ambassador,
                                  byte priority)
        Creates a new FederateDescriptor which provides various information for managing the ambassador and the federate it presents.
        Parameters:
        id - unique string identifying a federate
        ambassador - ambassador representing a federate in federation
        priority - the priority for this federate
    • Method Detail

      • getId

        public String getId()
        Returns the unique identifier of the federate.
      • getPriority

        public byte getPriority()
        Returns the priority of this federate. The lower the value the higher the priority.
      • getConfigTargetPath

        public Path getConfigTargetPath()
      • setConfigTargetPath

        public void setConfigTargetPath​(Path configTargetPath)
      • getBinariesDir

        public File getBinariesDir()
      • setBinariesDir

        public void setBinariesDir​(File binariesDir)
      • getConfigDir

        public File getConfigDir()
      • setConfigDir

        public void setConfigDir​(File configDir)
      • setHost

        public void setHost​(CLocalHost host)
      • isToDeployAndUndeploy

        public boolean isToDeployAndUndeploy()
      • setDeployAndUndeploy

        public void setDeployAndUndeploy​(boolean deployAndUndeploy)
      • isToStartAndStop

        public boolean isToStartAndStop()
      • setStartAndStop

        public void setStartAndStop​(boolean startAndStop)
      • setFederateExecutor

        public void setFederateExecutor​(@Nonnull
                                        FederateExecutor federateExecutor)
      • setJavaFederateParameters

        public void setJavaFederateParameters​(JavaFederateParameters javaFederateParameters)