Package org.bigraphs.framework.core
Enum Class BigraphEntityType
- All Implemented Interfaces:
Serializable
,Comparable<BigraphEntityType>
,Constable
Enums for all bigraph 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isEdge
(BigraphEntity entity) If entity isnull
, thenfalse
will be returnedstatic boolean
isInnerName
(BigraphEntity entity) If entity isnull
, thenfalse
will be returnedstatic boolean
isLinkType
(BigraphEntityType type) static boolean
isLinkType
(BigraphEntity entity) A link is an edge or outer name.static boolean
isNode
(BigraphEntity entity) If entity isnull
, thenfalse
will be returnedstatic boolean
isOuterName
(BigraphEntity entity) If entity isnull
, thenfalse
will be returnedstatic boolean
isPlaceType
(BigraphEntityType type) Checks if the bigraph type is a place type.static boolean
isPlaceType
(BigraphEntity entity) A place is a node, root or site.static boolean
isPointType
(BigraphEntityType type) static boolean
isPointType
(BigraphEntity entity) A point is a port or an inner name.static boolean
isPort
(BigraphEntity entity) If entity isnull
, thenfalse
will be returnedstatic boolean
isRoot
(BigraphEntity entity) If entity isnull
, thenfalse
will be returnedstatic boolean
isSite
(BigraphEntity entity) If entity isnull
, thenfalse
will be returnedstatic BigraphEntityType
Returns 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
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is a root, otherwisefalse
.
-
isSite
If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is a site, otherwisefalse
.
-
isNode
If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is a node, otherwisefalse
.
-
isPort
If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is a port, otherwisefalse
.
-
isInnerName
If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is an inner name, otherwisefalse
.
-
isOuterName
If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is an outer name, otherwisefalse
.
-
isEdge
If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is an edge, otherwisefalse
.
-
isPlaceType
A place is a node, root or site. If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is a place, otherwisefalse
.
-
isLinkType
A link is an edge or outer name. If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is a link, otherwisefalse
.
-
isPointType
A point is a port or an inner name. If entity isnull
, thenfalse
will be returned- Parameters:
entity
- the entity to check- Returns:
true
if the given entity is a point, otherwisefalse
.
-
isPlaceType
Checks if the bigraph type is a place type. If entity isnull
, thenfalse
will be returned- Parameters:
type
- the entity to check- Returns:
true
if the given type is a place, otherwisefalse
.
-
isLinkType
-
isPointType
-