public class TimeModelPresent extends TimeModelContinuous
PROP_AccelerationFactor, PROP_TimeFormat, PROP_TimeStart, PROP_TimeStop
DEFAULT_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, stepBack
getDateForMidnight, getDateForMidnight, getTimeFormat, getTimeStop, setTimeFormat, setTimeStart, setTimeStop
getStopWatch, setStopWatch
public TimeModelPresent()
public JPanel4TimeModelConfiguration getJPanel4Configuration(Project project)
TimeModel
getJPanel4Configuration
in class TimeModelContinuous
project
- the current Agent.GUI Projectpublic long getTime()
TimeModelContinuous
getTime
in class TimeModelContinuous
TimeModelContinuous.setTimeAskingAgent(Agent)
,
SimulationServiceHelper.getSynchTimeMillis()
public long getTimeStart()
TimeModelDateBased
getTimeStart
in class TimeModelDateBased
protected void logTookLocalTime()
TimeModelContinuous
logTookLocalTime
in class TimeModelContinuous
public TimeModel getCopy()
TimeModel
getCopy
in class TimeModelContinuous