C# 클래스 TreeSharp.Wait

Implements a 'wait' composite. This composite will return Running until some condition is met, or it has exceeded its alloted wait time.
Created 1/13/2011.
상속: Decorator
파일 보기 프로젝트 열기: lances101/BoringHeroes

공개 메소드들

메소드 설명
Execute ( object context ) : IEnumerable
Start ( object context ) : void
Stop ( object context ) : void
Wait ( CanRunDecoratorDelegate runFunc, Composite child ) : System

Creates a new Wait decorator with an 'infinite' timeout, the specified run delegate, and a child composite.

Wait ( int timeoutSeconds, CanRunDecoratorDelegate runFunc, Composite child ) : System

Creates a new Wait decorator using the specified timeout, run delegate, and child composite.

Wait ( int timeoutSeconds, Composite child ) : System

Creates a new Wait decorator with the specified timeout, and child composite.

메소드 상세

Execute() 공개 메소드

public Execute ( object context ) : IEnumerable
context object
리턴 IEnumerable

Start() 공개 메소드

public Start ( object context ) : void
context object
리턴 void

Stop() 공개 메소드

public Stop ( object context ) : void
context object
리턴 void

Wait() 공개 메소드

Creates a new Wait decorator with an 'infinite' timeout, the specified run delegate, and a child composite.
public Wait ( CanRunDecoratorDelegate runFunc, Composite child ) : System
runFunc CanRunDecoratorDelegate
child Composite
리턴 System

Wait() 공개 메소드

Creates a new Wait decorator using the specified timeout, run delegate, and child composite.
public Wait ( int timeoutSeconds, CanRunDecoratorDelegate runFunc, Composite child ) : System
timeoutSeconds int
runFunc CanRunDecoratorDelegate
child Composite
리턴 System

Wait() 공개 메소드

Creates a new Wait decorator with the specified timeout, and child composite.
public Wait ( int timeoutSeconds, Composite child ) : System
timeoutSeconds int
child Composite
리턴 System