|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.xmcda_oo.aggregators.Thresholds
public class Thresholds
No null values are accepted as thresholds.
| Constructor Summary | |
|---|---|
Thresholds()
|
|
Thresholds(ICriteriaWithThresholds thresholds)
|
|
Thresholds(Map<Criterion,Double> prefs,
Map<Criterion,Double> indiffs,
Map<Criterion,Double> vetoes)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Set<Criterion> |
getCriteria()
Note that the returned set read-through this object: it reflects the criteria contained in this object. |
Set<Criterion> |
getCriteriaToRemove()
|
Double |
getIndifferenceThreshold(Criterion criterion)
Retrieves the indifference threshold that has been set for the given criterion. |
Map<Criterion,Double> |
getIndifferenceThresholds()
Retrieves a view of the indifference thresholds. |
Double |
getPreferenceThreshold(Criterion criterion)
Retrieves the preference threshold that has been set for the given criterion. |
Map<Criterion,Double> |
getPreferenceThresholds()
Retrieves a view of the preference thresholds. |
Double |
getVetoThreshold(Criterion criterion)
Retrieves the veto threshold that has been set for the given criterion. |
Map<Criterion,Double> |
getVetoThresholds()
Retrieves a view of the veto thresholds. |
int |
hashCode()
|
boolean |
isEmpty()
|
static Thresholds |
newZeroes(Set<Criterion> criteria)
|
boolean |
setIndifferenceThreshold(Criterion criterion,
Double threshold)
Binds a threshold to the given criterion, or remove it from the criterion. |
boolean |
setPreferenceThreshold(Criterion criterion,
Double threshold)
Binds a preference threshold to the given criterion, or remove it from the criterion. |
boolean |
setVetoThreshold(Criterion criterion,
Double threshold)
Binds a threshold to the given criterion, or remove it from the criterion. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Thresholds()
public Thresholds(Map<Criterion,Double> prefs,
Map<Criterion,Double> indiffs,
Map<Criterion,Double> vetoes)
prefs - not null.indiffs - not null.vetoes - not null.public Thresholds(ICriteriaWithThresholds thresholds)
| Method Detail |
|---|
public Set<Criterion> getCriteriaToRemove()
public Set<Criterion> getCriteria()
ICriteriaWithThresholds
getCriteria in interface ICriteriaWithThresholdsnull threshold value is bound.public Double getIndifferenceThreshold(Criterion criterion)
ICriteriaWithThresholdsnull is returned.
getIndifferenceThreshold in interface ICriteriaWithThresholdscriterion - not null.
null if not set.public Double getPreferenceThreshold(Criterion criterion)
ICriteriaWithThresholdsnull is returned.
getPreferenceThreshold in interface ICriteriaWithThresholdscriterion - not null.
null if not set.public Double getVetoThreshold(Criterion criterion)
ICriteriaWithThresholdsnull is returned.
getVetoThreshold in interface ICriteriaWithThresholdscriterion - not null.
null if not set.public boolean isEmpty()
isEmpty in interface ICriteriaWithThresholds
public boolean setIndifferenceThreshold(Criterion criterion,
Double threshold)
ICriteriaWithThresholdsnull, the existing
indifference threshold is removed if it existed.
setIndifferenceThreshold in interface ICriteriaWithThresholdscriterion - not null.threshold - if null, if a threshold was bound to the criterion, it will be removed.
true iff the threshold bound to the given criterion has been changed.
public boolean setVetoThreshold(Criterion criterion,
Double threshold)
ICriteriaWithThresholdsnull, the existing
veto threshold is removed if it existed.
setVetoThreshold in interface ICriteriaWithThresholdscriterion - not null.threshold - if null, if a threshold was bound to the criterion, it will be removed.
true iff the threshold bound to the given criterion has been changed.
public boolean setPreferenceThreshold(Criterion criterion,
Double threshold)
ICriteriaWithThresholdsnull, the
existing preference threshold is removed if it existed.
setPreferenceThreshold in interface ICriteriaWithThresholdscriterion - not null.threshold - if null, if a threshold was bound to the criterion, it will be removed.
true iff the preference threshold bound to the given criterion has been changed.public Map<Criterion,Double> getIndifferenceThresholds()
ICriteriaWithThresholdsnull key or value.
getIndifferenceThresholds in interface ICriteriaWithThresholdsnull.public Map<Criterion,Double> getPreferenceThresholds()
ICriteriaWithThresholdsnull key or value.
getPreferenceThresholds in interface ICriteriaWithThresholdsnull.public Map<Criterion,Double> getVetoThresholds()
ICriteriaWithThresholdsnull key or value.
getVetoThresholds in interface ICriteriaWithThresholdsnull.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static Thresholds newZeroes(Set<Criterion> criteria)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||