Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Nom du modèle
- model trafic
- // Méthode globale définissant l'environnement.
- global {
- file shp_bati <- file("../includes/bati.shp");
- file shp_rue <- file("../includes/rues_vm.shp");
- geometry shape <- envelope(shp_rue);
- graph reseau;
- init {
- create bati from: shp_bati;
- create rue from: shp_rue ;
- reseau <- as_edge_graph(shp_rue);
- }
- }
- // Agent "bati"
- species bati {
- aspect base {
- draw shape color: #red ;
- }
- }
- // Agent "rue"
- species rue {
- rgb color <- #black ;
- aspect base {
- draw shape color: color ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement