Class EgtfEvent

  • All Implemented Interfaces:
    Serializable

    public class EgtfEvent
    extends EventObject
    EGTF event with progress and the ability to interrupt calculations.

    Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version 8 okt. 2018
    Author:
    Wouter Schakel
    See Also:
    Serialized Form
    • Constructor Detail

      • EgtfEvent

        EgtfEvent​(EGTF egtf,
                  double progress)
        Constructor.
        Parameters:
        egtf - EGTF; egtf
        progress - double; progress, a value in the range [0 ... 1]
    • Method Detail

      • getProgress

        public final double getProgress()
        Returns the progress, a value in the range [0 ... 1].
        Returns:
        double; progress, a value in the range [0 ... 1]
      • interrupt

        public final void interrupt()
        Interrupts the filter. If a filter() calculation is ongoing, it will stop and return null.