Calculates the best action for the given possible destinations
to-report calculate-best-action [possible-destinations]
Calculates costs benefits based on an agent’s action; depends on location (node/edge), technology-used, control-factor and technology-dependency
to-report calculate-costs-benefits [my-ie my-technology my-agent]
Calculate degree for value between lower and upper limit
to-report calculate-degree [my-lower-limit my-upper-limit my-value]
Calculates the degree vector of the calling entity
to-report calculate-degree-vector [time]
Calculates edge-delay by considering edge-values, technology-values and (if present) factors influenced by controlling interventions
to-report calculate-edge-delay [my-edge my-technology]
Holds metrics used to calculate probabilities “p” used in SEU-calculation.
to-report calculate-p [my-metric my-dimension my-vector my-parameter]
Calculates p-value for SEU calculation for a goal like money-saving.
to-report calculate-p-costs [my-vector my-dimension my-time-horizon my-factor]
Calculates p-value for SEU calculation for a goal like money-saving.
to-report calculate-p-costs-simple [my-vector my-dimension my-time-horizon my-factor]
calculates p-value based on (given) duration of using an edge.
to-report calculate-p-duration [my-duration upper-border]
Calculates p-value for SEU calculation for a goal like money-saving.
to-report calculate-p-money [my-vector my-dimension my-time-horizon my-factor]
Calculates p-value for SEU calculation for a “hidden” goal, advancing some given technology, independent from situational parameters.
to-report calculate-p-technology-preference [my-technology-name my-technology]
Calculates subjective expected utility for the given action, where action consists of 3 ordered items: node-to-take, edge-to-take, technology-to-use
to-report calculate-utility [my-action]
Changes all list elements execpt the first
to-report change-all-but-first-element [old-list change-list]
Changes agents’ long time limits concerning bank account balance (used to change a scenario easily for testing purposes).
to change-long-time-limit [my-value]
Change technology-available-state of my-technology to my-state, report true if state was changed to a new value
to-report change-technology-state [my-technology my-state]
Alters scenario-values due to input, given by behaviour-space or XML-experiment-definition.
to change-values
Checks possible death of agents due to several reasons: reaching a final node, exceeding limits etc.
to check-agents-death
Handles check of death for all objects that can die: nodes, edges, agents, technologies
to check-death
Checks if an agent has exceeded one of his long-time-limits and should be removed from simulation.
to-report check-death-by-limit
Checks if an agent has reached a final node and should be removed from the simulation
to-report check-death-by-location
Replace every occurence of “e” (Euler’s number) in a list by false (is used to encode “don’t care” in input files of SimCo).
to-report check-dontcare [list-to-check]
Checks, if edges are still alive and thus may be used in choose-action.
to-report check-edge-alive [my-from-node my-to-nodes]
Checks possible death of edges, due to end of lifetime (or death of a node connected to that edge, see check-nodes-death.)
to check-edges-death
Checks if first dimension of given list is set to the given value
to-report check-first-dimension [my-list my-value]
Checks possible death of nodes, due to end of lifetime
to check-nodes-death
Ensures that the int given as input does not exceed the limits of [0,1], because p-values are probabilities and thus restricted by these values.
to-report check-p [my-p]
Procedure to reset short or long time payoffs if short-time or long-time periods are completed.
to check-payoff-reset
Checks possible death of technologies, due to end of lifetime
to check-technologies-death [my-technologies]
Checks, wether the technologie’s factor shall be used when calculating costs-benefits
to-report check-technology-dependencies [my-technology-factor my-technology-dependencies]
Agent takes a decision about the next action to take.
to-report choose-action
Let the user choose a directory.
to choose-directory
Let the user choose a directory.
to choose-directory
Closes the results window.
this.CloseResultsWindow = function()
Helper function to be used in behaviour space, allows to specify experiments with two technology factors to be influenced easily (helping to reduce number of combinatorial options)
to combineMoneyComfort [moneyFactor moneyTechnology comfortFactor comfortTechnology]
Counts agents per agent-type
to-report count-agent-type
Counts number of ticks each technology was used in previous time within the running simulation.
to-report count-technology-usage
Instantiates an edge (fromt the calling node to the sink given, and sets its parameters according to the type given.
to create-edge-of-type [my-edge-sink my-edge-type]
Returns the full path to a file in the masters’ directory
to-report create-master-file-path [file-name]
Creates a node of given type, using a node-type-object to derive the neccessary information.
to create-node-of-type [my-node-type]
Instantiates a new technology object based on the technology-type reffered to via my-technology-type-name
to-report create-technology [my-technology-type-name]
Returns the full path to a file in the types directory
to-report create-type-file-path [file-name]
Reports a list with the same number of elements as the given base list (alternatively the number may be given), each item has the given value.
to-report createList [input value]
The length of deactivateTimeout in thousandths of a second.
this.deactivateTimeoutLength
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()