PHP 클래스 XPSPL\SIG_Routine

A SIG_Routine object indicates to the processor a routine that must be run. Each routine is ran at the beginning of the loop. It allows for giving the processor the following information. - Signals to emit - How to idle until the next loop SIG_Routines are designed for signals that will need to idle the processor to wait for emitting in the future.
부터: 2.0.0
상속: extends SIG
파일 보기 프로젝트 열기: prggmr/xpspl 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_idle object \XPSPL\Idle Object to idle the processor.
$_unique

공개 메소드들

메소드 설명
get_idle ( ) : object Returns the idle object for this routine.
idle ( Processor $processor ) Runs the routines idle function.
routine ( Routine $routine ) : void Runs the routine calculation.
set_idle ( Idle $idle ) : object Sets the idle object for this routine.

메소드 상세

get_idle() 최종 공개 메소드

Returns the idle object for this routine.
final public get_idle ( ) : object
리턴 object \XPSPL\Idle

idle() 최종 공개 메소드

This method was added in v4.0.0 as a means for the processor to communicate to the routine to begin idling. This only provides a transport layer for going from the processor into the signal.
final public idle ( Processor $processor )
$processor Processor

routine() 추상적인 공개 메소드

The method is provided a single routine object for providing the processor information.
abstract public routine ( Routine $routine ) : void
$routine Routine Processor routine.
리턴 void

set_idle() 최종 공개 메소드

Sets the idle object for this routine.
final public set_idle ( Idle $idle ) : object
$idle Idle
리턴 object \XPSPL\Idle

프로퍼티 상세

$_idle 보호되어 있는 프로퍼티

\XPSPL\Idle Object to idle the processor.
protected object $_idle
리턴 object

$_unique 보호되어 있는 프로퍼티

protected $_unique