Class AbstractOptimizationScheme

java.lang.Object
com.dna.jopt.framework.body.scheme.AbstractOptimizationScheme
All Implemented Interfaces:
IOptimizationScheme
Direct Known Subclasses:
DefaultOptimizationScheme, DefaultOptimizationSchemeWithObjective, EntityValidationOptimizationScheme, GEExploreOptimizationScheme, OptionalOperatorTuningScheme, SingleAssessOptimizationScheme

public abstract class AbstractOptimizationScheme extends Object implements IOptimizationScheme
  • Constructor Details

    • AbstractOptimizationScheme

      protected AbstractOptimizationScheme(IOptimization optimization)
  • Method Details

    • postCreate

      public void postCreate()
      Description copied from interface: IOptimizationScheme
      Post create is called after the ininital creation of the scheme
      Specified by:
      postCreate in interface IOptimizationScheme
    • getOptimization

      public IOptimization getOptimization()
      Description copied from interface: IOptimizationScheme
      Gets the optimization attached to this scheme.
      Specified by:
      getOptimization in interface IOptimizationScheme
      Returns:
      the optimization
    • getOptimizationAlgorithms

      public List<com.dna.jopt.revision.algorithm.IOptimizationAlgorithm> getOptimizationAlgorithms()
      Description copied from interface: IOptimizationScheme
      Gets the optimization algorithms attached to this scheme.
      Specified by:
      getOptimizationAlgorithms in interface IOptimizationScheme
      Returns:
      the optimization algorithms
    • getCostAssessor

      public com.dna.jopt.assessment.costassessor.IEntityCostAssessor getCostAssessor()
      Description copied from interface: IOptimizationScheme
      Gets the cost assessor attached to this scheme.
      Specified by:
      getCostAssessor in interface IOptimizationScheme
      Returns:
      the cost assessor
    • getAutoFilter

      public IAutoNodeFilter getAutoFilter()
      Description copied from interface: IOptimizationScheme
      Gets the auto filter.
      Specified by:
      getAutoFilter in interface IOptimizationScheme
      Returns:
      the auto filter
    • setAutoFilter

      public void setAutoFilter(IAutoNodeFilter filter)
      Specified by:
      setAutoFilter in interface IOptimizationScheme
    • setOptimizationAlgorithms

      public void setOptimizationAlgorithms(List<com.dna.jopt.revision.algorithm.IOptimizationAlgorithm> orderedOptimizationAlgorithms)
      Description copied from interface: IOptimizationScheme
      Sets the optimization algorithms attached to this scheme.
      Specified by:
      setOptimizationAlgorithms in interface IOptimizationScheme
      Parameters:
      orderedOptimizationAlgorithms - the new optimization algorithms
    • setCostAssessor

      public void setCostAssessor(com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca)
      Description copied from interface: IOptimizationScheme
      Sets the cost assessor attached to this scheme.
      Specified by:
      setCostAssessor in interface IOptimizationScheme
      Parameters:
      ca - the new cost assessor
    • initAssessor

      public void initAssessor(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector, INodeUnassigner unassignManager)
      Description copied from interface: IOptimizationScheme
      Inits the assessor by adding the different components of the optimization.
      Specified by:
      initAssessor in interface IOptimizationScheme
      Parameters:
      propertyProvider - the provider
      connector - the connector
      unassignManager - the unassign manager
    • attachCustomNodeLevelRestriction

      public void attachCustomNodeLevelRestriction(com.dna.jopt.assessment.costassessorrestriction.nodelevel.custom.ICustomNodeLevelRestriction nodeLevelRestrition)
      Description copied from interface: IOptimizationScheme
      Attach custom node level restriction.
      Specified by:
      attachCustomNodeLevelRestriction in interface IOptimizationScheme
      Parameters:
      nodeLevelRestrition - the node level restriction
    • attachCustomRouteLevelRestriction

      public void attachCustomRouteLevelRestriction(com.dna.jopt.assessment.costassessorrestriction.routelevel.custom.ICustomRouteLevelRestriction routeLevelRestrition)
      Description copied from interface: IOptimizationScheme
      Attach custom route level restriction.
      Specified by:
      attachCustomRouteLevelRestriction in interface IOptimizationScheme
      Parameters:
      routeLevelRestrition - the route level restriction
    • getAssessorNodeRestrictions

      public Optional<List<com.dna.jopt.assessment.costassessorrestriction.nodelevel.IEntityCostAssesorNodeRestriction>> getAssessorNodeRestrictions(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector)
      Description copied from interface: IOptimizationScheme
      Gets the assessor node restrictions.
      Specified by:
      getAssessorNodeRestrictions in interface IOptimizationScheme
      Parameters:
      propertyProvider - the property provider
      connector - the connector
      Returns:
      the assessor node restrictions
    • getAssessorRouteRestrictions

      public Optional<List<com.dna.jopt.assessment.costassessorrestriction.routelevel.IEntityCostAssessorRouteRestriction>> getAssessorRouteRestrictions(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector)
      Description copied from interface: IOptimizationScheme
      Gets the assessor route restrictions.
      Specified by:
      getAssessorRouteRestrictions in interface IOptimizationScheme
      Parameters:
      propertyProvider - the property provider
      connector - the connector
      Returns:
      the assessor route restrictions
    • getAssessorMultiRouteRestrictions

      public Optional<List<com.dna.jopt.assessment.costassessorrestriction.multiroutelevel.IEntityCostAssessorMultiRouteRestriction>> getAssessorMultiRouteRestrictions(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector)
      Description copied from interface: IOptimizationScheme
      Gets the assessor multi route restrictions.
      Specified by:
      getAssessorMultiRouteRestrictions in interface IOptimizationScheme
      Parameters:
      propertyProvider - the property provider
      connector - the connector
      Returns:
      the assessor multi route restrictions
    • getAssessorJobRestrictions

      public Optional<List<com.dna.jopt.assessment.costassessorrestriction.joblevel.IEntityCostAssessorJobRestriction>> getAssessorJobRestrictions(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector)
      Description copied from interface: IOptimizationScheme
      Gets the assessor job restrictions.
      Specified by:
      getAssessorJobRestrictions in interface IOptimizationScheme
      Parameters:
      propertyProvider - the property provider
      connector - the connector
      Returns:
      the assessor job restrictions
    • setCustomDefaultProperties

      public void setCustomDefaultProperties(Properties properties)
      Specified by:
      setCustomDefaultProperties in interface IOptimizationScheme
    • getCustomDefaultProperties

      public Optional<Properties> getCustomDefaultProperties()
      Specified by:
      getCustomDefaultProperties in interface IOptimizationScheme