public class MemoryContainerDescription
extends java.lang.Object
INFORMATION_TABLE, PCT or SIMILARITY_TABLE),PARETO or LORENZ),AttributesMeaningsDescriptions object containing descriptions of meanings of all
attributes from memory container.OrdinalValue2CardinalValue object containing information about how to convert
ordinal values from memory container to cardinal values,EvaluationDifference2PreferenceIntensityDegree object containing information
about how to convert differences of evaluations on conditional cardinal criteria from memory container
to the degrees of the intensity of preference (used to transform information table to PCT).OrdinalValue2CardinalValue
object should be applied to memory container and then conversion stored in EvaluationDifference2PreferenceIntensityDegree
should be applied to new memory container resulting from the first conversion.MemoryContainer newInformationTable = ordinalValue2CardinalValue.applyTo(informationTable);MemoryContainer pct = InformationTable2PCTConverter.convert(newInformationTable, evaluationDifference2PreferenceIntensityDegree);| Modifier and Type | Field | Description |
|---|---|---|
static int |
INFORMATION_TABLE |
Possible value of container type used when memory container is an information table
|
static java.lang.String |
INFORMATION_TABLE_STRING |
Textual equivalent of
INFORMATION_TABLE constant |
static int |
LORENZ |
Possible value of evaluation space in which evaluations from memory container are defined.
|
static java.lang.String |
LORENZ_STRING |
Textual equivalent of
LORENZ constant |
static int |
PARETO |
Possible value of evaluation space in which evaluations from memory container are defined.
|
static java.lang.String |
PARETO_STRING |
Textual equivalent of
PARETO constant |
static int |
PCT |
Possible value of container type used when memory container is a pairwise comparison table (PCT)
|
static java.lang.String |
PCT_STRING |
Textual equivalent of
PCT constant |
static int |
SIMILARITY_TABLE |
Possible value of container type used when memory container is a similarity table
|
static java.lang.String |
SIMILARITY_TABLE_STRING |
Textual equivalent of
SIMILARITY_TABLE constant |
| Constructor | Description |
|---|---|
MemoryContainerDescription(int containerType,
int evaluationSpaceUsed,
AttributesMeaningsDescriptions attributesMeaningsDescriptions,
java.util.Hashtable<java.lang.Integer,java.lang.Integer> quantitiesOfAddedMinimalValuesForLorenzEvaluationSpace,
OrdinalValue2CardinalValue ordinalValue2CardinalValue,
EvaluationDifference2PreferenceIntensityDegree evaluationDifference2PreferenceIntensityDegree) |
Constructor initializing all fields.
|
| Modifier and Type | Method | Description |
|---|---|---|
AttributesMeaningsDescriptions |
getAttributesMeaningsDescriptions() |
Gets description of the meanings of all attributes from memory container.
|
int |
getContainerType() |
Gets type of memory container
|
java.lang.String |
getContainerTypeAsText() |
Gets type of memory container in textual form
|
EvaluationDifference2PreferenceIntensityDegree |
getEvaluationDifference2PreferenceIntensityDegree() |
Gets information about how to convert differences of evaluations on conditional cardinal criteria to the degrees
of the intensity of preference.
|
int |
getEvaluationSpaceUsed() |
Gets evaluation space in which evaluations from memory container are defined
|
java.lang.String |
getEvaluationSpaceUsedAsText() |
Get evaluation space used in textual form
|
OrdinalValue2CardinalValue |
getOrdinalValue2CardinalValue() |
Gets information about how to convert ordinal values to cardinal values.
|
java.util.Hashtable<java.lang.Integer,java.lang.Integer> |
getQuantitiesOfAddedMinimalValuesForLorenzEvaluationSpace() |
Gets quantities of added minimal values for particular cardinal gain criteria in Lorenz evaluation space
|
static boolean |
isCorrectContainerType(java.lang.String containerTypeString) |
Checks if given container type in textual form is correct
|
static boolean |
isCorrectEvaluationSpaceUsed(java.lang.String evaluationSpaceUsedString) |
Checks if given evaluation space used in textual form is correct
|
void |
setAttributesMeaningsDescriptions(AttributesMeaningsDescriptions attributesMeaningsDescriptions) |
Sets description of the meanings of all attributes from memory container.
|
void |
setContainerType(int containerType) |
Sets type of memory container
|
void |
setEvaluationDifference2PreferenceIntensityDegree(EvaluationDifference2PreferenceIntensityDegree evaluationDifference2PreferenceIntensityDegree) |
Sets information about how to convert differences of evaluations on conditional cardinal criteria to the degrees
of the intensity of preference.
|
void |
setEvaluationSpaceUsed(int evaluationSpaceUsed) |
Sets evaluation space in which evaluations from memory container are defined
|
void |
setOrdinalValue2CardinalValue(OrdinalValue2CardinalValue ordinalValue2CardinalValue) |
Sets information about how to convert ordinal values to cardinal values.
|
void |
setQuantitiesOfAddedMinimalValuesForLorenzEvaluationSpace(java.util.Hashtable<java.lang.Integer,java.lang.Integer> quantitiesOfAddedMinimalValuesForLorenzEvaluationSpace) |
Sets quantities of added minimal values for particular cardinal gain criteria in Lorenz evaluation space
|
public static final int INFORMATION_TABLE
public static final java.lang.String INFORMATION_TABLE_STRING
INFORMATION_TABLE constantpublic static final int PCT
public static final java.lang.String PCT_STRING
PCT constantpublic static final int SIMILARITY_TABLE
public static final java.lang.String SIMILARITY_TABLE_STRING
SIMILARITY_TABLE constantpublic static final int PARETO
public static final java.lang.String PARETO_STRING
PARETO constantpublic static final int LORENZ
public static final java.lang.String LORENZ_STRING
LORENZ constantpublic MemoryContainerDescription(int containerType,
int evaluationSpaceUsed,
AttributesMeaningsDescriptions attributesMeaningsDescriptions,
java.util.Hashtable<java.lang.Integer,java.lang.Integer> quantitiesOfAddedMinimalValuesForLorenzEvaluationSpace,
OrdinalValue2CardinalValue ordinalValue2CardinalValue,
EvaluationDifference2PreferenceIntensityDegree evaluationDifference2PreferenceIntensityDegree)
containerType - Type of memory container. Can be INFORMATION_TABLE, PCT or SIMILARITY_TABLE.evaluationSpaceUsed - Evaluation space in which evaluations from memory container are defined.
Can be PARETO or LORENZ.attributesMeaningsDescriptions - description of the meanings of all attributes from memory containerquantitiesOfAddedMinimalValuesForLorenzEvaluationSpace - Quantities of added minimal values for particular cardinal
gain criteria in Lorenz evaluation space.
Should be null if memory container is not in Lorenz evaluation space.
In case of Lorenz evaluation space quantity of added minimal values must be set for each Lorenz attribute.ordinalValue2CardinalValue - Information about how to convert ordinal values to cardinal values.
Can be null if memory container does not contain ordinal values, conversion is not needed or not defined yet.evaluationDifference2PreferenceIntensityDegree - Information about how to convert differences of evaluations
on conditional cardinal criteria to the degrees of the intensity of preference.
Can be null if transformation is not needed or not defined yet.InvalidValueException - when type of memory container is different than INFORMATION_TABLE, PCT and SIMILARITY_TABLE,
when evaluation space in which evaluations from memory container are defined is different than PARETO and LORENZ,
when quantities of added minimal values for particular cardinal gain criteria in Lorenz evaluation space
are different than null while Pareto evaluation space is used
or when memory container type is equal to PCT and any conversion information is different than nulljava.lang.NullPointerException - when description of the meanings of the attributes is null
or when quantities of added minimal values for particular cardinal gain criteria in Lorenz evaluation space are null
while Lorenz evaluation space is usedpublic int getContainerType()
public java.lang.String getContainerTypeAsText()
public void setContainerType(int containerType)
containerType - Type of memory container. Can be INFORMATION_TABLE, PCT or SIMILARITY_TABLE.InvalidValueException - when type of memory container is different than INFORMATION_TABLE, PCT and SIMILARITY_TABLEpublic int getEvaluationSpaceUsed()
public java.lang.String getEvaluationSpaceUsedAsText()
public void setEvaluationSpaceUsed(int evaluationSpaceUsed)
evaluationSpaceUsed - Evaluation space in which evaluations from memory container are defined.
Can be PARETO or LORENZ.InvalidValueException - when evaluation space in which evaluations from memory container are defined is different than PARETO and LORENZpublic AttributesMeaningsDescriptions getAttributesMeaningsDescriptions()
AttributesMeaningsDescriptions object stored in this class is returned.public void setAttributesMeaningsDescriptions(AttributesMeaningsDescriptions attributesMeaningsDescriptions)
AttributesMeaningsDescriptions object is stored in this class.attributesMeaningsDescriptions - description of the meanings of all attributes from memory containerjava.lang.NullPointerException - when description of the meanings of the attributes is nullpublic java.util.Hashtable<java.lang.Integer,java.lang.Integer> getQuantitiesOfAddedMinimalValuesForLorenzEvaluationSpace()
public void setQuantitiesOfAddedMinimalValuesForLorenzEvaluationSpace(java.util.Hashtable<java.lang.Integer,java.lang.Integer> quantitiesOfAddedMinimalValuesForLorenzEvaluationSpace)
quantitiesOfAddedMinimalValuesForLorenzEvaluationSpace - quantities of added minimal values for particular
cardinal gain criteria in Lorenz evaluation spaceInvalidValueException - when Pareto evaluation space is used and given quantities of added minimal values
for particular cardinal gain criteria are different than null
or when Lorenz evaluation space is used and given quantities of added minimal values
for particular cardinal gain criteria are nullpublic OrdinalValue2CardinalValue getOrdinalValue2CardinalValue()
OrdinalValue2CardinalValue object stored in this class is returned.public void setOrdinalValue2CardinalValue(OrdinalValue2CardinalValue ordinalValue2CardinalValue)
OrdinalValue2CardinalValue object is stored in this class.ordinalValue2CardinalValue - Information about how to convert ordinal values to cardinal values.
Can be null if memory container does not contain ordinal values or conversion is not needed.public EvaluationDifference2PreferenceIntensityDegree getEvaluationDifference2PreferenceIntensityDegree()
EvaluationDifference2PreferenceIntensityDegree object stored in this class is returned.public void setEvaluationDifference2PreferenceIntensityDegree(EvaluationDifference2PreferenceIntensityDegree evaluationDifference2PreferenceIntensityDegree)
EvaluationDifference2PreferenceIntensityDegree object is stored in this class.evaluationDifference2PreferenceIntensityDegree - Information about how to convert differences of evaluations
on conditional cardinal criteria to the degrees of the intensity of preference.
Can be null if transformation is not needed.public static boolean isCorrectContainerType(java.lang.String containerTypeString)
containerTypeString - container type in textual formtrue if given container type in textual form is correct, false otherwisepublic static boolean isCorrectEvaluationSpaceUsed(java.lang.String evaluationSpaceUsedString)
evaluationSpaceUsedString - evaluation space used in textual form is correcttrue if given evaluation space used in textual form is correct, false otherwise