public class TimeScheduler extends java.lang.Object implements ConstraintSolver, java.lang.Cloneable
| Constructor and Description |
|---|
TimeScheduler()
Construct a time scheduler.
|
| Modifier and Type | Method and Description |
|---|---|
TimeScheduler |
clone()
Clone a time scheduler.
|
double |
getTime()
Get the current time.
|
void |
initialize(int numModel)
Initialize the current time value and the number of models.
|
void |
resolve(java.lang.Iterable<metroIIcomm.Event.Builder> metroIIEventList)
Resolve the time constraints.
|
void |
turnOffDebugging()
Turn off debugging printing.
|
void |
turnOnDebugging()
Turn on debugging printing.
|
public TimeScheduler clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void initialize(int numModel)
numModel - the number of models to be synchronized.public void turnOnDebugging()
public void turnOffDebugging()
public void resolve(java.lang.Iterable<metroIIcomm.Event.Builder> metroIIEventList)
resolve in interface ConstraintSolvermetroIIEventList - a list of MetroII events to be updated.public double getTime()