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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachCustomNodeLevelRestriction
(com.dna.jopt.assessment.costassessorrestriction.nodelevel.custom.ICustomNodeLevelRestriction nodeLevelRestrition) Attach custom node level restriction.void
attachCustomRouteLevelRestriction
(com.dna.jopt.assessment.costassessorrestriction.routelevel.custom.ICustomRouteLevelRestriction routeLevelRestrition) Attach custom route level restriction.Optional<List<com.dna.jopt.assessment.costassessorrestriction.joblevel.IEntityCostAssessorJobRestriction>>
getAssessorJobRestrictions
(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector) Gets the assessor job restrictions.Optional<List<com.dna.jopt.assessment.costassessorrestriction.multiroutelevel.IEntityCostAssessorMultiRouteRestriction>>
getAssessorMultiRouteRestrictions
(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector) Gets the assessor multi route restrictions.Optional<List<com.dna.jopt.assessment.costassessorrestriction.nodelevel.IEntityCostAssesorNodeRestriction>>
getAssessorNodeRestrictions
(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector) Gets the assessor node restrictions.Optional<List<com.dna.jopt.assessment.costassessorrestriction.routelevel.IEntityCostAssessorRouteRestriction>>
getAssessorRouteRestrictions
(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector) Gets the assessor route restrictions.Gets the auto filter.com.dna.jopt.assessment.costassessor.IEntityCostAssessor
Gets the cost assessor attached to this scheme.Gets the optimization attached to this scheme.List<com.dna.jopt.revision.algorithm.IOptimizationAlgorithm>
Gets the optimization algorithms attached to this scheme.void
initAssessor
(com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, INodeEdgeConnector connector, INodeUnassigner unassignManager) Inits the assessor by adding the different components of the optimization.void
Post create is called after the ininital creation of the schemevoid
setAutoFilter
(IAutoNodeFilter filter) void
setCostAssessor
(com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca) Sets the cost assessor attached to this scheme.void
setCustomDefaultProperties
(Properties properties) void
setOptimizationAlgorithms
(List<com.dna.jopt.revision.algorithm.IOptimizationAlgorithm> orderedOptimizationAlgorithms) Sets the optimization algorithms attached to this scheme.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.dna.jopt.framework.body.scheme.IOptimizationScheme
create
-
Constructor Details
-
AbstractOptimizationScheme
-
-
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 interfaceIOptimizationScheme
-
getOptimization
Description copied from interface:IOptimizationScheme
Gets the optimization attached to this scheme.- Specified by:
getOptimization
in interfaceIOptimizationScheme
- Returns:
- the optimization
-
getOptimizationAlgorithms
Description copied from interface:IOptimizationScheme
Gets the optimization algorithms attached to this scheme.- Specified by:
getOptimizationAlgorithms
in interfaceIOptimizationScheme
- 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 interfaceIOptimizationScheme
- Returns:
- the cost assessor
-
getAutoFilter
Description copied from interface:IOptimizationScheme
Gets the auto filter.- Specified by:
getAutoFilter
in interfaceIOptimizationScheme
- Returns:
- the auto filter
-
setAutoFilter
- Specified by:
setAutoFilter
in interfaceIOptimizationScheme
-
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 interfaceIOptimizationScheme
- 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 interfaceIOptimizationScheme
- 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 interfaceIOptimizationScheme
- Parameters:
propertyProvider
- the providerconnector
- the connectorunassignManager
- 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 interfaceIOptimizationScheme
- 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 interfaceIOptimizationScheme
- 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 interfaceIOptimizationScheme
- Parameters:
propertyProvider
- the property providerconnector
- 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 interfaceIOptimizationScheme
- Parameters:
propertyProvider
- the property providerconnector
- 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 interfaceIOptimizationScheme
- Parameters:
propertyProvider
- the property providerconnector
- 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 interfaceIOptimizationScheme
- Parameters:
propertyProvider
- the property providerconnector
- the connector- Returns:
- the assessor job restrictions
-
setCustomDefaultProperties
- Specified by:
setCustomDefaultProperties
in interfaceIOptimizationScheme
-
getCustomDefaultProperties
- Specified by:
getCustomDefaultProperties
in interfaceIOptimizationScheme
-