java.lang.Object
tools.mdsd.mocore.framework.surrogate.Model

public class Model extends Object
  • Constructor Details

    • Model

      public Model()
  • Method Details

    • getByType

      public <T extends Replaceable> List<T> getByType(Class<T> type)
    • add

      public void add(Replaceable replaceable)
    • contains

      public boolean contains(Replaceable replaceable)
    • replace

      public Set<Replaceable> replace(Replaceable original, Replaceable replacement)
      Executes a replacement of a certain replaceable 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 model
      replacement - 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.