Class TypeWithExpertiseConstraint
java.lang.Object
com.dna.jopt.member.unit.condition.typewithexpertise.TypeWithExpertiseConstraint
- All Implemented Interfaces:
- IConstraint,- Serializable
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe Enum SkillWithExpertiseCostModel.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescription
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddType(TypeWithExpertise type) voidvoidvoidcom.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResultassessConstraint(IEntity en, ILogicEntityRoute route, INode node, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested) Assesses the route, checking if the appropriatequalificationsfor theconstraintsare present.getTitle()Gets the title of the constraint.getTypes()booleanbooleanisHard()Checks the parameter or directly returnstruewhere this must be the case.booleanisSatisfied(com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, INode node, ILogicEntityRoute route) Filters out hard constraint mismatches by checking whether aNodedemands aQualificationas ahard constraintbut theResourcedoes not provide this one.voidsetIsHard(boolean isHard) Sets the constraint tohardif the respective parameter is given or returns anIllegalStateExceptionif this is expected but not the case.voidvoidsetTypes(List<TypeWithExpertise> types) toString()
- 
Field Details- 
MY_TITLE- See Also:
 
 
- 
- 
Constructor Details- 
TypeWithExpertiseConstraintpublic TypeWithExpertiseConstraint()
- 
TypeWithExpertiseConstraintpublic TypeWithExpertiseConstraint(TypeWithExpertiseConstraint.SkillWithExpertiseCostModel myCostingModel) 
 
- 
- 
Method Details- 
hasMemberspublic boolean hasMembers()- Specified by:
- hasMembersin interface- IConstraint
 
- 
getSkillCostingModel
- 
getTitleDescription copied from interface:IConstraintGets the title of the constraint.- Specified by:
- getTitlein interface- IConstraint
- Returns:
- the title
 
- 
isHardpublic boolean isHard()Description copied from interface:IConstraintChecks the parameter or directly returnstruewhere this must be the case.- Specified by:
- isHardin interface- IConstraint
- Returns:
- the value of the checked boolean
 
- 
setIsHardpublic void setIsHard(boolean isHard) Description copied from interface:IConstraintSets the constraint tohardif the respective parameter is given or returns anIllegalStateExceptionif this is expected but not the case.- Specified by:
- setIsHardin interface- IConstraint
- Parameters:
- isHard- the boolean to be set
 
- 
setSkillCostingModel
- 
isSatisfiedpublic boolean isSatisfied(com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, INode node, ILogicEntityRoute route) Description copied from interface:IConstraintFilters out hard constraint mismatches by checking whether aNodedemands aQualificationas ahard constraintbut theResourcedoes not provide this one. The idea is to have onlysoft constraintsproblems in the optimisation which can get solved by adding cost.- Specified by:
- isSatisfiedin interface- IConstraint
- Parameters:
- ca- the iEntityCostAssessor
- node- the iNode
- route- the iLogicEntityRoute
- Returns:
- the boolean whether the route is satisfied. Truemeans no problems detected
 
- 
assessConstraintpublic com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult assessConstraint(IEntity en, ILogicEntityRoute route, INode node, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster cad, com.dna.jopt.assessment.costassessor.IEntityCostAssessor ca, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested) Description copied from interface:IConstraintAssesses the route, checking if the appropriatequalificationsfor theconstraintsare present.The boolean truesaves the data.- Specified by:
- assessConstraintin interface- IConstraint
- Parameters:
- en- entity
- route- the iLogicEntityRoute
- node- node
- cad- iEntityCostAdjuster
- ca- ca
- propertyProvider- iPropertyProvider
- resultRequested- the boolean whether to save the results of the route
- Returns:
- Entity Restriction Result
 
- 
toString
- 
addType
- 
addType
- 
addType
- 
addType
- 
getTypes
- 
setTypes
 
-