Package mgui.interfaces.io
Interface InterfaceDataSourceXY<T extends MguiNumber>
- Type Parameters:
T
-
- All Superinterfaces:
InterfaceDataSource<T>
- All Known Subinterfaces:
InterfaceDataSourceTimeSeries<T>
- All Known Implementing Classes:
AbstractEnvironmentDataSource
,PlotTimeSeriesDataSource
,PlotXYDataSource
,SimpleEnvironmentInputDataSource
,SimpleEnvironmentObservableDataSource
,VariablePlotTimeSeriesDataSource
,VariablePlotXYDataSource
public interface InterfaceDataSourceXY<T extends MguiNumber> extends InterfaceDataSource<T>
XY data source with unique X-Y pairs. Use if X data are not constant across Y data (i.e., non-time-series,
scatterplots, etc.)
- 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 source.java.util.List<T>
getSourceSignalX(int i)
Returns the X data corresponding to this signal's i'th channel.java.util.List<XYData<T>>
getSourceSignalXY(int i)
Returns the X-Y data corresponding to this signal's i'th channel.java.util.List<T>
getSourceSignalY(int i)
Returns the Y data corresponding to this signal's i'th channel.Methods inherited from interface mgui.interfaces.io.InterfaceDataSource
addDataSourceListener, getSourceSignal, getSourceSignalAsBytes, removeDataSourceListener
-
Method Details
-
getSourceSignalXY
Returns the X-Y data corresponding to this signal's i'th channel.- Parameters:
i
-- Returns:
-
getSourceSignalX
Returns the X data corresponding to this signal's i'th channel.- Parameters:
i
-- Returns:
-
getSourceSignalY
Returns the Y data corresponding to this signal's i'th channel.- Parameters:
i
-- Returns:
-
getChannelCount
int getChannelCount()Returns the number of Y channels in this source.- Returns:
-