Class HistoricalParameters.ParameterEvent
java.lang.Object
org.opentrafficsim.core.perception.AbstractHistorical.EventValue<HistoricalParameters.ParameterValueSet>
org.opentrafficsim.core.perception.HistoricalParameters.ParameterEvent
- Enclosing class:
- HistoricalParameters
public static class HistoricalParameters.ParameterEvent extends AbstractHistorical.EventValue<HistoricalParameters.ParameterValueSet>
Parameter event, which will restore the previous value.
Copyright (c) 2013-2019 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 19 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description ParameterEvent(double time, ParameterType<T> parameterType, Parameters parameters)Constructor. -
Method Summary
Modifier and Type Method Description <T> voidresetEvent(Parameters parameters)Resets the parameter type to it's value before the change.StringtoString()Methods inherited from class org.opentrafficsim.core.perception.AbstractHistorical.EventValue
getTime, getValue
-
Constructor Details
-
ParameterEvent
Constructor. New value is not required, as it's not required to restore the state from before the change.- Type Parameters:
T- parameter value type- Parameters:
time- double; time of eventparameterType- ParameterType<T>; parameter typeparameters- Parameters; parameters
-
-
Method Details
-
resetEvent
Resets the parameter type to it's value before the change.- Type Parameters:
T- parameter value type- Parameters:
parameters- Parameters; parameters
-
toString
- Overrides:
toStringin classAbstractHistorical.EventValue<HistoricalParameters.ParameterValueSet>
-