C# Class Progression.ProgressCalculators.ProgressCalcWeighted

Inheritance: IProgressCalculator
Exibir arquivo Open project: scottrippey/Progression

Protected Properties

Property Type Description
StepWeights float[]

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.

ProgressCalcWeighted ( float stepWeights ) : System.Diagnostics
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

ProgressCalcWeighted() public method

public ProgressCalcWeighted ( float stepWeights ) : System.Diagnostics
stepWeights float
return System.Diagnostics

ToString() public method

public ToString ( ) : string
return string

Property Details

StepWeights protected_oe property

Step Weights is a list of the relative weight of each step.
protected float[] StepWeights
return float[]