Betty 1.1
es.us.isa.generator.FM.MetamorphicFMGenerator Class Reference
Inheritance diagram for es.us.isa.generator.FM.MetamorphicFMGenerator:
es.us.isa.generator.FM.AbstractFMGeneratorDecorator es.us.isa.generator.IGenerator

List of all members.

Public Member Functions

 MetamorphicFMGenerator (IGenerator gen)
void updateResetGenerator (Characteristics c)
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)
VariabilityModel generateFM (Characteristics ch)
List< Product > getPoducts ()
double getNumberOfProducts ()

Protected Attributes

ArrayList< Product > products

Detailed Description

This class implements a decorator for random FM generators. When this decorator is applied, the set of products of the random feature model being generated is also computed. The products are generated by using so-called metamorphic relations. Once generated, the model and its products can be used for automated functional testing of feature model analysis tools. For more information, visit the BeTTy Website.


Member Function Documentation

VariabilityModel es.us.isa.generator.FM.MetamorphicFMGenerator.generateFM ( Characteristics  ch)

Return a feature model with the characteristics received as input.

Parameters:
chUser's preferences for the generation.
Returns:
the feature model generated.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.

double es.us.isa.generator.FM.MetamorphicFMGenerator.getNumberOfProducts ( )
Returns:
the number of products of the model generated.
List<Product> es.us.isa.generator.FM.MetamorphicFMGenerator.getPoducts ( )
Returns:
The set of products of the feature model generated.
void es.us.isa.generator.FM.MetamorphicFMGenerator.updateAlternative ( Feature  parent,
List< Feature >  children 
)

This is a hook method. It is call whenever the decorated object call the addAlternative method.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.

void es.us.isa.generator.FM.MetamorphicFMGenerator.updateExcludes ( FAMAFeatureModel  fm,
Feature  origin,
Feature  destination 
)

This is a hook method. It is call whenever the decorated object call the addExcludes method.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.

void es.us.isa.generator.FM.MetamorphicFMGenerator.updateMandatory ( Feature  parent,
Feature  child 
)

This is a hook method. It is call whenever the decorated object call the addMandatory method.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.

void es.us.isa.generator.FM.MetamorphicFMGenerator.updateOptional ( Feature  parent,
Feature  child 
)

This is a hook method. It is call whenever the decorated object call the addOptional method.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.

void es.us.isa.generator.FM.MetamorphicFMGenerator.updateOr ( Feature  parent,
List< Feature >  children 
)

This is a hook method. It is call whenever the decorated object call the addOr method.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.

void es.us.isa.generator.FM.MetamorphicFMGenerator.updateRequires ( FAMAFeatureModel  fm,
Feature  origin,
Feature  destination 
)

This is a hook method. It is call whenever the decorated object call the addRequires method.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.

void es.us.isa.generator.FM.MetamorphicFMGenerator.updateResetGenerator ( Characteristics  c)

This is a hook method. It is call whenever the decorated object call the resetGenerator method.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.

void es.us.isa.generator.FM.MetamorphicFMGenerator.updateRoot ( FAMAFeatureModel  fm,
Feature  root 
)

This is a hook method. It is call whenever the decorated object call the addRoot method.

Reimplemented from es.us.isa.generator.FM.AbstractFMGeneratorDecorator.


Member Data Documentation

The collection that stores the generated Products.


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