Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DALSim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thibaut DEMARE
DALSim
Commits
fb3a7db6
Commit
fb3a7db6
authored
5 years ago
by
ThibautDemare
Browse files
Options
Downloads
Patches
Plain Diff
Make two reflex instead of one
parent
67ab4366
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/Observer.gaml
+6
-4
6 additions, 4 deletions
models/Observer.gaml
with
6 additions
and
4 deletions
models/Observer.gaml
+
6
−
4
View file @
fb3a7db6
...
...
@@ -138,10 +138,10 @@ global {
}
}
reflex update
_a
verage
_t
ime
_to_d
eliver {
reflex update
A
verage
T
ime
ToD
eliver {
// Update the average time to deliver (at the LPs level)
int i <- 0;
in
t sum <- 0;
floa
t sum <- 0;
ask LogisticsServiceProvider {
if(length(customers) > 0){
int j <- 0;
...
...
@@ -162,10 +162,12 @@ global {
if(i > 0){
averageTimeToDeliver <- (sum/i);
}
}
reflex updateAverageTimeToBeDelivered {
// Update the average time to be delivered (at the FDMs level)
i <- 0;
sum <- 0;
int
i <- 0;
float
sum <- 0;
ask FinalConsignee {
int j <- 0;
int localSum <- 0;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment