Class GanttTask

java.lang.Object
  |
  +--GanttTask
All Implemented Interfaces:
java.io.Serializable

public class GanttTask
extends java.lang.Object
implements java.io.Serializable

Class that generate a task

See Also:
Serialized Form

Constructor Summary
GanttTask(java.lang.String name, GanttCalendar start, int length)
          Constructor
 
Method Summary
 void checkDepend(java.lang.String t, java.lang.String n)
          This function look on the array if the task named "t" is in.
 void clearDepend()
          Clear depends list
 boolean getBilan()
          Is it a meeting point??
 java.util.ArrayList getDepend()
          Return the list of depends
 GanttCalendar getEnd()
          Return the end date
 int getLength()
          Return the duration
 java.lang.String getNotes()
          Return the notes
 int getPercent()
          Return the state
 GanttCalendar getStart()
          Return the begining
 void refreshDateAndAdvancement(GanttTree tree)
          This function calculate the begin of a task in function of the sub taks.
 void setBilan(boolean b)
          Change meeting point
 void setDepend(java.lang.String t)
          Add new task on depends list
 void setLength(int l)
          Change the duration
 void setName(java.lang.String name)
          Change the name
 void setNotes(java.lang.String note)
          Change notes
 void setPercent(int percent)
          Change state
 void setStart(GanttCalendar s)
          Change the begining
 java.lang.String toString()
          Return the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GanttTask

public GanttTask(java.lang.String name,
                 GanttCalendar start,
                 int length)
Constructor

Method Detail

toString

public java.lang.String toString()
Return the name.

Overrides:
toString in class java.lang.Object

getLength

public int getLength()
Return the duration


getStart

public GanttCalendar getStart()
Return the begining


getEnd

public GanttCalendar getEnd()
Return the end date


getNotes

public java.lang.String getNotes()
Return the notes


getPercent

public int getPercent()
Return the state


getDepend

public java.util.ArrayList getDepend()
Return the list of depends


getBilan

public boolean getBilan()
Is it a meeting point??


setName

public void setName(java.lang.String name)
Change the name


setLength

public void setLength(int l)
Change the duration


setStart

public void setStart(GanttCalendar s)
Change the begining


setNotes

public void setNotes(java.lang.String note)
Change notes


setPercent

public void setPercent(int percent)
Change state


setBilan

public void setBilan(boolean b)
Change meeting point


setDepend

public void setDepend(java.lang.String t)
Add new task on depends list


clearDepend

public void clearDepend()
Clear depends list


checkDepend

public void checkDepend(java.lang.String t,
                        java.lang.String n)
This function look on the array if the task named "t" is in. In this case, replace by a new name "n".


refreshDateAndAdvancement

public void refreshDateAndAdvancement(GanttTree tree)
This function calculate the begin of a task in function of the sub taks.