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
41a83ba7
Commit
41a83ba7
authored
6 years ago
by
ThibautDemare
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic update (according to commit fa0bb448 in repo MovingOnNetworkPlugin)
parent
0629911a
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/Networks.gaml
+34
-4
34 additions, 4 deletions
models/Networks.gaml
with
34 additions
and
4 deletions
models/Networks.gaml
+
34
−
4
View file @
41a83ba7
...
...
@@ -11,17 +11,47 @@ species Network {
float speed;
float length;
int colorValue <- -1; // This value is filled by the custom GAMA Plugin : MovingOnNetwork. It allows to colour the road according to the quantity of goods on the road.
string colorRVBValue <- "";
int sizeShape <- 1;
bool blocked <- false;
float current_marks;
float cumulative_marks;
float cumulative_nb_agents;
aspect geom {
if(blocked){
draw shape + 2°px color: rgb(0, 255, 0) border: rgb(0, 255, 0);
draw shape + 2°px color: rgb("#4575b4") border: rgb("#4575b4");
}
else{
if(colorRVBValue = ""){
if(sizeShape = 0){
draw shape color: rgb(col) border: rgb(col);
}
else {
draw shape color: rgb(col) border: rgb(col);
}
}
else {
if(sizeShape = 0){
draw shape color: rgb(colorRVBValue) border:rgb(colorRVBValue);
}
else {
draw shape + sizeShape°px color: rgb(colorRVBValue) border:rgb(colorRVBValue);
}
}
}
}
aspect lightGeom {
if(blocked){
draw shape color: rgb("#4575b4") border: rgb("#4575b4");
}
else{
if(colorValue =
-1
){
draw shape
+ 2°px
color: rgb(col) border: rgb(col);
if(color
RVB
Value =
""
){
draw shape color: rgb(col) border: rgb(col);
}
else {
draw shape
+ 2°px
color: rgb(
255,
colorValue
, 0
) border:rgb(
255,
colorValue
, 0
);
draw shape color: rgb(color
RVB
Value) border:rgb(color
RVB
Value);
}
}
}
...
...
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