|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.xmcda_oo.data.BasicGenerator
DataGenerator.
@Deprecated public class BasicGenerator
An object to generate basic problem data. Generates deterministically. Some data generation require other data (indicated in the method contract), in this case the user has two choices. Either the required data has been previously set in this object (by direct setting or by generation of this data), and it is used, or it does not exist yet and then is generated on the fly by this object. If the required data has been set previously but is not in the appropriate number (e.g. 10 criteria have been set but now the user asks for only 9 scales), an error is thrown. This object remembers what it generates so one usage pattern is to call all the appropriate methods without taking care of the returned values and get the whole problem at once at the end.
Asking to generate some data that has been set already (either through direct setting or through generation) erases the previous content and replace it. Associated data is deleted as well, e.g. when re-generating the criteria, possibly existing scales associated with previously generated criteria are removed.
Methods return copies, modification of these returned objects do not impact this one.
| Nested Class Summary | |
|---|---|
static class |
BasicGenerator.DefaultNamer
Deprecated. |
| Field Summary | |
|---|---|
static int |
END_OF_SCALE
Deprecated. Last value that evaluations may take (thus, this value inclusive). |
static int |
START_OF_SCALE
Deprecated. |
| Constructor Summary | |
|---|---|
BasicGenerator()
Deprecated. Default public constructor. |
|
| Method Summary | |
|---|---|
boolean |
areIdsInts()
Deprecated. |
Set<Alternative> |
genAlternatives(int nbAlternatives)
Deprecated. |
ICatsAndProfs |
genCategories(int nbCategories)
Deprecated. Uses the profiles. |
Set<Criterion> |
genCriteria(int nbCriteria)
Deprecated. |
Set<DecisionMaker> |
genDms(int nbDms)
Deprecated. |
SortedSet<Alternative> |
genProfiles(int nbProfiles)
Deprecated. Note that this replaces possibly existing categories in this object. |
Map<Criterion,IntegerStepScaleToDel> |
genScales(int nbScales)
Deprecated. Uses the criteria. |
IEvaluations |
genSplitProfilesEvaluations(int nbProfiles,
int nbCriteria)
Deprecated. requires ordered intervals, integer scales, and other oddities. |
Function<Integer,String> |
getAlternativeNamer()
Deprecated. |
IGroupSortingResultsWithCredibilities |
getData()
Deprecated. Retrieves a read-only view of the data contained in this object (i.e. the data which has been generated). |
boolean |
roundsUp()
Deprecated. |
void |
setAlternativeNamer(Function<Integer,String> alternativeNamer)
Deprecated. |
void |
setAlternatives(Set<Alternative> alternatives)
Deprecated. |
void |
setCategories(ICatsAndProfs categories)
Deprecated. |
void |
setCriteria(Set<Criterion> criteria)
Deprecated. |
void |
setDms(Set<DecisionMaker> dms)
Deprecated. |
void |
setRoundUp(boolean roundUp)
Deprecated. |
void |
setScales(Map<Criterion,IOrderedInterval> scales)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int END_OF_SCALE
public static final int START_OF_SCALE
| Constructor Detail |
|---|
public BasicGenerator()
| Method Detail |
|---|
public Map<Criterion,IntegerStepScaleToDel> genScales(int nbScales)
nbScales - to generate.
null.public SortedSet<Alternative> genProfiles(int nbProfiles)
nbProfiles - to generate.
public Set<DecisionMaker> genDms(int nbDms)
public Set<Alternative> genAlternatives(int nbAlternatives)
public IGroupSortingResultsWithCredibilities getData()
null.public ICatsAndProfs genCategories(int nbCategories)
nbCategories - the number of categories to generate.
null.
@Deprecated
public IEvaluations genSplitProfilesEvaluations(int nbProfiles,
int nbCriteria)
nbProfiles - to generate (or use if exist) - also generates the categories!. TODO better doc.nbCriteria - to generate (or use if exist).
null.public Set<Criterion> genCriteria(int nbCriteria)
public boolean areIdsInts()
public boolean roundsUp()
public void setRoundUp(boolean roundUp)
public void setCriteria(Set<Criterion> criteria)
public void setScales(Map<Criterion,IOrderedInterval> scales)
public void setCategories(ICatsAndProfs categories)
public void setDms(Set<DecisionMaker> dms)
public Function<Integer,String> getAlternativeNamer()
public void setAlternativeNamer(Function<Integer,String> alternativeNamer)
public void setAlternatives(Set<Alternative> alternatives)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||