public class XMCDA extends Object
| Constructor and Description |
|---|
XMCDA() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Integer> |
difference(Map<String,Integer> initialStatus,
Map<String,Integer> finalStatus)
Return a map of root XMCDA tags whose number of element in the initial and final status are different.
|
static Map<String,Integer> |
difference(Map<String,Integer> initialStatus,
Map<String,Integer> finalStatus,
boolean includeAll)
Compares two different status as returned by
rootElementsSize() and returns the difference of
elements declared in each tag between the two status. |
Map<String,Object> |
rootElements()
Return a map mapping the root tags (as defined in
ROOT_TAGS) to their respective elements. |
Map<String,Integer> |
rootElementsSize()
Returns a map mapping the root tags (as defined in
ROOT_TAGS) to the number of elements it contains. |
public static final List<String> ROOT_TAGS
<xmcda>.public final Alternatives alternatives
public final AlternativesSets<?> alternativesSets
public final Criteria criteria
public final CriteriaSets<?> criteriaSets
public final Categories categories
public final CategoriesSets<?> categoriesSets
public final ArrayList<PerformanceTable<?>> performanceTablesList
public final ArrayList<AlternativesValues<?>> alternativesValuesList
public final ArrayList<AlternativesSetsValues<?,?>> alternativesSetsValuesList
public final ArrayList<AlternativesLinearConstraints<?>> alternativesLinearConstraintsList
public final ArrayList<AlternativesSetsLinearConstraints<?,?>> alternativesSetsLinearConstraintsList
public final ArrayList<AlternativesMatrix<?>> alternativesMatricesList
public final ArrayList<AlternativesSetsMatrix<?,?>> alternativesSetsMatricesList
public final ArrayList<CriteriaFunctions> criteriaFunctionsList
public final ArrayList<CriteriaScales> criteriaScalesList
public final ArrayList<CriteriaThresholds> criteriaThresholdsList
public final ArrayList<CriteriaValues<?>> criteriaValuesList
public final ArrayList<CriteriaSetsValues<?,?>> criteriaSetsValuesList
public final ArrayList<CriteriaLinearConstraints<?>> criteriaLinearConstraintsList
public final ArrayList<CriteriaSetsLinearConstraints<?,?>> criteriaSetsLinearConstraintsList
public final ArrayList<CriteriaMatrix<?>> criteriaMatricesList
public final ArrayList<CriteriaSetsMatrix<?,?>> criteriaSetsMatricesList
public final ArrayList<CriteriaHierarchy> criteriaHierarchiesList
public final ArrayList<CriteriaSetsHierarchy> criteriaSetsHierarchiesList
public final ArrayList<AlternativesCriteriaValues<?>> alternativesCriteriaValuesList
public final ArrayList<CategoriesProfiles<?>> categoriesProfilesList
public final ArrayList<AlternativesAssignments<?>> alternativesAssignmentsList
public final ArrayList<CategoriesValues<?>> categoriesValuesList
public final ArrayList<CategoriesSetsValues<?,?>> categoriesSetsValuesList
public final ArrayList<CategoriesLinearConstraints<?>> categoriesLinearConstraintsList
public final ArrayList<CategoriesSetsLinearConstraints<?,?>> categoriesSetsLinearConstraintsList
public final ArrayList<CategoriesMatrix<?>> categoriesMatricesList
public final ArrayList<CategoriesSetsMatrix<?,?>> categoriesSetsMatricesList
public final ArrayList<ProgramParameters<?>> programParametersList
public final ArrayList<ProgramExecutionResult> programExecutionResultsList
public Map<String,Object> rootElements()
ROOT_TAGS) to their respective elements. The size
of the returned map is always equal to ROOT_TAGS.size().public Map<String,Integer> rootElementsSize()
ROOT_TAGS) to the number of elements it contains.
This can be handy in different situations, such as when loading a file to determine which root tags have been
added (see difference(Map, Map)). The size of the returned map is always equal to
ROOT_TAGS.size().public static Map<String,Integer> difference(Map<String,Integer> initialStatus, Map<String,Integer> finalStatus)
difference(initialStatus, finalStatus, false)initialStatus - finalStatus - difference(Map, Map, boolean)public static Map<String,Integer> difference(Map<String,Integer> initialStatus, Map<String,Integer> finalStatus, boolean includeAll)
rootElementsSize() and returns the difference of
elements declared in each tag between the two status. The difference is calculated on the basis of the content
of finalStatus. When both maps comes from rootElementsSize() they obviously have the same
size and the set of keys. If it not the case, it may happen that a tag/key in the finalStatus is not
present in initialStatus, it defaults to zero.
initialStatus - the initial statusfinalStatus - the final statusincludeAll - if False, every tag in final Status is returned with its difference, even when it
is zero. When true, only tags with a non-zero difference are included in the
returned map.Copyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.