Class RouteFinalizer2
java.lang.Object
com.dna.jopt.member.unit.routefinalize.RouteFinalizer2
- All Implemented Interfaces:
IRouteFinalizer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
activateRoute
(ILogicEntityRoute route, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> curLockStopMillisOpt) Activate route.boolean
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.
-
Field Details
-
PLACEHOLDER_TAG
- See Also:
-
BLOCK_TAG
- See Also:
-
-
Constructor Details
-
RouteFinalizer2
public RouteFinalizer2()
-
-
Method Details
-
activateRoute
public boolean activateRoute(List<IEntity> entities, int finalizeRouteIndex, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> curLockStopMillisOpt) Description copied from interface:IRouteFinalizer
Activate route.- Specified by:
activateRoute
in interfaceIRouteFinalizer
- Parameters:
entities
- the entitiesfinalizeRouteIndex
- the finalize route indexca
- the cacurLockStopMillisOpt
- the cur lock stop millis opt- Returns:
- true, if successful
-
activateRoute
public static boolean activateRoute(ILogicEntityRoute route, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> curLockStopMillisOpt) Activate route. The underlying entity of the route needs to be unassessed!- Parameters:
route
- the routeca
- the cacurLockStopMillisOpt
- the cur lock stop millis opt- Returns:
- true, if successful
-
finalizeRoute
public void finalizeRoute(List<IEntity> entities, ILogicEntityRoute targetRoute, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime, boolean asLockdown) Description copied from interface:IRouteFinalizer
Finalize route.It is assumed that first item of the entities list is the master entity that will provide the route to be finalized.
- Specified by:
finalizeRoute
in interfaceIRouteFinalizer
- Parameters:
entities
- the entitiestargetRoute
- the target routeca
- the calockdownTime
- the lockdown timeprevLockdownTime
- the prev lockdown timeasLockdown
- the as lockdown
-
finalizeRoute
public void finalizeRoute(IEntity masterEntity, List<IEntity> entities, ILogicEntityRoute targetRoute, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime, boolean asLockdown) Description copied from interface:IRouteFinalizer
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.- Specified by:
finalizeRoute
in interfaceIRouteFinalizer
- Parameters:
masterEntity
- the master entityentities
- the entitiestargetRoute
- the target routeca
- the calockdownTime
- the lockdown timeprevLockdownTime
- the prev lockdown timeasLockdown
- the as lockdown
-
finalizeElements
public void finalizeElements(List<IEntity> entities, ILogicEntityRoute targetRoute, List<IOptimizationElement> finalizeElements, List<IPillarNode> finalizePillars, Optional<Long> lockdownTime, Optional<Long> prevLockdownTime) Description copied from interface:IRouteFinalizer
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.- Specified by:
finalizeElements
in interfaceIRouteFinalizer
- Parameters:
entities
- the entitiestargetRoute
- the target routefinalizeElements
- the finalize elementsfinalizePillars
- the finalize pillarslockdownTime
- the lockdown timeprevLockdownTime
- the prev lockdown time
-