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.
 
Method Summary
 int getCycleStamp()
          Returns the cycle stamp (CERN-PS: super-cycle number (16 bits) + basic period number (16 bits).
 java.lang.String getCycleType()
          Returns the cycle type (CERN-PS: PLS line name).
 Data getData()
           
 Device getDevice()
           
 java.lang.String getDeviceName()
           
 java.lang.String[] getDeviceNames()
           
 DeviceError getError()
           
 java.lang.String getMessage()
           
 int getOpcode()
           
 java.lang.String getProperty()
           
 DataEntry getValue()
          Returns the value DataEntry
 boolean isComplete()
           
 void setSource(java.lang.Object o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 event
opcode - Operation generating the event (enumeration in DeviceTransaction)
arg - Either the property name or message to send (depends on opcode)
data - Outbound data
error - Error associated with this event, or null
Method Detail

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