Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Field Summary

Fields inherited from class umontreal.iro.lecuyer.simevents.Simulator
`continuousState, currentTime, defaultSimulator, eventList, simulating, stopped`

Constructor Summary
`UnusableSimulator()`

Method Summary
`EventList` | `getEventList()`
`void` | `init()`
`void` | `init(EventList evlist)`
`boolean` | `isSimulating()`
`boolean` | `isStopped()`
`void` | `start()`
`void` | `stop()`
`double` | `time()`

Methods inherited from class umontreal.iro.lecuyer.simevents.Simulator
`continuousState, getDefaultSimulator, removeFirstEvent`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### UnusableSimulator

    public UnusableSimulator()

Method Detail

### 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

To submit a bug or ask questions, send an e-mail to Richard Simard.