Package mgui.interfaces.io
Class DataBridgeNamedXY<T extends MguiNumber>
java.lang.Object
mgui.interfaces.io.DataBridge<T>
mgui.interfaces.io.DataBridgeXY<T>
mgui.interfaces.io.DataBridgeNamedXY<T>
- All Implemented Interfaces:
DataInputStream<T>,DataInputStreamNamedXY<T>,DataInputStreamXY<T>,DataOutputStream<T>,DataOutputStreamNamedXY<T>,DataOutputStreamXY<T>,DataSourceListener
public class DataBridgeNamedXY<T extends MguiNumber> extends DataBridgeXY<T> implements DataInputStreamNamedXY<T>, DataOutputStreamNamedXY<T>
-
Field Summary
Fields inherited from class mgui.interfaces.io.DataBridgeXY
x, yFields inherited from class mgui.interfaces.io.DataBridge
closed, inputListeners -
Constructor Summary
Constructors Constructor Description DataBridgeNamedXY(int size, java.util.List<java.lang.String> variables)DataBridgeNamedXY(int size, T initial_value, java.util.List<java.lang.String> variables) -
Method Summary
Modifier and Type Method Description voidaddChannel(int i, java.lang.String name)Adds a Y channel namedchannel.java.util.List<java.lang.String>getVariableNames()Returns a list of the channels in this stream.NameMapgetVariables()java.util.List<T>getYData(java.lang.String name)Returns the Y data for the channel namedchannel, as a list of typeT.voidremoveChannel(java.lang.String name)Removes the channel namedchannel.voidsetVariables(NameMap vars)voidsetYData(java.lang.String name, java.util.List<T> data)Sets the Y data for the channel namedchannel.Methods inherited from class mgui.interfaces.io.DataBridgeXY
dataSourceEmission, dataSourceReset, getChannelCount, getData, getDataAsBytes, getXData, getYData, getYData, setData, setDataAsBytes, setXData, setYData, setYDataMethods inherited from class mgui.interfaces.io.DataBridge
addInputStreamListener, close, fireListeners, removeInputStreamListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mgui.interfaces.io.DataInputStream
addInputStreamListener, close, getData, getDataAsBytes, removeInputStreamListenerMethods inherited from interface mgui.interfaces.io.DataInputStreamXY
getChannelCount, getXData, getYData, getYDataMethods inherited from interface mgui.interfaces.io.DataOutputStream
close, setData, setDataAsBytesMethods inherited from interface mgui.interfaces.io.DataOutputStreamXY
getChannelCount, setXData, setYData, setYDataMethods inherited from interface mgui.interfaces.io.DataSourceListener
dataSourceEmission, dataSourceReset
-
Field Details
-
variables
-
-
Constructor Details
-
DataBridgeNamedXY
public DataBridgeNamedXY(int size, java.util.List<java.lang.String> variables) -
DataBridgeNamedXY
-
-
Method Details
-
setVariables
-
addChannel
public void addChannel(int i, java.lang.String name)Description copied from interface:DataOutputStreamNamedXYAdds a Y channel namedchannel.- Specified by:
addChannelin interfaceDataOutputStreamNamedXY<T extends MguiNumber>
-
removeChannel
public void removeChannel(java.lang.String name)Description copied from interface:DataOutputStreamNamedXYRemoves the channel namedchannel.- Specified by:
removeChannelin interfaceDataOutputStreamNamedXY<T extends MguiNumber>
-
getVariables
-
setYData
Description copied from interface:DataOutputStreamNamedXYSets the Y data for the channel namedchannel.- Specified by:
setYDatain interfaceDataOutputStreamNamedXY<T extends MguiNumber>- Throws:
java.io.IOException
-
getYData
Description copied from interface:DataInputStreamNamedXYReturns the Y data for the channel namedchannel, as a list of typeT.- Specified by:
getYDatain interfaceDataInputStreamNamedXY<T extends MguiNumber>- Returns:
- Throws:
java.io.IOException
-
getVariableNames
public java.util.List<java.lang.String> getVariableNames()Description copied from interface:DataInputStreamNamedXYReturns a list of the channels in this stream. The list's indices correspond to the channel index.- Specified by:
getVariableNamesin interfaceDataInputStreamNamedXY<T extends MguiNumber>- Specified by:
getVariableNamesin interfaceDataOutputStreamNamedXY<T extends MguiNumber>- Returns:
-