org.optaplanner.examples.projectjobscheduling.domain.solver
Class PredecessorsDoneDateUpdatingVariableListener
java.lang.Object
org.optaplanner.examples.projectjobscheduling.domain.solver.PredecessorsDoneDateUpdatingVariableListener
- All Implemented Interfaces:
- org.optaplanner.core.impl.domain.variable.listener.VariableListener<Allocation>
public class PredecessorsDoneDateUpdatingVariableListener
- extends Object
- implements org.optaplanner.core.impl.domain.variable.listener.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(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
beforeEntityAdded in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<Allocation>
afterEntityAdded
public void afterEntityAdded(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterEntityAdded in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<Allocation>
beforeVariableChanged
public void beforeVariableChanged(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
beforeVariableChanged in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<Allocation>
afterVariableChanged
public void afterVariableChanged(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterVariableChanged in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<Allocation>
beforeEntityRemoved
public void beforeEntityRemoved(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
beforeEntityRemoved in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<Allocation>
afterEntityRemoved
public void afterEntityRemoved(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
Allocation allocation)
- Specified by:
afterEntityRemoved in interface org.optaplanner.core.impl.domain.variable.listener.VariableListener<Allocation>
updateAllocation
protected void updateAllocation(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector,
Allocation originalAllocation)
updatePredecessorsDoneDate
protected boolean updatePredecessorsDoneDate(org.optaplanner.core.impl.score.director.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.