Package mgui.interfaces.io
Interface InterfaceDataSource<T extends MguiNumber>
- Type Parameters:
T-
- All Known Subinterfaces:
InterfaceDataSourceTimeSeries<T>,InterfaceDataSourceXY<T>
- All Known Implementing Classes:
AbstractEnvironmentDataSource,MatrixPlotDataSource,PlotTimeSeriesDataSource,PlotXYDataSource,SimpleEnvironmentInputDataSource,SimpleEnvironmentObservableDataSource,VariablePlotTimeSeriesDataSource,VariablePlotXYDataSource,VolumeFileDataSource
public interface InterfaceDataSource<T extends MguiNumber>
Represents a source of data; i.e., an entity which emits discretized (presampled) signals.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description voidaddDataSourceListener(DataSourceListener l)java.util.List<T>getSourceSignal()Returns a list of typeT, representing a signal emission.byte[]getSourceSignalAsBytes()Returns an array of bytes, representing a signal emission.voidremoveDataSourceListener(DataSourceListener l)
-
Method Details
-
getSourceSignal
java.util.List<T> getSourceSignal()Returns a list of typeT, representing a signal emission.- Returns:
-
getSourceSignalAsBytes
byte[] getSourceSignalAsBytes()Returns an array of bytes, representing a signal emission.- Returns:
-
addDataSourceListener
-
removeDataSourceListener
-