ilog.ds.gantt
Class ReservationEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.gantt.ReservationEvent
- All Implemented Interfaces:
- Serializable
- public class ReservationEvent
- extends AbstractDSEvent
Event class used for all events happening on a gantt reservation.
- See Also:
- Serialized Form
_reservation
protected Object _reservation
_resource
protected Object _resource
_activity
protected Object _activity
ReservationEvent
public ReservationEvent(Object source,
Object resource,
Object activity,
Object reservation,
Map properties)
- Constructor to use for creating reservations.
- Parameters:
source
- The first parameter is the source of the event.parent
- The owner of the new reservation. Can be null
for a root reservation.resource
- The resource concerned by the reservation, Can be anything, as
it is only used as a key.activity
- The activity concerned by the reservation, Can be anything, as
it is only used as a key.reservation
- The reservation itself. Can be anything, as it is only used as
a key.properties
- It contains the named properties of the constraint, that is,
all the properties when the contraint is created.
ReservationEvent
public ReservationEvent(Object source,
Object reservation,
Map properties)
- Constructor to use for updating reservations.
- Parameters:
source
- The first parameter is the source of the event.reservation
- The reservation itself. Can be anything, as it is only used as
a key.properties
- Contains the named properties of the reservation, that is, all
the modified properties. Predefined named properties
resource
and activity
are used
to respectively change resource and activity of the
reservation.
ReservationEvent
public ReservationEvent(Object source,
Object reservation)
- Constructor to use when the reservation is being deleted.
getReservation
public Object getReservation()
- Gets the reservation (to be used only as a key).
- Returns:
- the subject of this event
getResource
public Object getResource()
- Gets the resource of the reservation, only useful for creation.
- Returns:
- the resource of the subject of this event
getActivity
public Object getActivity()
- Gets the activity of the reservation, only useful for creation.
- Returns:
- the activity of the subject of this event