OptaPlanner distribution 6.0.0.Beta5

org.optaplanner.examples.projectjobscheduling.domain.solver
Class PredecessorsDoneDateUpdatingVariableListener

java.lang.Object
  extended by org.optaplanner.examples.projectjobscheduling.domain.solver.PredecessorsDoneDateUpdatingVariableListener
All Implemented Interfaces:
PlanningVariableListener<Allocation>

public class PredecessorsDoneDateUpdatingVariableListener
extends Object
implements PlanningVariableListener<Allocation>


Constructor Summary
PredecessorsDoneDateUpdatingVariableListener()
           
 
Method Summary
 void afterEntityAdded(ScoreDirector scoreDirector, Allocation allocation)
           
 void afterEntityRemoved(ScoreDirector scoreDirector, Allocation allocation)
           
 void afterVariableChanged(ScoreDirector scoreDirector, Allocation allocation)
           
 void beforeEntityAdded(ScoreDirector scoreDirector, Allocation allocation)
           
 void beforeEntityRemoved(ScoreDirector scoreDirector, Allocation allocation)
           
 void beforeVariableChanged(ScoreDirector scoreDirector, Allocation allocation)
           
protected  void updateAllocation(ScoreDirector scoreDirector, Allocation originalAllocation)
           
protected  boolean updatePredecessorsDoneDate(ScoreDirector scoreDirector, Allocation allocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredecessorsDoneDateUpdatingVariableListener

public PredecessorsDoneDateUpdatingVariableListener()
Method Detail

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 null
allocation - never null
Returns:
true if the startDate changed

OptaPlanner distribution 6.0.0.Beta5

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.