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
ROOT
public static final int ROOT
_parent
protected Object _parent
_resource
protected Object _resource
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.
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