public class TwuDataProvider extends Object implements DataProvider
LOGIN_CANCEL, LOGIN_ERROR, LOGIN_OK| Constructor and Description |
|---|
TwuDataProvider() |
TwuDataProvider(String user_agent) |
| 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.
|
void |
dispatchConnectionEvent(ConnectionEvent e) |
mds.provider.TwuDataProvider.TwuWaveData |
FindWaveData(String in_y,
String in_x) |
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.
|
String |
getExperiment() |
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.
|
float[] |
GetFloatArray(String in) |
float[] |
GetFloatArray(String in,
boolean is_time) |
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.
|
WaveData |
GetResampledWaveData(String in,
double start,
double end,
int n_points) |
WaveData |
GetResampledWaveData(String in_y,
String in_x,
double start,
double end,
int n_points) |
long[] |
getShots(String in,
String experiment)
Evaluate the passed string to provide an array of shot numbers.
|
String |
GetSignalProperty(String prop,
String in) |
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).
|
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.
|
protected void |
resetErrorstring(String newErrStr) |
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 s)
Defines the environment for data retrieval.
|
void |
setErrorstring(String newErrStr) |
boolean |
supportsTunneling()
Enable tunneling activation.
|
void |
update(String experiment,
long shot)
Method Update is called by jScope to notify the experiment name and the shot
number.
|
public TwuDataProvider()
public TwuDataProvider(String user_agent)
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 void dispatchConnectionEvent(ConnectionEvent e)
public String getError()
DataProvidergetError in interface DataProviderpublic String getExperiment()
public double getFloat(String in, int row, int col, int index)
DataProvidergetFloat in interface DataProviderin - The specification of the value.public float[] GetFloatArray(String in)
public float[] GetFloatArray(String in, boolean is_time) throws IOException
IOExceptionpublic 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 WaveData GetResampledWaveData(String in, double start, double end, int n_points)
public WaveData GetResampledWaveData(String in_y, String in_x, double start, double end, int n_points)
public long[] getShots(String in, String experiment)
DataProvidergetShots in interface DataProviderin - The shot(s) specification as typed in the "Shot" field of
jScope panelpublic String GetSignalProperty(String prop, String in) throws IOException
IOExceptionpublic 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.UpdateEventListenerprotected void resetErrorstring(String newErrStr)
public void setArgument(String arg)
DataProvidersetArgument in interface DataProviderarg - The argument passed to the DataProvider implementation.public void setEnvironment(String s)
DataProvidersetEnvironment in interface DataProviders - The variable definition expressed as name value pair.public void setErrorstring(String newErrStr)
public boolean supportsTunneling()
DataProvidersupportsTunneling in interface DataProviderpublic void update(String experiment, long shot)
DataProviderupdate in interface DataProviderexperiment - The experiment nameCopyright © 2023. All rights reserved.