Class RandomTimeSensor
Trigger a transition after a random time.
The time is a lower bound. Real time depends on the scenario update frequency.
The expected parameters follow.
maximum
maximum time before triggering (in units).
Inheritance
RandomTimeSensor
Assembly: Xareus.Scenarios.Extra.dll
Syntax
[Renamed("SEVEN.Time.RandomTimeSensor", "SEVEN.Extra", typeof(TimeParametersConverter))]
[Renamed("TimedRandomSensor", "SEVEN.Extra", typeof(TimeParametersConverter))]
[Renamed("RandomTimeSensor", "SEVEN.Extra", typeof(TimeParametersConverter))]
[Renamed("SEVEN.Time.RandomTimeSensor", "SEVEN.Extra")]
public class RandomTimeSensor : TimeSensor
Constructors
RandomTimeSensor(Event, Dictionary<string, Parameter>, IContext, IContext, IContext)
Declaration
public RandomTimeSensor(Event @event, Dictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext)
Parameters
Fields
rand
Declaration
Field Value
time2
maximum time before triggering (in units).
Declaration
[ConfigurationParameter("maximum", "maximum time before triggering (in units). The time is a lower bound. Real time depends on the scenario update frequency.", Necessity.Required)]
protected double time2
Field Value
Methods
Reset()
Declaration
public override void Reset()
Overrides