ix.ip2
Class AgendaItem
java.lang.Object
ix.icore.process.TimePoint
ix.icore.process.PNode
ix.ip2.AgendaItem
- All Implemented Interfaces:
- HasStatus
- Direct Known Subclasses:
- ActivityItem, IssueItem
public abstract class AgendaItem
- extends PNode
An entry in an Agenda.
Methods inherited from class ix.icore.process.PNode |
addChild, allComputeStatus, allHaveStatus, computeStatus, ensureChildrenLinkedToParent, expandOneLevel, getBegin, getChildren, getEnd, getEnd, getLevel, getModelManager, getNameToChildMap, getParentPNode, getRefinement, getVarTable, hasChildren, isAncestorOf, isDescendentOf, isExpanded, isParentOf, isSiblingOf, makePNode, processOrderings, refToTimePoint, setChildren, setModelManager, setNameToChildMap, setRefinement, setVarTable, statusFromNodeEnds, unlink, walk, walkChildren |
Methods inherited from class ix.icore.process.TimePoint |
addPostConstraint, addPreConstraint, clear, getMaxTime, getMinTime, getPostConstraints, getPreConstraints, hasUnboundedMax, removePostConstraint, removePreConstraint, setMaxTime, setMinTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
actions
protected java.util.List actions
reports
protected java.util.List reports
listeners
protected java.util.List listeners
handledBy
protected HandlerAction handledBy
AgendaItem
public AgendaItem(TaskItem about)
AgendaItem
public AgendaItem(AgendaItem parent,
TaskItem about)
getAbout
public TaskItem getAbout()
setAbout
public void setAbout(TaskItem item)
getPattern
public LList getPattern()
- Specified by:
getPattern
in class PNode
getPatternVars
public java.util.Set getPatternVars()
getUnboundVars
public java.util.Set getUnboundVars()
setPattern
public void setPattern(LList pattern)
getShortDescription
public java.lang.String getShortDescription()
isNew
public boolean isNew()
setIsNew
public void setIsNew(boolean value)
getParent
public AgendaItem getParent()
getStatus
public Status getStatus()
- Specified by:
getStatus
in interface HasStatus
- Specified by:
getStatus
in class PNode
setStatus
public void setStatus(Status status)
- Description copied from class:
PNode
- Changes the node's status and then that of related nodes.
- Specified by:
setStatus
in interface HasStatus
- Overrides:
setStatus
in class PNode
assignStatus
public void assignStatus(Status s)
- Description copied from class:
PNode
- Called when loading a plan to give this PNode the status specified
in the plan. In other cases,
PNode.setStatus(Status)
should be
called instead.
- Overrides:
assignStatus
in class PNode
getPriority
public Priority getPriority()
setPriority
public void setPriority(Priority priority)
getComments
public java.lang.String getComments()
setComments
public void setComments(java.lang.String comments)
getActions
public java.util.List getActions()
clearActions
public void clearActions()
wantsActionsFrom
public boolean wantsActionsFrom(ItemHandler handler)
- Gives this item its say in whether an item-handler should
be able to give it handler actions.
- See Also:
ItemHandler.appliesTo(AgendaItem item)
addAction
public void addAction(HandlerAction act)
- Add an action to this item. Note that an action with the same
description may already exist. We regard that as a problem for
the AgendaItemListeners. For example, a user interface might use
the description as a way to identify the action and may not want
any ambiguity.
insertAction
public void insertAction(HandlerAction action)
- Adds an action to this item, putting it at a "nice" place
in the list. This is typically used by the
ItemHandler.reviseHandlerActions(AgendaItem, Object)
method.
hasAction
public boolean hasAction(HandlerAction act)
findAction
public HandlerAction findAction(java.lang.Class actionClass)
findAllActions
public java.util.List findAllActions(java.lang.Class actionClass)
findAction
public HandlerAction findAction(java.lang.String actionDescription)
actionCanBeTakenNow
public boolean actionCanBeTakenNow(HandlerAction act)
getHandledBy
public HandlerAction getHandledBy()
setHandledBy
public void setHandledBy(HandlerAction act)
getHowHandled
public java.lang.String getHowHandled()
getHistory
public java.util.List getHistory()
addHistoryEvent
public void addHistoryEvent(HistoryEvent event)
wantsReport
public boolean wantsReport(Report report)
addReport
public void addReport(Report report)
setStatusBasedOn
protected void setStatusBasedOn(Report report)
getReports
public java.util.List getReports()
handleReportBack
protected void handleReportBack(Status newStatus)
addItemListener
public void addItemListener(AgendaItemListener listener)
fireStatusChanged
public void fireStatusChanged()
firePriorityChanged
public void firePriorityChanged()
fireHandlerActionsChanged
public void fireHandlerActionsChanged()
fireNewHandlerAction
public void fireNewHandlerAction(HandlerAction act)
fireNewReport
public void fireNewReport(Report report)
fireAgendaItemEdited
public void fireAgendaItemEdited()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object