org.optaplanner.examples.projectjobscheduling.domain.solver
Class PredecessorsDoneDateUpdatingVariableListener
java.lang.Object
org.optaplanner.examples.projectjobscheduling.domain.solver.PredecessorsDoneDateUpdatingVariableListener
- All Implemented Interfaces:
- VariableListener<Allocation>
public class PredecessorsDoneDateUpdatingVariableListener
- extends Object
- implements VariableListener<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 VariableListener<Allocation>
afterEntityAdded
public void afterEntityAdded(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterEntityAdded in interface VariableListener<Allocation>
beforeVariableChanged
public void beforeVariableChanged(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
beforeVariableChanged in interface VariableListener<Allocation>
afterVariableChanged
public void afterVariableChanged(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterVariableChanged in interface VariableListener<Allocation>
beforeEntityRemoved
public void beforeEntityRemoved(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
beforeEntityRemoved in interface VariableListener<Allocation>
afterEntityRemoved
public void afterEntityRemoved(ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterEntityRemoved in interface VariableListener<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-2014 JBoss by Red Hat. All Rights Reserved.