public interface DataProvider extends AutoCloseable
WaveData| Modifier and Type | Field and Description |
|---|---|
static int |
LOGIN_CANCEL |
static int |
LOGIN_ERROR |
static int |
LOGIN_OK |
| 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_frame,
String in_times,
float start_time,
float end_time)
GetFrameData is called by jScope to retrieve and display a frame sequence.
|
long[] |
getShots(String inShots,
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 frame,
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).
|
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 shot)
Method Update is called by jScope to notify the experiment name and the shot
number.
|
static final int LOGIN_OK
static final int LOGIN_ERROR
static final int LOGIN_CANCEL
void addConnectionListener(ConnectionListener l)
l - The ConnectionListener which has to be notified by means of method
processConnectionEvent(ConnenctionEvent)ConnectionListener,
ConnectionEventvoid addUpdateEventListener(UpdateEventListener l, String event) throws IOException
l - The passed instance of UpdateEventListener.event - The name of the event for which the UpdateEventListener is
registering.IOExceptionUpdateEventListener,
UpdateEventvoid close()
close in interface AutoCloseableString getError()
double getFloat(String in, int row, int col, int index) throws IOException
in - The specification of the value.IOExceptionFrameData getFrameData(String in_frame, String in_times, float start_time, float end_time) throws IOException
in_frame - The frame sequence specification as defined in the frames
field of the setup data popup dialogstart_time - Initial considered time for the frame sequence.end_time - Final considered time for the frame sequence.in_times - The definition of the time specification for the frame list
as defined in the times field of the setup data popup
dialog.IOExceptionFrameDatalong[] getShots(String inShots, String experiment) throws IOException
inShots - The shot(s) specification as typed in the "Shot" field of
jScope panelIOExceptionString getString(String in, int row, int col, int index) throws IOException
in - The specification of the label or title.IOExceptionWaveData getWaveData(String in, int row, int col, int index)
in - 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 panelWaveDataWaveData getWaveData(String in_y, String in_x, int row, int col, int index)
in_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 panelWaveDataint inquireCredentials(JFrame frame, DataServerItem server_item)
frame - The container Frame.boolean isBusy()
void removeConnectionListener(ConnectionListener l)
l - The previously registered ConnectionListener.ConnectionListenervoid removeUpdateEventListener(UpdateEventListener l, String event) throws IOException
l - The instance of UpdateEventListener previously registered.event - The event to which the listener was previously registered.IOExceptionUpdateEventListenervoid setArgument(String arg) throws IOException
arg - The argument passed to the DataProvider implementation.IOExceptionvoid setEnvironment(String exp) throws IOException
exp - The variable definition expressed as name value pair.IOExceptionboolean supportsTunneling()
void update(String exp, long shot)
exp - The experiment names - The shot number.Copyright © 2022. All rights reserved.