Setup routines. ToDo: for parsing further, non-mandatory input: is it possible to set variables given by names “directly”?
libs/ | Setup routines. |
setup | Global setup function |
initialize-setup | Loads file names of sceenario to load and checks that all files necessary are present. |
setup-globals | Reads globals data from external file and sets some values, e.g. |
setup-nodes | Definition of nodes is read from external file. |
add-non-usable-technologies | |
setup-edges | Reads edges specification from external file and sets variables like edge->edge-id. |
setup-technologies | Reads technologies data from external file. |
setup-agents | Reads agents data from external file. |
setup-seu-values | Reads seu values and destination-nodes from seu-value-file and creates global seu table and destinations table Number of seu values per agent-type has to be same as number of p’s (at the moment 4) |
setup-p-calculations | Reads p calculations from p-calculations-file and creates global calculations table. |
setup-clients | Setup of hubnet clients. |
setup-interface | Adds data to the interface gathered from external files |
setup-views | Sets default shape of hubnet-views. |
setup-global-stats | Initializes global variables measuring statistics |
replace-seu-u-extra-values | Changes some u-values for calibration purposes |
to-report add-non-usable-technologies [right-of-use-vector]
Adds empty lists to the given right-of-use-vector, indicating that the technology on the respective position cannot be used here. This differs from a technology being banned | as a ban can be cancelled. |
right-of-use-vector | vector of [technology-type bool], indicating whether the technology-type may be used or not |
result | input-vector, with added [] in case of technology not usable at all. |
to-report setup-edges
Reads edges specification from external file and sets variables like edge->edge-id.
bool | true if edges’ setup was successfully. |
to-report setup-p-calculations
Reads p calculations from p-calculations-file and creates global calculations table. Function contains a list of often used p-calculations as tasks to replace the string-type input, because tasks run much fuster using “run-result” than strings. Strings on the other hand allow to simply alter parameters in scenarios, so this option shall be permanent. Users should add their functions to the list of tasks to improve speed of simulation.
bool | true if p calculations setup was successfully. |
Global setup function
to setup
Loads file names of sceenario to load and checks that all files necessary are present.
to-report initialize-setup
Reads globals data from external file and sets some values, e.g.
to-report setup-globals
Definition of nodes is read from external file.
to-report setup-nodes
to-report add-non-usable-technologies [right-of-use-vector]
Reads edges specification from external file and sets variables like edge->edge-id.
to-report setup-edges
Reads technologies data from external file.
to-report setup-technologies
Reads agents data from external file.
to-report setup-agents
Reads seu values and destination-nodes from seu-value-file and creates global seu table and destinations table Number of seu values per agent-type has to be same as number of p’s (at the moment 4)
to-report setup-seu-values
Reads p calculations from p-calculations-file and creates global calculations table.
to-report setup-p-calculations
Setup of hubnet clients.
to setup-clients
Adds data to the interface gathered from external files
to setup-interface
Sets default shape of hubnet-views.
to-report setup-views
Initializes global variables measuring statistics
to setup-global-stats
Changes some u-values for calibration purposes
to replace-seu-u-extra-values