Package org.opentrafficsim.draw.egtf
Class EgtfEvent
java.lang.Object
java.util.EventObject
org.opentrafficsim.draw.egtf.EgtfEvent
- All Implemented Interfaces:
Serializable
EGTF event with progress and the ability to interrupt calculations.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal double
Returns the progress, a value in the range [0 ... 1].final void
Interrupts the filter.toString()
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
EgtfEvent
EgtfEvent(Egtf egtf, double progress) Constructor.- Parameters:
egtf
- EGTF; egtfprogress
- double; progress, a value in the range [0 ... 1]
-
-
Method Details
-
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 afilter()
calculation is ongoing, it will stop and returnnull
. -
toString
- Overrides:
toString
in classEventObject
-