Click or drag to resize

StateMachine Class

Helps facilitate a multithreaded state machine.
Inheritance Hierarchy
SystemObject
  GSF.ThreadingStateMachine

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public class StateMachine
View Source

The StateMachine type exposes the following members.

Constructors
 NameDescription
Public methodStateMachine Creates a new StateMachine
Top
Properties
 NameDescription
Public propertyState Gets the current state of the State Machine.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetState Sets the value of the state.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryChangeState Attempts to change the state of this machine from to .
Top
Operators
 NameDescription
Public operatorStatic member(StateMachine to Int32) Implicitly conversion of the state to the integer value of the state.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
State machine variables must be integers since Interlocked methods require premitive types.
See Also