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
306273f8
Commit
306273f8
authored
6 years ago
by
ThibautDemare
Browse files
Options
Downloads
Patches
Plain Diff
Put geom function to parent species
parent
b8c7affe
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/Terminals.gaml
+4
-36
4 additions, 36 deletions
models/Terminals.gaml
with
4 additions
and
36 deletions
models/Terminals.gaml
+
4
−
36
View file @
306273f8
...
...
@@ -3,9 +3,9 @@ model Terminals
import "Building.gaml"
species Terminal parent:Building{
string col <- "grey";
aspect geom {
if(colorValue = -1){
string col <- "grey";
if(colorValue = -1){
draw shape + 2°px color: rgb(col) border: rgb(col);
}
else {
...
...
@@ -18,16 +18,7 @@ species MaritimeTerminal parent:Terminal{
float handling_time_to_maritime;
float handling_time_from_maritime;
string col <- "red";
aspect geom {
if(colorValue = -1){
string col <- "grey";
draw shape + 2°px color: rgb(col) border: rgb(col);
}
else {
draw shape + 2°px color: rgb(255, colorValue, 0) border:rgb(255, colorValue, 0);
}
}
reflex manageMaritimeComingCommodities {
int i <- 0;
loop while:i<length(comingCommodities) {
...
...
@@ -63,16 +54,7 @@ species RiverTerminal parent:Terminal{
}
}
}
aspect geom {
if(colorValue = -1){
string col <- "grey";
draw shape + 2°px color: rgb(col) border: rgb(col);
}
else {
draw shape + 2°px color: rgb(255, colorValue, 0) border:rgb(255, colorValue, 0);
}
}
}
species MaritimeRiverTerminal parent:Terminal {
...
...
@@ -111,18 +93,4 @@ species MaritimeRiverTerminal parent:Terminal {
}
}
}
reflex updateHandlingTimeToRoad when: cycle = 100 {
handling_time_to_road <- 100000;
}
aspect geom {
if(colorValue = -1){
string col <- "grey";
draw shape + 2°px color: rgb(col) border: rgb(col);
}
else {
draw shape + 2°px color: rgb(255, colorValue, 0) border:rgb(255, colorValue, 0);
}
}
}
\ No newline at end of file
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