C# Class Orc.Extensions.TaskCollectionExtensions

Show file Open project: Orcomp/Orcomp

Public Methods

Method Description
Collapse ( this taskCollection ) : IList
GetDataPoints ( this taskCollection, double initialLevel ) : double>>.IEnumerable
GetQuantity ( this taskCollection, System.DateTime date ) : double
TryToMakeTasksComply ( this taskCollection, double minLevel, double maxLevel, double initialValue ) : IEnumerable
WillBreachMaxLevel ( this taskCollection, double maxLevel, double initialValue ) : bool
WillBreachMinLevel ( this taskCollection, double minLevel, double initialValue ) : bool
WillStayWithinRange ( this taskCollection, double minLevel, double maxLevel, double initialValue ) : bool

Private Methods

Method Description
CalcQuantityDifference ( double>.KeyValuePair outOfRangePoint, double minLevel, double maxLevel ) : double
FindMoveToTime ( double>.IEnumerable dataPoints, double>.KeyValuePair outOfRangePoint, double minLevel, double maxLevel, System.DateTime &moveToTime ) : bool
FindOutOfRangePoint ( double>.IEnumerable dataPoints, double minLevel, double maxLevel, double>.KeyValuePair &outOfRangePoint ) : bool
GetMaxAllowedStartTime ( ITask task, Collection taskCollection, int>.IDictionary indexDict ) : System.DateTime

Method Details

Collapse() public static method

public static Collapse ( this taskCollection ) : IList
taskCollection this
return IList

GetDataPoints() public static method

public static GetDataPoints ( this taskCollection, double initialLevel ) : double>>.IEnumerable
taskCollection this
initialLevel double
return double>>.IEnumerable

GetQuantity() public static method

public static GetQuantity ( this taskCollection, System.DateTime date ) : double
taskCollection this
date System.DateTime
return double

TryToMakeTasksComply() public static method

public static TryToMakeTasksComply ( this taskCollection, double minLevel, double maxLevel, double initialValue ) : IEnumerable
taskCollection this
minLevel double
maxLevel double
initialValue double
return IEnumerable

WillBreachMaxLevel() public static method

public static WillBreachMaxLevel ( this taskCollection, double maxLevel, double initialValue ) : bool
taskCollection this
maxLevel double
initialValue double
return bool

WillBreachMinLevel() public static method

public static WillBreachMinLevel ( this taskCollection, double minLevel, double initialValue ) : bool
taskCollection this
minLevel double
initialValue double
return bool

WillStayWithinRange() public static method

public static WillStayWithinRange ( this taskCollection, double minLevel, double maxLevel, double initialValue ) : bool
taskCollection this
minLevel double
maxLevel double
initialValue double
return bool