net.dpml.appliance
Class ApplianceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.dpml.appliance.ApplianceEvent
All Implemented Interfaces:
Serializable

public class ApplianceEvent
extends EventObject

Event triggered as a result of a state change within an appliance.

Version:
2.1.0
Author:
Digital Product Management Library
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ApplianceEvent(Appliance source, Status status)
          Construct a new StateEvent.
 
Method Summary
 Appliance getAppliance()
          Return the appliance that initiated the event.
 Status getStatus()
          Return the appliance status.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplianceEvent

public ApplianceEvent(Appliance source,
                      Status status)
Construct a new StateEvent.

Parameters:
source - the source appliance
status - the appliance state
Method Detail

getAppliance

public Appliance getAppliance()
Return the appliance that initiated the event.

Returns:
the source appliance

getStatus

public Status getStatus()
Return the appliance status.

Returns:
the status enumeration