Edit

Bagikan melalui


BaseStateModel Class

Definition

Base class for defining state model logic to use in conjunction with the State class Allows for retrieving current state mode and comparing states

public ref class BaseStateModel abstract
public abstract class BaseStateModel
type BaseStateModel = class
Public MustInherit Class BaseStateModel
Inheritance
BaseStateModel
Derived

Constructors

BaseStateModel()
BaseStateModel(State)

Fields

allStates
currentState
stateList

Methods

CompareStates()

Compare all state values, set appropriate current State and return that current State

CurrentState()

Return the current State object

GetBit()
GetState(Int32)

Get the State object with the given index

GetStates()

Get list of available States for this State Model

GetStateValue(Int32)

Get the value of the state with the given index

ImportStates(List<State>)

Import the list of states into this state model

SetCurrentState(State)

Set the current state to the provided State object

SetStateListValue(Int32, Int32)
SetStateOff(Int32)

Set the value of the state with given index to off (0)

SetStateOn(Int32)

Set the value of the state with given index to on (1)

SetStateValue(Int32, Int32)

Set value of state with given index to the provided value

Applies to