Class ReferenceAttributeModification
java.lang.Object
com.amalgamasimulation.studies.core.Modification
com.amalgamasimulation.studies.core.CategorialAttributeModification
com.amalgamasimulation.studies.core.ReferenceAttributeModification
- All Implemented Interfaces:
VariationModification
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmakeModification(org.eclipse.emf.ecore.EObject eObject) org.eclipse.emf.ecore.EObjectmodify(org.eclipse.emf.ecore.EObject baseScenario) Applies the modification to a given base scenario and returns the modified copy of the base scenario.Methods inherited from class com.amalgamasimulation.studies.core.CategorialAttributeModification
description, fieldName, isApplicable, name, objectIdentifier, objectIdentifiers, typeName, value, valueStringMethods inherited from class com.amalgamasimulation.studies.core.Modification
identity, isIdentity, toString
-
Constructor Details
-
ReferenceAttributeModification
-
-
Method Details
-
modify
public org.eclipse.emf.ecore.EObject modify(org.eclipse.emf.ecore.EObject baseScenario) Description copied from class:ModificationApplies the modification to a given base scenario and returns the modified copy of the base scenario. Implementations must return a modified deep copy of the input scenario, typically done usingEcoreUtil.copy(EObject)method.- Overrides:
modifyin classCategorialAttributeModification- Parameters:
baseScenario- the original EMF scenario to modify- Returns:
- a new
EObjectrepresenting the modified scenario
-
makeModification
protected void makeModification(org.eclipse.emf.ecore.EObject eObject) - Overrides:
makeModificationin classCategorialAttributeModification
-