Package mgui.interfaces.io
Interface DataInputStreamXY<T extends MguiNumber>
- Type Parameters:
T
-
- All Superinterfaces:
DataInputStream<T>
- All Known Subinterfaces:
DataInputStreamNamedXY<T>
- All Known Implementing Classes:
DataBridgeNamedXY
,DataBridgeXY
public interface DataInputStreamXY<T extends MguiNumber> extends DataInputStream<T>
Represents an XY input stream with one X and multiple Y channels.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description int
getChannelCount()
Returns the number of Y channels in this stream.java.util.List<T>
getXData()
Returns the X data as a value of typeT
.java.util.List<java.util.List<T>>
getYData()
Returns the Y data for all channels, as a list of typeT
.java.util.List<T>
getYData(int i)
Returns the Y data for the i'th channel, as typeT
.Methods inherited from interface mgui.interfaces.io.DataInputStream
addInputStreamListener, close, getData, getDataAsBytes, removeInputStreamListener
-
Method Details
-
getXData
Returns the X data as a value of typeT
.- Returns:
- Throws:
java.io.IOException
-
getYData
Returns the Y data for all channels, as a list of typeT
.- Parameters:
i
-- Returns:
- Throws:
java.io.IOException
-
getYData
Returns the Y data for the i'th channel, as typeT
.- Parameters:
i
-- Returns:
- Throws:
java.io.IOException
-
getChannelCount
int getChannelCount()Returns the number of Y channels in this stream.- Returns:
-