Package org.bigraphs.framework.core
Enum Class BigraphEntityType
- All Implemented Interfaces:
Serializable,Comparable<BigraphEntityType>,Constable
Enums for all bigraph element types.
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEdge(BigraphEntity entity) If entity isnull, thenfalsewill be returnedstatic booleanisInnerName(BigraphEntity entity) If entity isnull, thenfalsewill be returnedstatic booleanisLinkType(BigraphEntityType type) static booleanisLinkType(BigraphEntity entity) A link is an edge or outer name.static booleanisNode(BigraphEntity entity) If entity isnull, thenfalsewill be returnedstatic booleanisOuterName(BigraphEntity entity) If entity isnull, thenfalsewill be returnedstatic booleanisPlaceType(BigraphEntityType type) Checks if the bigraph type is a place type.static booleanisPlaceType(BigraphEntity entity) A place is a node, root or site.static booleanisPointType(BigraphEntityType type) static booleanisPointType(BigraphEntity entity) A point is a port or an inner name.static booleanisPort(BigraphEntity entity) If entity isnull, thenfalsewill be returnedstatic booleanisRoot(BigraphEntity entity) If entity isnull, thenfalsewill be returnedstatic booleanisSite(BigraphEntity entity) If entity isnull, thenfalsewill be returnedstatic BigraphEntityTypeReturns the enum constant of this class with the specified name.static BigraphEntityType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NODE
-
ROOT
-
SITE
-
EDGE
-
OUTER_NAME
-
INNER_NAME
-
PORT
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isRoot
If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is a root, otherwisefalse.
-
isSite
If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is a site, otherwisefalse.
-
isNode
If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is a node, otherwisefalse.
-
isPort
If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is a port, otherwisefalse.
-
isInnerName
If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is an inner name, otherwisefalse.
-
isOuterName
If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is an outer name, otherwisefalse.
-
isEdge
If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is an edge, otherwisefalse.
-
isPlaceType
A place is a node, root or site. If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is a place, otherwisefalse.
-
isLinkType
A link is an edge or outer name. If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is a link, otherwisefalse.
-
isPointType
A point is a port or an inner name. If entity isnull, thenfalsewill be returned- Parameters:
entity- the entity to check- Returns:
trueif the given entity is a point, otherwisefalse.
-
isPlaceType
Checks if the bigraph type is a place type. If entity isnull, thenfalsewill be returned- Parameters:
type- the entity to check- Returns:
trueif the given type is a place, otherwisefalse.
-
isLinkType
-
isPointType
-