public class MXGanttModel
extends ilog.views.gantt.model.IlvDefaultGanttModel
implements java.io.Serializable
Constructor and Description |
---|
MXGanttModel() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<ilog.views.gantt.IlvActivity> |
childActivityIterator(ilog.views.gantt.IlvActivity parent)
Get iterator of sorted child activities
|
java.util.Iterator<ilog.views.gantt.IlvResource> |
childResourceIterator(ilog.views.gantt.IlvResource parent)
Get iterator of child resources for a parent
|
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> |
getActivityApplinkList(java.lang.String className)
Get activity applink list for a class name
|
java.util.HashMap |
getCalendarBreakPatternCount() |
java.util.HashMap |
getCalendarBreakPatternMap() |
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
|
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.
|
IGanttConfigInfo |
getGanttConfigInfo()
Get the Gannt config info for the model
|
java.util.ArrayList<java.util.Date> |
getMergedWorkPeriod()
Get work period after merging all shifts
|
int |
getParentActivityIndex(ilog.views.gantt.IlvActivity activity)
Returns the index of the specified activity within its parent activity.
|
int |
getParentResourceIndex(ilog.views.gantt.IlvResource resource)
Returns the index of the specified resource within its parent resource.
|
java.util.Date |
getProjectEndDate() |
java.util.Date |
getProjectStartDate()
Get project start date
|
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> |
getSkdActionInfo()
Get action information
|
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> |
getSkdActionInfo(java.lang.String useWith)
Get action information
|
java.util.HashMap<java.lang.Long,SKDActionInfo> |
getSkdActionUidInfo()
Get action information with key as action unique id
|
java.util.Map<ilog.views.gantt.IlvActivity,java.util.List<ilog.views.gantt.IlvActivity>> |
getSortedActivityChildren()
Get sorted activity children
|
java.util.Map<ilog.views.gantt.IlvResource,java.util.List<ilog.views.gantt.IlvResource>> |
getSortedResourceChildren()
Get sorted resource children
|
java.util.HashMap<java.lang.String,SKDCalendarInfo> |
getWorkHourList()
Get calendar information
|
java.util.TreeMap<java.util.Date,java.lang.String> |
getWorkPeriodPatternDaySeq() |
boolean |
isProjectReadOnly() |
void |
setActivityApplinkList(java.lang.String className,
java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> list)
Set activity applink list.
|
void |
setCalendarBreakPatternCount(java.util.HashMap<java.lang.String,java.lang.Integer> daysInShiftPattern) |
void |
setCalendarBreakPatternMap(java.util.HashMap<java.lang.String,java.util.ArrayList> calendarBreakPattern) |
void |
setGanttConfigInfo(IGanttConfigInfo ganttConfigInfo)
Set the Gannt config info for the model
|
void |
setMergedWorkPeriod(java.util.ArrayList<java.util.Date> mergedWorkPeriods)
Set work period after merging all shifts
|
void |
setProjectEndDate(java.util.Date endDate) |
void |
setProjectReadOnly(boolean projectReadOnly) |
void |
setProjectStartDate(java.util.Date start)
Set project start date
|
void |
setSkdActionInfo(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> info)
Set action information
|
void |
setSkdActionUidInfo(java.util.HashMap<java.lang.Long,SKDActionInfo> info)
Set action information with key as action unique id
|
void |
setSortedActivityChildren(java.util.Map<ilog.views.gantt.IlvActivity,java.util.List<ilog.views.gantt.IlvActivity>> sortedActivityChildren)
Set sorted activity children
|
void |
setSortedResourceChildren(java.util.Map<ilog.views.gantt.IlvResource,java.util.List<ilog.views.gantt.IlvResource>> sortedResourceChildren)
Set sorted resource children
|
void |
setWorkHourList(java.util.HashMap<java.lang.String,SKDCalendarInfo> skdCals)
Set calendar and work hour information.
|
void |
setWorkPeriodPatternDaySeq(java.util.TreeMap<java.util.Date,java.lang.String> 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, setRootResource
activityPreorderIterator, activityPreorderIterator, addActivity, addActivityHierarchyListener, addActivityListener, addConstraintListener, addGanttModelPropertyListener, addReservationListener, addResource, addResourceHierarchyListener, addResourceListener, clear, fireActivityEvent, fireConstraintEvent, fireResourceEvent, getChild, getChildCount, getParent, getParentIndex, isAdjusting, isBatching, removeActivityHierarchyListener, removeActivityListener, removeConstraintListener, removeGanttModelPropertyListener, removeReservationListener, removeResourceHierarchyListener, removeResourceListener, resourcePreorderIterator, resourcePreorderIterator, setAdjusting, setBatching
public IGanttConfigInfo getGanttConfigInfo()
public void setGanttConfigInfo(IGanttConfigInfo ganttConfigInfo)
ganttConfigInfo
- public void setWorkHourList(java.util.HashMap<java.lang.String,SKDCalendarInfo> skdCals)
Hashmap
- skdCalspublic void setSkdActionInfo(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> info)
HashMap - HashMap> info
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> getSkdActionInfo()
public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,SKDActionInfo>> getSkdActionInfo(java.lang.String useWith)
public void setSkdActionUidInfo(java.util.HashMap<java.lang.Long,SKDActionInfo> info)
HashMap
- infopublic java.util.HashMap<java.lang.Long,SKDActionInfo> getSkdActionUidInfo()
public java.util.HashMap<java.lang.String,SKDCalendarInfo> getWorkHourList()
public void setProjectStartDate(java.util.Date start)
start
- datepublic java.util.Date getProjectStartDate()
public void setMergedWorkPeriod(java.util.ArrayList<java.util.Date> mergedWorkPeriods)
ArrayList
- mergedWorkPeriodspublic java.util.ArrayList<java.util.Date> getMergedWorkPeriod()
public void setSortedActivityChildren(java.util.Map<ilog.views.gantt.IlvActivity,java.util.List<ilog.views.gantt.IlvActivity>> sortedActivityChildren)
Map - List> sortedActivityChildren
public java.util.Map<ilog.views.gantt.IlvActivity,java.util.List<ilog.views.gantt.IlvActivity>> getSortedActivityChildren()
public void setSortedResourceChildren(java.util.Map<ilog.views.gantt.IlvResource,java.util.List<ilog.views.gantt.IlvResource>> sortedResourceChildren)
Map - List> sortedResourceChildren
public java.util.Map<ilog.views.gantt.IlvResource,java.util.List<ilog.views.gantt.IlvResource>> getSortedResourceChildren()
public int getParentActivityIndex(ilog.views.gantt.IlvActivity activity)
-1
is
returned.getParentActivityIndex
in interface ilog.views.gantt.IlvGanttModel
getParentActivityIndex
in class ilog.views.gantt.model.IlvDefaultGanttModel
activity
- The activity.public ilog.views.gantt.IlvActivity getChildActivity(ilog.views.gantt.IlvActivity parent, int index)
index
.getChildActivity
in interface ilog.views.gantt.IlvGanttModel
getChildActivity
in class ilog.views.gantt.model.IlvDefaultGanttModel
parent
- 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.IlvGanttModel
getChildActivityIndex
in class ilog.views.gantt.model.IlvDefaultGanttModel
parent
- 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<ilog.views.gantt.IlvActivity> childActivityIterator(ilog.views.gantt.IlvActivity parent)
childActivityIterator
in interface ilog.views.gantt.IlvGanttModel
childActivityIterator
in class ilog.views.gantt.model.IlvDefaultGanttModel
parent
- IlvActivitypublic int getChildIndex(ilog.views.gantt.IlvHierarchyNode parent, ilog.views.gantt.IlvHierarchyNode child)
getChildIndex
in interface ilog.views.gantt.IlvGanttModel
getChildIndex
in class ilog.views.gantt.model.IlvAbstractGanttModel
parent
- IlvHierarchyNodepublic int getParentResourceIndex(ilog.views.gantt.IlvResource resource)
-1
is
returned.getParentResourceIndex
in interface ilog.views.gantt.IlvGanttModel
getParentResourceIndex
in class ilog.views.gantt.model.IlvDefaultGanttModel
resource
- The resource.public ilog.views.gantt.IlvResource getChildResource(ilog.views.gantt.IlvResource parent, int index)
index
.getChildResource
in interface ilog.views.gantt.IlvGanttModel
getChildResource
in class ilog.views.gantt.model.IlvDefaultGanttModel
parent
- 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.IlvGanttModel
getChildResourceIndex
in class ilog.views.gantt.model.IlvDefaultGanttModel
parent
- 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<ilog.views.gantt.IlvResource> childResourceIterator(ilog.views.gantt.IlvResource parent)
childResourceIterator
in interface ilog.views.gantt.IlvGanttModel
childResourceIterator
in class ilog.views.gantt.model.IlvDefaultGanttModel
parent
- IlvResourcepublic void setActivityApplinkList(java.lang.String className, java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> list)
className
- list
- public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> getActivityApplinkList(java.lang.String className)
className
- public void setCalendarBreakPatternMap(java.util.HashMap<java.lang.String,java.util.ArrayList> calendarBreakPattern)
public java.util.HashMap getCalendarBreakPatternMap()
public void setCalendarBreakPatternCount(java.util.HashMap<java.lang.String,java.lang.Integer> daysInShiftPattern)
public java.util.HashMap getCalendarBreakPatternCount()
public 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<java.util.Date,java.lang.String> workPeriodPatternDaySeq)
public java.util.TreeMap<java.util.Date,java.lang.String> getWorkPeriodPatternDaySeq()