C# 클래스 GSF.Threading.StateMachine

Helps facilitate a multithreaded state machine.
State machine variables must be integers since Interlocked methods require premitive types.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
SetState ( int state ) : void

Sets the value of the state.

StateMachine ( int initialState ) : System.Threading

Creates a new StateMachine

TryChangeState ( int prevState, int nextState ) : bool

Attempts to change the state of this machine from to .

메소드 상세

SetState() 공개 메소드

Sets the value of the state.
public SetState ( int state ) : void
state int
리턴 void

StateMachine() 공개 메소드

Creates a new StateMachine
public StateMachine ( int initialState ) : System.Threading
initialState int the state to initially set to
리턴 System.Threading

TryChangeState() 공개 메소드

Attempts to change the state of this machine from to .
public TryChangeState ( int prevState, int nextState ) : bool
prevState int The state to change from
nextState int The state to change to
리턴 bool