Betty 1.1
es.us.isa.generator.FM.GeneratorCharacteristics Class Reference
Inheritance diagram for es.us.isa.generator.FM.GeneratorCharacteristics:
es.us.isa.generator.Characteristics es.us.isa.generator.FM.attributed.AttributedCharacteristic

List of all members.

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

Detailed Description

This class represent the user's preferences for the generation. The objects of this class are used as input for the generator.


Member Function Documentation

void es.us.isa.generator.FM.GeneratorCharacteristics.checkCharacteristics ( ) throws BettyException

Check that the given characteristics are correct (example: sum of probabilities <= 100)


Member Data Documentation

Maximum branching factor. Default value = 10.

Maximum number of products of the feature model to be generated.

Maximum number of features in set relationships (this includes alternative and or relationships). Default value = 5.

The name given to the model generated (used when saving the data in certain formats)

The desired number of features used in the model

The desired percentage of constraints to be generated.

Probability of a feature being in an alternative relation.

Probability of a feature being mandatory.

Probability of a feature being optional.

Probability of a feature being in an or-relation.

The seed used in the generation. This make the generation reproducible, same seed, same result.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables