Class DevelopmentOptionRanker.DevelopmentOption
java.lang.Object
neqsim.process.fielddevelopment.evaluation.DevelopmentOptionRanker.DevelopmentOption
- All Implemented Interfaces:
Serializable
- Enclosing class:
DevelopmentOptionRanker
public static class DevelopmentOptionRanker.DevelopmentOption
extends Object
implements Serializable
A development option with scores for each criterion.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Map<DevelopmentOptionRanker.Criterion, Double> private intprivate Map<DevelopmentOptionRanker.Criterion, Double> private static final longprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet description.getName()Get option name.doubleGet normalized score for a criterion (0-1, higher is better).intgetRank()Get rank.doublegetScore(DevelopmentOptionRanker.Criterion criterion) Get raw score for a criterion.Get all raw scores.doubleGet weighted total score.voidsetDescription(String description) Set description.(package private) voidsetNormalizedScore(DevelopmentOptionRanker.Criterion criterion, double value) Set normalized score.(package private) voidsetRank(int rank) Set rank.voidsetScore(DevelopmentOptionRanker.Criterion criterion, double value) Set score for a criterion.(package private) voidsetWeightedScore(double score) Set weighted score.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
description
-
scores
-
normalizedScores
-
weightedScore
private double weightedScore -
rank
private int rank
-
-
Constructor Details
-
DevelopmentOption
Creates a new development option.- Parameters:
name- option name
-
-
Method Details
-
getName
Get option name. -
getDescription
Get description. -
setDescription
Set description. -
setScore
Set score for a criterion.- Parameters:
criterion- the criterionvalue- the raw score value
-
getScore
Get raw score for a criterion.- Parameters:
criterion- the criterion- Returns:
- raw score, or NaN if not set
-
getNormalizedScore
Get normalized score for a criterion (0-1, higher is better).- Parameters:
criterion- the criterion- Returns:
- normalized score
-
setNormalizedScore
Set normalized score. -
getWeightedScore
public double getWeightedScore()Get weighted total score. -
setWeightedScore
void setWeightedScore(double score) Set weighted score. -
getRank
public int getRank()Get rank. -
setRank
void setRank(int rank) Set rank. -
getScores
Get all raw scores.
-