org.eclipse.emf.emfstore.fuzzy.emf
Interface ESMutatorConfig

All Known Implementing Classes:
ESMutatorConfigImpl

public interface ESMutatorConfig

A mutator configuration contains the parameters for the model generation and mutation.

Since:
2.0
Author:
emueller

Method Summary
 Collection<org.eclipse.emf.ecore.EClass> getEClassesToIgnore()
          Returns a collection of EClasses to be ignored during object generation.
 Collection<org.eclipse.emf.ecore.EPackage> getEPackages()
          The EPackages to used during object generation.
 Collection<org.eclipse.emf.ecore.EStructuralFeature> getEStructuralFeaturesToIgnore()
          Returns a collection of EStructuralFeatures to be ignored during object mutation.
 Integer getMaxDeleteCount()
          Specifies how many objects should be deleted at most? Only applies to mutation.
 int getMinObjectsCount()
          Defines how many objects should be generated.
 int getMutationCount()
          Specifies the exact number of mutations to be performed.
 org.eclipse.emf.ecore.EClass getRootEClass()
          The EClass of the root.
 boolean isAllowDuplicateIDs()
          Whether it is allowed to generate duplicate IDs.
 boolean isDoNotGenerateRoot()
          Whether the mutator should generate objects at the root level.
 boolean isIgnoreAndLog()
          Determines whether the mutator should ignore and log exception or whether it should fail with an exception.
 boolean isUseEcoreUtilDelete()
          Whether delete mutations should use EcoreUtil#delete.
 

Method Detail

getRootEClass

org.eclipse.emf.ecore.EClass getRootEClass()
The EClass of the root.

Returns:
EClass of the root

getMinObjectsCount

int getMinObjectsCount()
Defines how many objects should be generated.

Returns:
the number of objects to be generated

isDoNotGenerateRoot

boolean isDoNotGenerateRoot()
Whether the mutator should generate objects at the root level.

Returns:
true, if the mutator should generate objects on the root level, false otherwise

getEClassesToIgnore

Collection<org.eclipse.emf.ecore.EClass> getEClassesToIgnore()
Returns a collection of EClasses to be ignored during object generation.

Returns:
a collection of EClasses that are ignored during object generation

getEStructuralFeaturesToIgnore

Collection<org.eclipse.emf.ecore.EStructuralFeature> getEStructuralFeaturesToIgnore()
Returns a collection of EStructuralFeatures to be ignored during object mutation.

Returns:
a collection of EStructuralFeatures that are ignored during object generation

isIgnoreAndLog

boolean isIgnoreAndLog()
Determines whether the mutator should ignore and log exception or whether it should fail with an exception.

Returns:
true, if exceptions should only be logged, false otherwise

isUseEcoreUtilDelete

boolean isUseEcoreUtilDelete()
Whether delete mutations should use EcoreUtil#delete. Note that if this is set to true, that might lead to bad performance with bigger models.

Returns:
true, if EcoreUtil#delete should be used to perform delete mutation, false otherwise

getMaxDeleteCount

Integer getMaxDeleteCount()
Specifies how many objects should be deleted at most? Only applies to mutation.

Returns:
the number of objects that should be deleted at most

getEPackages

Collection<org.eclipse.emf.ecore.EPackage> getEPackages()
The EPackages to used during object generation. Only EClasses contained in these packages are considered to used for instantiating objects.

Returns:
a collection of EClasses that is considered during object generation

isAllowDuplicateIDs

boolean isAllowDuplicateIDs()
Whether it is allowed to generate duplicate IDs.

Returns:
true, if duplicate IDs should be allowed, false otherwise

getMutationCount

int getMutationCount()
Specifies the exact number of mutations to be performed. Only applies to the mutation case.

Returns:
the exact number of mutations to be performed


Copyright © 2015. All Rights Reserved.