Interface IRouteFinalizer
- All Known Implementing Classes:
RouteFinalizer2
public interface IRouteFinalizer
The Interface IRouteFinalizer.
Route finalization means that a certain route is defined as finalized route. All other entities will have to take over this route. It is not longer possible to modify this route.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
activateRoute
(List<IEntity> entities, int finalizeRouteIndex, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> curLockStopMillisOpt) Activate route.void
finalizeElements
(List<IEntity> entities, ILogicEntityRoute targetRoute, List<IOptimizationElement> finalizeElements, List<IPillarNode> finalizePillars, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime) Finalize element.void
finalizeRoute
(IEntity masterEntity, List<IEntity> entities, ILogicEntityRoute targetRoute, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime, boolean asLockdown) Finalize element based on a selected master entity.void
finalizeRoute
(List<IEntity> entities, ILogicEntityRoute targetRoute, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime, boolean asLockdown) Finalize route.
-
Method Details
-
finalizeRoute
void finalizeRoute(List<IEntity> entities, ILogicEntityRoute targetRoute, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime, boolean asLockdown) Finalize route.It is assumed that first item of the entities list is the master entity that will provide the route to be finalized.
- Parameters:
entities
- the entitiestargetRoute
- the target routeca
- the calockdownTime
- the lockdown timeprevLockdownTime
- the prev lockdown timeasLockdown
- the as lockdown
-
finalizeElements
void finalizeElements(List<IEntity> entities, ILogicEntityRoute targetRoute, List<IOptimizationElement> finalizeElements, List<IPillarNode> finalizePillars, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime) Finalize element. It is assumed that first item of the entities list is the master entity that will provide the route with the elements to be finalized. The finalization will take in the order of finalizeElements occurrence of the list.- Parameters:
entities
- the entitiestargetRoute
- the target routefinalizeElements
- the finalize elementsfinalizePillars
- the finalize pillarslockdownTime
- the lockdown timeprevLockdownTime
- the prev lockdown time
-
activateRoute
boolean activateRoute(List<IEntity> entities, int finalizeRouteIndex, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> curLockStopMillisOpt) Activate route.- Parameters:
entities
- the entitiesfinalizeRouteIndex
- the finalize route indexca
- the cacurLockStopMillisOpt
- the cur lock stop millis opt- Returns:
- true, if successful
-
finalizeRoute
void finalizeRoute(IEntity masterEntity, List<IEntity> entities, ILogicEntityRoute targetRoute, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime, boolean asLockdown) Finalize element based on a selected master entity. The master entity is the entity that will provide the route with the elements to be finalized. The finalization will take in the order of finalizeElements occurrence of the list.- Parameters:
masterEntity
- the master entityentities
- the entitiestargetRoute
- the target routeca
- the calockdownTime
- the lockdown timeprevLockdownTime
- the prev lockdown timeasLockdown
- the as lockdown
-