Class InstantiationMap
java.lang.Object
org.bigraphs.framework.core.reactivesystem.InstantiationMap
An instantiation map for a parametric reaction rule.
- Author:
- Dominik Grzelak
-
Method Summary
Modifier and TypeMethodDescriptionint
static InstantiationMap
create()
Creates an empty instantiation map.static InstantiationMap
create
(int n) Creates an identity-like (thus, linear) instantiation map for "n"-sites-to-roots mappings.int
get
(int from) boolean
map
(int from, int to)
-
Method Details
-
create
Creates an empty instantiation map. The method calls thecreate(int)
method with 0 as argument. The user must supply values by usingmap(int, int)
afterwards.- Returns:
- an empty instantiation map
- See Also:
-
create
Creates an identity-like (thus, linear) instantiation map for "n"-sites-to-roots mappings. For example, 0->0, 1->1, 2->2, etc.- Parameters:
n
- number of indices of the map- Returns:
- a linear instantiation map (i.e., identity map)
-
map
-
get
-
domainSize
public int domainSize() -
coDomainSize
public int coDomainSize() -
getMappings
-
isIdentity
public boolean isIdentity()
-