Package com.amalgamasimulation.engine
Class Model
java.lang.Object
com.amalgamasimulation.engine.Model
- All Implemented Interfaces:
Timeable,Serializable
Base class for all simulation models. It is recommended that any class of
simulation model should inherit from this class. Although such inheritance is
not mandatory.
- Author:
- Andrey Malykhanov
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the begin date, i.e.date()Returns the current simulation date, more specifically, date ofEngineused to simulate this model.engine()Returns the reference to anEngineused to simulate this model.doubletime()Returns the current simulation time, more specifically, time ofEngineused to simulate this model.timeUnit()Returns the simulation time unit, i.e.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.utils.time.Timeable
dateToTime, dateToTime, day, duration, hour, minute, second, timeToDate, week, wholeDays, wholeDays, wholeHours, wholeHours, wholeUnits
-
Constructor Details
-
Method Details
-
engine
Returns the reference to anEngineused to simulate this model.- Returns:
- reference to an
Engineused to simulate this model
-
time
public double time()Returns the current simulation time, more specifically, time ofEngineused to simulate this model.- Returns:
- current simulation time
-
date
Returns the current simulation date, more specifically, date ofEngineused to simulate this model.- Returns:
- current simulation date
-
beginDate
Description copied from interface:TimeableReturns the begin date, i.e. the simulation date that corresponds to zero simulation time -
timeUnit
Description copied from interface:TimeableReturns the simulation time unit, i.e. period unit that corresponds to one unit of simulation time
-