public class TimeModelPresent extends TimeModelContinuous
PROP_AccelerationFactor, PROP_TimeFormat, PROP_TimeStart, PROP_TimeStopDEFAULT_TIME_FORMAT, timeFormat, timeStart, timeStop| Constructor and Description |
|---|
TimeModelPresent()
Instantiates a new time model present.
|
| Modifier and Type | Method and Description |
|---|---|
TimeModel |
getCopy()
Returns a copy of the current TimeModel.
|
JPanel4TimeModelConfiguration |
getJPanel4Configuration(Project project)
Returns the DisplayJPanel4Configuration.java (an extended JPanel) for the configuration
of a TimeModel (before the agency is executed).
|
long |
getTime()
Returns the current time depending on the simulation setup.
|
long |
getTimeStart()
Gets the start time.
|
protected void |
logTookLocalTime()
Outputs a message to the STDERR console, indicating that no load balancing agent was set and therefore the local time was taken
|
getAccelerationFactor, getDisplayElements4Execution, getSystemTimeSynchronized, getTimeAskingAgent, getTimeDiff, getTimeModelSetting, isExecuted, setAccelerationFactor, setExecuted, setTimeAskingAgent, setTimeModelSettings, step, stepBackgetDateForMidnight, getDateForMidnight, getTimeFormat, getTimeStop, setTimeFormat, setTimeStart, setTimeStopgetStopWatch, setStopWatchpublic TimeModelPresent()
public JPanel4TimeModelConfiguration getJPanel4Configuration(Project project)
TimeModelgetJPanel4Configuration in class TimeModelContinuousproject - the current Agent.GUI Projectpublic long getTime()
TimeModelContinuousgetTime in class TimeModelContinuousTimeModelContinuous.setTimeAskingAgent(Agent),
SimulationServiceHelper.getSynchTimeMillis()public long getTimeStart()
TimeModelDateBasedgetTimeStart in class TimeModelDateBasedprotected void logTookLocalTime()
TimeModelContinuouslogTookLocalTime in class TimeModelContinuouspublic TimeModel getCopy()
TimeModelgetCopy in class TimeModelContinuous