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]
Decreases the edge’s control factor (used to calculate payoffs, manipulated by soft-control-interventions)
to decrease-control-factor-edge [my-dimension my-divisor my-min my-technology-name]
Decreases the node’s control factor (used to calculate payoffs, manipulated by soft-control-interventions)
to decrease-control-factor-node [my-dimension my-divisor my-min my-technology-name]
Decreases the first dimension “capacity” by subtracting the given parameter from short-time-pay-offs
to decrease-count-agents-edge [my-count]
Decreases the first dimension “capacity” by subtracting the given parameter from short-time-pay-offs
to decrease-count-agents-node [my-count]
Decreases technology-type->technology-type-factor value of the given dimensionen by 0.1.
to decrease-technology-value [my-technology-type-name my-dimension-name]
Decreases all pay-offs by the global->global-agents-degradation vector for agents, nodes and edges.
to degrade-all
Decreases all pay-offs by the global->global-agents-degradation vector for agents, nodes and edges.
to degrade-all
Report the degree of a value compared to its limits
to-report degree [dimension time]
this.DOMPopupSearchResults = function()
this.DOMPopupSearchResultsWindow = function()
this.DOMSearchField = function()
this.DOMSearchPanel = function()
this.DOMSearchType = function()
Gives the central axis-position between nodes connected by given my-edge
to-report edge-center [axis edge]
Filters only available technologies
to-report filter-available-technologies [available-techs techs]
Floating point precision, checks precision for all list elements Fix for known NetLogo floating point precision issue
to-report fpp [my-content]
Generates a network with technologies, nodes, edges and agents.
to generate
Generates agents for the network.
to generate-agents
Generates edges for the network.
to generate-edges
Generates nodes for the network.
to generate-nodes
Generates technologies for the network.
to generate-technologies
Gives an agent by agent->agent-id.
to-report get-agent [id]
to-report get-agent-destination-repetitive-value
to-report get-buyable-technologies
Calculates color for degree
to-report get-color [my-degree]
Gives the number of the dimension given by name
to-report get-dimension [dimension-name]
Reports the worst function in terms of degree or the one indicated by the string given as “my-dimension”
to-report get-dimension-to-control [my-dimension my-degree-vector]
Reports which technologies are (temporarily) banned, allowed or (completely) impossible to use on the calling edge.
to-report get-edge-technology-banned
Returns the file name from the given path
to-report get-file-name [path]
Gives from-node of edge
to-report get-from-node [edge]
Gives a node by node-id.
to-report get-node [id]
Reports the cost-benefits-value of the node given in the dimension given
to-report get-node-condition-type-value [my-dimension my-node]
Returns the path to the parent directory
to-report get-parent-path [path]
Returns the path only, cutting of the file-name
to-report get-path [file-path]
Gives all allowed technologies on the given element (node or edge)
to-report get-technologies-allowed [ie]
Gives a list of technologies by their technology->technology-names.
to-report get-technologies-by-name [list-of-technology-names]
Gives a technology by technology-id.
to-report get-technology-by-id [id]
Gives a technology by technology->technology-name.
to-report get-technology-by-name [name]
Returns a technology-type with the same technology-type->technology-type-name as the technology->technology-name of the given technology
to-report get-technology-type [my-technology]
Returns a technology-type with the same technology-type->technology-type-name as given
to-report get-technology-type-by-name [my-technology-type-name]
Gives to-node of edge
to-report get-to-node [edge]
Returns those technologies present in the scenario that were never used by the agent and that s/he actually does not own.
to-report get-unknown-technologies [previously-used-technologies]
Main function to run the simulation.
to go
Main function to run the simulation.
to go
Creates a duplicate of an agent by calling the function hatch on the agent calling the function and changes the new agent’s agent.agent-id to an id unused until now.
to hatch-agent
Imports a agent type and generates a number of agents queried from user
to import-agents-of-type [my-agents-file my-agents-number]
Import dimensions with names (maybe other values later)
to import-dimensions [dims-file]
Imports a edge-type and creates a edge-type-object
to-report import-edge-type [my-edge-file]
Imports an edge type and generates a number of edges queried from user, connecting nodes more or less randomly
to import-edges-of-type [my-edges-file my-edges-number]
Imports a node type and creates a node-type-object
to-report import-node-type [my-nodes-file]
Imports a node type and generates a number of nodes queried from user
to import-nodes-of-type [my-nodes-file my-nodes-number]
Called by inactivateTimeout, which is set by Activate().
this.InactivateAfterTimeout = function()
Increases the actual position of the agent-destinations-repetitive-pointer by 1
to increase-agent-destinations-repetitive-position
Increases the edge’s control factor (used to calculate payoffs, manipulated by soft-control-interventions)
to increase-control-factor-edge [my-dimension my-factor my-max my-technology-name]
Increases the node’s control factor (used to calculate payoffs, manipulated by soft-control-interventions)
to increase-control-factor-node [my-dimension my-factor my-max my-technology-name]
Increase the first dimension “capacity” by adding the given parameter to all pay-offs
to increase-count-agents-edge [my-count]
Increases the first dimension “capacity” by adding the given parameter to all pay-offs
to increase-count-agents-node [my-count]
Increases count of death of respective type if an agent dies.
to increase-deaths
Increases technology-type->technology-type-factor value of the given dimensionen by 0.1.
to increase-technology-value [my-technology-type-name my-dimension-name]
Loads file names of sceenario to load and checks that all files necessary are present.
to-report initialize-setup
Helps to inspect single objects for debugging
to inspect-me
Handles interaction between node or edge and agent.
to interact [my-agent my-technology my-ie]
Handle interaction between agent and edge
to interact-agent-edge [my-agent my-technology]
Handle interaction between agent and node
to interact-agent-node [my-agent my-technology]
Calculates the intersection of lists (for example lists containing technology->technology-names.)
to-report intersect-lists [list-a list-b]
Calculates the intersection of sets (for example sets of technologies.)
to-report intersect-sets [set-a set-b]
Calculates the intersection of a set of technologies and a list of technology->technology-names by using the names as matching parameter.
to-report intersect-technology-sets-by-name [technology-set technology-name-list]
Sets layout style of the infrastructure-graph.
to layout
Take a nice layout for the nodes.
to layout
Reports the two limits given for a specific dimension, either for short- or long-time, depending on the callers breed!
to-report limits [dimension time]
Calculates y-value of a point P3 on a straight line, given by two (different!)
to-report linear-function [x1 y1 x2 y2 x]
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]
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 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]
Run run-profiler for 2 ticks
to my-profiler