public class CoreHunterObjective extends Object
Constructor and Description |
---|
CoreHunterObjective(CoreHunterObjective objective)
Creates a CoreHunter Objective from another objective.
|
CoreHunterObjective(CoreHunterObjectiveType objectiveType)
Creates a Core Hunter objective with for specific object type with no defined measure.
|
CoreHunterObjective(CoreHunterObjectiveType objectiveType,
CoreHunterMeasure measure)
Creates a Core Hunter objective with for specific object type and measure.
|
CoreHunterObjective(CoreHunterObjectiveType objectiveType,
CoreHunterMeasure measure,
double weight)
Creates a Core Hunter objective with for specific object type, measure and weight.
|
CoreHunterObjective(CoreHunterObjectiveType objectiveType,
CoreHunterMeasure measure,
double weight,
Range<Double> normalizationRange)
Creates a Core Hunter objective with for specific object type, measure, weight and normalization range.
|
CoreHunterObjective(CoreHunterObjectiveType objectiveType,
double weight)
Creates a Core Hunter objective with for specific object type and weight with no defined measure.
|
CoreHunterObjective(CoreHunterObjectiveType objectiveType,
double weight,
Range<Double> normalizationRange)
Creates a Core Hunter objective with for specific object type, weight and normalization range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CoreHunterMeasure |
getMeasure()
Gets the measure for this objective if defined
|
Range<Double> |
getNormalizationRange()
Gets the normalization range of this objective when used in a multi-objective configuration.
|
CoreHunterObjectiveType |
getObjectiveType()
Gets the objective type for this objective
|
double |
getWeight()
Gets the relative weight of this objective when used in conjunction with another objective.
|
int |
hashCode() |
boolean |
isSameObjective(CoreHunterObjective objective)
Determines if this objective is the same except for the weights and
normalizationRange, which can any be value
|
void |
setMeasure(CoreHunterMeasure measure)
Gets the measure for this objective if defined
|
void |
setNormalizationRange(Range<Double> range)
Sets the normalization range of this objective when used in a multi-objective configuration.
|
void |
setObjectiveType(CoreHunterObjectiveType objectiveType)
Sets the objective type for this objective
|
void |
setWeight(double weight)
Sets the relative weight of this objective when used in conjunction with another objective.
|
String |
toString() |
public CoreHunterObjective(CoreHunterObjectiveType objectiveType)
objectiveType
- the objective type to be usedpublic CoreHunterObjective(CoreHunterObjectiveType objectiveType, CoreHunterMeasure measure)
objectiveType
- the objective type to be usedmeasure
- the measure to be used for this objective typepublic CoreHunterObjective(CoreHunterObjectiveType objectiveType, double weight)
objectiveType
- the objective type to be usedweight
- the relative weight of this objective when used in conjunction with another objectivepublic CoreHunterObjective(CoreHunterObjectiveType objectiveType, CoreHunterMeasure measure, double weight)
objectiveType
- the objective type to be usedmeasure
- the measure to be used for this objective typeweight
- the relative weight of this objective when used in conjunction with another objectivepublic CoreHunterObjective(CoreHunterObjectiveType objectiveType, double weight, Range<Double> normalizationRange)
objectiveType
- the objective type to be usedweight
- the relative weight of this objective when used in conjunction with another objectivenormalizationRange
- the normalization range of this objective in a multi-objective configurationpublic CoreHunterObjective(CoreHunterObjectiveType objectiveType, CoreHunterMeasure measure, double weight, Range<Double> normalizationRange)
objectiveType
- the objective type to be usedmeasure
- the measure to be used for this objective typeweight
- the relative weight of this objective when used in conjunction with another objectivenormalizationRange
- the normalization range of this objective in a multi-objective configurationpublic CoreHunterObjective(CoreHunterObjective objective)
objective
- the objective to be copiedpublic final CoreHunterObjectiveType getObjectiveType()
public final void setObjectiveType(CoreHunterObjectiveType objectiveType)
objectiveType
- the objective type for this objectivepublic final CoreHunterMeasure getMeasure()
null
if no measure has been givenpublic final void setMeasure(CoreHunterMeasure measure)
measure
- the measure for this objective if defined, or
null
if no measure is givenpublic double getWeight()
public final void setWeight(double weight)
weight
- the relative weight of this objectivepublic final Range<Double> getNormalizationRange()
null
if no normalization range has been set.public final void setNormalizationRange(Range<Double> range)
range
- normalization range of this objectivepublic final boolean isSameObjective(CoreHunterObjective objective)
objective
- the objective to be tested against this objectivetrue
if the objective type and measure are the
equal, true
otherwiseCopyright © 2017. All rights reserved.