public class PerformanceTable<T> extends LinkedHashMap<PerformanceTableCoord,QualifiedValues<T>> implements CommonAttributes, HasDescription, XMCDARootElement
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
PerformanceTable() |
| Modifier and Type | Method and Description |
|---|---|
PerformanceTable<Double> |
asDouble() |
<U> PerformanceTable<U> |
convertTo(Class<U> clazz) |
QualifiedValues<T> |
get(Alternative a,
Criterion c) |
Set<Alternative> |
getAlternatives() |
PerformanceTableCoord |
getCoord(Alternative alternative,
Criterion criterion) |
Set<Criterion> |
getCriteria() |
Description |
getDescription() |
QualifiedValue<T> |
getQValue(Alternative a,
Criterion c)
Returns the evaluation of the supplied alternative on the supplied criterion, as a
QualifiedValue. |
T |
getValue(Alternative a,
Criterion c)
Returns the evaluation of the supplied alternative on the supplied criterion.
|
boolean |
hasMissingValues() |
String |
id() |
boolean |
isNumeric()
A performance table is said to be numeric if all its values are numeric
|
String |
mcdaConcept() |
String |
name() |
QualifiedValues<T> |
put(Alternative a,
Criterion c,
QualifiedValue<T> qvalue) |
QualifiedValues<T> |
put(Alternative a,
Criterion c,
QualifiedValues<T> qvalues) |
QualifiedValues<T> |
put(Alternative a,
Criterion c,
T value) |
void |
setDescription(Description description) |
void |
setId(String id) |
void |
setMcdaConcept(String mcdaConcept) |
void |
setName(String name) |
void |
setValue(Alternative a,
Criterion c,
T value)
Sets the evaluation of the supplied alternative on the supplied criterion.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic static final String TAG
public QualifiedValues<T> put(Alternative a, Criterion c, QualifiedValues<T> qvalues)
public QualifiedValues<T> put(Alternative a, Criterion c, QualifiedValue<T> qvalue)
public QualifiedValues<T> put(Alternative a, Criterion c, T value)
public QualifiedValues<T> get(Alternative a, Criterion c)
public QualifiedValue<T> getQValue(Alternative a, Criterion c)
QualifiedValue.a - the alternativec - the criterionnull if there is no such evaluation in the performance tableIllegalStateException - if the evaluation contains more than one valuepublic T getValue(Alternative a, Criterion c)
a - the alternativec - the criterionnull if there is no such evaluation in the performance tableIllegalStateException - if the evaluation contains more than one valuepublic void setValue(Alternative a, Criterion c, T value)
a - the alternativec - the criterionvalue - the value to setpublic Set<Alternative> getAlternatives()
public PerformanceTableCoord getCoord(Alternative alternative, Criterion criterion)
public boolean isNumeric()
public boolean hasMissingValues()
public PerformanceTable<Double> asDouble() throws ValueConverters.ConversionException
public <U> PerformanceTable<U> convertTo(Class<U> clazz) throws ValueConverters.ConversionException
public String id()
id in interface CommonAttributespublic void setId(String id)
setId in interface CommonAttributespublic String name()
name in interface CommonAttributespublic String mcdaConcept()
mcdaConcept in interface CommonAttributespublic void setName(String name)
setName in interface CommonAttributespublic void setMcdaConcept(String mcdaConcept)
setMcdaConcept in interface CommonAttributespublic void setDescription(Description description)
setDescription in interface HasDescriptionpublic Description getDescription()
getDescription in interface HasDescriptionCopyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.