|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.transport.AcopTransport
public class AcopTransport
Nested Class Summary | |
---|---|
class |
AcopTransport.AcopCallback
|
Field Summary | |
---|---|
protected java.lang.String |
acopConfig
|
protected java.util.Vector |
acopLinkTable
|
protected AcopTransportCallback |
atc
|
protected AcopTransportFactory |
atf
|
protected java.util.Date |
dateStamp
|
protected int |
GroupIndex
|
boolean |
isGrouped
|
protected int |
lastUpdatedDataSize
|
protected int |
lastUpdatedDataSizeEx
|
protected int |
lastUpdatedLink
|
protected javax.swing.event.EventListenerList |
listeners
|
protected int |
ReceiveQueueDepth
|
protected java.lang.String |
Status
|
protected double |
TimeStamp
|
Fields inherited from interface de.desy.acop.displayers.tools.ConnectionParametersReceiver |
---|
CONNECTION_PARAMETERS_PROPERTY |
Constructor Summary | |
---|---|
AcopTransport()
|
Method Summary | |
---|---|
int |
acquireDisplayProperties()
|
int |
acquireDisplayProperties(Acop a,
java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty)
|
int |
acquireDisplayProperties(java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty)
|
void |
addAcopTransportListener(AcopTransportListener l)
|
int |
addAcopTransportProtocol(AcopTransportPlug plug)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener which listenes to all properties. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this receiver. |
int |
attachLink(java.lang.Object Data)
|
int |
attachLink(java.lang.Object Data,
int ArraySize)
|
int |
attachLink(java.lang.Object Data,
int ArraySize,
int identifier)
|
int |
attachLink(java.lang.Object Data,
int ArraySize,
java.lang.Object DataEx,
int ArraySizeEx)
|
int |
attachLink(java.lang.Object Data,
int ArraySize,
java.lang.Object DataEx,
int ArraySizeEx,
int identifier)
|
int |
attachLink(java.lang.Object Data,
java.lang.Object DataEx)
|
int |
closeLink(int hLink)
|
int |
execute(java.lang.Object Data)
|
int |
execute(java.lang.Object Data,
int ArraySize)
|
int |
execute(java.lang.Object Data,
int ArraySize,
java.lang.Object DataEx,
int ArraySizeEx)
|
int |
execute(java.lang.Object Data,
java.lang.Object DataEx)
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
AccessMode |
getAccessMode()
|
java.lang.String |
getAccessProtocol()
|
java.lang.String |
getAccessRate()
|
java.lang.String |
getAcopConfig()
|
java.util.Vector |
getAcopLinkTable()
|
int |
getAcopLinkTableId(AcopTransportRequest atr)
|
int |
getAcopLinkTableId(int hLink)
|
int |
getAcopLinkTableIdFromCallbackId(int hLinkCallback)
|
protected AcopTransportRequest |
getAcopTransportRequest(AcopTransportRequest atr)
|
protected AcopTransportRequest |
getAcopTransportRequest(int hLink)
|
java.lang.String |
getConnectionInformation(int hLink)
|
java.lang.String |
getConnectionInformation(java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty)
|
ConnectionParameters |
getConnectionParameters()
Returns the connectionParameters. |
int |
getData(java.lang.Object Data,
java.lang.Object DataEx,
int hLink)
|
int |
getDataSize()
|
int |
getDataSize(int identifier)
|
int |
getDataSize(int[] DataSize,
int[] DataSizeEx,
int hLink)
|
int |
getDataSizeEx()
|
int |
getDataSizeEx(int identifier)
|
double |
getDataTimeStamp()
|
double |
getDataTimeStamp(int hLink)
|
java.util.Date |
getDateStamp()
|
java.util.Date |
getDateStamp(int hLink)
|
java.lang.String |
getDeviceContext()
|
java.lang.String[] |
getDeviceContexts()
|
java.lang.String |
getDeviceGroup()
|
java.lang.String[] |
getDeviceGroups()
|
java.lang.String[] |
getDeviceGroups(java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty)
|
java.lang.String |
getDeviceName()
|
java.lang.String[] |
getDeviceNames()
|
java.lang.String[] |
getDeviceNames(java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty)
|
java.lang.String[] |
getDeviceProperties()
|
java.lang.String[] |
getDeviceProperties(java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty)
|
java.lang.String |
getDeviceProperty()
|
protected int |
getFreeIdentifier()
|
boolean |
getGrouped()
|
int |
getGroupIndex()
|
int |
getObjectSize(java.lang.Object data)
|
java.lang.String |
getPropertySize()
|
int |
getReceiveQueueDepth()
|
java.lang.String |
getStatus()
|
java.lang.String |
getStatus(int hLink)
|
int |
getStatusCode(int hLink)
|
java.util.Date |
getTimeStamp()
|
double[] |
getXAxis(java.lang.Object data)
|
java.lang.String[] |
getXAxisChannelNames(java.lang.Object data)
|
double[] |
getYAxis(java.lang.Object data)
|
void |
halt()
|
int |
openLink(java.lang.Object Data)
|
int |
openLink(java.lang.Object Data,
int ArraySize)
|
int |
openLink(java.lang.Object Data,
int ArraySize,
int identifier)
|
int |
openLink(java.lang.Object Data,
int ArraySize,
java.lang.Object DataEx,
int ArraySizeEx)
|
int |
openLink(java.lang.Object Data,
int ArraySize,
java.lang.Object DataEx,
int ArraySizeEx,
int identifier)
|
int |
openLink(java.lang.Object Data,
java.lang.Object DataEx)
|
void |
removeAcopTransportListener(AcopTransportListener l)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener associated with the specified property. |
void |
setAccessMode(AccessMode am)
|
void |
setAccessProtocol(java.lang.String accessProtocol)
|
void |
setAccessRate(java.lang.String accessRate)
|
void |
setAcopConfig(java.lang.String AcopConfig)
|
void |
setConnectionParameters(ConnectionParameters connectionParameters)
Sets new connectionParameters. |
void |
setDeviceContext(java.lang.String deviceContext)
|
void |
setDeviceGroup(java.lang.String deviceGroup)
|
void |
setDeviceName(java.lang.String deviceName)
|
void |
setDeviceProperty(java.lang.String deviceProperty)
|
void |
setGrouped(boolean Grouped)
|
int |
setLinkIdentifier(int currentLinkIdentifier,
int linkIdentifier)
|
void |
setPropertySize(java.lang.String propertySize)
|
void |
setReceiveQueueDepth(int ReceiveQueueDepth)
|
void |
setTimeStamp(java.util.Date TimeStamp)
|
void |
setTimeStamp(double TimeStamp)
|
void |
setTimeStamp(int TimeStamp)
|
java.lang.String |
toTimeString(java.util.Date TimeStamp)
|
java.lang.String |
toTimeString(double TimeStamp)
|
java.lang.String |
toTimeString(int TimeStamp)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String acopConfig
protected java.lang.String Status
public boolean isGrouped
protected int GroupIndex
protected int ReceiveQueueDepth
protected double TimeStamp
protected java.util.Date dateStamp
protected AcopTransportFactory atf
protected final java.util.Vector acopLinkTable
protected int lastUpdatedLink
protected int lastUpdatedDataSize
protected int lastUpdatedDataSizeEx
protected javax.swing.event.EventListenerList listeners
protected AcopTransportCallback atc
Constructor Detail |
---|
public AcopTransport()
Method Detail |
---|
public java.lang.String getConnectionInformation(java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty)
public java.lang.String getConnectionInformation(int hLink)
public int getReceiveQueueDepth()
public double getDataTimeStamp()
public double getDataTimeStamp(int hLink)
public java.util.Date getDateStamp()
public java.util.Date getDateStamp(int hLink)
public java.util.Vector getAcopLinkTable()
public int addAcopTransportProtocol(AcopTransportPlug plug)
protected AcopTransportRequest getAcopTransportRequest(AcopTransportRequest atr)
protected AcopTransportRequest getAcopTransportRequest(int hLink)
public int getAcopLinkTableId(AcopTransportRequest atr)
public int getAcopLinkTableId(int hLink)
public int getAcopLinkTableIdFromCallbackId(int hLinkCallback)
protected int getFreeIdentifier()
public void halt()
public int execute(java.lang.Object Data, int ArraySize, java.lang.Object DataEx, int ArraySizeEx)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.DataEx
- is the extended data object and refers to the data object to which
holds the input data to be sent to a server. Pass 'null' if no
return data is desired.ArraySizeEx
- is the data array size associated with the DataEx object. This may
be smaller than the actual size of the DataEx object, but NOT
bigger.
public int execute(java.lang.Object Data, java.lang.Object DataEx)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.DataEx
- is the extended data object and refers to the data object to which
holds the input data to be sent to a server. Pass 'null' if no
return data is desired.
public int execute(java.lang.Object Data)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.
public int execute(java.lang.Object Data, int ArraySize)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.
public int attachLink(java.lang.Object Data, int ArraySize, java.lang.Object DataEx, int ArraySizeEx, int identifier)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.DataEx
- is the extended data object and refers to the data object to which
holds the input data to be sent to a server. Pass 'null' if no
return data is desired.ArraySizeEx
- is the data array size associated with the DataEx object. This may
be smaller than the actual size of the DataEx object, but NOT
bigger.identifier
- is a user-specified integer identifier which is used to identify
the link to the calling application. Following a receive() event,
the application can call getLinkId() to retrieve this number.
Other forms of AttachLink() will use the returned link handle as
and identifier.
public int attachLink(java.lang.Object Data, int ArraySize, java.lang.Object DataEx, int ArraySizeEx)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.DataEx
- is the extended data object and refers to the data object to which
holds the input data to be sent to a server. Pass 'null' if no
return data is desired.ArraySizeEx
- is the data array size associated with the DataEx object. This may
be smaller than the actual size of the DataEx object, but NOT
bigger.
public int attachLink(java.lang.Object Data, java.lang.Object DataEx)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.DataEx
- is the extended data object and refers to the data object to which
holds the input data to be sent to a server. Pass 'null' if no
return data is desired.
public int attachLink(java.lang.Object Data)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.
public int attachLink(java.lang.Object Data, int ArraySize)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.
public int attachLink(java.lang.Object Data, int ArraySize, int identifier)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.identifier
- is a user-specified integer identifier which is used to identify
the link to the calling application. Following a receive() event,
the application can call getLinkId() to retrieve this number.
Other forms of AttachLink() will use the returned link handle as
and identifier.
public int openLink(java.lang.Object Data, int ArraySize, java.lang.Object DataEx, int ArraySizeEx, int identifier)
currentLinkIdentifier
- is the current link identifier of the data link to which the new
link identifier is to be assigned. If not originally set by the
initial call, it is the value returned by the initial call to
AttachLink() or OpenLink().linkIdentifier
- is the desired link identifier to be associated with the data link
defined by linkHandle.
public int openLink(java.lang.Object Data, int ArraySize, java.lang.Object DataEx, int ArraySizeEx)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.DataEx
- is the extended data object and refers to the data object to which
holds the input data to be sent to a server. Pass 'null' if no
return data is desired.ArraySizeEx
- is the data array size associated with the DataEx object. This may
be smaller than the actual size of the DataEx object, but NOT
bigger.
public int openLink(java.lang.Object Data, java.lang.Object DataEx)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.DataEx
- is the extended data object and refers to the data object to which
holds the input data to be sent to a server. Pass 'null' if no
return data is desired.
public int openLink(java.lang.Object Data)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.
public int openLink(java.lang.Object Data, int ArraySize)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.
public int openLink(java.lang.Object Data, int ArraySize, int identifier)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. Pass 'null' if no return
data is desired.ArraySize
- is the data array size associated with the Data object. This may
be smaller than the actual size of the Data object, but NOT
bigger.identifier
- is a user-specified integer identifier which is used to identify
the link to the calling application. Following a receive() event,
the application can call getLinkId() to retrieve this number.
Other forms of AttachLink() will use the returned link handle as
and identifier.
public java.lang.String getStatus(int hLink)
public int getStatusCode(int hLink)
public int closeLink(int hLink)
identifier
- is the link handle of the acop data link which is to
be terminated. If identifier == -1 then all associated links will
be terminated.
public int getData(java.lang.Object Data, java.lang.Object DataEx, int hLink)
Data
- is the primary data object and refers to the data object to hold
the output data returned from a server. This must be a reference
to the same type of object passed in the original call to
AttachLink() or OpenLink().DataEx
- is the extended data object and refers to the data object to which
holds the input data to be sent to a server. This must be a
reference to the same type of object passed in the original call
to AttachLink() or OpenLink().identifier
- is the link handle of the data link which is to
be terminated. If identifier == -1 then all associated links will
be terminated.
public int acquireDisplayProperties(Acop a, java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty)
public double[] getXAxis(java.lang.Object data)
public double[] getYAxis(java.lang.Object data)
public java.lang.String[] getXAxisChannelNames(java.lang.Object data)
public int getObjectSize(java.lang.Object data)
public int getDataSize(int[] DataSize, int[] DataSizeEx, int hLink)
DataSize
- is a reference to the current data size of primary Data object
attached to the data link. As this is passed by reference, this
must be an array of 1 integer. A 'null' can be passed if you are
not interested in this value.DataSizeEx
- is a reference to the current data size of extended Data object
attached to the data link. As this is passed by reference, this
must be an array of 1 integer. A 'null' can be passed if you are
not interested in this value.identifier
- is the link handle of the data link for which
the current data sizes are desired.
public java.lang.String[] getDeviceContexts()
public java.lang.String[] getDeviceGroups(java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty)
deviceContext
- is the device context for which the device groups are desireddeviceGroup
- is the device group (sub-string + wildcards) for which the device
groups are desired. 'null' is equivalent to "*".deviceName
- is the device name for which the device groups are desired. This
parameter should typically passed as 'null'.deviceProperty
- is the device property for which the device groups are desired.
This parameter should typically passed as 'null'.
public java.lang.String[] getDeviceGroups()
public java.lang.String[] getDeviceNames(java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty)
deviceContext
- is the device context for which the device names are desireddeviceGroup
- is the device group for which the device names are desired.deviceName
- is the device name (sub-string + wildcards) for which the device
names are desired. 'null' is equivalent to "*".deviceProperty
- is the device property for which the device names are desired.
public java.lang.String[] getDeviceNames()
public java.lang.String toTimeString(int TimeStamp)
public java.lang.String toTimeString(double TimeStamp)
public java.lang.String toTimeString(java.util.Date TimeStamp)
public void setReceiveQueueDepth(int ReceiveQueueDepth)
public void setTimeStamp(int TimeStamp)
public void setTimeStamp(java.util.Date TimeStamp)
public void setTimeStamp(double TimeStamp)
public java.lang.String getStatus()
public int getGroupIndex()
public void setGrouped(boolean Grouped)
isGrouped
- determines whether all data links associated with this
acop are to fire one single event (isGrouped = true)
when all link states have changed or not (isGrouped = false)public void setDeviceContext(java.lang.String deviceContext)
public java.lang.String getDeviceContext()
public void setDeviceGroup(java.lang.String deviceGroup)
public java.lang.String getDeviceGroup()
public void setDeviceName(java.lang.String deviceName)
public java.lang.String getDeviceName()
public void setDeviceProperty(java.lang.String deviceProperty)
public java.lang.String getDeviceProperty()
public void setAccessMode(AccessMode am)
public AccessMode getAccessMode()
public void setAccessProtocol(java.lang.String accessProtocol)
public java.lang.String getAccessProtocol()
public void setAccessRate(java.lang.String accessRate)
public java.lang.String getAccessRate()
public void setPropertySize(java.lang.String propertySize)
public java.lang.String getPropertySize()
public void setAcopConfig(java.lang.String AcopConfig)
public java.lang.String getAcopConfig()
public int setLinkIdentifier(int currentLinkIdentifier, int linkIdentifier)
public int getDataSize(int identifier)
identifier
- is the link handle of the data link for which
the current data sizes are desired.
public int getDataSize()
public int getDataSizeEx(int identifier)
identifier
- is the link handle of the data link for which
the current data sizes are desired.
public int getDataSizeEx()
public java.util.Date getTimeStamp()
public boolean getGrouped()
public java.lang.String[] getDeviceProperties()
public java.lang.String[] getDeviceProperties(java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty)
deviceContext
- is the device context for which the device properties are desireddeviceGroup
- is the device group for which the device properties are desired.deviceName
- is the device name for which the device properties are desired.deviceProperty
- is the device property (sub-string + wildcards) for which the
device properties are desired. 'null' is equivalent to "*".
public int acquireDisplayProperties(java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty)
deviceContext
- is the device context for which the device properties are desireddeviceGroup
- is the device group for which the device properties are desired.deviceName
- is the device name for which the device properties are desired.deviceProperty
- is the device property (sub-string + wildcards) for which the
device properties are desired. 'null' is equivalent to "*".
public int acquireDisplayProperties()
public void addAcopTransportListener(AcopTransportListener l)
public void removeAcopTransportListener(AcopTransportListener l)
public ConnectionParameters getConnectionParameters()
getConnectionParameters
in interface ConnectionParametersReceiver
public void setConnectionParameters(ConnectionParameters connectionParameters)
setConnectionParameters
in interface ConnectionParametersReceiver
connectionParameters
- The connectionParameters to set.protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
ConnectionParametersReceiver
addPropertyChangeListener
in interface ConnectionParametersReceiver
listener
- the listenerpublic void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
ConnectionParametersReceiver
propertyName
was
changed.
addPropertyChangeListener
in interface ConnectionParametersReceiver
propertyName
- the name of the property which the listener listenslistener
- the listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
ConnectionParametersReceiver
removePropertyChangeListener
in interface ConnectionParametersReceiver
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
ConnectionParametersReceiver
removePropertyChangeListener
in interface ConnectionParametersReceiver
propertyName
- the name of the property which the listener listenslistener
- the listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |