org.drools.planner.api.domain.variable.event
Interface PlanningVariableListener

All Superinterfaces:
EventListener

public interface PlanningVariableListener
extends EventListener


Method Summary
 void afterChange(SolutionDirector solutionDirector, Object planningEntity, String variableName, Object oldValue, Object newValue)
          Called after a variable value has been changed.
 

Method Detail

afterChange

void afterChange(SolutionDirector solutionDirector,
                 Object planningEntity,
                 String variableName,
                 Object oldValue,
                 Object newValue)
Called after a variable value has been changed.

Called from the solver thread. Should return fast, as it steals time from the Solver.

Parameters:
solutionDirector - never null
planningEntity - never null
variableName - never null
oldValue - sometimes null
newValue - sometimes null


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.