|
||||||||||
| 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.XMCDAAssignments
public class XMCDAAssignments
Methods for reading and writing alternative assignments from and to XMCDA fragments.
| Constructor Summary | |
|---|---|
XMCDAAssignments()
Creates a new object which will use the default error management strategy XMCDAErrorsManager.ErrorManagement.THROW. |
|
XMCDAAssignments(XMCDAErrorsManager errorsManager)
Creates a new object delegating error management to the given error manager in case of unexpected data read. |
|
| Method Summary | |
|---|---|
SortedSet<Category> |
getCategories()
Retrieves a copy of the categories stored in this object, or null if the categories have not been
set yet. |
IAssignmentsToMultiple |
read(XAlternativesAffectations xAlternativesAffectations)
Retrieves an object representing the assignments, possibly to multiple categories, contained in the given fragment. |
Map<DecisionMaker,IAssignmentsToMultiple> |
readAll(Collection<XAlternativesAffectations> xAllAlternativesAffectations)
Retrieves assignments to multiple categories objects per decision makers, containing the information in the given fragment. |
Map<DecisionMaker,IAssignmentsWithCredibilities> |
readAllWithCredibilities(Collection<XAlternativesAffectations> xAlternativesAffectationsCollection)
Retrieves assignments with credibilities objects per decision makers, containing the information in the given fragment. |
IAssignmentsWithCredibilities |
readWithCredibilities(XAlternativesAffectations xAlternativesAffectations)
Retrieves an object representing the assignments with credibilities contained in the given fragment. |
void |
setAlternativesOrder(Collection<Alternative> alternativesOrder)
|
void |
setCategories(SortedSet<Category> categories)
Sets the categories stored in this object. |
void |
setDmsOrder(Collection<DecisionMaker> dmsOrder)
|
XAlternativesAffectations |
write(IOrderedAssignmentsToMultipleRead assignments)
Retrieves the XMCDA equivalent of the given assignments. |
XAlternativesAffectations |
write(IOrderedAssignmentsWithCredibilitiesRead assignments)
Retrieves the XMCDA equivalent of the given assignments. |
Collection<XAlternativesAffectations> |
writeAll(Map<DecisionMaker,? extends IOrderedAssignmentsToMultipleRead> allAssignments)
Retrieves the XMCDA equivalent of the given assignments. |
Collection<XAlternativesAffectations> |
writeAllWithCredibilities(Map<DecisionMaker,? extends IOrderedAssignmentsWithCredibilitiesRead> allAssignments)
Retrieves the XMCDA equivalent of the given assignments. |
| 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 XMCDAAssignments()
XMCDAErrorsManager.ErrorManagement.THROW.
public XMCDAAssignments(XMCDAErrorsManager errorsManager)
errorsManager - not null.| Method Detail |
|---|
public XAlternativesAffectations write(IOrderedAssignmentsWithCredibilitiesRead assignments)
assignments - not null.
null.
public Map<DecisionMaker,IAssignmentsToMultiple> readAll(Collection<XAlternativesAffectations> xAllAlternativesAffectations)
throws InvalidInputException
Retrieves assignments to multiple categories objects per decision makers, containing the information in the given fragment. The iteration order of the key set of the returned map reflects the order read in the 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.
xAllAlternativesAffectations - not null, no null values.
null.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.setCategories(java.util.SortedSet)
public IAssignmentsToMultiple read(XAlternativesAffectations xAlternativesAffectations)
throws InvalidInputException
Retrieves an object representing the assignments, possibly to multiple categories, contained in the given 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.
xAlternativesAffectations - not null, no null values.
null.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.setCategories(java.util.SortedSet) public Collection<XAlternativesAffectations> writeAllWithCredibilities(Map<DecisionMaker,? extends IOrderedAssignmentsWithCredibilitiesRead> allAssignments)
allAssignments - not null.
null.
public IAssignmentsWithCredibilities readWithCredibilities(XAlternativesAffectations xAlternativesAffectations)
throws InvalidInputException
Retrieves an object representing the assignments with credibilities contained in the given 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.
xAlternativesAffectations - not null, no null values.
null.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.setCategories(java.util.SortedSet) public XAlternativesAffectations write(IOrderedAssignmentsToMultipleRead assignments)
assignments - not null.
null.
public Map<DecisionMaker,IAssignmentsWithCredibilities> readAllWithCredibilities(Collection<XAlternativesAffectations> xAlternativesAffectationsCollection)
throws InvalidInputException
Retrieves assignments with credibilities objects per decision makers, containing the information in the given fragment. The iteration order of the key set of the returned map reflects the order read in the 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.
xAlternativesAffectationsCollection - not null, no null key or values.
null.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.setCategories(java.util.SortedSet) public SortedSet<Category> getCategories()
null if the categories have not been
set yet.
null iff not set yet.public void setCategories(SortedSet<Category> categories)
categories - possibly null.public void setAlternativesOrder(Collection<Alternative> alternativesOrder)
public void setDmsOrder(Collection<DecisionMaker> dmsOrder)
public Collection<XAlternativesAffectations> writeAll(Map<DecisionMaker,? extends IOrderedAssignmentsToMultipleRead> allAssignments)
allAssignments - not null.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||