ilog.ds.gantt
Class ReservationEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.gantt.ReservationEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ReservationEvent
- extends AbstractDSEvent
Event class used for all events happening on a gantt reservation.
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
ReservationEvent(java.lang.Object source,
java.lang.Object reservation)
Constructor to use when the reservation is being deleted. |
ReservationEvent(java.lang.Object source,
java.lang.Object reservation,
java.util.Map properties)
Constructor to use for updating reservations. |
ReservationEvent(java.lang.Object source,
java.lang.Object resource,
java.lang.Object activity,
java.lang.Object reservation,
java.util.Map properties)
Constructor to use for creating reservations. |
|
Method Summary |
java.lang.Object |
getActivity()
Gets the activity of the reservation, only useful for creation. |
java.lang.Object |
getReservation()
Gets the reservation (to be used only as a key). |
java.lang.Object |
getResource()
Gets the resource of the reservation, only useful for creation. |
| 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 |
_reservation
protected java.lang.Object _reservation
_resource
protected java.lang.Object _resource
_activity
protected java.lang.Object _activity
ReservationEvent
public ReservationEvent(java.lang.Object source,
java.lang.Object resource,
java.lang.Object activity,
java.lang.Object reservation,
java.util.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(java.lang.Object source,
java.lang.Object reservation,
java.util.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(java.lang.Object source,
java.lang.Object reservation)
- Constructor to use when the reservation is being deleted.
getReservation
public java.lang.Object getReservation()
- Gets the reservation (to be used only as a key).
- Returns:
- the subject of this event
getResource
public java.lang.Object getResource()
- Gets the resource of the reservation, only useful for creation.
- Returns:
- the resource of the subject of this event
getActivity
public java.lang.Object getActivity()
- Gets the activity of the reservation, only useful for creation.
- Returns:
- the activity of the subject of this event