Class TransportTimeToHubUpdatingVariableListener
- java.lang.Object
-
- org.optaplanner.examples.coachshuttlegathering.domain.solver.TransportTimeToHubUpdatingVariableListener
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,BusOrStop>
public class TransportTimeToHubUpdatingVariableListener extends Object implements org.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,BusOrStop>
-
-
Constructor Summary
Constructors Constructor Description TransportTimeToHubUpdatingVariableListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEntityAdded(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)voidafterEntityRemoved(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)voidafterVariableChanged(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)voidbeforeEntityAdded(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)voidbeforeEntityRemoved(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)voidbeforeVariableChanged(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)protected voidupdateTransportTimeToHub(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusStop sourceStop)
-
-
-
Method Detail
-
beforeEntityAdded
public void beforeEntityAdded(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)
- Specified by:
beforeEntityAddedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,BusOrStop>
-
afterEntityAdded
public void afterEntityAdded(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)
- Specified by:
afterEntityAddedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,BusOrStop>
-
beforeVariableChanged
public void beforeVariableChanged(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)
- Specified by:
beforeVariableChangedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,BusOrStop>
-
afterVariableChanged
public void afterVariableChanged(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)
- Specified by:
afterVariableChangedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,BusOrStop>
-
beforeEntityRemoved
public void beforeEntityRemoved(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)
- Specified by:
beforeEntityRemovedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,BusOrStop>
-
afterEntityRemoved
public void afterEntityRemoved(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusOrStop busOrStop)
- Specified by:
afterEntityRemovedin interfaceorg.optaplanner.core.api.domain.variable.VariableListener<CoachShuttleGatheringSolution,BusOrStop>
-
updateTransportTimeToHub
protected void updateTransportTimeToHub(org.optaplanner.core.api.score.director.ScoreDirector<CoachShuttleGatheringSolution> scoreDirector, BusStop sourceStop)
-
-