Enum Class BigraphEntityType

java.lang.Object
java.lang.Enum<BigraphEntityType>
org.bigraphs.framework.core.BigraphEntityType
All Implemented Interfaces:
Serializable, Comparable<BigraphEntityType>, Constable

public enum BigraphEntityType extends Enum<BigraphEntityType>
Enums for all bigraph types.
Author:
Dominik Grzelak
  • Enum Constant Details

  • Method Details

    • values

      public static BigraphEntityType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BigraphEntityType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isRoot

      public static boolean isRoot(BigraphEntity entity)
      If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is a root, otherwise false.
    • isSite

      public static boolean isSite(BigraphEntity entity)
      If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is a site, otherwise false.
    • isNode

      public static boolean isNode(BigraphEntity entity)
      If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is a node, otherwise false.
    • isPort

      public static boolean isPort(BigraphEntity entity)
      If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is a port, otherwise false.
    • isInnerName

      public static boolean isInnerName(BigraphEntity entity)
      If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is an inner name, otherwise false.
    • isOuterName

      public static boolean isOuterName(BigraphEntity entity)
      If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is an outer name, otherwise false.
    • isEdge

      public static boolean isEdge(BigraphEntity entity)
      If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is an edge, otherwise false.
    • isPlaceType

      public static boolean isPlaceType(BigraphEntity entity)
      A place is a node, root or site. If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is a place, otherwise false.
    • isLinkType

      public static boolean isLinkType(BigraphEntity entity)
      A link is an edge or outer name. If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is a link, otherwise false.
    • isPointType

      public static boolean isPointType(BigraphEntity entity)
      A point is a port or an inner name. If entity is null, then false will be returned
      Parameters:
      entity - the entity to check
      Returns:
      true if the given entity is a point, otherwise false.
    • isPlaceType

      public static boolean isPlaceType(BigraphEntityType type)
      Checks if the bigraph type is a place type. If entity is null, then false will be returned
      Parameters:
      type - the entity to check
      Returns:
      true if the given type is a place, otherwise false.
    • isLinkType

      public static boolean isLinkType(BigraphEntityType type)
    • isPointType

      public static boolean isPointType(BigraphEntityType type)