Betty 1.1
|
Public Member Functions | |
AbstractFMGeneratorDecorator (IGenerator gen) | |
VariabilityModel | generateFM (Characteristics ch) throws BettyException |
void | resetGenerator (Characteristics ch) |
Protected Member Functions | |
void | updateRoot (FAMAFeatureModel fm, Feature root) |
void | updateMandatory (Feature parent, Feature child) |
void | updateOptional (Feature parent, Feature child) |
void | updateAlternative (Feature parent, List< Feature > children) |
void | updateOr (Feature parent, List< Feature > children) |
void | updateExcludes (FAMAFeatureModel fm, Feature origin, Feature destination) |
void | updateRequires (FAMAFeatureModel fm, Feature origin, Feature destination) |
void | updateResetGenerator (Characteristics c) |
This class implements the basic methods of the decorators of random FM generators.
es.us.isa.generator.FM.AbstractFMGeneratorDecorator.AbstractFMGeneratorDecorator | ( | IGenerator | gen | ) |
Constructor. It receives the FM generator to be decorated.
VariabilityModel es.us.isa.generator.FM.AbstractFMGeneratorDecorator.generateFM | ( | Characteristics | ch | ) | throws BettyException |
This is the main method being decorated.
Implements es.us.isa.generator.IGenerator.
Reimplemented in es.us.isa.generator.FM.attributed.AttributedFMGenerator, and es.us.isa.generator.FM.MetamorphicFMGenerator.
void es.us.isa.generator.FM.AbstractFMGeneratorDecorator.updateAlternative | ( | Feature | parent, |
List< Feature > | children | ||
) | [protected] |
Hook method called just after adding an alternative relation to the model being generated.
Reimplemented in es.us.isa.generator.FM.MetamorphicFMGenerator.
void es.us.isa.generator.FM.AbstractFMGeneratorDecorator.updateExcludes | ( | FAMAFeatureModel | fm, |
Feature | origin, | ||
Feature | destination | ||
) | [protected] |
Hook method called just after adding a new excludes constraint to the model being generated.
Reimplemented in es.us.isa.generator.FM.MetamorphicFMGenerator.
void es.us.isa.generator.FM.AbstractFMGeneratorDecorator.updateMandatory | ( | Feature | parent, |
Feature | child | ||
) | [protected] |
Hook method called just after adding a new mandatory feature to the model being generated.
Reimplemented in es.us.isa.generator.FM.MetamorphicFMGenerator.
void es.us.isa.generator.FM.AbstractFMGeneratorDecorator.updateOptional | ( | Feature | parent, |
Feature | child | ||
) | [protected] |
Hook method called just after adding a new optional feature to the model being generated.
Reimplemented in es.us.isa.generator.FM.MetamorphicFMGenerator.
void es.us.isa.generator.FM.AbstractFMGeneratorDecorator.updateOr | ( | Feature | parent, |
List< Feature > | children | ||
) | [protected] |
Hook method called just after adding an or-relationship to the model being generated.
Reimplemented in es.us.isa.generator.FM.MetamorphicFMGenerator.
void es.us.isa.generator.FM.AbstractFMGeneratorDecorator.updateRequires | ( | FAMAFeatureModel | fm, |
Feature | origin, | ||
Feature | destination | ||
) | [protected] |
Hook method called just after adding a new requires constraint to the model being generated.
Reimplemented in es.us.isa.generator.FM.MetamorphicFMGenerator.
void es.us.isa.generator.FM.AbstractFMGeneratorDecorator.updateResetGenerator | ( | Characteristics | c | ) | [protected] |
Hook method called just after calling the resetGenerator method in the decorated generator.
Reimplemented in es.us.isa.generator.FM.MetamorphicFMGenerator.
void es.us.isa.generator.FM.AbstractFMGeneratorDecorator.updateRoot | ( | FAMAFeatureModel | fm, |
Feature | root | ||
) | [protected] |
Hook method called just after adding the root feature to the model being generated.
Reimplemented in es.us.isa.generator.FM.MetamorphicFMGenerator.