ilog.ds.gantt
Interface IlGanttDataSourceEditor

All Superinterfaces:
IlDataSourceEditor
All Known Implementing Classes:
IlsGanttDataSource

public interface IlGanttDataSourceEditor
extends IlDataSourceEditor

Gantt data source editor Note that the dereferencing is missing.


Method Summary
abstract  Object dsAddActivity(Object parent, Map properties)
          Creates a new activity in the gantt model.
abstract  Object dsAddConstraint(Object fromActivity, Object toActivity, Map properties)
          Creates a new constraint in the gantt model.
abstract  Object dsAddReservation(Object resource, Object activity, Map properties)
          Creates a new reservation in the gantt model.
abstract  Object dsAddResource(Object parent, Map properties)
          Creates a new resource in the gantt model.
abstract  void dsRemoveActivity(Object activity)
          Removes an activity from the gantt model.
abstract  void dsRemoveConstraint(Object constraint)
          Removes a constraint from the gantt model.
abstract  void dsRemoveReservation(Object reservation)
          Removes a reservation from the gantt model.
abstract  void dsRemoveResource(Object resource)
          Removes a resource from the gantt model.
abstract  void dsUpdateActivity(Object activity, String propertyName, Object propertyValue)
          Updates a property of an activity.
abstract  void dsUpdateConstraint(Object constraint, String propertyName, Object propertyValue)
          Updates a property of a constraint.
abstract  void dsUpdateReservation(Object reservation, String propertyName, Object propertyValue)
          Updates a property of a reservation.
abstract  void dsUpdateResource(Object resource, String propertyName, Object propertyValue)
          Updates a property of a resource.
abstract  boolean isActivityEditable(Object activity)
          Returns false if the activity is read-only.
abstract  boolean isConstraintEditable(Object constraint)
          Returns false if the constraint is read-only.
abstract  boolean isReservationEditable(Object reservation)
          Returns false if the reservation is read-only.
abstract  boolean isResourceEditable(Object resource)
          Returns false if the resource is read-only.
 
Methods inherited from interface ilog.ds.IlDataSourceEditor
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable
 

Method Detail

isActivityEditable

public boolean isActivityEditable(Object activity)
Returns false if the activity is read-only.
Parameters:
activity - The activity to test.

dsAddActivity

public Object dsAddActivity(Object parent,
                            Map properties)
Creates a new activity in the gantt model.
Parameters:
parent - the parent activity to which the new activity is added
properties - The properties of the activity to create
Returns:
the created activity (to be used only as a key). Note that this method may return null if the activity takes a long time to be created.

dsRemoveActivity

public void dsRemoveActivity(Object activity)
Removes an activity from the gantt model.
Parameters:
activity - The activity to be removed

dsUpdateActivity

public void dsUpdateActivity(Object activity,
                             String propertyName,
                             Object propertyValue)
Updates a property of an activity.
Parameters:
activity - The activity to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property

isResourceEditable

public boolean isResourceEditable(Object resource)
Returns false if the resource is read-only.
Parameters:
resource - The resource to test.

dsAddResource

public Object dsAddResource(Object parent,
                            Map properties)
Creates a new resource in the gantt model.
Parameters:
parent - the parent resource to which the new resource is added
properties - The properties of the resource to create
Returns:
the created resource (to be used only as a key). Note that this method may return null if the resource takes a long time to be created.

dsRemoveResource

public void dsRemoveResource(Object resource)
Removes a resource from the gantt model.
Parameters:
resource - The resource to be removed

dsUpdateResource

public void dsUpdateResource(Object resource,
                             String propertyName,
                             Object propertyValue)
Updates a property of a resource.
Parameters:
resource - The resource to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property

isConstraintEditable

public boolean isConstraintEditable(Object constraint)
Returns false if the constraint is read-only.
Parameters:
constraint - The constraint to test.

dsAddConstraint

public Object dsAddConstraint(Object fromActivity,
                              Object toActivity,
                              Map properties)
Creates a new constraint in the gantt model.
Parameters:
fromActivity - the source or from activity for this constraint
toActivity - the target or to activity for this constraint
properties - The properties of the constraint to create
Returns:
the created constraint (to be used only as a key). Note that this method may return null if the constraint takes a long time to be created.

dsRemoveConstraint

public void dsRemoveConstraint(Object constraint)
Removes a constraint from the gantt model.
Parameters:
constraint - The constraint to be removed

dsUpdateConstraint

public void dsUpdateConstraint(Object constraint,
                               String propertyName,
                               Object propertyValue)
Updates a property of a constraint.
Parameters:
constraint - The constraint to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property

isReservationEditable

public boolean isReservationEditable(Object reservation)
Returns false if the reservation is read-only.
Parameters:
reservation - The reservation to test.

dsAddReservation

public Object dsAddReservation(Object resource,
                               Object activity,
                               Map properties)
Creates a new reservation in the gantt model.
Parameters:
resource - the resource of this reservation
activity - the activity of this reservation
properties - The properties of the reservation to create
Returns:
the created reservation (to be used only as a key). Note that this method may return null if the reservation takes a long time to be created.

dsRemoveReservation

public void dsRemoveReservation(Object reservation)
Removes a reservation from the gantt model.
Parameters:
reservation - The reservation to be removed

dsUpdateReservation

public void dsUpdateReservation(Object reservation,
                                String propertyName,
                                Object propertyValue)
Updates a property of a reservation.
Parameters:
reservation - The reservation to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property