|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICriteriaWithThresholds
Note that objects implementing this interface may be read-only, in which case the methods permitting to modify this
object's state will throw UnsupportedOperationException when invoked.
NB no need to accept null thresholds. The only reason is to have criteria without thresholds, but would be better to separate the thresholds data and the criteria data.
| Method Summary | |
|---|---|
Set<Criterion> |
getCriteria()
Note that the returned set read-through this object: it reflects the criteria contained in this object. |
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. |
boolean |
isEmpty()
|
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. |
| Method Detail |
|---|
Set<Criterion> getCriteria()
null threshold value is bound.boolean isEmpty()
boolean setVetoThreshold(Criterion criterion,
Double threshold)
null, the existing
veto threshold is removed if it existed.
criterion - 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.Double getIndifferenceThreshold(Criterion criterion)
null is returned.
criterion - not null.
null if not set.Double getVetoThreshold(Criterion criterion)
null is returned.
criterion - not null.
null if not set.Double getPreferenceThreshold(Criterion criterion)
null is returned.
criterion - not null.
null if not set.
boolean setPreferenceThreshold(Criterion criterion,
Double threshold)
null, the
existing preference threshold is removed if it existed.
criterion - 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.
boolean setIndifferenceThreshold(Criterion criterion,
Double threshold)
null, the existing
indifference threshold is removed if it existed.
criterion - 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.Map<Criterion,Double> getVetoThresholds()
null key or value.
null.Map<Criterion,Double> getIndifferenceThresholds()
null key or value.
null.Map<Criterion,Double> getPreferenceThresholds()
null key or value.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||