Class Model
java.lang.Object
tools.mdsd.mocore.framework.surrogate.Model
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Replaceable replaceable) boolean
contains
(Replaceable replaceable) <T extends Replaceable>
List<T>replace
(Replaceable original, Replaceable replacement) Executes a replacement of a certainreplaceable
in the model.
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
getByType
-
add
-
contains
-
replace
Executes a replacement of a certainreplaceable
in the model. For this purpose, all affected replaceables are removed from the model. The appropriate successors of the removed replaceables are created and returned but not added to the model. The given original replaceable to be replaced is also removed from the model. The given replacement is part of the returned successors but not added to the model.- Parameters:
original
- the replaceable to be replaced in the modelreplacement
- the successor of the replaceable to be replaced- Returns:
- The successors of the affected and removed replaceables in the model including the original's replacement.
-