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
Afficher le fichier Open project: lances101/BoringHeroes

Méthodes publiques

Méthode 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 méthode

public Execute ( object context ) : IEnumerable
context object
Résultat IEnumerable

Start() public méthode

public Start ( object context ) : void
context object
Résultat void

Stop() public méthode

public Stop ( object context ) : void
context object
Résultat void

Wait() public méthode

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
Résultat System

Wait() public méthode

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
Résultat System

Wait() public méthode

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