|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.xmcda_oo.data.BasicGenerator
org.decisiondeck.xmcda_oo.data.RandomGeneratorOld
public class RandomGeneratorOld
A basic generator with the added capability of generating random data.
BasicGenerator| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.decisiondeck.xmcda_oo.data.BasicGenerator |
|---|
BasicGenerator.DefaultNamer |
| Field Summary | |
|---|---|
static int |
MAX_WEIGHTS_SPREAD
|
| Fields inherited from class org.decisiondeck.xmcda_oo.data.BasicGenerator |
|---|
END_OF_SCALE, START_OF_SCALE |
| Constructor Summary | |
|---|---|
RandomGeneratorOld()
|
|
| Method Summary | |
|---|---|
Map<DecisionMaker,Set<Alternative>> |
genAlternativesAttribution(int nbAlternativesTot,
int nbDms,
int nbAlternativesPerDm)
Generates an attribution of a set of alternatives to a set of decision makers. |
IEvaluations |
genAlternativesEvaluations(int nbAlternatives,
int nbCriteria)
Generates random alternatives evaluations. |
Map<DecisionMaker,ICoalitions> |
genCoalitions(int nbCoalitions,
int nbCriteria)
Generates random coalitions. |
Map<DecisionMaker,IEvaluations> |
genProfilesEvaluations(int nbDms,
int nbProfiles,
int nbCriteria)
Generates random profiles evaluations for the given number of decision makers. |
IEvaluations |
genSharedProfilesEvaluations(int nbProfiles,
int nbCriteria)
Generates random profiles evaluations, the same for all decision makers. |
Map<DecisionMaker,Set<Alternative>> |
getAlternativesAttribution()
|
ISortingPreferences |
getPreferencesWithAttributed(DecisionMaker dm)
The alternatives must have been attributed. |
Set<Alternative> |
keepOnlyAttributedAlternatives()
The alternatives attribution must have been generated. |
| Methods inherited from class org.decisiondeck.xmcda_oo.data.BasicGenerator |
|---|
areIdsInts, genAlternatives, genCategories, genCriteria, genDms, genProfiles, genScales, genSplitProfilesEvaluations, getAlternativeNamer, getData, roundsUp, setAlternativeNamer, setAlternatives, setCategories, setCriteria, setDms, setRoundUp, setScales |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_WEIGHTS_SPREAD
| Constructor Detail |
|---|
public RandomGeneratorOld()
| Method Detail |
|---|
public Map<DecisionMaker,ICoalitions> genCoalitions(int nbCoalitions,
int nbCriteria)
nbCoalitions - to generate (will generate or expect the same number of decision makers).nbCriteria - to use or to generate.
null.
public IEvaluations genAlternativesEvaluations(int nbAlternatives,
int nbCriteria)
nbAlternatives - the number of alternatives to generate (or use) and to set evaluations for.nbCriteria - the number of criteria to generate (or use) and to set evaluations for, will also generate (or use)
the scales.
null, a copy.
public Map<DecisionMaker,Set<Alternative>> genAlternativesAttribution(int nbAlternativesTot,
int nbDms,
int nbAlternativesPerDm)
Generates an attribution of a set of alternatives to a set of decision makers. Each decision maker is given a given number of alternatives chosen randomly among the set of alternatives. The attributed alternatives sets are not necessarily disjoint, i.e. the random picking is done with replacement.
If the total number of alternatives equals the number of alternatives per decision maker, each decision maker is attributed the full set of alternatives.
nbAlternativesTot - total number of alternatives to choose from, to generate or to use. May be larger than the number of
alternatives to be attributed.nbDms - number of decision makers, to generate or to use.nbAlternativesPerDm - number of alternatives to attribute to each decision maker.
public Set<Alternative> keepOnlyAttributedAlternatives()
public Map<DecisionMaker,Set<Alternative>> getAlternativesAttribution()
null iff the attributions have not been generated. Otherwise, a mutable copy.public ISortingPreferences getPreferencesWithAttributed(DecisionMaker dm)
dm - not null, must be in this object.
public Map<DecisionMaker,IEvaluations> genProfilesEvaluations(int nbDms,
int nbProfiles,
int nbCriteria)
nbDms - the number of decision makers for which to generate profiles evaluations.nbProfiles - the number of profiles to generate (or use) and to set evaluations for.nbCriteria - the number of criteria to generate (or use) and to set evaluations for, will also generate (or use)
the scales.
null, a copy.
public IEvaluations genSharedProfilesEvaluations(int nbProfiles,
int nbCriteria)
nbProfiles - the number of profiles to generate (or use) and to set evaluations for.nbCriteria - the number of criteria to generate (or use) and to set evaluations for, will also generate (or use)
the scales.
null, a copy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||