orca.shirako.core
Class Event

java.lang.Object
  extended by orca.shirako.core.Event
All Implemented Interfaces:
IEvent

public class Event
extends java.lang.Object
implements IEvent


Field Summary
protected  IActor actor
          The actor this event is associated with
protected  int component
          Component id
static int ComponentConfig
           
static int ComponentDatabase
           
static int ComponentManager
           
static int ComponentNodeGroup
           
static int ComponentSlicesPlugin
           
protected  int id
          Event id
protected  java.lang.Object subject
          The subject of the event
 
Constructor Summary
Event(IActor actor, java.lang.Object subject, int component, int id)
           
 
Method Summary
 IActor getActor()
          Returns the actor this event is associated with.
 int getComponent()
          Returns the identifier of the the component that raised the event: e.g., actor class, configuration object, actor proxy, etc.
 int getId()
          Returns the identifier of the event type (unique within the component).
 java.lang.Object getSubject()
          Returns the subject of the event.
 void setActor(IActor actor)
           
 void setComponent(int component)
           
 void setId(int id)
           
 void setSubject(java.lang.Object subject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ComponentManager

public static final int ComponentManager
See Also:
Constant Field Values

ComponentConfig

public static final int ComponentConfig
See Also:
Constant Field Values

ComponentDatabase

public static final int ComponentDatabase
See Also:
Constant Field Values

ComponentSlicesPlugin

public static final int ComponentSlicesPlugin
See Also:
Constant Field Values

ComponentNodeGroup

public static final int ComponentNodeGroup
See Also:
Constant Field Values

actor

protected IActor actor
The actor this event is associated with


subject

protected java.lang.Object subject
The subject of the event


component

protected int component
Component id


id

protected int id
Event id

Constructor Detail

Event

public Event(IActor actor,
             java.lang.Object subject,
             int component,
             int id)
Method Detail

getActor

public IActor getActor()
Description copied from interface: IEvent
Returns the actor this event is associated with.

Specified by:
getActor in interface IEvent
Returns:
the actor

setActor

public void setActor(IActor actor)
Parameters:
actor - the actor to set

getComponent

public int getComponent()
Description copied from interface: IEvent
Returns the identifier of the the component that raised the event: e.g., actor class, configuration object, actor proxy, etc.

Specified by:
getComponent in interface IEvent
Returns:
the component

setComponent

public void setComponent(int component)
Parameters:
component - the component to set

getId

public int getId()
Description copied from interface: IEvent
Returns the identifier of the event type (unique within the component).

Specified by:
getId in interface IEvent
Returns:
the id

setId

public void setId(int id)
Parameters:
id - the id to set

getSubject

public java.lang.Object getSubject()
Description copied from interface: IEvent
Returns the subject of the event. This can be a reservation, a node, or something else.

Specified by:
getSubject in interface IEvent
Returns:
the subject

setSubject

public void setSubject(java.lang.Object subject)
Parameters:
subject - the subject to set


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.