|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mpxj.Relation
public final class Relation
This class represents the relationship between two tasks. These relationships normally found in the lists of predecessors and successors associated with a task record in an MPX file.
| Constructor Summary | |
|---|---|
Relation(Task sourceTask,
Task targetTask,
RelationType type,
Duration lag)
Default constructor. |
|
| Method Summary | |
|---|---|
Duration |
getLag()
This method retrieves the lag duration associated with this relationship. |
Task |
getSourceTask()
Retrieve the source task of this relationship. |
Task |
getTargetTask()
Retrieve the target task of this relationship. |
RelationType |
getType()
Method used to retrieve the type of relationship being represented. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Relation(Task sourceTask,
Task targetTask,
RelationType type,
Duration lag)
sourceTask - source task instancetargetTask - target task instancetype - relation typelag - relation lag| Method Detail |
|---|
public RelationType getType()
public Duration getLag()
public Task getSourceTask()
public Task getTargetTask()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||