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.
-
-
Constructor Summary
Constructors Constructor Description ParameterEvent(double time, ParameterType<T> parameterType, Parameters parameters)Constructor a new ParameterEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
ParameterEvent
public ParameterEvent(double time, ParameterType<T> parameterType, Parameters parameters)Constructor a new ParameterEvent. 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 Detail
-
resetEvent
public final <T> void resetEvent(Parameters parameters)
Resets the parameter type to it's value before the change.- Type Parameters:
T- parameter value type- Parameters:
parameters- Parameters; parameters
-
toString
public String toString()
- Overrides:
toStringin classAbstractHistorical.EventValue<HistoricalParameters.ParameterValueSet>
-
-