Package | Description |
---|---|
org.cpsolver.ifs.example.rpp |
Random Placement Problem.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
ResourceConstraint.Context.getRectangle(int x,
int y) |
Rectangle |
RPPModel.getRectangle(String name)
Returns rectangle of the given name
|
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.
|
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 |
---|
Location(Rectangle rectangle,
int x,
int y)
Constructor
|
Constructor and Description |
---|
Context(Assignment<Rectangle,Location> assignment) |