|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.jmcda.persist.xmcda2.utils.XMCDAHelper
org.decisiondeck.jmcda.persist.xmcda2.utils.XMCDAHelperWithVarious
org.decisiondeck.jmcda.persist.xmcda2.XMCDAEvaluations
public class XMCDAEvaluations
Methods for reading and writing evaluations informations (called performance tables in XMCDA terms) from and to XMCDA fragments.
| Constructor Summary | |
|---|---|
XMCDAEvaluations()
Creates a new object which will use the default error management strategy XMCDAErrorsManager.ErrorManagement.THROW. |
|
XMCDAEvaluations(XMCDAErrorsManager errorsManager)
Creates a new object delegating error management to the given error manager in case of unexpected data read. |
|
| Method Summary | |
|---|---|
boolean |
hasNames(Collection<XPerformanceTable> xPerformanceTables)
Tests whether the given XMCDA fragment possibly contains evaluations informations per decision maker. |
EvaluationMatrix |
read(Collection<XPerformanceTable> xPerformanceTables)
Retrieves all the evaluations contained into the given XMCDA fragments. |
EvaluationMatrix |
read(XPerformanceTable xPerformanceTable)
Retrieves the evaluations contained into the given XMCDA fragment. |
Map<DecisionMaker,EvaluationMatrix> |
readPerDecisionMaker(Collection<XPerformanceTable> xPerformanceTables)
Retrieves the evaluations, per decision maker, contained into the given XMCDA fragments. |
void |
setAlternativesOrder(Collection<Alternative> alternativesOrder)
|
void |
setCriteriaOrder(Collection<Criterion> criteriaOrder)
|
void |
setDmsOrder(Collection<DecisionMaker> dmsOrder)
|
XPerformanceTable |
write(IRdEvaluations evaluations)
Retrieves the given evaluations informations as an XMCDA fragment. |
Collection<XPerformanceTable> |
write(Map<DecisionMaker,IRdEvaluations> allEvaluations)
Retrieves the given evaluations informations as a collection of XMCDA fragment, per decision maker. |
| Methods inherited from class org.decisiondeck.jmcda.persist.xmcda2.utils.XMCDAHelper |
|---|
error, getStrategy, setStrategy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMCDAEvaluations()
XMCDAErrorsManager.ErrorManagement.THROW.
public XMCDAEvaluations(XMCDAErrorsManager errorsManager)
errorsManager - not null.| Method Detail |
|---|
public EvaluationMatrix read(XPerformanceTable xPerformanceTable)
throws InvalidInputException
Retrieves the evaluations contained into the given XMCDA fragment.
In case of unexpected data, an exception is thrown if this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy, otherwise, non conforming informations will be skipped.
xPerformanceTable - not null.
null.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public Map<DecisionMaker,EvaluationMatrix> readPerDecisionMaker(Collection<XPerformanceTable> xPerformanceTables)
throws InvalidInputException
Retrieves the evaluations, per decision maker, contained into the given XMCDA fragments. Iteration order of the returned map matches that of the given collection.
In case of unexpected data, an exception is thrown if this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy, otherwise, non conforming informations will be skipped.
xPerformanceTables - not null.
null.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.public XPerformanceTable write(IRdEvaluations evaluations)
evaluations - not null, not empty.
null.public void setDmsOrder(Collection<DecisionMaker> dmsOrder)
public void setCriteriaOrder(Collection<Criterion> criteriaOrder)
public void setAlternativesOrder(Collection<Alternative> alternativesOrder)
public Collection<XPerformanceTable> write(Map<DecisionMaker,IRdEvaluations> allEvaluations)
allEvaluations - not null, no null entries, no empty entries.
null.
public EvaluationMatrix read(Collection<XPerformanceTable> xPerformanceTables)
throws InvalidInputException
Retrieves all the evaluations contained into the given XMCDA fragments.
In case of unexpected data, an exception is thrown if this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy, otherwise, non conforming informations will be skipped.
xPerformanceTables - not null.
null.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.public boolean hasNames(Collection<XPerformanceTable> xPerformanceTables)
Tests whether the given XMCDA fragment possibly contains evaluations informations per decision maker.
xPerformanceTables - not null.
true iff the given collection is not empty and its elements each have their name set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||