org.demac.event
Class Event

java.lang.Object
  extended by org.demac.event.Event
Direct Known Subclasses:
DeviceDetectedEvent, MulticastEvent, RegisterEvent, UnknownEvent

public abstract class Event
extends java.lang.Object

Superclass of all events which can be used by the org.demac.event.EventService.


Field Summary
static int GLOBAL_SCOPE
          This constant indecates that the event can be propagated to all known devices.
static int LOCAL_EVENT
          This constant indecates that the event has its origin at the local device.
static int LOCAL_SCOPE
          This constant indecates that the event must only be propagated locally.
static int PERIPERY_SCOPE
          This constant indecates that the event must only be propagated to the known devices within the direct vicinity.
static int REMOTE_EVENT
          This constant indecates that the event has its origin at a remote device.
 
Constructor Summary
Event()
           
 
Method Summary
abstract  EventHandle getEventHandle()
          Method to get the type of the event.
abstract  DeviceHandle getOriginHandle()
          Method to get the origin device of the event.
abstract  java.lang.Object getPayload()
          Method to get the payload of the event.
abstract  int getPriority()
          Method to get the priority of the event.
abstract  int getScope()
          Method to get the scope of the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL_EVENT

public static final int LOCAL_EVENT
This constant indecates that the event has its origin at the local device.

See Also:
Constant Field Values

REMOTE_EVENT

public static final int REMOTE_EVENT
This constant indecates that the event has its origin at a remote device.

See Also:
Constant Field Values

LOCAL_SCOPE

public static final int LOCAL_SCOPE
This constant indecates that the event must only be propagated locally.

See Also:
Constant Field Values

PERIPERY_SCOPE

public static final int PERIPERY_SCOPE
This constant indecates that the event must only be propagated to the known devices within the direct vicinity.

See Also:
Constant Field Values

GLOBAL_SCOPE

public static final int GLOBAL_SCOPE
This constant indecates that the event can be propagated to all known devices.

See Also:
Constant Field Values
Constructor Detail

Event

public Event()
Method Detail

getOriginHandle

public abstract DeviceHandle getOriginHandle()
Method to get the origin device of the event.

Returns:
the type of this event

getEventHandle

public abstract EventHandle getEventHandle()
Method to get the type of the event.

Returns:
the type of this event

getScope

public abstract int getScope()
Method to get the scope of the event.

Returns:
the scope of this event

getPriority

public abstract int getPriority()
Method to get the priority of the event.

Returns:
the priority of this event

getPayload

public abstract java.lang.Object getPayload()
Method to get the payload of the event.

Returns:
the payload of the event.