C# Class 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.
Inheritance: Decorator
Mostra file Open project: lances101/BoringHeroes

Public Methods

Method Description
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.

Method Details

Execute() public method

public Execute ( object context ) : IEnumerable
context object
return IEnumerable

Start() public method

public Start ( object context ) : void
context object
return void

Stop() public method

public Stop ( object context ) : void
context object
return void

Wait() public method

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
return System

Wait() public method

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
return System

Wait() public method

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