|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.driver.util.PlotServer
public class PlotServer
The PlotServer is the server side implementation to feed data to all StreamChart clients that try to connect to it.
Constructor Summary | |
---|---|
PlotServer(int numSeries,
String target)
Constructs a PlotServer listening to a particular TCP port and having a buffer for sending certain number of values at a time. |
Method Summary | |
---|---|
int |
numChannels()
Obtains the number of channels currently writing to. |
void |
plot(double value)
Sends a single y value to the graph to plot. |
void |
plot(double[] values)
Sends a number of y values to the graph to plot. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlotServer(int numSeries, String target) throws IOException
numSeries
- The number of data values to send and plottarget
- The port number or file to write to
IOException
- Cannot listen to portMethod Detail |
---|
public int numChannels()
public void plot(double[] values) throws IOException
values
- The y values to plot
IOException
- if the data cannot be writtenpublic void plot(double value) throws IOException
value
- The y value to plot
IOException
- if the data cannot be written
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |