C# Class Orc.Extensions.TaskCollectionExtensions

Afficher le fichier Open project: Orcomp/Orcomp

Méthodes publiques

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

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

public static Collapse ( this taskCollection ) : IList
taskCollection this
Résultat IList

GetDataPoints() public static méthode

public static GetDataPoints ( this taskCollection, double initialLevel ) : double>>.IEnumerable
taskCollection this
initialLevel double
Résultat double>>.IEnumerable

GetQuantity() public static méthode

public static GetQuantity ( this taskCollection, System.DateTime date ) : double
taskCollection this
date System.DateTime
Résultat double

TryToMakeTasksComply() public static méthode

public static TryToMakeTasksComply ( this taskCollection, double minLevel, double maxLevel, double initialValue ) : IEnumerable
taskCollection this
minLevel double
maxLevel double
initialValue double
Résultat IEnumerable

WillBreachMaxLevel() public static méthode

public static WillBreachMaxLevel ( this taskCollection, double maxLevel, double initialValue ) : bool
taskCollection this
maxLevel double
initialValue double
Résultat bool

WillBreachMinLevel() public static méthode

public static WillBreachMinLevel ( this taskCollection, double minLevel, double initialValue ) : bool
taskCollection this
minLevel double
initialValue double
Résultat bool

WillStayWithinRange() public static méthode

public static WillStayWithinRange ( this taskCollection, double minLevel, double maxLevel, double initialValue ) : bool
taskCollection this
minLevel double
maxLevel double
initialValue double
Résultat bool