com.prozima.pengine
Class UpdateMilestoneCommand

java.lang.Object
  extended by com.prozima.pengine.UpdateMilestoneCommand
All Implemented Interfaces:
Command

public class UpdateMilestoneCommand
extends java.lang.Object

Command modifies the state of a milestone.


Constructor Summary
UpdateMilestoneCommand(int inProjectID, int inScheduleID, int inMilestoneID)
          Create the command and set its state.
 
Method Summary
 void addRelationship(Relationship.RelationshipType inRelType, ScheduleNode.PredecessorType inPredType, int inPredID)
          Store a predecessor relationship for the schedule node.
 void removeRelationship(Relationship.RelationshipType inRelType, int inPredID)
          Remove a predecessor relationship for the ScheduleNode.
 void setConstraint(Constraint inConstraint)
          Set the new constraint for this schedule node.
 void setName(java.lang.String inNewName)
          Set a new name for the schedule node.
 void setSchedulingPref(ScheduleNode.Scheduling inPref)
          Change the scheduling preference for the schedule node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateMilestoneCommand

public UpdateMilestoneCommand(int inProjectID,
                              int inScheduleID,
                              int inMilestoneID)
Create the command and set its state.

Parameters:
inProjectID - ID of the parent project of the milestone.
inScheduleID - ID of the parent schedule of the milestone.
inMilestoneID - ID of the milestone.
Method Detail

addRelationship

public void addRelationship(Relationship.RelationshipType inRelType,
                            ScheduleNode.PredecessorType inPredType,
                            int inPredID)
Store a predecessor relationship for the schedule node.

Parameters:
inRelType - Type of Relationship. Cannot be null.
inPredType - Type of schedule node of the predecessor. Cannot be null or ScheduleNode.PredecessorType.ALL.
inPredID - ID of the predecessor schedule node.

removeRelationship

public void removeRelationship(Relationship.RelationshipType inRelType,
                               int inPredID)
Remove a predecessor relationship for the ScheduleNode.

Parameters:
inRelType - The type of relationship to the predecessor.
inPredID - The ID of the Predecessor.

setConstraint

public void setConstraint(Constraint inConstraint)
Set the new constraint for this schedule node.

Parameters:
inConstraint - A new constraint or null if removing an existing constraint.

setName

public void setName(java.lang.String inNewName)
Set a new name for the schedule node.

Parameters:
inNewName - New name of the schedule node. Cannot be null.

setSchedulingPref

public void setSchedulingPref(ScheduleNode.Scheduling inPref)
Change the scheduling preference for the schedule node.

Parameters:
inPref - New scheduling preference. Cannot be null.