public class PlotServer extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 toIOException
- Cannot listen to portpublic int numChannels()
public void plot(double[] values) throws IOException
values
- The y values to plotIOException
- if the data cannot be writtenpublic void plot(double value) throws IOException
value
- The y value to plotIOException
- if the data cannot be written