Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class AnchorVariableListener<Solution_> extends Object implements VariableListener<Object>, AnchorVariableSupply
Modifier and Type | Field and Description |
---|---|
protected AnchorShadowVariableDescriptor<Solution_> |
anchorShadowVariableDescriptor |
protected SingletonInverseVariableSupply |
nextVariableSupply |
protected VariableDescriptor<Solution_> |
previousVariableDescriptor |
Constructor and Description |
---|
AnchorVariableListener(AnchorShadowVariableDescriptor<Solution_> anchorShadowVariableDescriptor,
VariableDescriptor<Solution_> previousVariableDescriptor,
SingletonInverseVariableSupply nextVariableSupply) |
Modifier and Type | Method and Description |
---|---|
void |
afterEntityAdded(ScoreDirector scoreDirector,
Object entity) |
void |
afterEntityRemoved(ScoreDirector scoreDirector,
Object entity) |
void |
afterVariableChanged(ScoreDirector scoreDirector,
Object entity) |
void |
beforeEntityAdded(ScoreDirector scoreDirector,
Object entity) |
void |
beforeEntityRemoved(ScoreDirector scoreDirector,
Object entity) |
void |
beforeVariableChanged(ScoreDirector scoreDirector,
Object entity) |
Object |
getAnchor(Object entity) |
protected void |
insert(ScoreDirector scoreDirector,
Object entity) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiresUniqueEntityEvents
protected final AnchorShadowVariableDescriptor<Solution_> anchorShadowVariableDescriptor
protected final VariableDescriptor<Solution_> previousVariableDescriptor
protected final SingletonInverseVariableSupply nextVariableSupply
public AnchorVariableListener(AnchorShadowVariableDescriptor<Solution_> anchorShadowVariableDescriptor, VariableDescriptor<Solution_> previousVariableDescriptor, SingletonInverseVariableSupply nextVariableSupply)
public void beforeEntityAdded(ScoreDirector scoreDirector, Object entity)
beforeEntityAdded
in interface VariableListener<Object>
scoreDirector
- never nullentity
- never nullpublic void afterEntityAdded(ScoreDirector scoreDirector, Object entity)
afterEntityAdded
in interface VariableListener<Object>
scoreDirector
- never nullentity
- never nullpublic void beforeVariableChanged(ScoreDirector scoreDirector, Object entity)
beforeVariableChanged
in interface VariableListener<Object>
scoreDirector
- never nullentity
- never nullpublic void afterVariableChanged(ScoreDirector scoreDirector, Object entity)
afterVariableChanged
in interface VariableListener<Object>
scoreDirector
- never nullentity
- never nullpublic void beforeEntityRemoved(ScoreDirector scoreDirector, Object entity)
beforeEntityRemoved
in interface VariableListener<Object>
scoreDirector
- never nullentity
- never nullpublic void afterEntityRemoved(ScoreDirector scoreDirector, Object entity)
afterEntityRemoved
in interface VariableListener<Object>
scoreDirector
- never nullentity
- never nullprotected void insert(ScoreDirector scoreDirector, Object entity)
public Object getAnchor(Object entity)
getAnchor
in interface AnchorVariableSupply
entity
- never nullCopyright © 2006–2020 JBoss by Red Hat. All rights reserved.