cork.event
Class DeviceEvent

java.lang.Object
  |
  +--cork.event.DeviceEvent

public class DeviceEvent
extends java.lang.Object

An even generated by a device.

Version:
0.1.0
Author:
Brill Pappin

Constructor Summary
DeviceEvent(Device device)
          Constructor for the DeviceEvent object
DeviceEvent(Device device, int code)
          Constructor for the DeviceEvent object
DeviceEvent(Device device, int code, java.lang.String message)
          Constructor for the DeviceEvent object
DeviceEvent(Device device, java.lang.String message)
          Constructor for the DeviceEvent object
 
Method Summary
 int getCode()
          Gets the code attribute of the DeviceEvent object
 Device getDevice()
          Gets the device attribute of the DeviceEvent object
 java.lang.String getMessage()
          Gets the message attribute of the DeviceEvent object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceEvent

public DeviceEvent(Device device)
Constructor for the DeviceEvent object
Parameters:
device - Description of Parameter
Since:
 

DeviceEvent

public DeviceEvent(Device device,
                   int code)
Constructor for the DeviceEvent object
Parameters:
device - Description of Parameter
code - Description of Parameter
Since:
 

DeviceEvent

public DeviceEvent(Device device,
                   java.lang.String message)
Constructor for the DeviceEvent object
Parameters:
device - Description of Parameter
message - Description of Parameter
Since:
 

DeviceEvent

public DeviceEvent(Device device,
                   int code,
                   java.lang.String message)
Constructor for the DeviceEvent object
Parameters:
device - Description of Parameter
code - Description of Parameter
message - Description of Parameter
Since:
 
Method Detail

getMessage

public java.lang.String getMessage()
Gets the message attribute of the DeviceEvent object
Returns:
The message value
Since:
 

getCode

public int getCode()
Gets the code attribute of the DeviceEvent object
Returns:
The code value
Since:
 

getDevice

public Device getDevice()
Gets the device attribute of the DeviceEvent object
Returns:
The device value
Since: