public class ResourceConstraint.Context extends Object implements AssignmentConstraintContext<Rectangle,Location>
Constructor and Description |
---|
Context(Assignment<Rectangle,Location> assignment) |
Modifier and Type | Method and Description |
---|---|
void |
assigned(Assignment<Rectangle,Location> assignment,
Location placement)
Notification, when a rectangle is placed.
|
Rectangle |
getRectangle(int x,
int y) |
void |
unassigned(Assignment<Rectangle,Location> assignment,
Location placement)
Notification, when a rectangle is unplaced.
|
public Context(Assignment<Rectangle,Location> assignment)
public void assigned(Assignment<Rectangle,Location> assignment, Location placement)
assigned
in interface AssignmentConstraintContext<Rectangle,Location>
assignment
- current assignment (with which this context is associated)placement
- assigned valuepublic Rectangle getRectangle(int x, int y)
public void unassigned(Assignment<Rectangle,Location> assignment, Location placement)
unassigned
in interface AssignmentConstraintContext<Rectangle,Location>
assignment
- current assignment (with which this context is associated)placement
- unassigned value