C# Class CSharpRoboticsLib.FlowControl.WaitByCallCount

Will return true after a threshold has been met by waiting for a number of call counts
Show file Open project: shockwave4488/CSharpRoboticsLib Class Usage Examples

Public Methods

Method Description
ResetCount ( ) : void

Resets the internal count to zero

Update ( ) : void

Increases the internal count by 1

Update ( bool increase ) : void

Increases the internal count by 1 if true, resets count to 0 if false

Update ( int count ) : void

Increases the internal count by the amount specified

WaitByCallCount ( int count ) : System

New instance of WaitByCallCount

Method Details

ResetCount() public method

Resets the internal count to zero
public ResetCount ( ) : void
return void

Update() public method

Increases the internal count by 1
public Update ( ) : void
return void

Update() public method

Increases the internal count by 1 if true, resets count to 0 if false
public Update ( bool increase ) : void
increase bool
return void

Update() public method

Increases the internal count by the amount specified
public Update ( int count ) : void
count int amount to increase by
return void

WaitByCallCount() public method

New instance of WaitByCallCount
public WaitByCallCount ( int count ) : System
count int the threshold after which it should return true
return System