public class AsciiDataProvider extends Object implements DataProvider
LOGIN_CANCEL, LOGIN_ERROR, LOGIN_OK| Constructor and Description |
|---|
AsciiDataProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(ConnectionListener l)
Method AddConnectionListener is called by jScope after the instantiation of a
DataProvider implementation, in order to be notified of the status of data
transfer.
|
void |
addUpdateEventListener(UpdateEventListener l,
String event)
Method AddUpdateEventListener is called by jScope when asynchronous update on
event is defined.
|
void |
close()
Method Dispose is called by jScope each time a DataProvider is no more used.
|
String |
getError()
If an error is encountered in the evaluation of a signal (GetWaveData or
GetResampledWaveData returning null or generating IOException), jScope calls
ErrorString method to retrieve the description of the error just occurred.
|
double |
getFloat(String in,
int row,
int col,
int index)
Method GetFloat is called by jScope to evaluate x min, x max, y min, y max
when defined in the stup data source popup form.
|
FrameData |
getFrameData(String in_y,
String in_x,
float time_min,
float time_max)
GetFrameData is called by jScope to retrieve and display a frame sequence.
|
long[] |
getShots(String in,
String experiment)
Evaluate the passed string to provide an array of shot numbers.
|
String |
getString(String in,
int row,
int col,
int index)
GetString is called by jScope to evaluate title, X label and Y label.
|
WaveData |
getWaveData(String in,
int row,
int col,
int index)
Method GetWaveData called by jScope when a waveform has to be evaluated and
only the Y axis is defined.
|
WaveData |
getWaveData(String in_y,
String in_x,
int row,
int col,
int index)
Method GetWaveData called by jScope when a waveform has to be evaluated and
both X and Y axis are defined.
|
int |
inquireCredentials(JFrame f,
DataServerItem server_item)
Some DataProvider implemenations may require additional information (e.g.
|
boolean |
isBusy()
Can be used to check if provider is busy (helps scheduling).
|
static void |
main(String[] args) |
void |
removeConnectionListener(ConnectionListener l)
Called by jScope when transfer notification is no more requested.
|
void |
removeUpdateEventListener(UpdateEventListener l,
String event)
Method RemoveUpdateEventListeneris called by jScope when the display of a
waveform panel is no more triggered by an event.
|
void |
setArgument(String arg)
As DataProvider implementations are instantiated by jScope by means of the
Class.newInstance(), no arguments can be passed to the constructor method.
|
void |
setEnvironment(String exp)
Defines the environment for data retrieval.
|
boolean |
supportsTunneling()
Enable tunneling activation.
|
void |
update(String exp,
long s)
Method Update is called by jScope to notify the experiment name and the shot
number.
|
public static void main(String[] args)
public void addConnectionListener(ConnectionListener l)
DataProvideraddConnectionListener in interface DataProviderl - The ConnectionListener which has to be notified by means of method
processConnectionEvent(ConnenctionEvent)ConnectionListener,
ConnectionEventpublic void addUpdateEventListener(UpdateEventListener l, String event)
DataProvideraddUpdateEventListener in interface DataProviderl - The passed instance of UpdateEventListener.event - The name of the event for which the UpdateEventListener is
registering.UpdateEventListener,
UpdateEventpublic void close()
DataProviderclose in interface AutoCloseableclose in interface DataProviderpublic String getError()
DataProvidergetError in interface DataProviderpublic double getFloat(String in, int row, int col, int index)
DataProvidergetFloat in interface DataProviderin - The specification of the value.public FrameData getFrameData(String in_y, String in_x, float time_min, float time_max) throws IOException
DataProvidergetFrameData in interface DataProviderin_y - The frame sequence specification as defined in the frames
field of the setup data popup dialogin_x - The definition of the time specification for the frame list
as defined in the times field of the setup data popup
dialog.time_min - Initial considered time for the frame sequence.time_max - Final considered time for the frame sequence.IOExceptionFrameDatapublic long[] getShots(String in, String experiment) throws IOException
DataProvidergetShots in interface DataProviderin - The shot(s) specification as typed in the "Shot" field of
jScope panelIOExceptionpublic String getString(String in, int row, int col, int index)
DataProvidergetString in interface DataProviderin - The specification of the label or title.public WaveData getWaveData(String in, int row, int col, int index)
DataProvidergetWaveData in interface DataProviderin - The specification of the signal, typed in the Y axis field of
the setup data source popup form, or in the lower right window
of jScope.row - Row number of the corresponding panelcol - Column number of the corresponding panelindex - Index the corresponding panelWaveDatapublic WaveData getWaveData(String in_y, String in_x, int row, int col, int index)
DataProvidergetWaveData in interface DataProviderin_y - Y axis specification as typed in the setup data source popupo
dialog.in_x - X axis specification as typed in the setup data source popupo
dialog.row - Row number of the corresponding panelcol - Column number of the corresponding panelindex - Index the corresponding panelWaveDatapublic int inquireCredentials(JFrame f, DataServerItem server_item)
DataProviderinquireCredentials in interface DataProviderf - The container Frame.public boolean isBusy()
DataProviderisBusy in interface DataProviderpublic void removeConnectionListener(ConnectionListener l)
DataProviderremoveConnectionListener in interface DataProviderl - The previously registered ConnectionListener.ConnectionListenerpublic void removeUpdateEventListener(UpdateEventListener l, String event)
DataProviderremoveUpdateEventListener in interface DataProviderl - The instance of UpdateEventListener previously registered.event - The event to which the listener was previously registered.UpdateEventListenerpublic void setArgument(String arg)
DataProvidersetArgument in interface DataProviderarg - The argument passed to the DataProvider implementation.public void setEnvironment(String exp)
DataProvidersetEnvironment in interface DataProviderexp - The variable definition expressed as name value pair.public boolean supportsTunneling()
DataProvidersupportsTunneling in interface DataProviderpublic void update(String exp, long s)
DataProviderupdate in interface DataProviderexp - The experiment nameCopyright © 2021. All rights reserved.