ilog.ds.gantt
Class ResourceEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--ilog.ds.AbstractDSEvent
              |
              +--ilog.ds.gantt.ResourceEvent
All Implemented Interfaces:
Serializable

public class ResourceEvent
extends AbstractDSEvent

Event class used for all events happening on a gantt resource.

See Also:
Serialized Form

Field Summary
protected  Object _parent
           
protected  Object _resource
           
static int ROOT
           
 
Fields inherited from class ilog.ds.AbstractDSEvent
_properties, _type, ADD, REMOVE, UPDATE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ResourceEvent(Object source, Object resource)
          Constructor to use when the resource is being deleted.
ResourceEvent(Object source, Object rootResource, int type)
          Constructor to use for gantt activity root definition
ResourceEvent(Object source, Object resource, Map properties)
          Constructor to use for updating resources.
ResourceEvent(Object source, Object parent, Object resource, Map properties)
          Constructor to use for creating resources.
 
Method Summary
 Object getParent()
          Gets the parent resource, only useful for creation.
 Object getResource()
          Gets the resource (to be used only as a key).
 
Methods inherited from class ilog.ds.AbstractDSEvent
getProperties, 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

ROOT

public static final int ROOT

_parent

protected Object _parent

_resource

protected Object _resource
Constructor Detail

ResourceEvent

public ResourceEvent(Object source,
                     Object rootResource,
                     int type)
Constructor to use for gantt activity root definition
Parameters:
source - The first parameter is the source of the event.
activity - The activity itself. Can be anything, as it is only used as a key.

ResourceEvent

public ResourceEvent(Object source,
                     Object parent,
                     Object resource,
                     Map properties)
Constructor to use for creating resources.
Parameters:
source - The first parameter is the source of the event.
parent - The owner of the resource.
activity - The resource itself. Can be anything, as it is only used as a key.
properties - It contains the named properties of the resource, that is, all the properties when the resource is created.

ResourceEvent

public ResourceEvent(Object source,
                     Object resource,
                     Map properties)
Constructor to use for updating resources.
Parameters:
source - The first parameter is the source of the event.
activity - The resource itself. Can be anything, as it is only used as a key.
properties - Contains the named properties of the resource, that is, all the modified resource.

ResourceEvent

public ResourceEvent(Object source,
                     Object resource)
Constructor to use when the resource is being deleted.
Method Detail

getResource

public Object getResource()
Gets the resource (to be used only as a key).
Returns:
the subject of this event

getParent

public Object getParent()
Gets the parent resource, only useful for creation.
Returns:
the parent of the subject of this event