|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public boolean isActivityEditable(Object activity)
false
if the activity is read-only.activity
- The activity to test.public Object dsAddActivity(Object parent, Map properties)
parent
- the parent activity to which the new activity is addedproperties
- The properties of the activity to createnull
if the activity takes a
long time to be created.public void dsRemoveActivity(Object activity)
activity
- The activity to be removedpublic void dsUpdateActivity(Object activity, String propertyName, Object propertyValue)
activity
- The activity to updatepropertyName
- The name of the property to be updatedpropertyValue
- The new value of the propertypublic boolean isResourceEditable(Object resource)
false
if the resource is read-only.resource
- The resource to test.public Object dsAddResource(Object parent, Map properties)
parent
- the parent resource to which the new resource is addedproperties
- The properties of the resource to createnull
if the resource takes a
long time to be created.public void dsRemoveResource(Object resource)
resource
- The resource to be removedpublic void dsUpdateResource(Object resource, String propertyName, Object propertyValue)
resource
- The resource to updatepropertyName
- The name of the property to be updatedpropertyValue
- The new value of the propertypublic boolean isConstraintEditable(Object constraint)
false
if the constraint is read-only.constraint
- The constraint to test.public Object dsAddConstraint(Object fromActivity, Object toActivity, Map properties)
fromActivity
- the source or from activity for this constrainttoActivity
- the target or to activity for this constraintproperties
- The properties of the constraint to createnull
if the constraint takes a
long time to be created.public void dsRemoveConstraint(Object constraint)
constraint
- The constraint to be removedpublic void dsUpdateConstraint(Object constraint, String propertyName, Object propertyValue)
constraint
- The constraint to updatepropertyName
- The name of the property to be updatedpropertyValue
- The new value of the propertypublic boolean isReservationEditable(Object reservation)
false
if the reservation is read-only.reservation
- The reservation to test.public Object dsAddReservation(Object resource, Object activity, Map properties)
resource
- the resource of this reservationactivity
- the activity of this reservationproperties
- The properties of the reservation to createnull
if the reservation
takes a long time to be created.public void dsRemoveReservation(Object reservation)
reservation
- The reservation to be removedpublic void dsUpdateReservation(Object reservation, String propertyName, Object propertyValue)
reservation
- The reservation to updatepropertyName
- The name of the property to be updatedpropertyValue
- The new value of the property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |