Reports the names of all agent types
to-report names-of-agent-types
Reports the names of all technologies
to-report names-of-technologies
Reports the names of all technology-types
to-report names-of-technology-types
Report “true” if given content line from input file does not start with a semicolon (which marks a comment line)
to-report noComment? [content]
Reports true if the the id of the given node is part of the id-list given .
to-report node-condition-id [my-node my-agent]
Reports true if the the cost-benefits-value in my-dimension equals my-value.
to-report node-condition-type [ my-val my-node]
Reports 1 if the cost-benefits-value in my-dimension equals my-value.
to-report node-condition-type-p [my-dimension my-value my-node]
Gives the number of banned technologies on the given infrastructure element (node or edge)
to-report number-of-technologies-banned [ie]
Called when the content of the search field is changed.
this.OnSearchFieldChange = function()
Called when focus is added or removed from the search field.
this.OnSearchFieldFocus = function( isActive )
Called when the search type is changed.
this.OnSearchTypeChange = function()
Called when focus is added or removed from the search type.
this.OnSearchTypeFocus = function( isActive )
Prints out a message if context (for example “SEU”) is activated for output.
to out [context message sender]
Reports the actual value of respective object (agent, node, edge) for the given dimension and time.
to-report get-payoff [dimension time]
Adds the given string as postfix to all list items
to-report postfix-list-items [li post]
Adds the given string as prefix to all list items
to-report prefix-list-items [li pre]
Prints a heading of order n depending on the selected wiki style Parameter: n - integer, order of the heading message - string, name of the heading itself
to print-heading-of-order [n message]
Prints all p-calculation formulas for debugging purposes
to print-p-calculations
Handles technology purchase decision of agents Basic Version: Buy one of that technologies that are actually not available to you (not your property) and that fits your needs best.
to purchase-technology
Reads a master file and generates a netwok based on its content.
to read-from-master
Reads all items of a list from a string
to-report read-list-from-string [content]
Receive messages from hubnet and process them
to receive-hubnet-messages
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]
Removes an agent from the edge
to remove-agent-from-edge [my-agent]
Removes an agent to the node
to remove-agent-from-node [my-agent]
Removes a technology from the set of an agent’s agent->agent-technologies-available.
to remove-technology [my-technology]
Changes some u-values for calibration purposes
to replace-seu-u-extra-values
Replaces the technology in a (set of) actions by its technology-name
to-report replace-technology-name-in-actions [list-of-actions]
Checks agent’s who against out-who from interface, used to filter SEU-output for testing purposes
to-report report?
Sets agent-state-variables to zero values, to be used when hatching agents or in agent setup.
to reset-agent-state-variables
Creates new technology-objects based on the present ones, will be called when hatching agents.
to reset-agent-technologies
Deletes all scenario elements as well as variables used for measuring, to be used when conducting experiments via behaviour-space
to reset-simulator
Gives a list of rising values starting from 0
to-report risingList [numberItems]
Triggers profiling of a test run run for a given number of ticks and prints results of profiler-extension.
to run-profiler [number-of-ticks]
Saves the changes-list as master file which could be load later instead of doing all steps one by one
to save-as-master
Writes out the network into 6 files.
to save-network
Writes out the network into 6 files.
to save-network
Saves the characteristics of the types used to create the scenario.
to save-network-description
Performs a search.
this.Search = function()
Searches for the passed string.
this.Search = function( search )
Sets the working directory to the one given via interface.
to set-directory
Handle overcrowded status for edges
to set-edge-overcrowded
Handle overcrowded status for nodes
to set-node-overcrowded
Sets technology speed factor for a technology on an edge-type to the given value
to set-technology-speed-factor [my-technology-type-name my-edge-type my-value]
Sets technology-type->technology-type-factor value of the given dimensionen to input value.
to set-technology-value [my-technology-type-name my-dimension-name my-value]
Global setup function
to setup
Initializes netlogo api object and reads main file (SimCo.nlogo).
@Before public void setUp()
Reads agents data from external file.
to-report setup-agents
Setup of hubnet clients.
to setup-clients
Reads edges specification from external file and sets variables like edge->edge-id.
to-report setup-edges
Initializes global variables measuring statistics
to setup-global-stats
Reads globals data from external file and sets some values, e.g.
to-report setup-globals
Adds data to the interface gathered from external files
to setup-interface
Definition of nodes is read from external file.
to-report setup-nodes
Reads p calculations from p-calculations-file and creates global calculations table.
to-report setup-p-calculations
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
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 technologies data from external file.
to-report setup-technologies
Sets default shape of hubnet-views.
to-report setup-views
Shall send edge-formatting commandos via hubnet.
to short-hubnet-send [my-name my-hidden my-color my-thickness]
Sort edges by their ID or their predecessor and successor nodes
to-report sort-edges [ A B order?]
Starts the hubnet functions
to startup
Starts the hubnet functions
to startup
Gives a string-marked string of the list
to-report string-list-to-string [li]
Cleans up netlogo api object.
@After public void tearDown() throws InterruptedException
Checks wether a technology is allowed to be used on an infrastructure element.
to-report technology-allowed-on? [my-IE my-technology]
Checks wether the technology, given by its technology.technology-name is in the set of agent.agent-technologies-available
to-report technology-available-by-name? [my-technology-name]
Checks wether the given technology is in the set of agent.agent-technologies-available and still alive
to-report technology-available? [my-technology]
Checks wether the given technology actually is used by the agent
to-report technology-in-use? [my-technology]
Checks wether the a technology corresponding to the given technology-type actually is used by the agent
to-report technology-type-in-use? [my-technology-type]
Reports the number of agents using each of the technologies that are part of the scenario running.
to-report technology-usage [agentset]
Reports the number of turtles of each type who are using each of the technologies that are part of the scenario running.
to-report technology-usage-per-agentType
Reports the percentage of turtles of each type who are using each of the technologies that are part of the scenario running.
to-report technology-usage-per-agentType-percentage
Reports the npercentage of turtles using each of the technologies that are part of the scenario running.
to-report technology-usage-percentage [agentset]
Api wrapper function to get reporter results and fail if reporter doesn’t exist.
public void testReporter( String reporter, String input, String expected )
Toggles the visibility of the passed element ID.
this.Toggle = function( id )
Changes layout for presentation purposes: thicker edges, gray patches, some more agents.
to tv