swarm.analysis
Interface ActiveGraph
- All Known Implementing Classes:
- ActiveGraphImpl
- public abstract interface ActiveGraph
- extends MessageProbeS, MessageProbe
Provides a continuous data feed between Swarm and the GUI..
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.
Methods inherited from interface swarm.objectbase.MessageProbe |
doubleDynamicCallOn,
getArgCount,
getArgName,
getHideResult,
getProbedMessage,
isArgumentId,
isResultId,
longDynamicCallOn,
objectDynamicCallOn,
setArg$ToString,
stringDynamicCallOn |
Methods inherited from interface swarm.defobj.Drop |
drop |
Methods inherited from interface swarm.defobj.DefinedObject |
compare,
describe,
describeID,
getDisplayName,
getTypeName,
getZone,
perform,
perform$with,
perform$with$with,
perform$with$with$with,
respondsTo,
setDisplayName,
xfprint,
xfprintid,
xprint,
xprintid |
setElement
public Object setElement(Object ge)
- Sets the graph element used to draw on.
setDataFeed
public Object setDataFeed(Object d)
- Sets the object that will be probed for data.
step
public Object 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.