C# Class Animatroller.Framework.Controller.IntStateMachine

Inheritance: IRunnable, IStateMachine
Show file Open project: HakanL/animatroller Class Usage Examples

Protected Properties

Property Type Description
currentState int
hold bool
lockObject object
log Logger
nextState int?
stateConfigs Sequence.SequenceJob>.Dictionary

Public Methods

Method Description
For ( int state ) : IRunnableState
ForFromSequence ( int state, Sequence sequence ) : IntStateMachine
Hold ( ) : IntStateMachine
IntStateMachine ( string name ) : System
InternalHold ( ) : void
NextState ( ) : IntStateMachine
SetState ( int newState ) : IntStateMachine
Start ( ) : void
Stop ( ) : void
StopAndNextState ( ) : IntStateMachine

Don't call this from within a sequence (running job)

Protected Methods

Method Description
InternalSetState ( int newState ) : void

Private Methods

Method Description
RaiseStateChanged ( ) : void

Method Details

For() public method

public For ( int state ) : IRunnableState
state int
return IRunnableState

ForFromSequence() public method

public ForFromSequence ( int state, Sequence sequence ) : IntStateMachine
state int
sequence Sequence
return IntStateMachine

Hold() public method

public Hold ( ) : IntStateMachine
return IntStateMachine

IntStateMachine() public method

public IntStateMachine ( string name ) : System
name string
return System

InternalHold() public method

public InternalHold ( ) : void
return void

InternalSetState() protected method

protected InternalSetState ( int newState ) : void
newState int
return void

NextState() public method

public NextState ( ) : IntStateMachine
return IntStateMachine

SetState() public method

public SetState ( int newState ) : IntStateMachine
newState int
return IntStateMachine

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

StopAndNextState() public method

Don't call this from within a sequence (running job)
public StopAndNextState ( ) : IntStateMachine
return IntStateMachine

Property Details

currentState protected property

protected int currentState
return int

hold protected property

protected bool hold
return bool

lockObject protected property

protected object lockObject
return object

log protected static property

protected static Logger log
return Logger

nextState protected property

protected int? nextState
return int?

stateConfigs protected property

protected Dictionary stateConfigs
return Sequence.SequenceJob>.Dictionary