|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.constraints.geost.InternalConstraint
JaCoP.constraints.geost.ObstacleObjectFrame
JaCoP.constraints.geost.ObstacleObject
public class ObstacleObject
| Field Summary |
|---|
| Fields inherited from class JaCoP.constraints.geost.ObstacleObjectFrame |
|---|
frame |
| Constructor Summary | |
|---|---|
ObstacleObject(Geost geost,
GeostObject obstacle,
int[] selectedDimensions)
It constructs an internal constraint to constraint the objects not to overlap with this obstacle object. |
|
| Method Summary | |
|---|---|
int[] |
AbsInfeasible(Geost.SweepDirection minlex)
It provides the largest or smallest point contained in the forbidden area represented by this constraint. |
int |
cardInfeasible()
It provides an approximation of the number of infeasible points enforced by this constraint only. |
java.lang.String |
checkInvariants()
It checks that this constraint has consistent data structures. |
DBox |
isFeasible(Geost.SweepDirection min,
LexicographicalOrder order,
GeostObject o,
int currentShape,
int[] c)
It determines whether the given point is a feasible origin of object o, considering this constraint only. |
boolean |
isSingleUse()
In some cases, a constraint is used only once per sweep direction on a path from root to leaf in the search tree. |
boolean |
isStatic()
It provides information about the constraint future. |
java.lang.String |
toString()
|
void |
updateFrame()
updates the frame given the current values of the object coordinate variables. |
| Methods inherited from class JaCoP.constraints.geost.ObstacleObjectFrame |
|---|
definingVariables |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObstacleObject(Geost geost,
GeostObject obstacle,
int[] selectedDimensions)
geost - the constraint for which this internal constraint has been created.obstacle - the obstacle object which is responsible for this constraint.selectedDimensions - the dimensions on which the constraint is applicable.| Method Detail |
|---|
public java.lang.String checkInvariants()
ObstacleObjectFrame
checkInvariants in class ObstacleObjectFramepublic int[] AbsInfeasible(Geost.SweepDirection minlex)
InternalConstraint
AbsInfeasible in class ObstacleObjectFrameminlex - defines whether the maximal or minimal point should be returned
public int cardInfeasible()
InternalConstraint
cardInfeasible in class ObstacleObjectFrame
public DBox isFeasible(Geost.SweepDirection min,
LexicographicalOrder order,
GeostObject o,
int currentShape,
int[] c)
InternalConstraint
isFeasible in class ObstacleObjectFramemin - the direction of the sweeporder - the order to be usedo - the object the constraint is applied tocurrentShape - the shape id that is currently considered for oc - the current position of the sweep.
public java.lang.String toString()
toString in class ObstacleObjectFramepublic boolean isStatic()
InternalConstraint
isStatic in class ObstacleObjectFramepublic boolean isSingleUse()
InternalConstraint
isSingleUse in class ObstacleObjectFramepublic void updateFrame()
ObstacleObjectFrame
updateFrame in class ObstacleObjectFrame
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||