SimCo-simple.nlogo
Simco training tool v0.2
Shares the code base with SimCo, but provides an easier to use GUI.
2017
Fabian Adelt, Johannes Weyer, Robin D. Fink, Andreas Ihrig (TU Dortmund University)
Licence
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Extensions
table | helpers for tables |
array | helpers for arrays |
string | string handling |
goo | change gui-elements |
pathdir | directory handling |
file | file handling |
stats | handling of simulation data, including some basic statistic methods |
profiler | measuring time each functions needs (calling sub-functions included and excluded) as well as number of calls |
Includes
global
Some global variables which are present in full SimCo’s GUI and need to be substituted here.
global variables
out-level | string, indicating which level of information shall be used by “out” function |
debug-level | int, indicating which level of information shall be used by “debug” function |
out? | bool, shall “out” output be printed? |
debugging? | bool, shall “debug” output be printed? |
hubnet? | bool, shall hubnet part of Simco be started? Used for alternative views, experimental. |
use-snf | bool, shall the standard scenario format “snf” be used? |
out-who | int, indicating which agent shall be used for inspection in full SimCo |
followme? | bool, shall an agent by marked in GUI to follow it’s movement? |
inspect? | bool, shall |
save-history? | bool, |
purchase? | bool, |
l-e-z-f | int, |
l-e-z-r | int, visualize-node - |
go
Main function to run the simulation.
agents-run
Main function for all agent actions: Entering and leaving nodes and edges and taking decisions about the next node an agent wants to reach. ;
update-history
Updates history for all elements of the simulation. Should be used once per tick. Called from go-function, if save-history? is true.
startup
Starts the hubnet functions