org.optaplanner.examples.projectjobscheduling.domain.solver
Class PredecessorsDoneDateUpdatingVariableListener
java.lang.Object
org.optaplanner.examples.projectjobscheduling.domain.solver.PredecessorsDoneDateUpdatingVariableListener
- All Implemented Interfaces:
- PlanningVariableListener<Allocation>
public class PredecessorsDoneDateUpdatingVariableListener
- extends Object
- implements PlanningVariableListener<Allocation>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PredecessorsDoneDateUpdatingVariableListener
public PredecessorsDoneDateUpdatingVariableListener()
beforeEntityAdded
public void beforeEntityAdded(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
beforeEntityAdded in interface PlanningVariableListener<Allocation>
afterEntityAdded
public void afterEntityAdded(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterEntityAdded in interface PlanningVariableListener<Allocation>
beforeVariableChanged
public void beforeVariableChanged(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
beforeVariableChanged in interface PlanningVariableListener<Allocation>
afterVariableChanged
public void afterVariableChanged(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterVariableChanged in interface PlanningVariableListener<Allocation>
beforeEntityRemoved
public void beforeEntityRemoved(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
beforeEntityRemoved in interface PlanningVariableListener<Allocation>
afterEntityRemoved
public void afterEntityRemoved(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterEntityRemoved in interface PlanningVariableListener<Allocation>
updateAllocation
protected void updateAllocation(ScoreDirector scoreDirector,
Allocation originalAllocation)
updatePredecessorsDoneDate
protected boolean updatePredecessorsDoneDate(ScoreDirector scoreDirector,
Allocation allocation)
- Parameters:
scoreDirector - never nullallocation - never null
- Returns:
- true if the startDate changed
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.