NetViewer: Example

From Nova Documentation
Jump to: navigation, search

Here is an example of using a NetViewer plug-in to visualize nodes in a network topology.

  • Step 1: Creating a NetViewer
A NetViewer called Trial_NetViewer in the model Canvas and Dashboard

The NetViewer plugin can be found in the Plugins ToolBox. Each NetViewer will have two input and one output pins. These pins are NodeColorIn, NodeSizeIn, and NodeColorOut. Each Node appears in the model Dashboard and have colors and sizes based on the values connecting to the Plug-in's input pins.

  • Step 2: Changing Properties
Right-click on the NetViewer in the Dashboard to access its properties

Within the Properties window of the NetViewer we can change the number of rows and columns, row and column size, and Node attributes. If we Vary Node Size then the size of the Nodes within the Dashboard view will be proportional to values connecting to the NodeSizeIn input pin. Similarly, Node colors can vary with NodeColorIn.

  • Step 3: Connecting to a network

Vary nodes.png

Next we will open NetDiffuse from the Model Library to see the use of a NetViewer in action. This network diffusion model gives an example of using and visualizing Nodes in a network with a NetViewer (CNet Viewer). In this model, the Nodes represent continuous temp values with varying levels of connections to one another.

Error creating thumbnail: File missing

Opening up the properties of the CNet NodeNetwork shows that each Node within the network is an instance of the node sublayer. Within the sublayer each Node's temp value is calculated. The temp value is passed to out output pin of the CNet NodeNetwork, which is then used as the value for both the NodeColorIn and NodeSizeIn input pins.

  • Overview

The NetViewer Plug-in allows visualization of a network topology. Individual Nodes can vary by color and/or size to mirror the magnitude of their input values. The networks used can either be a NodeNetwork or a NetWorld. NetDiffuse in the model library is an example of a NodeNetwork. A NetWorld, which contain an AgentVector and a NodeNetwork component, is a more complex way to use a network. NodeNetworks contain Nodes that may change and interact with each other while a NetWorld has Agents (from the AgentVector component) that exist within these Nodes. Agents may change and interact with their dynamic Nodes.