|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.modelmutator.ESModelMutatorConfiguration
public class ESModelMutatorConfiguration
Configuration for the ModelMutator.
| Constructor Summary | |
|---|---|
ESModelMutatorConfiguration()
Initialize variables with null. |
|
ESModelMutatorConfiguration(Collection<org.eclipse.emf.ecore.EPackage> modelPackages,
org.eclipse.emf.ecore.EObject rootEObject,
Long seed)
The constructor for the configuration. |
|
ESModelMutatorConfiguration(org.eclipse.emf.ecore.EPackage modelPackage,
org.eclipse.emf.ecore.EObject rootEObject,
Long seed)
The constructor for the configuration. |
|
| Method Summary | |
|---|---|
Collection<org.eclipse.emf.ecore.EClass> |
geteClassesToIgnore()
|
org.eclipse.emf.edit.domain.EditingDomain |
getEditingDomain()
|
Collection<org.eclipse.emf.ecore.EStructuralFeature> |
geteStructuralFeaturesToIgnore()
|
Set<RuntimeException> |
getExceptionLog()
|
int |
getMaxDeleteCount()
|
int |
getMinObjectsCount()
|
Collection<org.eclipse.emf.ecore.EPackage> |
getModelPackages()
|
int |
getMutationCount()
Returns the number of mutations to be performed. |
Random |
getRandom()
|
org.eclipse.emf.ecore.EObject |
getRootEObject()
|
boolean |
isAllowDuplicateIDs()
Specifies whether the model generation or mutation are allowed to add non-unique values in ID attributes. |
boolean |
isDoNotGenerateRoot()
|
boolean |
isIgnoreAndLog()
|
boolean |
isUseEcoreUtilDelete()
|
void |
reset()
Reset the ESModelMutatorConfiguration. |
void |
setAllowDuplicateIDs(boolean allowDuplicateIDs)
Sets whether the model generation or mutation should be allowed to add non-unique values in ID attributes. |
void |
setDoNotGenerateRoot(boolean doNotGenerateRoot)
|
void |
seteClassesToIgnore(Collection<org.eclipse.emf.ecore.EClass> eClassesToIgnore)
|
void |
setEditingDomain(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
|
void |
seteStructuralFeaturesToIgnore(Collection<org.eclipse.emf.ecore.EStructuralFeature> eStructuralFeaturesToIgnore)
|
void |
setExceptionLog(Set<RuntimeException> exceptionLog)
|
void |
setIgnoreAndLog(boolean ignoreAndLog)
|
void |
setMaxDeleteCount(Integer maxDeleteCount)
|
void |
setMinObjectsCount(int minObjectsCount)
|
void |
setModelPackages(Collection<org.eclipse.emf.ecore.EPackage> modelPackages)
|
void |
setMutationCount(Integer mutationCount)
Sets the number of mutations to be performed. |
void |
setRootEObject(org.eclipse.emf.ecore.EObject rootEObject)
|
void |
setSeed(Long seed)
|
void |
setUseEcoreUtilDelete(boolean useEcoreUtilDelete)
Should the Mutator use EcoreUtil.delete(EObject)?NOTE: This is a very expensive method and will decrease the performance dramatically. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ESModelMutatorConfiguration()
public ESModelMutatorConfiguration(org.eclipse.emf.ecore.EPackage modelPackage,
org.eclipse.emf.ecore.EObject rootEObject,
Long seed)
modelPackage - the EPackagesrootEObject - the rootObject for the generation/changeseed - the seed for the generation/change
public ESModelMutatorConfiguration(Collection<org.eclipse.emf.ecore.EPackage> modelPackages,
org.eclipse.emf.ecore.EObject rootEObject,
Long seed)
modelPackages - the EPackagesrootEObject - the rootObject for the generation/changeseed - the seed for the generation/change| Method Detail |
|---|
public void reset()
ESModelMutatorConfiguration. Means that it has the same state after the first initialization.
public void setModelPackages(Collection<org.eclipse.emf.ecore.EPackage> modelPackages)
modelPackages - the EPackagespublic void setRootEObject(org.eclipse.emf.ecore.EObject rootEObject)
rootEObject - the rootObject for the generation/changepublic void setSeed(Long seed)
seed - The seed for the random.public int getMinObjectsCount()
public void setMinObjectsCount(int minObjectsCount)
minObjectsCount - The minimum number of objects to generate.public boolean isIgnoreAndLog()
public void setIgnoreAndLog(boolean ignoreAndLog)
ignoreAndLog - the ignoreAndLog to setpublic Collection<org.eclipse.emf.ecore.EClass> geteClassesToIgnore()
public void seteClassesToIgnore(Collection<org.eclipse.emf.ecore.EClass> eClassesToIgnore)
eClassesToIgnore - the eClassesToIgnore to setpublic Collection<org.eclipse.emf.ecore.EPackage> getModelPackages()
public org.eclipse.emf.ecore.EObject getRootEObject()
public Set<RuntimeException> getExceptionLog()
public void setExceptionLog(Set<RuntimeException> exceptionLog)
exceptionLog - the exceptionLog to setpublic Random getRandom()
public Collection<org.eclipse.emf.ecore.EStructuralFeature> geteStructuralFeaturesToIgnore()
public void seteStructuralFeaturesToIgnore(Collection<org.eclipse.emf.ecore.EStructuralFeature> eStructuralFeaturesToIgnore)
eStructuralFeaturesToIgnore - the eStructuralFeaturesToIgnore to setpublic boolean isDoNotGenerateRoot()
public void setDoNotGenerateRoot(boolean doNotGenerateRoot)
doNotGenerateRoot - the doNotGenerateRoot to setpublic org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
EditingDomain specified in the config.public void setEditingDomain(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
editingDomain - The EditingDomain to use by commands.public boolean isUseEcoreUtilDelete()
EcoreUtil.delete(EObject)?public void setUseEcoreUtilDelete(boolean useEcoreUtilDelete)
EcoreUtil.delete(EObject)?
useEcoreUtilDelete - Should the Mutator use EcoreUtil.delete(EObject)?public int getMaxDeleteCount()
public void setMaxDeleteCount(Integer maxDeleteCount)
maxDeleteCount - How many objects should the mutation process delete maximal?public int getMutationCount()
public void setMutationCount(Integer mutationCount)
mutationCount - the number of mutations to setpublic boolean isAllowDuplicateIDs()
true if duplicate IDs are allowed, false otherwise.public void setAllowDuplicateIDs(boolean allowDuplicateIDs)
allowDuplicateIDs - Should the model generator and mutator be allowed to add non-unique values in ID
attributes?
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||