Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Create a user friendly function "isOverloaded" #106

Open
pgambier opened this issue Apr 27, 2017 · 0 comments
Open

Create a user friendly function "isOverloaded" #106

pgambier opened this issue Apr 27, 2017 · 0 comments

Comments

@pgambier
Copy link

Create a function "isOverloaded" using 3 arguments isOverloaded(branchIds, reduction, thresholdDuration). The first one is the only one to be required.

isOverloaded(branchIds) returns true only if at least one of the branches among the list of IDs "linesId" has one overload threshold violated.

isOverloaded(branchIds, reduction) returns true only if at least one of the branches among the list of IDs "linesId" has one overload threshold violated with a reduction (if reduction*threshold is violated).

isOverloaded(branchIds, thresholdDuration) returns true only if at least one of the branches among the list of IDs "linesId" has one overload threshold duration (corresponding to the defined threshold) violated.

isOverloaded(branchIds, reduction, thresholdDuration) returns true only if at least one of the branches among the list of IDs "linesId" has one overload threshold duration (corresponding to the defined threshold) violated with a reduction (if reduction*threshold is violated).

Nota Bene : Mathieu suggested to create a class with all the utility functions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants