Skip to content
Snippets Groups Projects
Commit 8c2677b2 authored by ThibautDemare's avatar ThibautDemare
Browse files

Final consignees test the efficiency of their LSP every 14 cycles instead of...

Final consignees test the efficiency of their LSP every 14 cycles instead of every hour after minimal contract duration
parent 15e4571e
Branches
Tags
No related merge requests found
...@@ -111,7 +111,7 @@ species FinalDestinationManager { ...@@ -111,7 +111,7 @@ species FinalDestinationManager {
*/ */
reflex manageContractWithLP when: allowLSPSwitch { reflex manageContractWithLP when: allowLSPSwitch {
numberOfHoursOfContract <- numberOfHoursOfContract + 1; numberOfHoursOfContract <- numberOfHoursOfContract + 1;
if(numberOfHoursOfContract > minimalNumberOfHoursOfContract){ if(numberOfHoursOfContract mod minimalNumberOfHoursOfContract = 0){
if(shouldISwitchMyLSP()){ if(shouldISwitchMyLSP()){
// the logsitic provider is not efficient enough. He must be replaced by another one. // the logsitic provider is not efficient enough. He must be replaced by another one.
// Inform the current logistic provider that he losts a customer // Inform the current logistic provider that he losts a customer
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment