org.optaplanner.core.impl.domain.variable.listener
Interface VariableListener<EntityG>
- All Known Implementing Classes:
- ChainedMappedByVariableListener
public interface VariableListener<EntityG>
Changes shadow variables when a genuine planning variable changes.
Important: it must never change a genuine planning variable!
beforeEntityAdded
void beforeEntityAdded(ScoreDirector scoreDirector,
EntityG entity)
afterEntityAdded
void afterEntityAdded(ScoreDirector scoreDirector,
EntityG entity)
beforeVariableChanged
void beforeVariableChanged(ScoreDirector scoreDirector,
EntityG entity)
afterVariableChanged
void afterVariableChanged(ScoreDirector scoreDirector,
EntityG entity)
beforeEntityRemoved
void beforeEntityRemoved(ScoreDirector scoreDirector,
EntityG entity)
afterEntityRemoved
void afterEntityRemoved(ScoreDirector scoreDirector,
EntityG entity)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.