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

Field Summary
protected  Object _activity
           
protected  Object _reservation
           
protected  Object _resource
           
 
Fields inherited from class ilog.ds.AbstractDSEvent
_properties, _type, ADD, REMOVE, UPDATE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ReservationEvent(Object source, Object reservation)
          Constructor to use when the reservation is being deleted.
ReservationEvent(Object source, Object reservation, Map properties)
          Constructor to use for updating reservations.
ReservationEvent(Object source, Object resource, Object activity, Object reservation, Map properties)
          Constructor to use for creating reservations.
 
Method Summary
 Object getActivity()
          Gets the activity of the reservation, only useful for creation.
 Object getReservation()
          Gets the reservation (to be used only as a key).
 Object getResource()
          Gets the resource of the reservation, only useful for creation.
 
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

_reservation

protected Object _reservation

_resource

protected Object _resource

_activity

protected Object _activity
Constructor Detail

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.
Method Detail

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