Свойство | Тип | Описание | |
---|---|---|---|
OnAfterTransition | StateMachineTransitionHandler | ||
OnBeforeTransition | StateMachineTransitionHandler | ||
OnCheckUserPermission | StateMachineTransitionHandler |
Метод | Описание | |
---|---|---|
CauseProcessingCompleted ( ISystemContext context, uint causeId ) : void |
Updates the state machine to reflect the successful processing of a method.
|
|
DoCause ( ISystemContext context, |
Invokes the specified cause.
|
|
DoTransition ( ISystemContext context, uint transitionId, uint causeId, IList |
Causes the specified transition to occur.
|
|
IsCausePermitted ( ISystemContext context, uint causeId, bool checkUserAccessRights ) : bool |
Checks if the cause is permitted given the current state and returns the associated transition.
|
|
SetState ( ISystemContext context, uint newState ) : void |
Forces the machine into the specified state.
|
Метод | Описание | |
---|---|---|
CreateAuditEvent ( ISystemContext context, |
Creates an instance of an audit event.
|
|
CreateTransitionEvent ( ISystemContext context, uint transitionId, uint causeId ) : TransitionEventState |
Creates an instance of an transition event.
|
|
GetCurrentStateId ( ) : uint |
Returns the current state of for the state machine.
|
|
GetNewStateForTransition ( ISystemContext context, uint transitionId ) : uint |
Returns the new state for the specified transition. Returns 0 if the transition is not allowed.
|
|
GetTransitionForCause ( ISystemContext context, uint causeId ) : uint |
Returns the transition for the cause given the current state.
|
|
GetTransitionToState ( ISystemContext context, uint targetStateId ) : uint |
Returns the transition from the current state to the target state.
|
|
InvokeCallback ( StateMachineTransitionHandler callback, ISystemContext context, StateMachineState machine, uint transitionId, uint causeId, IList |
Invokes the callback function if it has been specified.
|
|
OnAfterCreate ( ISystemContext context, NodeState node ) : void |
Initializes the object as a collection of counters which change value on read.
|
|
TransitionHasEffect ( ISystemContext context, uint transitionId ) : bool |
Checks if the transition has an effect.
|
|
UpdateAuditEvent ( ISystemContext context, |
Updates an audit event after the method is invoked.
|
|
UpdateStateVariable ( ISystemContext context, uint stateId, FiniteStateVariableState variable ) : void |
Updates the current state variable.
|
|
UpdateTransitionEvent ( ISystemContext context, uint transitionId, uint causeId, TransitionEventState e ) : void |
Updates a transition event after the transition is complete.
|
|
UpdateTransitionVariable ( ISystemContext context, uint transitionId, FiniteTransitionVariableState variable ) : void |
Updates the last transition variable.
|
public CauseProcessingCompleted ( ISystemContext context, uint causeId ) : void | ||
context | ISystemContext | The context. |
causeId | uint | The cause id. |
Результат | void |
protected CreateAuditEvent ( ISystemContext context, |
||
context | ISystemContext | |
causeMethod | ||
causeId | uint | |
Результат | AuditUpdateStateEventState |
protected CreateTransitionEvent ( ISystemContext context, uint transitionId, uint causeId ) : TransitionEventState | ||
context | ISystemContext | |
transitionId | uint | |
causeId | uint | |
Результат | TransitionEventState |
public DoCause ( ISystemContext context, |
||
context | ISystemContext | |
causeMethod | ||
causeId | uint | |
inputArguments | IList |
|
outputArguments | IList |
|
Результат |
public DoTransition ( ISystemContext context, uint transitionId, uint causeId, IList |
||
context | ISystemContext | |
transitionId | uint | |
causeId | uint | |
inputArguments | IList |
|
outputArguments | IList |
|
Результат |
protected GetNewStateForTransition ( ISystemContext context, uint transitionId ) : uint | ||
context | ISystemContext | |
transitionId | uint | |
Результат | uint |
protected GetTransitionForCause ( ISystemContext context, uint causeId ) : uint | ||
context | ISystemContext | |
causeId | uint | |
Результат | uint |
protected GetTransitionToState ( ISystemContext context, uint targetStateId ) : uint | ||
context | ISystemContext | |
targetStateId | uint | |
Результат | uint |
protected InvokeCallback ( StateMachineTransitionHandler callback, ISystemContext context, StateMachineState machine, uint transitionId, uint causeId, IList |
||
callback | StateMachineTransitionHandler | |
context | ISystemContext | |
machine | StateMachineState | |
transitionId | uint | |
causeId | uint | |
inputArguments | IList |
|
outputArguments | IList |
|
Результат |
public IsCausePermitted ( ISystemContext context, uint causeId, bool checkUserAccessRights ) : bool | ||
context | ISystemContext | |
causeId | uint | |
checkUserAccessRights | bool | |
Результат | bool |
protected OnAfterCreate ( ISystemContext context, NodeState node ) : void | ||
context | ISystemContext | |
node | NodeState | |
Результат | void |
public SetState ( ISystemContext context, uint newState ) : void | ||
context | ISystemContext | |
newState | uint | |
Результат | void |
protected TransitionHasEffect ( ISystemContext context, uint transitionId ) : bool | ||
context | ISystemContext | |
transitionId | uint | |
Результат | bool |
protected UpdateAuditEvent ( ISystemContext context, |
||
context | ISystemContext | |
causeMethod | ||
causeId | uint | |
e | AuditUpdateStateEventState | |
result | ||
Результат | void |
protected UpdateStateVariable ( ISystemContext context, uint stateId, FiniteStateVariableState variable ) : void | ||
context | ISystemContext | |
stateId | uint | |
variable | FiniteStateVariableState | |
Результат | void |
protected UpdateTransitionEvent ( ISystemContext context, uint transitionId, uint causeId, TransitionEventState e ) : void | ||
context | ISystemContext | |
transitionId | uint | |
causeId | uint | |
e | TransitionEventState | |
Результат | void |
protected UpdateTransitionVariable ( ISystemContext context, uint transitionId, FiniteTransitionVariableState variable ) : void | ||
context | ISystemContext | |
transitionId | uint | |
variable | FiniteTransitionVariableState | |
Результат | void |
public StateMachineTransitionHandler OnAfterTransition | ||
Результат | StateMachineTransitionHandler |
public StateMachineTransitionHandler OnBeforeTransition | ||
Результат | StateMachineTransitionHandler |