org.eclipse.emf.emfstore.fuzzy.emf.junit
Class ESDefaultModelMutator

java.lang.Object
  extended by org.eclipse.emf.emfstore.modelmutator.ESAbstractModelMutator
      extended by org.eclipse.emf.emfstore.fuzzy.emf.junit.ESDefaultModelMutator

public class ESDefaultModelMutator
extends ESAbstractModelMutator

Implementation of AbstractModelMutator with empty preMutate and postMutate methods.

Since:
2.0
Author:
Eugen Neufeld, Stephan Koehler, Philip Achenbach, Dmitry Litvinov

Constructor Summary
ESDefaultModelMutator(ESModelMutatorConfiguration config)
          The constructor.
 
Method Summary
static void changeModel(ESModelMutatorConfiguration config)
          Modifies a model as specified in the config.
static void changeModel(ESModelMutatorConfiguration config, Set<org.eclipse.emf.ecore.EStructuralFeature> ignoredFeatures)
          Modifies a model as specified in the config.
static void generateModel(ESModelMutatorConfiguration config)
          Generates a model as specified in the config.
 void mutate(Set<org.eclipse.emf.ecore.EStructuralFeature> ignoredFeatures)
          Mutation after an initial generation.
 void postMutate()
          Called after generation and mutation.
 void preMutate()
          Called before generation and mutation.
 
Methods inherited from class org.eclipse.emf.emfstore.modelmutator.ESAbstractModelMutator
changeCrossReferences, changeCrossReferences, createChildren, createChildren, createChildrenForRoot, deleteEObjects, generate, getConfig, mutateAttributes, mutateUntil, setConfig
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESDefaultModelMutator

public ESDefaultModelMutator(ESModelMutatorConfiguration config)
The constructor.

Parameters:
config - the configuration used in the process
Method Detail

generateModel

public static void generateModel(ESModelMutatorConfiguration config)
Generates a model as specified in the config.

Parameters:
config - the configuration

changeModel

public static void changeModel(ESModelMutatorConfiguration config)
Modifies a model as specified in the config.

Parameters:
config - the configuration

changeModel

public static void changeModel(ESModelMutatorConfiguration config,
                               Set<org.eclipse.emf.ecore.EStructuralFeature> ignoredFeatures)
Modifies a model as specified in the config.

Parameters:
config - the configuration
ignoredFeatures - the features that are to be ignored while changing the model

preMutate

public void preMutate()
Description copied from class: ESAbstractModelMutator
Called before generation and mutation.

Specified by:
preMutate in class ESAbstractModelMutator

postMutate

public void postMutate()
Description copied from class: ESAbstractModelMutator
Called after generation and mutation.

Specified by:
postMutate in class ESAbstractModelMutator

mutate

public void mutate(Set<org.eclipse.emf.ecore.EStructuralFeature> ignoredFeatures)
Description copied from class: ESAbstractModelMutator
Mutation after an initial generation.

Overrides:
mutate in class ESAbstractModelMutator
Parameters:
ignoredFeatures - a set of features to be ignored while mutating


Copyright © 2015. All Rights Reserved.