Package | Description |
---|---|
org.cpsolver.ifs.example.rpp |
Random Placement Problem.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceConstraint.Context.assigned(Assignment<Rectangle,Location> assignment,
Location placement)
Notification, when a rectangle is placed.
|
void |
ResourceConstraint.computeConflicts(Assignment<Rectangle,Location> assignment,
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(Assignment<Rectangle,Location> assignment,
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.Context.unassigned(Assignment<Rectangle,Location> assignment,
Location placement)
Notification, when a rectangle is unplaced.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceConstraint.Context.assigned(Assignment<Rectangle,Location> assignment,
Location placement)
Notification, when a rectangle is placed.
|
void |
ResourceConstraint.computeConflicts(Assignment<Rectangle,Location> assignment,
Location placement,
Set<Location> conflicts)
Compute conflicts with the given placement of the rectangle.
|
void |
ResourceConstraint.computeConflicts(Assignment<Rectangle,Location> assignment,
Location placement,
Set<Location> conflicts)
Compute conflicts with the given placement of the rectangle.
|
ResourceConstraint.Context |
ResourceConstraint.createAssignmentContext(Assignment<Rectangle,Location> assignment) |
void |
ResourceConstraint.check(Assignment<Rectangle,Location> assignment) |
boolean |
ResourceConstraint.inConflict(Assignment<Rectangle,Location> assignment,
Location placement)
Returns true if there is a rectangle which overlaps with the given
assignment.
|
void |
ResourceConstraint.Context.unassigned(Assignment<Rectangle,Location> assignment,
Location placement)
Notification, when a rectangle is unplaced.
|
Constructor and Description |
---|
Rectangle(String name,
int width,
int height,
int minX,
int maxX,
int minY,
int maxY,
Location initialLocation)
Constructor.
|
Constructor and Description |
---|
Context(Assignment<Rectangle,Location> assignment) |