|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prozima.pengine.ScheduleNode
public abstract class ScheduleNode
Represents the state of a node in a schedule. Activities and milestones are both types of schedule node and share many behaviours in common.
| Nested Class Summary | |
|---|---|
static class |
ScheduleNode.PredecessorType
Specifies the type of predecessor in a relationship. |
static class |
ScheduleNode.Scheduling
Specifies if an schedule node should be scheduled ASAP or ALAP within its constraints and relationships. |
| Constructor Summary | |
|---|---|
ScheduleNode()
|
|
| Method Summary | |
|---|---|
boolean |
addRelationship(Relationship.RelationshipType inRelType,
ScheduleNode.PredecessorType inPredType,
int inID)
Define a new relationship this node has with a predecessor. |
ScheduleNode |
clone()
|
java.lang.Integer |
getAncestorID()
Retrieve the ancestor ID of the schedule node. |
Constraint |
getConstraint()
Get the constraint for this schedule node. |
int |
getCumulativeEffort()
Retrieve the total effort required for this schedule node (if it has effort) and all its predecessor nodes. |
int |
getCumulativeEffortWorked()
Retrieve the Cumulative Effort worked for this schedule node. |
java.lang.Integer |
getID()
Retrieve the ID of the schedule node. |
java.lang.String |
getName()
Retrieve the name of the schedule node. |
java.lang.Integer |
getProjectID()
Retrieve the ID of the parent project. |
java.util.List<java.lang.Integer> |
getRelationships(Relationship.RelationshipType inRelType,
ScheduleNode.PredecessorType inPredType)
Get a List of the IDs of all the schedule nodes which have the specified type of relationship with this schedule node. |
java.lang.Integer |
getScheduleID()
Retrieve the ID of the parent schedule. |
ScheduleNode.Scheduling |
getSchedulingPref()
Get the Scheduling Preference for this task. |
boolean |
removeRelationship(Relationship.RelationshipType inRelType,
int inPredID)
Remove a predecessor relationship for the schedule node. |
boolean |
setAncestorID(int inID)
Set the ancestor ID of the schedule node. |
boolean |
setConstraint(Constraint inConstraint)
Attaches a new Constraint to this ScheduleNode. |
boolean |
setID(int inID)
Set the ID of the schedule node. |
boolean |
setName(java.lang.String inName)
Set the name of the schedule node. |
boolean |
setProjectID(int inID)
Store the ID of the parent project. |
boolean |
setScheduleID(int inID)
Store the ID of the parent schedule. |
boolean |
setSchedulingPref(ScheduleNode.Scheduling inPref)
Set the scheduling preference for the ScheduleNode. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduleNode()
| Method Detail |
|---|
public boolean addRelationship(Relationship.RelationshipType inRelType,
ScheduleNode.PredecessorType inPredType,
int inID)
inRelType - Type of relationship. Cannot be null.inPredType - Type of predecessor. Cannot be null and the value ScheduleNode.PredecessorType.ALL is
not valid when creating a relationship.inID - ID of the predecessor node.
public ScheduleNode clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.Integer getAncestorID()
setAncestorID(int)public Constraint getConstraint()
Constraint or null if there is no constraint.public int getCumulativeEffort()
public int getCumulativeEffortWorked()
public java.lang.Integer getID()
setID(int)public java.lang.String getName()
public java.lang.Integer getProjectID()
public java.util.List<java.lang.Integer> getRelationships(Relationship.RelationshipType inRelType,
ScheduleNode.PredecessorType inPredType)
inRelType - Relationship type.inPredType - Types of predecessors.
public java.lang.Integer getScheduleID()
public ScheduleNode.Scheduling getSchedulingPref()
public boolean removeRelationship(Relationship.RelationshipType inRelType,
int inPredID)
inRelType - The type of relationship to the predecessor.inPredID - The ID of the predecessor node.
public boolean setAncestorID(int inID)
inID - of ancestor schedule node. Must be zero or positive integer.
public boolean setConstraint(Constraint inConstraint)
inConstraint - A valid new constraint. null is not permitted.
public boolean setID(int inID)
public boolean setName(java.lang.String inName)
public boolean setProjectID(int inID)
public boolean setScheduleID(int inID)
public boolean setSchedulingPref(ScheduleNode.Scheduling inPref)
inPref - Scheduling preference. Cannot be null.
ScheduleNode.Schedulingpublic 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 | ||||||||