Class ToggleValueSensor
Inheritance
ToggleValueSensor
Assembly: Xareus.Unity.Librairies.dll
Syntax
public class ToggleValueSensor : AUnitySensor
Constructors
ToggleValueSensor(Event, Dictionary<string, Parameter>, IContext, IContext, IContext)
Declaration
public ToggleValueSensor(Event @event, Dictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext)
Parameters
Fields
TOGGLE
Declaration
[EventContextEntry]
public static readonly string TOGGLE
Field Value
VALUE
Declaration
[EventContextEntry]
public static readonly string VALUE
Field Value
eventContext
Declaration
protected SimpleDictionary eventContext
Field Value
selectionMode
Declaration
[ConfigurationParameter("Validate On", Necessity.Required)]
protected ToggleValueSensor.SelectMode selectionMode
Field Value
toggle
Declaration
[ConfigurationParameter("Toggle", Necessity.Required)]
protected Toggle toggle
Field Value
Methods
SafeReset()
Reset a sensor. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
Declaration
public override void SafeReset()
Overrides
SafeSensorCheck()
This method is called at each scenario update. Note that this code will be executed in unity's thread
Declaration
public override ASensor.Result SafeSensorCheck()
Returns
Overrides
SafeStopCheck()
Stops a sensor. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
Declaration
public override void SafeStopCheck()
Overrides