Class RouteFinalizer2

java.lang.Object
com.dna.jopt.member.unit.routefinalize.RouteFinalizer2
All Implemented Interfaces:
IRouteFinalizer

public class RouteFinalizer2 extends Object implements IRouteFinalizer
  • Field Details

  • 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 interface IRouteFinalizer
      Parameters:
      entities - the entities
      finalizeRouteIndex - the finalize route index
      ca - the ca
      curLockStopMillisOpt - 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 route
      ca - the ca
      curLockStopMillisOpt - 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 interface IRouteFinalizer
      Parameters:
      entities - the entities
      targetRoute - the target route
      ca - the ca
      lockdownTime - the lockdown time
      prevLockdownTime - the prev lockdown time
      asLockdown - 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 interface IRouteFinalizer
      Parameters:
      masterEntity - the master entity
      entities - the entities
      targetRoute - the target route
      ca - the ca
      lockdownTime - the lockdown time
      prevLockdownTime - the prev lockdown time
      asLockdown - 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 interface IRouteFinalizer
      Parameters:
      entities - the entities
      targetRoute - the target route
      finalizeElements - the finalize elements
      finalizePillars - the finalize pillars
      lockdownTime - the lockdown time
      prevLockdownTime - the prev lockdown time