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  java.lang.Object dsAddActivity(java.lang.Object parent, java.util.Map properties)
          Creates a new activity in the gantt model.
abstract  java.lang.Object dsAddConstraint(java.lang.Object fromActivity, java.lang.Object toActivity, java.util.Map properties)
          Creates a new constraint in the gantt model.
abstract  java.lang.Object dsAddReservation(java.lang.Object resource, java.lang.Object activity, java.util.Map properties)
          Creates a new reservation in the gantt model.
abstract  java.lang.Object dsAddResource(java.lang.Object parent, java.util.Map properties)
          Creates a new resource in the gantt model.
abstract  void dsRemoveActivity(java.lang.Object activity)
          Removes an activity from the gantt model.
abstract  void dsRemoveConstraint(java.lang.Object constraint)
          Removes a constraint from the gantt model.
abstract  void dsRemoveReservation(java.lang.Object reservation)
          Removes a reservation from the gantt model.
abstract  void dsRemoveResource(java.lang.Object resource)
          Removes a resource from the gantt model.
abstract  void dsUpdateActivity(java.lang.Object activity, java.lang.String propertyName, java.lang.Object propertyValue)
          Updates a property of an activity.
abstract  void dsUpdateConstraint(java.lang.Object constraint, java.lang.String propertyName, java.lang.Object propertyValue)
          Updates a property of a constraint.
abstract  void dsUpdateReservation(java.lang.Object reservation, java.lang.String propertyName, java.lang.Object propertyValue)
          Updates a property of a reservation.
abstract  void dsUpdateResource(java.lang.Object resource, java.lang.String propertyName, java.lang.Object propertyValue)
          Updates a property of a resource.
abstract  boolean isActivityEditable(java.lang.Object activity)
          Returns false if the activity is read-only.
abstract  boolean isConstraintEditable(java.lang.Object constraint)
          Returns false if the constraint is read-only.
abstract  boolean isReservationEditable(java.lang.Object reservation)
          Returns false if the reservation is read-only.
abstract  boolean isResourceEditable(java.lang.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(java.lang.Object activity)
Returns false if the activity is read-only.
Parameters:
activity - The activity to test.

dsAddActivity

public java.lang.Object dsAddActivity(java.lang.Object parent,
                                      java.util.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(java.lang.Object activity)
Removes an activity from the gantt model.
Parameters:
activity - The activity to be removed

dsUpdateActivity

public void dsUpdateActivity(java.lang.Object activity,
                             java.lang.String propertyName,
                             java.lang.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(java.lang.Object resource)
Returns false if the resource is read-only.
Parameters:
resource - The resource to test.

dsAddResource

public java.lang.Object dsAddResource(java.lang.Object parent,
                                      java.util.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(java.lang.Object resource)
Removes a resource from the gantt model.
Parameters:
resource - The resource to be removed

dsUpdateResource

public void dsUpdateResource(java.lang.Object resource,
                             java.lang.String propertyName,
                             java.lang.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(java.lang.Object constraint)
Returns false if the constraint is read-only.
Parameters:
constraint - The constraint to test.

dsAddConstraint

public java.lang.Object dsAddConstraint(java.lang.Object fromActivity,
                                        java.lang.Object toActivity,
                                        java.util.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(java.lang.Object constraint)
Removes a constraint from the gantt model.
Parameters:
constraint - The constraint to be removed

dsUpdateConstraint

public void dsUpdateConstraint(java.lang.Object constraint,
                               java.lang.String propertyName,
                               java.lang.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(java.lang.Object reservation)
Returns false if the reservation is read-only.
Parameters:
reservation - The reservation to test.

dsAddReservation

public java.lang.Object dsAddReservation(java.lang.Object resource,
                                         java.lang.Object activity,
                                         java.util.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(java.lang.Object reservation)
Removes a reservation from the gantt model.
Parameters:
reservation - The reservation to be removed

dsUpdateReservation

public void dsUpdateReservation(java.lang.Object reservation,
                                java.lang.String propertyName,
                                java.lang.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