|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--ilog.server.jsds.IlsDataSource
|
+--ilog.server.jsds.gantt.IlsGanttDataSource
Gantt data source. How to define a dynamic view specification in order to open a gantt data source :
view GanttView (any containerIndex=0, string containerClass=""):
represent IlsDSRepresentation repres:
any containerIndex = view.containerIndex;
string containerClass = view.containerClass;
string title = "A gantt view";
subscribe origin CompanyModel:
represent IlsRpGanttModel gantt:
ref<IlsRpResource> rootResource = company->resource;
ref<IlsRpActivity> rootActivity = rootProject->activity;
collector constraints = precedences->constraint;
collector reservations = assignations->reservation;
# rootResource
propagate company;
# rootActivity
propagate rootProject;
# constraints
propagate precedences;
# reservations
propagate assignations;
# a company is assigned to a global project
represent IlsRpReservation reservation:
mandatory ref<IlsRpResource> resource = company->resource;
mandatory ref<IlsRpActivity> activity = rootProject->activity;
subscribe Company:
# rootResource
represent IlsRpResource resource:
mandatory ref<IlsRpGanttModel> gantt = view.origin->gantt;
# ref<IlsRpResource> parent = 0;
string id = identifier;
string name = name;
# resources
propagate departments;
subscribe Department:
represent IlsRpResource resource:
mandatory ref<IlsRpGanttModel> gantt = view.origin->gantt;
ref<IlsRpResource> parent = company->resource;
string id = identifier;
string name = name;
# resources
propagate employees;
subscribe Employee:
represent IlsRpResource resource:
mandatory ref<IlsRpGanttModel> gantt = view.origin->gantt;
ref<IlsRpResource> parent = department->resource;
string id = initials;
string name = name;
subscribe Activity:
represent IlsRpActivity activity:
# virtual representation for polymorphism
subscribe Project:
represent IlsRpActivity activity:
mandatory ref<IlsRpGanttModel> gantt = view.origin->gantt;
ref<IlsRpActivity> parent = superProject->activity;
string id = ID;
string name = name;
# date are in seconds
int startTime = startTime;
int endTime = endTime;
represent IlsRpReservation reservation:
mandatory ref<IlsRpResource> resource = department->resource;
mandatory ref<IlsRpActivity> activity = this->activity;
# activities
propagate subProjects;
propagate tasks;
subscribe Task:
represent IlsRpActivity activity:
mandatory ref<IlsRpGanttModel> gantt = view.origin->gantt;
ref<IlsRpActivity> parent = project->activity;
string id = ID;
string name = name;
# date are in seconds
int startTime = startTime;
int endTime = endTime;
subscribe Precedence:
represent IlsRpConstraint constraint:
mandatory ref<IlsRpActivity> fromActivity = beforeActivity->activity;
mandatory ref<IlsRpActivity> toActivity = afterActivity->activity;
boolean fromStart = false;
boolean toStart = true;
subscribe Assignation:
represent IlsRpReservation reservation:
mandatory ref<IlsRpResource> resource = employee->resource;
mandatory ref<IlsRpActivity> activity = activity->activity;
| Fields inherited from class ilog.server.jsds.IlsDataSource |
_properties, _propertyChangeListeners |
| Constructor Summary | |
IlsGanttDataSource()
Instanciate a new IlsGanttDataSource |
|
| Method Summary | |
void |
addGanttDSListener(GanttDSListener l)
Adds a ganttener for all Graph events |
void |
dataSourceConnected(IlsDSMainObject dso)
Implements DSConnectionListener.dataSourceConnected(ilog.server.jsds.DSConnectionEvent). |
void |
dataSourceDisconnected()
Implements DSConnectionListener.dataSourceDisconnected(ilog.server.jsds.DSConnectionEvent). |
java.lang.Object |
dsAddActivity(java.lang.Object parent,
java.util.Map properties)
Creates a new activity in the Gantt |
java.lang.Object |
dsAddConstraint(java.lang.Object fromActivity,
java.lang.Object toActivity,
java.util.Map properties)
Creates a new constraint in the Gantt |
java.lang.Object |
dsAddReservation(java.lang.Object resource,
java.lang.Object activity,
java.util.Map properties)
Creates a new reservation in the Gantt |
java.lang.Object |
dsAddResource(java.lang.Object parent,
java.util.Map properties)
Creates a new resource in the Gantt |
void |
dsRemoveActivity(java.lang.Object activity)
Removes an activity from the Gantt |
void |
dsRemoveConstraint(java.lang.Object constraint)
Removes a constraint from the Gantt |
void |
dsRemoveReservation(java.lang.Object reservation)
Removes a reservation from the Gantt |
void |
dsRemoveResource(java.lang.Object resource)
Removes a resource from the Gantt |
void |
dsUpdateActivity(java.lang.Object activity,
java.lang.String propertyName,
java.lang.Object propertyValue)
Updates a property of an activity |
void |
dsUpdateConstraint(java.lang.Object constraint,
java.lang.String propertyName,
java.lang.Object propertyValue)
Updates a property of a constraint |
void |
dsUpdateGantt(java.lang.String propertyName,
java.lang.Object propertyValue)
Updates a property of the Gantt |
void |
dsUpdateReservation(java.lang.Object reservation,
java.lang.String propertyName,
java.lang.Object propertyValue)
Updates a property of a reservation |
void |
dsUpdateResource(java.lang.Object resource,
java.lang.String propertyName,
java.lang.Object propertyValue)
Updates a property of a resource |
IlsDSMainObject |
getDSMainObject()
|
boolean |
isActivityEditable(java.lang.Object activity)
Returns false if the activity is a read only. |
boolean |
isActivityPropertyEditable(java.lang.Object activity,
java.lang.String propertyName)
|
boolean |
isActivityPropertyHRef(java.lang.Object activity,
java.lang.String propertyName)
|
boolean |
isConstraintEditable(java.lang.Object constraint)
Returns false if the constraint is a read only. |
boolean |
isConstraintPropertyEditable(java.lang.Object constraint,
java.lang.String propertyName)
|
boolean |
isConstraintPropertyHRef(java.lang.Object constraint,
java.lang.String propertyName)
|
boolean |
isReservationEditable(java.lang.Object reservation)
Returns false if the reservation is a read only. |
boolean |
isReservationPropertyEditable(java.lang.Object reservation,
java.lang.String propertyName)
|
boolean |
isReservationPropertyHRef(java.lang.Object reservation,
java.lang.String propertyName)
|
boolean |
isResourceEditable(java.lang.Object resource)
Returns false if the resource is a read only. |
boolean |
isResourcePropertyEditable(java.lang.Object resource,
java.lang.String propertyName)
|
boolean |
isResourcePropertyHRef(java.lang.Object resource,
java.lang.String propertyName)
|
void |
removeGanttDSListener(GanttDSListener l)
Removes a ganttener for all Graph events |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.ds.IlDataSource |
addBatchListener, addDataSourceListener, getDSProperties, getDSProperty, removeBatchListener, removeDataSourceListener |
| Methods inherited from interface ilog.ds.IlDataSourceEditor |
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable |
| Constructor Detail |
public IlsGanttDataSource()
IlsGanttDataSource| Method Detail |
public void dataSourceConnected(IlsDSMainObject dso)
DSConnectionListener.dataSourceConnected(ilog.server.jsds.DSConnectionEvent).dataSourceConnected in class IlsDataSourceilog.server.jsds.IlsDataSourceDSConnectionListenerpublic void dataSourceDisconnected()
DSConnectionListener.dataSourceDisconnected(ilog.server.jsds.DSConnectionEvent).dataSourceDisconnected in class IlsDataSourceilog.server.jsds.IlsDataSourceDSConnectionListenerpublic IlsDSMainObject getDSMainObject()
getDSMainObject in class IlsDataSourceilog.server.jsds.IlsDataSourcepublic void addGanttDSListener(GanttDSListener l)
addGanttDSListener in interface IlGanttDataSourcel - the ganttenerpublic void removeGanttDSListener(GanttDSListener l)
removeGanttDSListener in interface IlGanttDataSourcel - the ganttener
public void dsUpdateGantt(java.lang.String propertyName,
java.lang.Object propertyValue)
propertyName - name of the property to be updatedpropertyValue - new value of the propertypublic boolean isActivityEditable(java.lang.Object activity)
isActivityEditable in interface IlGanttDataSourceEditoractivity - -
The activity to test.
public java.lang.Object dsAddActivity(java.lang.Object parent,
java.util.Map properties)
dsAddActivity in interface IlGanttDataSourceEditorproperties - properties of the activity to createnull may be returned if the activity takes a long
time to be created.
public void dsUpdateActivity(java.lang.Object activity,
java.lang.String propertyName,
java.lang.Object propertyValue)
dsUpdateActivity in interface IlGanttDataSourceEditoractivity - the activity to updatepropertyName - name of the property to be updatedpropertyValue - new value of the propertypublic void dsRemoveActivity(java.lang.Object activity)
dsRemoveActivity in interface IlGanttDataSourceEditoractivity - activity to be removed
public boolean isActivityPropertyEditable(java.lang.Object activity,
java.lang.String propertyName)
activity - The activity representation.propertyName - The property name.true if property activity is editable.
public boolean isActivityPropertyHRef(java.lang.Object activity,
java.lang.String propertyName)
activity - The activity representation.propertyName - The property name.true if property activity is a hyper reference.public boolean isResourceEditable(java.lang.Object resource)
isResourceEditable in interface IlGanttDataSourceEditorresource - -
The resource to test.
public java.lang.Object dsAddResource(java.lang.Object parent,
java.util.Map properties)
dsAddResource in interface IlGanttDataSourceEditorproperties - properties of the resource to createnull may be returned if the resource takes a long
time to be created.
public void dsUpdateResource(java.lang.Object resource,
java.lang.String propertyName,
java.lang.Object propertyValue)
dsUpdateResource in interface IlGanttDataSourceEditorresource - the resource to updatepropertyName - name of the property to be updatedpropertyValue - new value of the propertypublic void dsRemoveResource(java.lang.Object resource)
dsRemoveResource in interface IlGanttDataSourceEditorresource - resource to be removed
public boolean isResourcePropertyEditable(java.lang.Object resource,
java.lang.String propertyName)
resource - The resource representation.propertyName - The property name.true if property resource is editable.
public boolean isResourcePropertyHRef(java.lang.Object resource,
java.lang.String propertyName)
resource - The resource representation.propertyName - The property name.true if property resource is a hyper reference.public boolean isConstraintEditable(java.lang.Object constraint)
isConstraintEditable in interface IlGanttDataSourceEditorconstraint - -
The constraint to test.
public java.lang.Object dsAddConstraint(java.lang.Object fromActivity,
java.lang.Object toActivity,
java.util.Map properties)
dsAddConstraint in interface IlGanttDataSourceEditorfromActivity - origin activity of the constrainttoActivity - target activity of the constraintproperties - properties of the constraint to createnull may be returned if the constraint takes a
long time to be created.
public void dsUpdateConstraint(java.lang.Object constraint,
java.lang.String propertyName,
java.lang.Object propertyValue)
dsUpdateConstraint in interface IlGanttDataSourceEditorconstraint - the constraint to updatepropertyName - name of the property to be updatedpropertyValue - new value of the propertypublic void dsRemoveConstraint(java.lang.Object constraint)
dsRemoveConstraint in interface IlGanttDataSourceEditorconstraint - constraint to be removed
public boolean isConstraintPropertyEditable(java.lang.Object constraint,
java.lang.String propertyName)
constraint - The constraint representation.propertyName - The property name.true if property constraint is editable.
public boolean isConstraintPropertyHRef(java.lang.Object constraint,
java.lang.String propertyName)
constraint - The constraint representation.propertyName - The property name.true if property constraint is a hyper reference.public boolean isReservationEditable(java.lang.Object reservation)
isReservationEditable in interface IlGanttDataSourceEditorreservation - -
The reservation to test.
public java.lang.Object dsAddReservation(java.lang.Object resource,
java.lang.Object activity,
java.util.Map properties)
dsAddReservation in interface IlGanttDataSourceEditorresource - resource of the reservationactivity - activity of the reservationproperties - properties of the reservation to createnull may be returned if the constraint takes a
long time to be created.
public void dsUpdateReservation(java.lang.Object reservation,
java.lang.String propertyName,
java.lang.Object propertyValue)
dsUpdateReservation in interface IlGanttDataSourceEditorreservation - the reservation to updatepropertyName - name of the property to be updatedpropertyValue - new value of the propertypublic void dsRemoveReservation(java.lang.Object reservation)
dsRemoveReservation in interface IlGanttDataSourceEditorreservation - reservation to be removed
public boolean isReservationPropertyEditable(java.lang.Object reservation,
java.lang.String propertyName)
reservation - The reservation representation.propertyName - The property name.true if property reservation is editable.
public boolean isReservationPropertyHRef(java.lang.Object reservation,
java.lang.String propertyName)
reservation - The reservation representation.propertyName - The property name.true if property reservation is a hyper reference.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||