|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.ganttproject.GanttTaskRelationship
Title:
Description: This class model the four relationships between different tasks.
Start-start: As soon as the predecessor task starts, the successor task can start.
start to finish: As soon as the predecessor task starts, the successor task can finish. This type of link is rarely used, but still available if you need it.
finish to start relationship: As soon as the predecessor task finishes, the successor task can start
finish to finish relationship: As soon as the predecessor task finishes, the successor task can finish
Field Summary | |
static int |
FF
|
static int |
FS
|
static int |
SF
|
static int |
SS
|
Constructor Summary | |
GanttTaskRelationship()
Constructor, do nothing |
|
GanttTaskRelationship(int predecessorTaskID,
int successorTaskID,
int relationshipType)
Constructor |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(GanttTaskRelationship compareRel)
|
GanttTask |
getPredecessorTask()
get the predecessor task |
int |
getPredecessorTaskID()
get the predecessor task ID or -1 if there is no such ID |
int |
getRelationshipType()
get the relationship type |
GanttTask |
getSuccessorTask()
get the successor task |
int |
getSuccessorTaskID()
|
void |
setPredecessorTask(GanttTask predecessorTask)
set the predecessor task by GanttTask object |
void |
setPredecessorTask(int predecessorTaskID)
set the predecessor task ID by integer |
void |
setRelationshipType(int relationshipType)
set the relationship type |
void |
setSuccessorTask(GanttTask successorTask)
set the successor task by GanttTask object |
void |
setSuccessorTask(int seccessorTaskID)
set the successor task ID by the integer |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SS
public static final int FS
public static final int FF
public static final int SF
Constructor Detail |
public GanttTaskRelationship()
public GanttTaskRelationship(int predecessorTaskID, int successorTaskID, int relationshipType)
Method Detail |
public GanttTask getPredecessorTask()
public int getPredecessorTaskID()
public void setPredecessorTask(GanttTask predecessorTask)
public void setPredecessorTask(int predecessorTaskID)
predecessorTaskID
- ID of predecessor taskpublic GanttTask getSuccessorTask()
public int getSuccessorTaskID()
public void setSuccessorTask(GanttTask successorTask)
successorTask
- GanttTask object of successorpublic void setSuccessorTask(int seccessorTaskID)
public int getRelationshipType()
public void setRelationshipType(int relationshipType)
public boolean equals(GanttTaskRelationship compareRel)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |