OTX-Runtime for DotNet  
OpenTestSystem.Otx.Runtime.Api.Custom.StateVariableImplementation Class Reference

Default StateVariable implementation More...

Inheritance diagram for OpenTestSystem.Otx.Runtime.Api.Custom.StateVariableImplementation:
Inheritance graph

Public Member Functions

object GetValue (IStateVariable stateVariable)
 Return value of a certain State Variable More...
 
void ResetAllValues ()
 Reset all values, which were set by SetValue method. More...
 
void SetValue (IRuntimeContext runtimeContext, IStateVariable stateVariable, object value)
 Invoked when a StateVariable sets its value in OTX-Runtime. More...
 

Properties

StateVariableValueChangedHandler StateVariableValueChanged [get, set]
 State variable changed event More...
 

Detailed Description

Default StateVariable implementation

Member Function Documentation

◆ GetValue()

object OpenTestSystem.Otx.Runtime.Api.Custom.StateVariableImplementation.GetValue ( IStateVariable  stateVariable)
inline

Return value of a certain State Variable

Parameters
stateVariableState Variable which value need to be get
Returns
stateVariable's value

◆ ResetAllValues()

void OpenTestSystem.Otx.Runtime.Api.Custom.StateVariableImplementation.ResetAllValues ( )
inline

Reset all values, which were set by SetValue method.

◆ SetValue()

void OpenTestSystem.Otx.Runtime.Api.Custom.StateVariableImplementation.SetValue ( IRuntimeContext  runtimeContext,
IStateVariable  stateVariable,
object  value 
)
inline

Invoked when a StateVariable sets its value in OTX-Runtime.

Parameters
variableStateVariable which gets its value.
valueValue which will be returned for OTX-Runtime and set to StateVariable.
runtimeContextThe related runtime context.

Implements OpenTestSystem.Otx.Runtime.Api.Custom.IStateVariableImplementation.

Property Documentation

◆ StateVariableValueChanged

StateVariableValueChangedHandler OpenTestSystem.Otx.Runtime.Api.Custom.StateVariableImplementation.StateVariableValueChanged
getset

State variable changed event

The StateVariableValueChanged event is fired every time the value of the state variable is written.


The documentation for this class was generated from the following file: