Class BigraphEntity<C extends Control>

java.lang.Object
org.bigraphs.framework.core.impl.BigraphEntity<C>
Type Parameters:
C - type of the controls
Direct Known Subclasses:
BigraphEntity.InnerName, BigraphEntity.Link, BigraphEntity.NodeEntity, BigraphEntity.Port, BigraphEntity.RootEntity, BigraphEntity.SiteEntity

public class BigraphEntity<C extends Control> extends Object
Wrapper-like classes for the dynamic EMF model of bigraphs. Allowing the user to handle the bigraph entities without getting in touch with Ecore objects.

Also, helps to access attributes, references, etc. easier by offering methods.

The objects cannot be instatiated with the constructor. Therefore, the builder shall be used.

Author:
Dominik Grzelak
  • Field Details

  • Method Details

    • getInstance

      public @NonNull org.eclipse.emf.ecore.EObject getInstance()
    • getControl

      public C getControl()
    • getType

      public BigraphEntityType getType()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static <T extends BigraphEntity> @NonNull T create(@NonNull org.eclipse.emf.ecore.EObject param, @NonNull Class<T> tClass)
    • createNode

      public static @NonNull BigraphEntity.NodeEntity<? extends Control> createNode(@NonNull org.eclipse.emf.ecore.EObject param, Control control)