libs/helpers-visualization-simco.nls

Code for visual representation of the macro-layer usable within simco, only.

Summary
libs/helpers-visualization-simco.nlsCode for visual representation of the macro-layer usable within simco, only.
update-agentsUpdates the visualization of agents (shows agent with id=1 if followMe? 
update-edges-visualizationUpdates the visualization of edges: set color depending on degree (payoffs/limit)
visualize-edge-typeSets the color of the calling edge depending on the hash-value of the edge-name.
visualize-edge-stateSet thickness/color, depending on my-degree, resulting colors range from blue over green to red for degree -1 0 1
get-colorCalculates color for degree
update-nodes-visualizationUpdates the nodes’ visualization, based on their type or state.
visualize-node-typeSets the color of the calling node depending on the hash-value of the node-name.
visualize-node-stateIf node is alive: Sets node-color to yellow if any turtle is lcoated on the node, gray otherwise.
inspect-meHelps to inspect single objects for debugging

update-agents

to update-agents-visualization

Updates the visualization of agents (shows agent with id=1 if followMe? is true, otherwise hides it)

update-edges-visualization

to update-edges-visualization

Updates the visualization of edges: set color depending on degree (payoffs/limit)

visualize-edge-type

to visualize-edge-type

Sets the color of the calling edge depending on the hash-value of the edge-name.  Thus, edges with different names are visualized with different colors.

visualize-edge-state

to visualize-edge-state [my-degree]

Set thickness/color, depending on my-degree, resulting colors range from blue over green to red for degree -1 0 1

Parameters

my-degreedegree to use for visualization

get-color

to-report get-color [my-degree]

Calculates color for degree

Parameters

my-degreedegree to use as base for color calculation

update-nodes-visualization

to update-nodes-visualization

Updates the nodes’ visualization, based on their type or state.

visualize-node-type

to visualize-node-type

Sets the color of the calling node depending on the hash-value of the node-name.  Thus, nodes with different names are visualized using different colors.

visualize-node-state

to visualize-node-state

If node is alive: Sets node-color to yellow if any turtle is lcoated on the node, gray otherwise.  If node is about to die: Sets node-color to red.

inspect-me

to inspect-me

Helps to inspect single objects for debugging

to update-agents-visualization
Updates the visualization of agents (shows agent with id=1 if followMe? 
to update-edges-visualization
Updates the visualization of edges: set color depending on degree (payoffs/limit)
to visualize-edge-type
Sets the color of the calling edge depending on the hash-value of the edge-name.
to visualize-edge-state [my-degree]
Set thickness/color, depending on my-degree, resulting colors range from blue over green to red for degree -1 0 1
to-report get-color [my-degree]
Calculates color for degree
to update-nodes-visualization
Updates the nodes’ visualization, based on their type or state.
to visualize-node-type
Sets the color of the calling node depending on the hash-value of the node-name.
to visualize-node-state
If node is alive: Sets node-color to yellow if any turtle is lcoated on the node, gray otherwise.
to inspect-me
Helps to inspect single objects for debugging
Close