cdev
Class DeviceEvent
java.lang.Object
|
+--java.util.EventObject
|
+--cdev.DeviceEvent
- Direct Known Subclasses:
- DeviceTransaction
- public class DeviceEvent
- extends java.util.EventObject
- See Also:
- Serialized Form
Constructor Summary |
DeviceEvent(Device device,
int opcode,
java.lang.String arg,
Data data,
DeviceError error)
Objects of this class are constructed by CDEV and underlying services to convey
data and error information to client programs. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DeviceEvent
public DeviceEvent(Device device,
int opcode,
java.lang.String arg,
Data data,
DeviceError error)
- Objects of this class are constructed by CDEV and underlying services to convey
data and error information to client programs. (Never constructed directly).
- Parameters:
device
- Device generating the eventopcode
- Operation generating the event (enumeration in DeviceTransaction)arg
- Either the property name or message to send (depends on opcode)data
- Outbound dataerror
- Error associated with this event, or null
setSource
public void setSource(java.lang.Object o)
getDevice
public Device getDevice()
getMessage
public java.lang.String getMessage()
getProperty
public java.lang.String getProperty()
getDeviceName
public java.lang.String getDeviceName()
getDeviceNames
public java.lang.String[] getDeviceNames()
getError
public final DeviceError getError()
getData
public final Data getData()
getOpcode
public final int getOpcode()
isComplete
public final boolean isComplete()
getCycleType
public java.lang.String getCycleType()
- Returns the cycle type (CERN-PS: PLS line name).
getCycleStamp
public int getCycleStamp()
- Returns the cycle stamp (CERN-PS: super-cycle number (16 bits) + basic period number (16 bits).
getValue
public DataEntry getValue()
- Returns the value DataEntry
toString
public java.lang.String toString()
- Overrides:
- toString in class java.util.EventObject