public class MXGanttModel extends ilog.views.gantt.model.IlvDefaultGanttModel implements java.io.Serializable, IMXGanttModel
IMXGanttModel.PercentCompleteType| Constructor and Description |
|---|
MXGanttModel() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator |
childActivityIterator(ilog.views.gantt.IlvActivity parent)
Get iterator of sorted child activities
|
java.util.Iterator |
childResourceIterator(ilog.views.gantt.IlvResource parent)
Get iterator of child resources for a parent
|
boolean |
containsActivity(IMXActivity data) |
java.util.HashMap |
getActivityApplinkList(java.lang.String className)
Get activity applink list for a class name
|
IMXActivity |
getActivityForId(java.lang.String id) |
Range |
getActualStartEnd()
Get the "actual" start/end of the project based simply looking at the
project work.
|
java.util.HashMap |
getAssetLocNonWorkHourList()
Get calendar information
|
java.util.HashMap |
getAssetLocOverlapMap() |
java.util.HashMap |
getAssetLocWorkHourList()
Get calendar information
|
DateRange |
getCalculatedProjectMinMax()
This is a calculated project min max.
|
java.util.HashMap |
getCalendarBreakPatternCount() |
java.util.HashMap |
getCalendarBreakPatternMap() |
DateRange |
getCalendarStartEnd()
Returns the configured Calendar Start End dates.
|
ilog.views.gantt.IlvActivity |
getChildActivity(ilog.views.gantt.IlvActivity parent,
int index)
Returns the child of the specified parent activity at index
index. |
int |
getChildActivityIndex(ilog.views.gantt.IlvActivity parent,
ilog.views.gantt.IlvActivity child)
Returns the index of the specified child in the parent activity's list
of children.
|
int |
getChildIndex(ilog.views.gantt.IlvHierarchyNode parent,
ilog.views.gantt.IlvHierarchyNode child)
Get index of sorted child activity
|
IMXActivity |
getChildNode(IMXActivity activity,
int index) |
int |
getChildNodeCount(IMXActivity activity) |
ilog.views.gantt.IlvResource |
getChildResource(ilog.views.gantt.IlvResource parent,
int index)
Returns the child of the specified parent resource at index
index. |
int |
getChildResourceIndex(ilog.views.gantt.IlvResource parent,
ilog.views.gantt.IlvResource child)
Returns the index of the specified child in the parent resource's list
of children.
|
int |
getDisplayRowCount()
Returns the rows in the Schedule are being displayed.
|
IGanttConfigInfo |
getGanttConfigInfo()
Get the Gannt config info for the model
|
java.util.Date |
getLoadDateTime() |
java.lang.String |
getLocalizedScenarioFieldTitle() |
java.util.ArrayList |
getMergedNonWorkPeriod()
Get non work period after merging all shifts
|
java.util.ArrayList |
getMergedWorkPeriods()
Get work period after merging all shifts
|
int |
getPages()
if a Paging Model, then return the number of pages, otherwise, return 1.
|
int |
getPageSize()
if a Paging Model, then return the number of rows in a page, other wise return total rows in the schedule
|
int |
getParentActivityIndex(ilog.views.gantt.IlvActivity activity)
Returns the index of the specified activity within its parent activity.
|
IMXActivity |
getParentForActivity(IMXActivity data) |
int |
getParentResourceIndex(ilog.views.gantt.IlvResource resource)
Returns the index of the specified resource within its parent resource.
|
IMXGanttModel.PercentCompleteType |
getPercentCompleteType()
Returns the current % complete type for the project.
|
java.lang.String |
getProjectDescription() |
java.util.Date |
getProjectEndDate() |
int |
getProjectEndOffsetDays() |
java.lang.String |
getProjectId() |
java.lang.String |
getProjectName() |
int |
getProjectPercentComplete(IMXGanttModel.PercentCompleteType pcType) |
java.util.Date |
getProjectStartDate()
Get project start date
|
Range |
getProjectStartEnd()
Return the Project's Start/End from SKDPROJECT.
|
int |
getProjectStartOffsetDays() |
java.lang.String |
getProjectType()
get project type
|
java.util.Properties |
getProperties() |
java.lang.String |
getResourceDisplay() |
IMXResource |
getResourceForId(java.lang.String id) |
IMXActivity |
getRootNode() |
java.lang.String |
getScenarioName() |
java.util.HashMap |
getShiftCalendarInfo() |
java.util.List |
getShifts() |
SKDShiftWorkTime |
getShiftWorkTime(java.lang.String shift) |
boolean |
getShowMaintOperFlag()
get showMaintOper flag
|
java.util.HashMap |
getSkdActionInfo()
Get action information
|
java.util.HashMap |
getSkdActionInfo(java.lang.String useWith)
Get action information
|
java.util.HashMap |
getSkdActionUidInfo()
// * Get action information with key as action unique id
|
java.util.Map |
getSortedActivityChildren()
Get sorted activity children
|
java.util.Map |
getSortedResourceChildren()
Get sorted resource children
|
java.lang.Object |
getUserData(java.lang.String key)
Returns a piece of in-memory stored user data for this model.
|
java.util.Locale |
getUserLocale() |
java.util.TimeZone |
getUserTimezone() |
com.ibm.icu.util.ULocale |
getUserULocale() |
java.lang.String |
getUseWith() |
java.lang.String |
getWeekDay() |
java.util.HashMap |
getWorkHourList()
Get calendar information
|
java.util.TreeMap |
getWorkPeriodPatternDaySeq() |
boolean |
isAllowPastLoadEnabled() |
boolean |
isAlternateAvailEnabled() |
boolean |
isComplianceEnabled() |
boolean |
isDefaultScenario() |
boolean |
isEnabledRelatedAttributes() |
boolean |
isPagingModel()
Return true if the model is a paging model
|
boolean |
isProjectReadOnly() |
boolean |
isRestrictWorkToDates() |
java.util.Iterator |
iterateConstraintsFromActivity(IMXActivity activity) |
void |
newConstraintFromActivity(java.lang.Object projectMbo,
IMXActivity fromActivity,
java.sql.ResultSet resultSet) |
java.util.Iterator |
reservationIteratorForResource(IMXResource resource)
Returns an Iterator of Reservations for the given Resource
|
void |
setActivityApplinkList(java.lang.String className,
java.util.HashMap list)
Set activity applink list.
|
void |
setAllowPastLoad(boolean allowPastLoad) |
void |
setAlternateAvail(boolean useAlternateAvail) |
void |
setAssetLocNonWorkHourList(java.util.HashMap skdAssetLocNonWorkHourCals)
Set calendar and non work hour information.
|
void |
setAssetLocOverlapMap(java.util.HashMap assetLocOverlapCalMap) |
void |
setAssetLocWorkHourList(java.util.HashMap skdAssetLocWorkHourCals)
Set calendar and non work hour information.
|
void |
setCalendarBreakPatternCount(java.util.HashMap daysInShiftPattern) |
void |
setCalendarBreakPatternMap(java.util.HashMap calendarBreakPattern) |
void |
setComplianceEnabled(boolean val) |
void |
setDefaultScenario(boolean isDefaultScenario) |
void |
setEnabledRelatedAttributes(boolean isEnabledRelatedAttributes) |
void |
setGanttConfigInfo(IGanttConfigInfo ganttConfigInfo)
Set the Gannt config info for the model
|
void |
setLoadDateTime(java.util.Date loadDateTime) |
void |
setLocalizedScenarioFieldTitle(java.lang.String localizedScenarioFieldTitle) |
void |
setMergedNonWorkPeriod(java.util.ArrayList mergedWorkPeriods)
Set non work period after merging all shifts
|
void |
setMergedWorkPeriod(java.util.ArrayList mergedWorkPeriods)
Set work period after merging all shifts
|
void |
setPercentCompleteType(IMXGanttModel.PercentCompleteType type) |
void |
setProjectDescription(java.lang.String projectDescription) |
void |
setProjectEndDate(java.util.Date endDate) |
void |
setProjectEndOffsetDays(int projectEndOffsetDays) |
void |
setProjectId(java.lang.String projectId) |
void |
setProjectName(java.lang.String projectName) |
void |
setProjectPercentComplete(IMXGanttModel.PercentCompleteType pcType,
int val) |
void |
setProjectReadOnly(boolean projectReadOnly) |
void |
setProjectStartDate(java.util.Date start)
Set project start date
|
void |
setProjectStartOffsetDays(int projectStartOffsetDays) |
void |
setProjectType(java.lang.String projectType)
set project type
|
void |
setProperties(java.util.Properties viewerProperties) |
void |
setResourceDisplay(java.lang.String resourceDisplay) |
void |
setRestrictWorkToDates(boolean isRestrictWorkToDates) |
void |
setScenarioName(java.lang.String scenarioName) |
void |
setShowMaintOperFlag(boolean showMaintOper)
set showMaintOper flag
|
void |
setSkdActionInfo(java.util.HashMap info)
Set action information
|
void |
setSkdActionUidInfo(java.util.HashMap info)
Set action information with key as action unique id
|
void |
setSortedActivityChildren(java.util.Map sortedActivityChildren)
Set sorted activity children
|
void |
setSortedResourceChildren(java.util.Map sortedResourceChildren)
Set sorted resource children
|
void |
setUserData(java.lang.String key,
java.lang.Object data)
Sets a piece of user data in the model.
|
void |
setUserLocale(java.util.Locale locale) |
void |
setUserTimezone(java.util.TimeZone timeZone) |
void |
setUseWith(java.lang.String useWith) |
void |
setWeekday(java.lang.String weekday) |
void |
setWorkHourList(java.util.HashMap skdCals)
Set calendar and work hour information.
|
void |
setWorkPeriodPatternDaySeq(java.util.TreeMap workPeriodPatternDaySeq) |
addActivity, addConstraint, addReservation, addResource, constraintIterator, constraintIteratorFromActivity, constraintIteratorToActivity, contains, contains, contains, fireReservationEvent, getChildActivityCount, getChildResourceCount, getParentActivity, getParentResource, getRootActivity, getRootResource, moveActivity, moveResource, removeActivity, removeActivity, removeConstraint, removeReservation, removeResource, removeResource, reservationIterator, reservationIterator, reservationIterator, reservationIterator, setRootActivity, setRootResourceactivityPreorderIterator, activityPreorderIterator, addActivity, addActivityHierarchyListener, addActivityListener, addConstraintListener, addGanttModelPropertyListener, addReservationListener, addResource, addResourceHierarchyListener, addResourceListener, clear, fireActivitiesInserted, fireActivitiesInserted, fireActivitiesRemoved, fireActivitiesRemoved, fireActivityEvent, fireActivityInserted, fireActivityMoved, fireActivityRemoved, fireConstraintEvent, fireConstraintInserted, fireConstraintRemoved, fireConstraintRemoved, fireGanttModelPropertyEvent, fireReservationInserted, fireReservationRemoved, fireReservationRemoved, fireResourceEvent, fireResourceInserted, fireResourceMoved, fireResourceRemoved, fireResourcesInserted, fireResourcesInserted, fireResourcesRemoved, fireResourcesRemoved, getActivityHierarchyListeners, getActivityListeners, getChild, getChildCount, getParent, getParentIndex, getResourceHierarchyListeners, getResourceListeners, isAdjusting, isBatching, registerEventListener, removeActivityHierarchyListener, removeActivityListener, removeConstraintListener, removeGanttModelPropertyListener, removeReservationListener, removeResourceHierarchyListener, removeResourceListener, resourcePreorderIterator, resourcePreorderIterator, setAdjusting, setBatching, writeEventListenerspublic java.lang.Object getUserData(java.lang.String key)
getUserData in interface IMXGanttModelkey - java.lang.NullPointerException - if data is null, and return type is a java primativepublic void setUserData(java.lang.String key,
java.lang.Object data)
setUserData in interface IMXGanttModelkey - data - public IGanttConfigInfo getGanttConfigInfo()
getGanttConfigInfo in interface IMXGanttModelpublic void setGanttConfigInfo(IGanttConfigInfo ganttConfigInfo)
ganttConfigInfo - public void setWorkHourList(java.util.HashMap skdCals)
setWorkHourList in interface IMXGanttModelHashmap - skdCalspublic void setSkdActionInfo(java.util.HashMap info)
HashMap - HashMap> info public java.util.HashMap getSkdActionInfo()
getSkdActionInfo in interface IMXGanttModelpublic java.util.HashMap getSkdActionInfo(java.lang.String useWith)
public void setSkdActionUidInfo(java.util.HashMap info)
HashMap - infopublic java.util.HashMap getSkdActionUidInfo()
public java.util.HashMap getWorkHourList()
getWorkHourList in interface IMXGanttModelpublic void setProjectStartDate(java.util.Date start)
start - datepublic java.util.Date getProjectStartDate()
public void setMergedNonWorkPeriod(java.util.ArrayList mergedWorkPeriods)
setMergedNonWorkPeriod in interface IMXGanttModelArrayList - mergedWorkPeriodspublic java.util.ArrayList getMergedNonWorkPeriod()
getMergedNonWorkPeriod in interface IMXGanttModelpublic void setMergedWorkPeriod(java.util.ArrayList mergedWorkPeriods)
setMergedWorkPeriod in interface IMXGanttModelArrayList - mergedWorkPeriodspublic java.util.ArrayList getMergedWorkPeriods()
getMergedWorkPeriods in interface IMXGanttModelpublic void setSortedActivityChildren(java.util.Map sortedActivityChildren)
Map - List> sortedActivityChildren public java.util.Map getSortedActivityChildren()
public void setSortedResourceChildren(java.util.Map sortedResourceChildren)
Map - List> sortedResourceChildren public java.util.Map getSortedResourceChildren()
public int getParentActivityIndex(ilog.views.gantt.IlvActivity activity)
-1 is
returned.getParentActivityIndex in interface ilog.views.gantt.IlvGanttModelgetParentActivityIndex in class ilog.views.gantt.model.IlvDefaultGanttModelactivity - The activity.public ilog.views.gantt.IlvActivity getChildActivity(ilog.views.gantt.IlvActivity parent,
int index)
index.getChildActivity in interface ilog.views.gantt.IlvGanttModelgetChildActivity in class ilog.views.gantt.model.IlvDefaultGanttModelparent - The parent activity.index - The child index.index.public int getChildActivityIndex(ilog.views.gantt.IlvActivity parent,
ilog.views.gantt.IlvActivity child)
getChildActivityIndex in interface ilog.views.gantt.IlvGanttModelgetChildActivityIndex in class ilog.views.gantt.model.IlvDefaultGanttModelparent - The parent activity.child - The child activity to find the index of.-1 if the
activity is not a child of parent.public java.util.Iterator childActivityIterator(ilog.views.gantt.IlvActivity parent)
childActivityIterator in interface ilog.views.gantt.IlvGanttModelchildActivityIterator in class ilog.views.gantt.model.IlvDefaultGanttModelparent - IlvActivitypublic int getChildIndex(ilog.views.gantt.IlvHierarchyNode parent,
ilog.views.gantt.IlvHierarchyNode child)
getChildIndex in interface ilog.views.gantt.IlvGanttModelgetChildIndex in class ilog.views.gantt.model.IlvAbstractGanttModelparent - IlvHierarchyNodepublic int getParentResourceIndex(ilog.views.gantt.IlvResource resource)
-1 is
returned.getParentResourceIndex in interface ilog.views.gantt.IlvGanttModelgetParentResourceIndex in class ilog.views.gantt.model.IlvDefaultGanttModelresource - The resource.public ilog.views.gantt.IlvResource getChildResource(ilog.views.gantt.IlvResource parent,
int index)
index.getChildResource in interface ilog.views.gantt.IlvGanttModelgetChildResource in class ilog.views.gantt.model.IlvDefaultGanttModelparent - The parent resource.index - The child index.index.public int getChildResourceIndex(ilog.views.gantt.IlvResource parent,
ilog.views.gantt.IlvResource child)
getChildResourceIndex in interface ilog.views.gantt.IlvGanttModelgetChildResourceIndex in class ilog.views.gantt.model.IlvDefaultGanttModelparent - The parent resource.child - The child resource to find the index of.-1 if the
activity is not a child of parent.public java.util.Iterator childResourceIterator(ilog.views.gantt.IlvResource parent)
childResourceIterator in interface ilog.views.gantt.IlvGanttModelchildResourceIterator in class ilog.views.gantt.model.IlvDefaultGanttModelparent - IlvResourcepublic void setActivityApplinkList(java.lang.String className,
java.util.HashMap list)
className - list - public java.util.HashMap getActivityApplinkList(java.lang.String className)
className - public void setCalendarBreakPatternMap(java.util.HashMap calendarBreakPattern)
setCalendarBreakPatternMap in interface IMXGanttModelpublic java.util.HashMap getCalendarBreakPatternMap()
getCalendarBreakPatternMap in interface IMXGanttModelpublic void setCalendarBreakPatternCount(java.util.HashMap daysInShiftPattern)
setCalendarBreakPatternCount in interface IMXGanttModelpublic java.util.HashMap getCalendarBreakPatternCount()
getCalendarBreakPatternCount in interface IMXGanttModelpublic java.util.Date getProjectEndDate()
public void setProjectEndDate(java.util.Date endDate)
public boolean isProjectReadOnly()
public void setProjectReadOnly(boolean projectReadOnly)
public void setWorkPeriodPatternDaySeq(java.util.TreeMap workPeriodPatternDaySeq)
setWorkPeriodPatternDaySeq in interface IMXGanttModelpublic java.util.TreeMap getWorkPeriodPatternDaySeq()
getWorkPeriodPatternDaySeq in interface IMXGanttModelpublic void setAssetLocOverlapMap(java.util.HashMap assetLocOverlapCalMap)
setAssetLocOverlapMap in interface IMXGanttModelpublic java.util.HashMap getAssetLocOverlapMap()
public void setAssetLocNonWorkHourList(java.util.HashMap skdAssetLocNonWorkHourCals)
setAssetLocNonWorkHourList in interface IMXGanttModelHashmap - skdCalspublic java.util.HashMap getAssetLocNonWorkHourList()
public void setAssetLocWorkHourList(java.util.HashMap skdAssetLocWorkHourCals)
setAssetLocWorkHourList in interface IMXGanttModelHashmap - skdCalspublic java.util.HashMap getAssetLocWorkHourList()
public void setProjectType(java.lang.String projectType)
setProjectType in interface IMXGanttModelprojectType - public java.lang.String getProjectType()
public void setShowMaintOperFlag(boolean showMaintOper)
setShowMaintOperFlag in interface IMXGanttModelprojectType - public boolean getShowMaintOperFlag()
public java.lang.String getProjectId()
getProjectId in interface IMXGanttModelpublic void setProjectId(java.lang.String projectId)
public java.lang.String getProjectName()
getProjectName in interface IMXGanttModelpublic void setProjectName(java.lang.String projectName)
public java.lang.String getProjectDescription()
getProjectDescription in interface IMXGanttModelpublic void setProjectDescription(java.lang.String projectDescription)
public java.lang.String getScenarioName()
getScenarioName in interface IMXGanttModelpublic java.lang.String getUseWith()
public void setScenarioName(java.lang.String scenarioName)
public boolean isDefaultScenario()
public void setDefaultScenario(boolean isDefaultScenario)
public java.lang.String getLocalizedScenarioFieldTitle()
getLocalizedScenarioFieldTitle in interface IMXGanttModelpublic void setLocalizedScenarioFieldTitle(java.lang.String localizedScenarioFieldTitle)
public void setUseWith(java.lang.String useWith)
setUseWith in interface IMXGanttModelpublic java.util.List getShifts()
getShifts in interface IMXGanttModelpublic SKDShiftWorkTime getShiftWorkTime(java.lang.String shift)
getShiftWorkTime in interface IMXGanttModelpublic void setAllowPastLoad(boolean allowPastLoad)
public void setAlternateAvail(boolean useAlternateAvail)
public void setResourceDisplay(java.lang.String resourceDisplay)
public void setWeekday(java.lang.String weekday)
public void setProperties(java.util.Properties viewerProperties)
public java.util.Properties getProperties()
public void setUserTimezone(java.util.TimeZone timeZone)
public void setUserLocale(java.util.Locale locale)
public java.util.Locale getUserLocale()
getUserLocale in interface IMXGanttModelpublic java.util.TimeZone getUserTimezone()
getUserTimezone in interface IMXGanttModelpublic com.ibm.icu.util.ULocale getUserULocale()
getUserULocale in interface IMXGanttModelpublic Range getActualStartEnd()
getActualStartEnd in interface IMXGanttModelmodel - public Range getProjectStartEnd()
IMXGanttModelgetProjectStartEnd in interface IMXGanttModelpublic java.util.HashMap getShiftCalendarInfo()
getShiftCalendarInfo in interface IMXGanttModelpublic java.util.Iterator reservationIteratorForResource(IMXResource resource)
IMXGanttModelreservationIteratorForResource in interface IMXGanttModelpublic boolean containsActivity(IMXActivity data)
containsActivity in interface IMXGanttModelpublic IMXActivity getParentForActivity(IMXActivity data)
getParentForActivity in interface IMXGanttModelpublic IMXGanttModel.PercentCompleteType getPercentCompleteType()
IMXGanttModelgetPercentCompleteType in interface IMXGanttModelpublic void setPercentCompleteType(IMXGanttModel.PercentCompleteType type)
public java.util.Date getLoadDateTime()
public void setLoadDateTime(java.util.Date loadDateTime)
public DateRange getCalendarStartEnd()
IMXGanttModelgetCalendarStartEnd in interface IMXGanttModelpublic DateRange getCalculatedProjectMinMax()
IMXGanttModelgetCalculatedProjectMinMax in interface IMXGanttModelpublic int getProjectPercentComplete(IMXGanttModel.PercentCompleteType pcType)
getProjectPercentComplete in interface IMXGanttModelpublic void setProjectPercentComplete(IMXGanttModel.PercentCompleteType pcType, int val)
setProjectPercentComplete in interface IMXGanttModelpublic int getDisplayRowCount()
IMXGanttModelgetDisplayRowCount in interface IMXGanttModelpublic boolean isPagingModel()
IMXGanttModelisPagingModel in interface IMXGanttModelpublic int getPages()
IMXGanttModelgetPages in interface IMXGanttModelpublic int getPageSize()
IMXGanttModelgetPageSize in interface IMXGanttModelpublic IMXActivity getActivityForId(java.lang.String id)
getActivityForId in interface IMXGanttModelpublic IMXResource getResourceForId(java.lang.String id)
getResourceForId in interface IMXGanttModelpublic void setComplianceEnabled(boolean val)
setComplianceEnabled in interface IMXGanttModelpublic boolean isComplianceEnabled()
isComplianceEnabled in interface IMXGanttModelpublic int getProjectStartOffsetDays()
getProjectStartOffsetDays in interface IMXGanttModelpublic int getProjectEndOffsetDays()
getProjectEndOffsetDays in interface IMXGanttModelpublic void setProjectStartOffsetDays(int projectStartOffsetDays)
setProjectStartOffsetDays in interface IMXGanttModelpublic void setProjectEndOffsetDays(int projectEndOffsetDays)
setProjectEndOffsetDays in interface IMXGanttModelpublic boolean isAlternateAvailEnabled()
isAlternateAvailEnabled in interface IMXGanttModelpublic boolean isAllowPastLoadEnabled()
isAllowPastLoadEnabled in interface IMXGanttModelpublic java.lang.String getResourceDisplay()
getResourceDisplay in interface IMXGanttModelpublic java.lang.String getWeekDay()
getWeekDay in interface IMXGanttModelpublic java.util.Iterator iterateConstraintsFromActivity(IMXActivity activity)
iterateConstraintsFromActivity in interface IMXGanttModelpublic void newConstraintFromActivity(java.lang.Object projectMbo,
IMXActivity fromActivity,
java.sql.ResultSet resultSet)
newConstraintFromActivity in interface IMXGanttModelpublic int getChildNodeCount(IMXActivity activity)
getChildNodeCount in interface IMXGanttModelpublic IMXActivity getChildNode(IMXActivity activity, int index)
getChildNode in interface IMXGanttModelpublic IMXActivity getRootNode()
getRootNode in interface IMXGanttModelpublic void setRestrictWorkToDates(boolean isRestrictWorkToDates)
public boolean isRestrictWorkToDates()
public void setEnabledRelatedAttributes(boolean isEnabledRelatedAttributes)
public boolean isEnabledRelatedAttributes()