Class BusPassengerCountTotalUpdatingVariableListener
- java.lang.Object
-
- org.optaplanner.examples.coachshuttlegathering.domain.solver.BusPassengerCountTotalUpdatingVariableListener
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,Object>
- Direct Known Subclasses:
CoachPassengerCountTotalUpdatingVariableListener,ShuttlePassengerCountTotalUpdatingVariableListener
public abstract class BusPassengerCountTotalUpdatingVariableListener extends Object implements org.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,Object>
-
-
Constructor Summary
Constructors Constructor Description BusPassengerCountTotalUpdatingVariableListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidafterEntityAdded(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)voidafterEntityRemoved(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)voidafterVariableChanged(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)voidbeforeEntityAdded(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object busStop)voidbeforeEntityRemoved(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)voidbeforeVariableChanged(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)protected abstract booleanisCorrectBusInstance(Bus bus)
-
-
-
Method Detail
-
beforeEntityAdded
public void beforeEntityAdded(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object busStop)
- Specified by:
beforeEntityAddedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,Object>
-
afterEntityAdded
public void afterEntityAdded(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)
- Specified by:
afterEntityAddedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,Object>
-
beforeVariableChanged
public void beforeVariableChanged(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)
- Specified by:
beforeVariableChangedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,Object>
-
afterVariableChanged
public void afterVariableChanged(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)
- Specified by:
afterVariableChangedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,Object>
-
beforeEntityRemoved
public void beforeEntityRemoved(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)
- Specified by:
beforeEntityRemovedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,Object>
-
afterEntityRemoved
public void afterEntityRemoved(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, Object entity)
- Specified by:
afterEntityRemovedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,Object>
-
isCorrectBusInstance
protected abstract boolean isCorrectBusInstance(Bus bus)
-
-