Class SimulationClock

All Implemented Interfaces:
InstantSource

public final class SimulationClock extends WaitableClock
Implementierung von WaitableClock als simulierte Uhr, die einen beliebigen Startzeitpunkt hat und auch schneller oder langsamer gehen kann, als die reale Systemzeit.
  • Constructor Details

    • SimulationClock

      public SimulationClock(Instant startState, double simulationSpeed)
      Erstellt eine neue SimulationClock
      Parameters:
      startState - Startzeitpunkt der Uhr
      simulationSpeed - Simulationsgeschwindigkeit (1 = reale Geschwindigkeit, 10 = die Uhr geht 10 mal schneller, als die reale Zeit, usw.)
  • Method Details