Package org.opentrafficsim.core.egtf
Class EgtfEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.opentrafficsim.core.egtf.EgtfEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class EgtfEvent extends java.util.EventObject
EGTF event with progress and the ability to interrupt calculations.Copyright (c) 2013-2020 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getProgress()
Returns the progress, a value in the range [0 ...void
interrupt()
Interrupts the filter.java.lang.String
toString()
-
-
-
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 afilter()
calculation is ongoing, it will stop and returnnull
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.EventObject
-
-