C# Class Progression.ProgressCalculators.ProgressCalcUnknown

Inheritance: IProgressCalculator
Show file Open project: scottrippey/Progression

Public Methods

Method Description
CalculateProgress ( float stepProgress ) : float

Calculates the progress of this task.

NextStep ( ) : void

Advances the current progress task to the next step.

ProgressCalcUnknown ( int estimatedSteps, float estimatedWeight ) : System

ToString ( ) : string

Method Details

CalculateProgress() public method

Calculates the progress of this task.
public CalculateProgress ( float stepProgress ) : float
stepProgress float The progress of nested steps
return float

NextStep() public method

Advances the current progress task to the next step.
public NextStep ( ) : void
return void

ProgressCalcUnknown() public method

public ProgressCalcUnknown ( int estimatedSteps, float estimatedWeight ) : System
estimatedSteps int
estimatedWeight float /// A value between 0.0 and 1.0 that determines how much weight to place on the estimated steps. /// For example, if estimatedSteps is 100 and estimatedWeight is .75, /// then when 100 steps have completed, progress will be at 75%. /// /// This value cannot equal 0.0 or 1.0. ///
return System

ToString() public method

public ToString ( ) : string
return string