umontreal.iro.lecuyer.simevents
Class UnusableSimulator
java.lang.Object
umontreal.iro.lecuyer.simevents.Simulator
umontreal.iro.lecuyer.simevents.UnusableSimulator
public class UnusableSimulator
- extends Simulator
Simulator for which all methods throw an
UnsupportedOperationException
.
By setting Simulator.defaultSimulator
to an instance of this class, one can
detect unexpected usage of the static
Sim
class.
This can be useful for
adapting a program for parallel simulations, because
such a program must
use an instance of Simulator
for each parallel replication rather than
the static class.
An unexpected use of Sim
may lead
to unpredictable results in such cases.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnusableSimulator
public UnusableSimulator()
getEventList
public EventList getEventList()
- Overrides:
getEventList
in class Simulator
init
public void init()
- Overrides:
init
in class Simulator
init
public void init(EventList evlist)
- Overrides:
init
in class Simulator
isSimulating
public boolean isSimulating()
- Overrides:
isSimulating
in class Simulator
isStopped
public boolean isStopped()
- Overrides:
isStopped
in class Simulator
start
public void start()
- Overrides:
start
in class Simulator
stop
public void stop()
- Overrides:
stop
in class Simulator
time
public double time()
- Overrides:
time
in class Simulator
To submit a bug or ask questions, send an e-mail to
Richard Simard.