|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.transport.ConnectionParameters
public class ConnectionParameters
This objecct holds all parameters necessary to initiate ACOP transport connection.
Field Summary | |
---|---|
static int |
ACTUAL_PROPERTY_SIZE
Predefined value for the property size connection parameter, which means that when property will be connected, then actual remote size for property array will be used. |
static int |
AUTO_PROPERTY_SIZE
Predefined value for the property size connection parameter, which means that when property will be connected, size of array will be set according to displayer's capabilities. |
Constructor Summary | |
---|---|
ConnectionParameters()
Creates new instance of ConnectionParameters. |
|
ConnectionParameters(java.lang.String parameters)
Constructs a new ConnectionParameters. |
|
ConnectionParameters(java.lang.String remoteName,
AccessMode accessMode,
int accessRate)
Creates new instance of ConnectionParameters. |
|
ConnectionParameters(java.lang.String remoteName,
AccessMode accessMode,
int accessRate,
int arraySize)
Constructs new ConnectionParameters object. |
|
ConnectionParameters(java.lang.String remoteName,
AccessMode accessMode,
int accessRate,
int arraySize,
java.lang.Object dynamicParameters)
|
|
ConnectionParameters(java.lang.String remoteName,
AccessMode accessMode,
int accessRate,
java.lang.Object dynamicParameters)
|
|
ConnectionParameters(java.lang.String parameters,
java.lang.Object dynamicParameters)
|
|
ConnectionParameters(java.lang.String accessProtocol,
java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty,
AccessMode accessMode,
int accessRate)
Creates new instance of ConnectionParameters. |
|
ConnectionParameters(java.lang.String accessProtocol,
java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty,
AccessMode accessMode,
int accessRate,
int propertySize)
Constructs a new ConnectionParameters. |
|
ConnectionParameters(java.lang.String accessProtocol,
java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty,
AccessMode accessMode,
int accessRate,
int propertySize,
java.lang.Object dynamicParameters)
|
|
ConnectionParameters(java.lang.String accessProtocol,
java.lang.String deviceContext,
java.lang.String deviceGroup,
java.lang.String deviceName,
java.lang.String deviceProperty,
AccessMode accessMode,
int accessRate,
java.lang.Object dynamicParameters)
|
Method Summary | |
---|---|
int |
compareTo(ConnectionParameters o)
|
ConnectionParameters |
deriveWith(AccessMode mode)
Returns new ConnectionParameters which resembles this object but has a different access mode. |
ConnectionParameters |
deriveWith(AccessMode mode,
int rate)
Returnst new ConnectionParameters which resembles this object but has a different acces mode and rate. |
ConnectionParameters |
deriveWith(int rate)
Deprecated. use deriveWithAccessRate(int) instead |
ConnectionParameters |
deriveWithAccessProtocol(java.lang.String accessProtocol)
Constructs a new ConnectionParameters with the same properties as this object but a different access protocol. |
ConnectionParameters |
deriveWithAccessRate(int accessRate)
Constructs a new ConnectionParameters with the same properties as this object but a different access rate. |
ConnectionParameters |
deriveWithDeviceContext(java.lang.String deviceContext)
Constructs a new ConnectionParameters with the same properties as this object but a different device context. |
ConnectionParameters |
deriveWithDeviceGroup(java.lang.String deviceGroup)
Constructs a new ConnectionParameters with the same properties as this object but a different device group. |
ConnectionParameters |
deriveWithDeviceName(java.lang.String deviceName)
Constructs a new ConnectionParameters with the same properties as this object but a different device name. |
ConnectionParameters |
deriveWithDeviceProperty(java.lang.String deviceProperty)
Constructs a new ConnectionParameters with the same properties as this object but a different property name. |
ConnectionParameters |
deriveWithDynamicParameters(java.lang.Object newDynamicParameters)
Returns new ConnectionParameters which resebles this object but has a different dynamic parameters. |
ConnectionParameters |
deriveWithPropertySize(int propertySize)
Returns new ConnectionParameters which resembles this object but has a different property size. |
boolean |
equals(java.lang.Object o)
|
AccessMode |
getAccessMode()
Returns the accessMode. |
java.lang.String |
getAccessProtocol()
Returns the accessProtocol. |
int |
getAccessRate()
Returns the accessRate. |
java.lang.String |
getDeviceContext()
Returns the deviceContext. |
java.lang.String |
getDeviceGroup()
Returns the deviceGroup. |
java.lang.String |
getDeviceName()
Returns the deviceName. |
java.lang.String |
getDeviceProperty()
Returns the deviceProperty. |
java.lang.Object |
getDynamicParameters()
Returns the dynamic parameters. |
int |
getPropertySize()
Size of TINE property. |
java.lang.String |
getRemoteName()
Return URI ready name for remote TINE property. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int ACTUAL_PROPERTY_SIZE
public static int AUTO_PROPERTY_SIZE
Constructor Detail |
---|
public ConnectionParameters()
public ConnectionParameters(java.lang.String parameters)
parameters
- getPropertySize()
public ConnectionParameters(java.lang.String parameters, java.lang.Object dynamicParameters)
parameters
- the parameters (remotename,accessmode,accessrate,propertySize)dynamicParameters
- additional parameters that are required for making a
connectionConnectionParameters(String)
public ConnectionParameters(java.lang.String accessProtocol, java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty, AccessMode accessMode, int accessRate)
accessProtocol
- the access protocol (TINE)deviceContext
- the contextdeviceGroup
- the serverdeviceName
- the device namedeviceProperty
- the property nameaccessMode
- the access mode for the connectionaccessRate
- the polling ratepublic ConnectionParameters(java.lang.String accessProtocol, java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty, AccessMode accessMode, int accessRate, java.lang.Object dynamicParameters)
accessProtocol
- the access protocol (TINE)deviceContext
- the contextdeviceGroup
- the serverdeviceName
- the device namedeviceProperty
- the property nameaccessMode
- the access mode for the connectionaccessRate
- the polling ratedynamicParameters
- additional parameters to make a connectionConnectionParameters(String, String, String, String, String, AccessMode, int)
public ConnectionParameters(java.lang.String accessProtocol, java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty, AccessMode accessMode, int accessRate, int propertySize)
accessProtocol
- the access protocol (TINE)deviceContext
- the contextdeviceGroup
- the serverdeviceName
- the device namedeviceProperty
- the property nameaccessMode
- the access mode for the connectionaccessRate
- the polling ratepropertySize
- the size of the requested property datapublic ConnectionParameters(java.lang.String accessProtocol, java.lang.String deviceContext, java.lang.String deviceGroup, java.lang.String deviceName, java.lang.String deviceProperty, AccessMode accessMode, int accessRate, int propertySize, java.lang.Object dynamicParameters)
accessProtocol
- the access protocol (TINE)deviceContext
- the contextdeviceGroup
- the serverdeviceName
- the device namedeviceProperty
- the property nameaccessMode
- the access mode for the connectionaccessRate
- the polling ratepropertySize
- the size of the requested property datadynamicParameters
- additional parameters to make a connectionConnectionParameters(String, String, String, String, String, AccessMode, int, int)
public ConnectionParameters(java.lang.String remoteName, AccessMode accessMode, int accessRate)
remoteName
- the remote name (context/server/device/property)accessMode
- the access mode for the connectionaccessRate
- the polling ratepublic ConnectionParameters(java.lang.String remoteName, AccessMode accessMode, int accessRate, java.lang.Object dynamicParameters)
remoteName
- the remote name (context/server/device/property)accessMode
- the access mode for the connectionaccessRate
- the polling ratedynamicParameters
- additional parameters to make a connectionConnectionParameters(String, AccessMode, int)
public ConnectionParameters(java.lang.String remoteName, AccessMode accessMode, int accessRate, int arraySize)
remoteName
- the remote name (context/server/device/property)accessMode
- the access mode for the connectionaccessRate
- the polling ratearraySize
- the size of the requested data arraypublic ConnectionParameters(java.lang.String remoteName, AccessMode accessMode, int accessRate, int arraySize, java.lang.Object dynamicParameters)
remoteName
- the remote name (context/server/device/property)accessMode
- the access mode for the connectionaccessRate
- the polling ratearraySize
- the size of the requested data arraydynamicParameters
- additional parameters to make a connectionConnectionParameters(String, AccessMode, int, int)
Method Detail |
---|
public AccessMode getAccessMode()
public java.lang.String getAccessProtocol()
public int getAccessRate()
public java.lang.String getDeviceContext()
public java.lang.String getDeviceGroup()
public java.lang.String getDeviceName()
public java.lang.String getDeviceProperty()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRemoteName()
public java.lang.Object getDynamicParameters()
public int getPropertySize()
ACTUAL_PROPERTY_SIZE
,
AUTO_PROPERTY_SIZE
public int compareTo(ConnectionParameters o)
compareTo
in interface java.lang.Comparable<ConnectionParameters>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public ConnectionParameters deriveWith(AccessMode mode)
mode
- access mode of the new parameters
public ConnectionParameters deriveWith(AccessMode mode, int rate)
mode
- access mode of the new parametersrate
- access rate of the new parameters
public ConnectionParameters deriveWith(int rate)
deriveWithAccessRate(int)
instead
rate
- access rate of the new parameters
public ConnectionParameters deriveWithDynamicParameters(java.lang.Object newDynamicParameters)
newDynamicParameters
- the new dynamic parameters
public ConnectionParameters deriveWithPropertySize(int propertySize)
propertySize
- the new property size
public ConnectionParameters deriveWithAccessProtocol(java.lang.String accessProtocol)
accessProtocol
- new access protocol
public ConnectionParameters deriveWithDeviceContext(java.lang.String deviceContext)
deviceContext
- new device context
public ConnectionParameters deriveWithAccessRate(int accessRate)
accessRate
- new access rate
public ConnectionParameters deriveWithDeviceGroup(java.lang.String deviceGroup)
deviceGroup
- new device group
public ConnectionParameters deriveWithDeviceName(java.lang.String deviceName)
deviceName
- new device name
public ConnectionParameters deriveWithDeviceProperty(java.lang.String deviceProperty)
deviceProperty
- new property name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |