Betty 1.1
|
Public Member Functions | |
GeneratorCharacteristics (String modelName, int seed, long maxProducts, int maxBranchingFactor, int height, int maxSetChildren, int numberOfFeatures, int probabilityOptionalANDMandatory, int probabilityMandatory, int probabilityOptional, int probabilityOr, int probabilityAlternative, int percentageCTC) throws BettyException | |
Map< String, String > | getCharacteristicsMap () |
String | getModelName () |
void | setModelName (String modelName) |
long | getSeed () |
void | setSeed (long seed) |
long | getMaxProducts () |
void | setMaxProducts (long maxProducts) throws BettyException |
int | getMaxBranchingFactor () |
void | setMaxBranchingFactor (int maxBranchingFactor) throws BettyException |
int | getMaxSetChildren () |
void | setMaxSetChildren (int maxSetChildren) throws BettyException |
int | getNumberOfFeatures () |
void | setNumberOfFeatures (int numberOfFeatures) throws BettyException |
float | getProbabilityMandatory () |
void | setProbabilityMandatory (float probabilityMandatory) throws BettyException |
float | getProbabilityOptional () |
void | setProbabilityOptional (float probabilityOptional) throws BettyException |
float | getProbabilityOr () |
void | setProbabilityOr (float probabilityOr) throws BettyException |
float | getProbabilityAlternative () |
void | setProbabilityAlternative (float probabilityAlternative) throws BettyException |
float | getPercentageCTC () |
void | setPercentageCTC (float percentageCTC) throws BettyException |
void | checkCharacteristics () throws BettyException |
GeneratorCharacteristics | clone () |
Protected Attributes | |
String | modelName |
long | seed = -1 |
long | maxProducts = -1 |
int | maxBranchingFactor = 10 |
int | maxSetChildren = 5 |
int | numberOfFeatures = -1 |
float | probabilityMandatory = -1 |
float | probabilityOptional = -1 |
float | probabilityOr = -1 |
float | probabilityAlternative = -1 |
float | percentageCTC = -1 |
This class represent the user's preferences for the generation. The objects of this class are used as input for the generator.
void es.us.isa.generator.FM.GeneratorCharacteristics.checkCharacteristics | ( | ) | throws BettyException |
Check that the given characteristics are correct (example: sum of probabilities <= 100)
int es.us.isa.generator.FM.GeneratorCharacteristics.maxBranchingFactor = 10 [protected] |
Maximum branching factor. Default value = 10.
long es.us.isa.generator.FM.GeneratorCharacteristics.maxProducts = -1 [protected] |
Maximum number of products of the feature model to be generated.
int es.us.isa.generator.FM.GeneratorCharacteristics.maxSetChildren = 5 [protected] |
Maximum number of features in set relationships (this includes alternative and or relationships). Default value = 5.
String es.us.isa.generator.FM.GeneratorCharacteristics.modelName [protected] |
The name given to the model generated (used when saving the data in certain formats)
int es.us.isa.generator.FM.GeneratorCharacteristics.numberOfFeatures = -1 [protected] |
The desired number of features used in the model
float es.us.isa.generator.FM.GeneratorCharacteristics.percentageCTC = -1 [protected] |
The desired percentage of constraints to be generated.
float es.us.isa.generator.FM.GeneratorCharacteristics.probabilityAlternative = -1 [protected] |
Probability of a feature being in an alternative relation.
float es.us.isa.generator.FM.GeneratorCharacteristics.probabilityMandatory = -1 [protected] |
Probability of a feature being mandatory.
float es.us.isa.generator.FM.GeneratorCharacteristics.probabilityOptional = -1 [protected] |
Probability of a feature being optional.
float es.us.isa.generator.FM.GeneratorCharacteristics.probabilityOr = -1 [protected] |
Probability of a feature being in an or-relation.
long es.us.isa.generator.FM.GeneratorCharacteristics.seed = -1 [protected] |
The seed used in the generation. This make the generation reproducible, same seed, same result.