public class AssignTaskProblemFactChange extends Object implements org.optaplanner.core.impl.solver.ProblemFactChange<TaskAssigningSolution>
Both the task and user to work with are looked up by using their corresponding id's. If the task is not found it'll be created and added to the working solution, while if the user is not found and exception will be thrown.
Constructor and Description |
---|
AssignTaskProblemFactChange(Task task,
User user) |
Modifier and Type | Method and Description |
---|---|
void |
doChange(org.optaplanner.core.impl.score.director.ScoreDirector<TaskAssigningSolution> scoreDirector) |
Task |
getTask() |
User |
getUser() |
public Task getTask()
public User getUser()
public void doChange(org.optaplanner.core.impl.score.director.ScoreDirector<TaskAssigningSolution> scoreDirector)
doChange
in interface org.optaplanner.core.impl.solver.ProblemFactChange<TaskAssigningSolution>
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.