Package | Description |
---|---|
org.jacop.constraints.geost |
Modifier and Type | Field and Description |
---|---|
DBox |
InArea.allowedArea
It specifies the allowed area in which the objects can reside.
|
DBox |
Shape.boundingBox
It specifies the smallest bounding box which encapsulates all boxes constituting the shape.
|
Modifier and Type | Field and Description |
---|---|
Collection<DBox> |
Shape.boxes
The collection of DBoxes that constitute the shape.
|
LinkedList<DBox> |
ObstacleObjectFrame.frame
the frame is the area that is ensured to be covered by the obstacle,
given the domain of its origin variables
|
static SimpleArrayList<SimpleArrayList<DBox>> |
DBox.freeBoxes
static store of available boxes, accessible by dimension.
|
Collection<DBox> |
InArea.holes
It specifies the holes within the allowed area in which
the objects can not be placed.
|
Modifier and Type | Method and Description |
---|---|
DBox |
Shape.boundingBox()
It returns previously computed bounding box of the shape.
|
static DBox |
DBox.boundingBox(Collection<DBox> boxes)
computes the bounding box of the given collection of boxes
|
DBox |
DBox.copyInto(DBox box)
It copies this DBox into given DBox.
|
protected DBox |
Geost.findForbiddenDomain(GeostObject o,
int currentShape,
int[] point,
Geost.SweepDirection dir,
LexicographicalOrder order) |
static DBox |
DBox.getAllocatedInstance(int dimension)
It returns an instance of DBox of the corresponding dimension,
using a previously allocated one if possible
|
DBox |
DBox.intersectWith(DBox other)
It intersects this DBox with the given DBox.
|
DBox |
DBox.intersectWith(DBox other,
int[] otherOffset)
It intersects this DBox with the given DBox, but the other DBox is
shifted by the specified offset.
|
DBox |
DBox.intersectWith(int[] offset,
DBox other,
int[] otherOffset)
It intersects this DBox with a view of the given DBox that was
shifted according to the given offset.
|
DBox |
AllowedArea.isFeasible(Geost.SweepDirection min,
LexicographicalOrder order,
GeostObject o,
int currentShape,
int[] c) |
DBox |
DomainHoles.isFeasible(Geost.SweepDirection min,
LexicographicalOrder order,
GeostObject o,
int currentShape,
int[] c) |
DBox |
ForbiddenArea.isFeasible(Geost.SweepDirection min,
LexicographicalOrder order,
GeostObject o,
int currentShape,
int[] c) |
abstract DBox |
InternalConstraint.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.
|
DBox |
ObstacleObject.isFeasible(Geost.SweepDirection min,
LexicographicalOrder order,
GeostObject o,
int currentShape,
int[] c) |
DBox |
ObstacleObjectFrame.isFeasible(Geost.SweepDirection min,
LexicographicalOrder order,
GeostObject o,
int currentShape,
int[] c) |
static DBox |
DBox.newBox(int dimension)
It returns an usable box, reusing a box from the pool if possible.
|
Modifier and Type | Method and Description |
---|---|
Collection<DBox> |
Shape.components()
It returns the dboxes defining the shape.
|
Collection<DBox> |
Shape.holes()
It returns the set of holes of this shape.
|
Collection<DBox> |
Shape.noOverlapRepresentation()
It computes a collection of DBoxes that form the same shape, but that are certain
to not overlap
|
Collection<DBox> |
DBox.subtract(DBox hole,
Collection<DBox> difference)
computes the difference between this box and the given box.
|
Collection<DBox> |
DBox.subtractAll(Collection<DBox> others,
Collection<DBox> result)
It computes the result of a subtraction from this box of all the boxes given.
|
static Collection<DBox> |
DBox.subtractAll(Collection<DBox> source,
Collection<DBox> holes,
Collection<DBox> result)
It computes the result of a subtraction from the given collection of boxes of all the boxes given
in the subtracting collection.
|
Modifier and Type | Method and Description |
---|---|
DBox |
DBox.copyInto(DBox box)
It copies this DBox into given DBox.
|
static void |
DBox.dispatchBox(DBox unusedBox)
It allows the system to reuse the given box by placing it into the pool of
allocated boxes.
|
void |
BoxDisplay.display2DBox(DBox b)
It displays a given dbox in a black color.
|
void |
BoxDisplay.display2DBox(DBox b,
Color color)
It displays a given dbox using a given color.
|
void |
BoxDisplay.display2DBox(DBox b,
Color color,
boolean fill)
It draws dboxes given color.
|
DBox |
DBox.intersectWith(DBox other)
It intersects this DBox with the given DBox.
|
DBox |
DBox.intersectWith(DBox other,
int[] otherOffset)
It intersects this DBox with the given DBox, but the other DBox is
shifted by the specified offset.
|
DBox |
DBox.intersectWith(int[] offset,
DBox other,
int[] otherOffset)
It intersects this DBox with a view of the given DBox that was
shifted according to the given offset.
|
Collection<DBox> |
DBox.subtract(DBox hole,
Collection<DBox> difference)
computes the difference between this box and the given box.
|
Modifier and Type | Method and Description |
---|---|
static DBox |
DBox.boundingBox(Collection<DBox> boxes)
computes the bounding box of the given collection of boxes
|
Collection<DBox> |
DBox.subtract(DBox hole,
Collection<DBox> difference)
computes the difference between this box and the given box.
|
Collection<DBox> |
DBox.subtractAll(Collection<DBox> others,
Collection<DBox> result)
It computes the result of a subtraction from this box of all the boxes given.
|
Collection<DBox> |
DBox.subtractAll(Collection<DBox> others,
Collection<DBox> result)
It computes the result of a subtraction from this box of all the boxes given.
|
static Collection<DBox> |
DBox.subtractAll(Collection<DBox> source,
Collection<DBox> holes,
Collection<DBox> result)
It computes the result of a subtraction from the given collection of boxes of all the boxes given
in the subtracting collection.
|
static Collection<DBox> |
DBox.subtractAll(Collection<DBox> source,
Collection<DBox> holes,
Collection<DBox> result)
It computes the result of a subtraction from the given collection of boxes of all the boxes given
in the subtracting collection.
|
static Collection<DBox> |
DBox.subtractAll(Collection<DBox> source,
Collection<DBox> holes,
Collection<DBox> result)
It computes the result of a subtraction from the given collection of boxes of all the boxes given
in the subtracting collection.
|
Constructor and Description |
---|
InArea(DBox area,
Collection<DBox> holes)
It constructs an external constraint to enforce that all objects
within Geost constraint are placed within a specified area with
holes in that area specfied as well.
|
Shape(int id,
DBox box)
It constructs a shape from only one DBox.
|
Constructor and Description |
---|
InArea(DBox area,
Collection<DBox> holes)
It constructs an external constraint to enforce that all objects
within Geost constraint are placed within a specified area with
holes in that area specfied as well.
|
Shape(int no,
Collection<DBox> boxes)
It constructs a shape with a given id based on a specified collection of Dboxes.
|
Copyright © 2022. All rights reserved.