|
SimJava v2.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--eduni.simdiag.GraphEqn
Generates sin/cos graph from equation. The output format is a stream of GraphEventObjects which can be read and displayed by a GraphDiagram. This class may be useful as an example of how to generate a graph from user simulations: see the source code
Constructor Summary | |
GraphEqn()
Creates a graph generator (Sine, Cos) |
Method Summary | |
void |
addGraphListener(GraphListener l)
Adds a graph listener |
void |
forwardGraph(GraphEventObject e)
Forwards a graph event to anyone listening. |
void |
removeGraphListener(GraphListener l)
Removes a graph listener |
void |
run()
Generates the graph |
void |
startRunning()
Called after output has been wired |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphEqn()
Method Detail |
public void startRunning()
public void run()
run
in interface java.lang.Runnable
public void addGraphListener(GraphListener l)
public void removeGraphListener(GraphListener l)
public void forwardGraph(GraphEventObject e)
|
SimJava v2.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |