public final class Relation extends Object
| Constructor and Description |
|---|
Relation(Task sourceTask,
Task targetTask,
RelationType type,
Duration lag)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public Relation(Task sourceTask, Task targetTask, RelationType type, Duration lag)
sourceTask - source task instancetargetTask - target task instancetype - relation typelag - relation lagpublic RelationType getType()
public Duration getLag()
public Task getSourceTask()
public Task getTargetTask()
Copyright © 2013. All Rights Reserved.