Package | Description |
---|---|
net.sf.cpsolver.ifs.example.rpp |
Random Placement Problem.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceConstraint.assigned(long iteration,
Location placement)
Notification, when a rectangle is placed.
|
void |
ResourceConstraint.computeConflicts(Location placement,
Set<Location> conflicts)
Compute conflicts with the given placement of the rectangle.
|
boolean |
Location.hasIntersection(Location anotherLocation)
Returns true if the given location intersects with this location
|
boolean |
ResourceConstraint.inConflict(Location placement)
Returns true if there is a rectangle which overlaps with the given
assignment.
|
boolean |
ResourceConstraint.isConsistent(Location p1,
Location p2)
Returns true if the given rectangles (assignments) do not overlap.
|
void |
ResourceConstraint.unassigned(long iteration,
Location placement)
Notification, when a rectangle is unplaced.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceConstraint.computeConflicts(Location placement,
Set<Location> conflicts)
Compute conflicts with the given placement of the rectangle.
|
Constructor and Description |
---|
Rectangle(String name,
int width,
int height,
int minX,
int maxX,
int minY,
int maxY,
Location initialLocation)
Constructor.
|