Handling all output helpers, p.e. for formatting output-files, generating file-names etc.
libs/ | Handling all output helpers, p.e. |
debug | Prints out a message if logging is activated and debugging level of the message to be printed is equal to or lower than log-level Level 0: dangerous errors, simulation is about to halt. |
out | Prints out a message if context (for example “SEU”) is activated for output. |
setup-result-file-names | Creates unique file-names for all result-files in a uniform manner, using behaviorspace-run-number and behaviorspace-experiment-name, if automated-run? |
add-result-file | Creates a result file based on base-file (which is the same for all result-files of a scenario-run) and extension (indicating the type of result), adds file to result-file-names table and prints header-line to the file. |
list-to-comma-string | Gives a string of the list (and lists in the list as well) |
list-to-semicolon-string | Gives a string of the list (and lists in the list as well) |
list-to-string | Gives a string of the list |
string-list-to-string | Gives a string-marked string of the list |
mediawiki-table-print | Prints a tabular in wikimedia-table-style based on the content given |
mediawiki-table-printline | Prints a single line and inserts mediawiki-table cell separator “|” between cells |
mediawiki-table-begin | Prints the standard header of a mediawiki-table |
mediawiki-table-end | Prints the standard footer of a mediawiki-table |
mediawiki-table-newline | Prints the newline-code of a mediawiki-table |
redminewiki-table-print | Prints a tabular in redminewike-style based on the content given |
redminewiki-table-printline | Prints a single line and inserts redminewiki-table cell separator “|” between cells |
write-plots | Writes plots’ history |
write-node-history | Writes nodes’ history |
write-node-stats-raw | Write nodes’ statistics (raw-values) |
write-node-stats | Write nodes’ statistics (mean-values, medians and standard-deviations) |
write-edge-history | Writes edges’ history |
write-edge-stats | Write edges’ statistics (mean-values, medians and standard-deviations) |
write-edge-stats-raw | ; Write edges’ statistics (raw-values) |
write-technology-type-stats-raw | Write technology-types’ statistics (raw-values) |
write-technology-type-stats | Write technology-types’ statistics (mean-values, medians and standard-deviations) |
write-agent-seu | Writes agents’ seu-calculation history |
write-agent-history | Writes agents’ history |
write-agent-stats-raw | Writes agents’ statistics (raw-values) |
write-agent-stats | Writes agents’ statistics (mean-values, medians and standard-deviations) |
write-global-stats | Writes global statistics (mean-values, medians and standard-deviations) |
write-global-stats-raw | Writes global statistics (raw values) |
write-node-results | Triggers all functions handling output of nodes’ results |
write-edge-results | Triggers all functions handling output of edges’ results |
write-technology-type-results | Triggers all functions handling output of technology-types’ results |
write-agent-results | Triggers all functions handling output of agents’ results |
write-global-results | Triggers all functions handling output of global results |
write-results | Writes results generated within running a scenario. |
to debug [level message]
Prints out a message if logging is activated and debugging level of the message to be printed is equal to or lower than log-level Level 0: dangerous errors, simulation is about to halt. Level 1: errors Level 2: warnings like functions returning nobody or empty lists. Level 3: function calls.
level | int, level of message |
message | text to print |
to out [context message sender]
Prints out a message if context (for example “SEU”) is activated for output. Can be restricted to single senders by specifiyng a “who” number in GUI.
context | the string, semantic context of the message to be printed, used to filter messages. See <Out-level> in GUI. |
message | string, the message to be printed |
sender | ”who” number of the sending agent |
to add-result-file [base-file extension header-line]
Creates a result file based on base-file (which is the same for all result-files of a scenario-run) and extension (indicating the type of result), adds file to result-file-names table and prints header-line to the file.
base-file | string, containing first part of file-name |
extension | string, containing second part of file-name |
header-line | string, indicating the first line to be written after creation of the result-file. |
to write-technology-type-stats-raw [my-technology-types]
Write technology-types’ statistics (raw-values)
my-technology-types | set of technology-types that shall write their output |
to write-technology-type-stats [my-technology-types]
Write technology-types’ statistics (mean-values, medians and standard-deviations)
my-technology-types | set of technology-types that shall write their output |
to write-technology-type-results [my-technologies]
Triggers all functions handling output of technology-types’ results
my-technologies | set of technologies that shall write their output |
Prints out a message if logging is activated and debugging level of the message to be printed is equal to or lower than log-level Level 0: dangerous errors, simulation is about to halt.
to debug [level message]
Prints out a message if context (for example “SEU”) is activated for output.
to out [context message sender]
Creates unique file-names for all result-files in a uniform manner, using behaviorspace-run-number and behaviorspace-experiment-name, if automated-run?
to setup-result-file-names
Creates a result file based on base-file (which is the same for all result-files of a scenario-run) and extension (indicating the type of result), adds file to result-file-names table and prints header-line to the file.
to add-result-file [base-file extension header-line]
Gives a string of the list (and lists in the list as well)
to-report list-to-comma-string [li]
Gives a string of the list (and lists in the list as well)
to-report list-to-semicolon-string [li]
Gives a string of the list
to-report list-to-string [li sep]
Gives a string-marked string of the list
to-report string-list-to-string [li]
Prints a tabular in wikimedia-table-style based on the content given
to mediawiki-table-print [list-of-lines]
Prints a single line and inserts mediawiki-table cell separator “|” between cells
to mediawiki-table-printline [content]
Prints the standard header of a mediawiki-table
to mediawiki-table-begin
Prints the standard footer of a mediawiki-table
to mediawiki-table-end
Prints the newline-code of a mediawiki-table
to mediawiki-table-newline
Prints a tabular in redminewike-style based on the content given
to redminewiki-table-print [list-of-lines]
Prints a single line and inserts redminewiki-table cell separator “|” between cells
to redminewiki-table-printline [content]
Writes plots’ history
to write-plots
Writes nodes’ history
to write-node-history [my-nodes]
Write nodes’ statistics (raw-values)
to write-node-stats-raw [my-nodes]
Write nodes’ statistics (mean-values, medians and standard-deviations)
to write-node-stats [my-nodes]
Writes edges’ history
to write-edge-history [my-edges]
Write edges’ statistics (mean-values, medians and standard-deviations)
to write-edge-stats [my-edges]
; Write edges’ statistics (raw-values)
to write-edge-stats-raw [my-edges]
Write technology-types’ statistics (raw-values)
to write-technology-type-stats-raw [my-technology-types]
Write technology-types’ statistics (mean-values, medians and standard-deviations)
to write-technology-type-stats [my-technology-types]
Writes agents’ seu-calculation history
to write-agent-seu [my-agents]
Writes agents’ history
to write-agent-history [my-agents]
Writes agents’ statistics (raw-values)
to write-agent-stats-raw [my-agents]
Writes agents’ statistics (mean-values, medians and standard-deviations)
to write-agent-stats [my-agents]
Writes global statistics (mean-values, medians and standard-deviations)
to write-global-stats
Writes global statistics (raw values)
to write-global-stats-raw
Triggers all functions handling output of nodes’ results
to write-node-results [my-nodes]
Triggers all functions handling output of edges’ results
to write-edge-results [my-edges]
Triggers all functions handling output of technology-types’ results
to write-technology-type-results [my-technologies]
Triggers all functions handling output of agents’ results
to write-agent-results [my-agents]
Triggers all functions handling output of global results
to write-global-results
Writes results generated within running a scenario.
to write-results