Class SimulationEventClock

    • Constructor Detail

      • SimulationEventClock

        public SimulationEventClock​(java.lang.String name,
                                    long starttime,
                                    long delta)
        Create a new clock.
        Parameters:
        name - The name.
        starttime - The start time.
        delta - The tick size.
      • SimulationEventClock

        public SimulationEventClock​(IClock oldclock)
        Create a new clock.
        Parameters:
        oldclock - The old clock.
    • Method Detail

      • advanceEvent

        public boolean advanceEvent()
        Advance one event.
        Specified by:
        advanceEvent in interface ISimulationClock
        Returns:
        True, if clock could be advanced.
      • getType

        public java.lang.String getType()
        Get the clock type.
        Specified by:
        getType in interface IClock
        Returns:
        The clock type.