gate.event
Class ControllerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gate.event.GateEvent
          extended by gate.event.ControllerEvent
All Implemented Interfaces:
Serializable

public class ControllerEvent
extends GateEvent

Events fired by controllers.

See Also:
Serialized Form

Field Summary
protected  ProcessingResource pr
           
static int RESOURCE_ADDED
           
static int RESOURCE_REMOVED
           
 
Fields inherited from class gate.event.GateEvent
FEATURES_UPDATED, type
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ControllerEvent(Object source, int type, ProcessingResource pr)
           
 
Method Summary
 ProcessingResource getPr()
           
 void setPr(ProcessingResource pr)
           
 
Methods inherited from class gate.event.GateEvent
getType
 
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
 

Field Detail

pr

protected ProcessingResource pr

RESOURCE_ADDED

public static final int RESOURCE_ADDED
See Also:
Constant Field Values

RESOURCE_REMOVED

public static final int RESOURCE_REMOVED
See Also:
Constant Field Values
Constructor Detail

ControllerEvent

public ControllerEvent(Object source,
                       int type,
                       ProcessingResource pr)
Method Detail

getPr

public ProcessingResource getPr()
Returns:
Returns the processing resource.

setPr

public void setPr(ProcessingResource pr)
Parameters:
pr - The processing resource involved in this event.