|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prozima.pengine.Constraint
public class Constraint
Places bounds on the scheduled start and finish dates of an activity or milestone.
| Nested Class Summary | |
|---|---|
static class |
Constraint.ConstraintType
Type of constraint. |
| Constructor Summary | |
|---|---|
Constraint()
Create a new Constraint with the default constraint type of Constraint.ConstraintType.NONE. |
|
| Method Summary | |
|---|---|
Constraint |
clone()
|
boolean |
equals(java.lang.Object obj)
Two Constraints are equals if the type is the same and the boundary dates are the same. |
java.util.Date |
getEarlyFinishDate()
Get the earliest allowed date before which the associated schedule node cannot finish. |
java.util.Date |
getEarlyStartDate()
Get the earliest allowed date before which the associated schedule node cannot begin. |
java.util.Date |
getLateFinishDate()
Get the latest allowed date after which the associated schedule node cannot finish. |
java.util.Date |
getLateStartDate()
Get the latest allowed date after which the associated schedule node cannot begin. |
Constraint.ConstraintType |
getType()
Get the type of the constraint. |
int |
hashCode()
Depends on the type of constraint and the four boundary dates. |
boolean |
set(Constraint.ConstraintType inType,
java.util.Date inDate)
Configure the constraint by setting its type and bounding date. |
boolean |
set(Constraint.ConstraintType inType,
java.util.Date inBeginDate,
java.util.Date inEndDate)
Configure the Constraint by setting its type and bounding dates. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Constraint()
Constraint.ConstraintType.NONE.
| Method Detail |
|---|
public Constraint clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.util.Date getEarlyFinishDate()
public java.util.Date getEarlyStartDate()
public java.util.Date getLateFinishDate()
public java.util.Date getLateStartDate()
public Constraint.ConstraintType getType()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
public boolean set(Constraint.ConstraintType inType,
java.util.Date inDate)
inType - The constraint type. This method only accepts
constraint types that require a single boundary date i.e. MSXD
and MFXD are not supported.inDate - The boundary date.
public boolean set(Constraint.ConstraintType inType,
java.util.Date inBeginDate,
java.util.Date inEndDate)
inType - The constraint type. This method only accepts
constraint types that require a two boundary dates i.e. MSXD
and MFXD are supported, other types are not.inBeginDate - Earliest boundary date.inEndDate - Latest to boundary dates.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||