public class Configuration extends java.lang.Object implements ConfigurationInterface
Modifier | Constructor and Description |
---|---|
protected |
Configuration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCrcHost() |
int |
getCrcPort() |
java.lang.String |
getFederateName() |
java.lang.String |
getFederateRole() |
java.lang.String |
getFederateType() |
java.lang.String |
getFederationName() |
java.io.File |
getFomDirectory() |
long |
getLookahead() |
double |
getSimulationScenarioTimeEphoc() |
boolean |
isAsynchronousDelivery() |
boolean |
isRealtime() |
boolean |
isTimeConstrained() |
boolean |
isTimeRegulating() |
void |
setAsynchronousDelivery(boolean isAsynchronousDelivery)
Sets the Asynchronous delivery to the specified value passed as parameter
|
void |
setCrcHost(java.lang.String crcHost)
Sets the CRC host to the specified value passed as parameter
|
void |
setCrcPort(int crcPort)
Sets the CRC port to the specified value passed as parameter
|
void |
setFederateName(java.lang.String federateName)
Sets the name of the federate to the specified value passed as parameter
|
void |
setFederateRole(java.lang.String federateRole)
Sets the role of the federate (EARLY or LATE)
|
void |
setFederateType(java.lang.String federateType)
Sets the type of the federate to the specified value passed as parameter
|
void |
setFederationName(java.lang.String federationName)
Sets the federation name to the specified value passed as parameter
|
void |
setFomDirectory(java.io.File fomDirectory)
Sets the FOMs directory to the specified value passed as parameter
|
void |
setLookahead(long lookahead)
Sets the lookahead time for the simulation execution
|
void |
setRealtime(boolean isRealtime)
Sets the realtime clock to the specified value passed as parameter
|
void |
setSimulationScenarioTimeEphoc(double simulationScenarioTimeEphoc)
Sets the Simulation Scenario Time Ephoc
|
void |
setTimeConstrained(boolean isTimeConstrained)
Sets the time constrained to the specified value passed as parameter
|
void |
setTimeRegulating(boolean isTimeRegulating)
Sets the time regulating to the specified value passed as parameter
|
public boolean isAsynchronousDelivery()
isAsynchronousDelivery
in interface ConfigurationInterface
public void setAsynchronousDelivery(boolean isAsynchronousDelivery)
ConfigurationInterface
setAsynchronousDelivery
in interface ConfigurationInterface
isAsynchronousDelivery
- the new value for the Asynchronous deliverypublic java.lang.String getCrcHost()
getCrcHost
in interface ConfigurationInterface
public void setCrcHost(java.lang.String crcHost)
ConfigurationInterface
setCrcHost
in interface ConfigurationInterface
crcHost
- the new value for the CRC hostpublic int getCrcPort()
getCrcPort
in interface ConfigurationInterface
public void setCrcPort(int crcPort)
ConfigurationInterface
setCrcPort
in interface ConfigurationInterface
crcPort
- the new value for the CRC portpublic java.lang.String getFederationName()
getFederationName
in interface ConfigurationInterface
public void setFederationName(java.lang.String federationName)
ConfigurationInterface
setFederationName
in interface ConfigurationInterface
federationName
- the new value for the federation namepublic java.lang.String getFederateName()
getFederateName
in interface ConfigurationInterface
public void setFederateName(java.lang.String federateName)
ConfigurationInterface
setFederateName
in interface ConfigurationInterface
federateName
- the new namepublic java.lang.String getFederateType()
getFederateType
in interface ConfigurationInterface
public void setFederateType(java.lang.String federateType)
ConfigurationInterface
setFederateType
in interface ConfigurationInterface
federateType
- the new typepublic java.io.File getFomDirectory()
getFomDirectory
in interface ConfigurationInterface
public void setFomDirectory(java.io.File fomDirectory)
ConfigurationInterface
setFomDirectory
in interface ConfigurationInterface
fomDirectory
- the FOMs directorypublic boolean isRealtime()
isRealtime
in interface ConfigurationInterface
public void setRealtime(boolean isRealtime)
ConfigurationInterface
setRealtime
in interface ConfigurationInterface
isRealtime
- the new value for the realtime clockpublic boolean isTimeConstrained()
isTimeConstrained
in interface ConfigurationInterface
public void setTimeConstrained(boolean isTimeConstrained)
ConfigurationInterface
setTimeConstrained
in interface ConfigurationInterface
isTimeConstrained
- the new value for the time constrainedpublic boolean isTimeRegulating()
isTimeRegulating
in interface ConfigurationInterface
public void setTimeRegulating(boolean isTimeRegulating)
ConfigurationInterface
setTimeRegulating
in interface ConfigurationInterface
isTimeRegulating
- the new value for the time regulatingpublic double getSimulationScenarioTimeEphoc()
getSimulationScenarioTimeEphoc
in interface ConfigurationInterface
public void setSimulationScenarioTimeEphoc(double simulationScenarioTimeEphoc)
ConfigurationInterface
setSimulationScenarioTimeEphoc
in interface ConfigurationInterface
simulationScenarioTimeEphoc
- the simulation scenario time expressed as Truncaded Julian Date (TJD)public java.lang.String getFederateRole()
getFederateRole
in interface ConfigurationInterface
public void setFederateRole(java.lang.String federateRole)
ConfigurationInterface
setFederateRole
in interface ConfigurationInterface
federateRole
- the new role (EARLY or LATE)public void setLookahead(long lookahead)
ConfigurationInterface
setLookahead
in interface ConfigurationInterface
lookahead
- the simulation execution lookahead interval expressed in millisecondspublic long getLookahead()
getLookahead
in interface ConfigurationInterface
Author: SMASH LAB - University of Calabria (UNICAL)