public class Resource.Context extends Object implements AssignmentConstraintContext<Activity,Location>
| Constructor and Description |
|---|
Context(Assignment<Activity,Location> assignment) |
| Modifier and Type | Method and Description |
|---|---|
void |
assigned(Assignment<Activity,Location> assignment,
Location location)
Called when
ConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context. |
Activity |
getActivity(int slot) |
void |
unassigned(Assignment<Activity,Location> assignment,
Location location)
Called when
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context. |
public Context(Assignment<Activity,Location> assignment)
public void assigned(Assignment<Activity,Location> assignment, Location location)
AssignmentConstraintContextConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context.assigned in interface AssignmentConstraintContext<Activity,Location>assignment - current assignment (with which this context is associated)location - assigned valuepublic Activity getActivity(int slot)
public void unassigned(Assignment<Activity,Location> assignment, Location location)
AssignmentConstraintContextConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context.unassigned in interface AssignmentConstraintContext<Activity,Location>assignment - current assignment (with which this context is associated)location - unassigned value