Documentation Set for Swarm 2.2
Prev | Reference IX. Analysis Library | Next

# ActiveGraph

## Name

ActiveGraph -- Provides a continuous data feed between Swarm and the GUI.

## Description

An active graph object is the glue between a MessageProbe (for reading data) and a Graph GraphElement. ActiveGraphs are created and told where to get data from and send it to, and then are scheduled to actually do graphic functions. This class is used by EZGraph, and we expect to see less direct usage of it by end-users as more analysis tools (such as EZGraph) internalize its functionality.

## Protocols adopted by ActiveGraph

MessageProbe CREATABLE

## Methods

### Phase: Creating

- - setDataFeed: d
  Sets the object that will be probed for data.

- - setElement: ge
  Sets the graph element used to draw on.

### Phase: Using

- - (double)getCurrentValue
  Returns the value of the graph element..

- - (void)step
  Fires the probe, reads the value from the object, and draws it on the graph element. The X value is implicitly the current simulation time. Y is the value read.

Prev | Home | Next
Analysis Library | Up | ActiveOutFile