메소드 | 설명 | |
---|---|---|
__construct ( object $subject, MetaborStd\Statemachine\ProcessInterface $process, string $stateName = null, MetaborStd\Statemachine\Factory\TransitionSelectorInterface $transitonSelector = null, MetaborStd\Semaphore\MutexInterface $mutex = null ) | ||
acquireLock ( ) : boolean | Use this function if you want to aquire lock before calling triggerEvent or checkTransitions. | |
checkTransitions ( ArrayAccess $context = null ) | ||
dispatchEvent ( MetaborStd\Event\DispatcherInterface $dispatcher, string $name, ArrayAccess $context = null ) | ||
getCurrentContext ( ) : ArrayAccess | ||
getCurrentState ( ) | ||
getLastState ( ) : MetaborStd\Statemachine\StateInterface | ||
getProcess ( ) : MetaborStd\Statemachine\ProcessInterface | ||
getSelectedTransition ( ) : MetaborStd\Statemachine\TransitionInterface | ||
getSubject ( ) | ||
onDispatcherReady ( ) | is called after dispatcher was executed. | |
triggerEvent ( string $name, ArrayAccess $context = null ) |
메소드 | 설명 | |
---|---|---|
acquireLockOrThrowException ( ) | ||
doCheckTransitions ( ArrayAccess $context, MetaborStd\Event\EventInterface $event = null ) |
public __construct ( object $subject, MetaborStd\Statemachine\ProcessInterface $process, string $stateName = null, MetaborStd\Statemachine\Factory\TransitionSelectorInterface $transitonSelector = null, MetaborStd\Semaphore\MutexInterface $mutex = null ) | ||
$subject | object | |
$process | MetaborStd\Statemachine\ProcessInterface | |
$stateName | string | |
$transitonSelector | MetaborStd\Statemachine\Factory\TransitionSelectorInterface | |
$mutex | MetaborStd\Semaphore\MutexInterface |
public acquireLock ( ) : boolean | ||
리턴 | boolean |
public checkTransitions ( ArrayAccess $context = null ) | ||
$context | ArrayAccess |
public dispatchEvent ( MetaborStd\Event\DispatcherInterface $dispatcher, string $name, ArrayAccess $context = null ) | ||
$dispatcher | MetaborStd\Event\DispatcherInterface | |
$name | string | |
$context | ArrayAccess |
protected doCheckTransitions ( ArrayAccess $context, MetaborStd\Event\EventInterface $event = null ) | ||
$context | ArrayAccess | |
$event | MetaborStd\Event\EventInterface |
public getLastState ( ) : MetaborStd\Statemachine\StateInterface | ||
리턴 | MetaborStd\Statemachine\StateInterface |
public getProcess ( ) : MetaborStd\Statemachine\ProcessInterface | ||
리턴 | MetaborStd\Statemachine\ProcessInterface |
public getSelectedTransition ( ) : MetaborStd\Statemachine\TransitionInterface | ||
리턴 | MetaborStd\Statemachine\TransitionInterface |
public triggerEvent ( string $name, ArrayAccess $context = null ) | ||
$name | string | |
$context | ArrayAccess |