at.ac.tuwien.cs.ztimeview.core
Class PlanningTask

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byat.ac.tuwien.cs.ztimeview.core.Task
          extended byat.ac.tuwien.cs.ztimeview.core.PlanningTask
All Implemented Interfaces:
ActivePlanningInterval, java.lang.Cloneable, Interval, javax.swing.tree.MutableTreeNode, PlanningInterval, java.io.Serializable, Timed, javax.swing.tree.TreeNode

public class PlanningTask
extends Task
implements ActivePlanningInterval

Class representing a Task including temporal uncertainties

Version:
0.1 created: 2004-06-06 last change: 2004-06-06
Author:
Wolfgang Aigner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
PlanningTask()
           
 
Method Summary
 java.util.Date getEarliestBegin()
          Get earliest instant of time annotation
 java.util.Date getEarliestFinishingTime()
          Get earliest finishing time
 java.util.Date getEarliestStartingTime()
          Get earliest starting time
 java.util.Date getLatestEnd()
          Get latest instant of time annotation
 java.util.Date getLatestFinishingTime()
          Get latest finishing time
 java.util.Date getLatestStartingTime()
          Get latest starting time
 java.util.Date getMaxDuBegin()
          Get beginning of maxDu interval
 java.util.Date getMaxDuEnd()
          Get end of maxDu interval
 java.lang.Long getMaximumDuration()
          Get maximum duration
 java.util.Date getMinDuBegin()
          Get beginning of minDu interval
 java.util.Date getMinDuEnd()
          Get end of minDu interval
 java.lang.Long getMinimumDuration()
          Get minimum duration
 TimeAnnotation getTimeAnnotation()
          Get time annotation
 void setEarliestFinishingTime(java.util.Date eft)
          Set earliest finishing time
 void setEarliestStartingTime(java.util.Date est)
          Set earliest starting time
 void setLatestFinishingTime(java.util.Date lft)
          Set latest finishing time
 void setLatestStartingTime(java.util.Date lst)
          Set latest starting time
 void setMaximumDuration(java.lang.Long maxDu)
          Set maximum duration
 void setMinimumDuration(java.lang.Long minDu)
          Set minimum duration
 void setTimeAnnotation(TimeAnnotation timeAnnotation)
          Set time annotation
 java.lang.String toString()
           
 
Methods inherited from class at.ac.tuwien.cs.ztimeview.core.Task
getEnd, getName, getStart, printHierarchy, printHierarchy, setEnd, setName, setStart
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface at.ac.tuwien.cs.ztimeview.time.Interval
getEnd, getStart, setEnd, setStart
 

Constructor Detail

PlanningTask

public PlanningTask()
Method Detail

setTimeAnnotation

public void setTimeAnnotation(TimeAnnotation timeAnnotation)
Set time annotation

Parameters:
timeAnnotation - timing attributes of plan

getTimeAnnotation

public TimeAnnotation getTimeAnnotation()
Get time annotation

Returns:
timing attributes of plan

toString

public java.lang.String toString()
Overrides:
toString in class Task

setEarliestStartingTime

public void setEarliestStartingTime(java.util.Date est)
Set earliest starting time

Specified by:
setEarliestStartingTime in interface PlanningInterval
Parameters:
est - earliest starting time

getEarliestStartingTime

public java.util.Date getEarliestStartingTime()
Get earliest starting time

Specified by:
getEarliestStartingTime in interface PlanningInterval
Returns:
earliest starting time

setLatestStartingTime

public void setLatestStartingTime(java.util.Date lst)
Set latest starting time

Specified by:
setLatestStartingTime in interface PlanningInterval
Parameters:
lst - latest starting time

getLatestStartingTime

public java.util.Date getLatestStartingTime()
Get latest starting time

Specified by:
getLatestStartingTime in interface PlanningInterval
Returns:
latest starting time

setEarliestFinishingTime

public void setEarliestFinishingTime(java.util.Date eft)
Set earliest finishing time

Specified by:
setEarliestFinishingTime in interface PlanningInterval
Parameters:
eft - earliest finishing time

getEarliestFinishingTime

public java.util.Date getEarliestFinishingTime()
Get earliest finishing time

Specified by:
getEarliestFinishingTime in interface PlanningInterval
Returns:
earliest finishing time

setLatestFinishingTime

public void setLatestFinishingTime(java.util.Date lft)
Set latest finishing time

Specified by:
setLatestFinishingTime in interface PlanningInterval
Parameters:
lft - latest finishing time

getLatestFinishingTime

public java.util.Date getLatestFinishingTime()
Get latest finishing time

Specified by:
getLatestFinishingTime in interface PlanningInterval
Returns:
latest finishing time

setMinimumDuration

public void setMinimumDuration(java.lang.Long minDu)
Set minimum duration

Specified by:
setMinimumDuration in interface PlanningInterval
Parameters:
minDu - minimum duration in milliseconds

getMinimumDuration

public java.lang.Long getMinimumDuration()
Get minimum duration

Specified by:
getMinimumDuration in interface PlanningInterval
Returns:
minimum duration in milliseconds

setMaximumDuration

public void setMaximumDuration(java.lang.Long maxDu)
Set maximum duration

Specified by:
setMaximumDuration in interface PlanningInterval
Parameters:
maxDu - maximum duration in milliseconds

getMaximumDuration

public java.lang.Long getMaximumDuration()
Get maximum duration

Specified by:
getMaximumDuration in interface PlanningInterval
Returns:
maximum duration in milliseconds

getEarliestBegin

public java.util.Date getEarliestBegin()
Get earliest instant of time annotation

Specified by:
getEarliestBegin in interface PlanningInterval

getLatestEnd

public java.util.Date getLatestEnd()
Get latest instant of time annotation

Specified by:
getLatestEnd in interface PlanningInterval

getMaxDuBegin

public java.util.Date getMaxDuBegin()
Get beginning of maxDu interval

Specified by:
getMaxDuBegin in interface PlanningInterval

getMinDuBegin

public java.util.Date getMinDuBegin()
Get beginning of minDu interval

Specified by:
getMinDuBegin in interface PlanningInterval

getMaxDuEnd

public java.util.Date getMaxDuEnd()
Get end of maxDu interval

Specified by:
getMaxDuEnd in interface PlanningInterval

getMinDuEnd

public java.util.Date getMinDuEnd()
Get end of minDu interval

Specified by:
getMinDuEnd in interface PlanningInterval


Copyright © 2004 by Vienna University of Technology.