Class BigridGenerator
The bigrid is constructed via a composition-based approach using only elementary bigraphs instead of using
the bigraph builder (e.g., PureBigraphBuilder
).
The elementary bigraphs are collected within the inner class BigridGenerator.DiscreteIons
and are accessible
via its methods, e.g., BigridGenerator.DiscreteIons.bottomLeft()
for the bottom-left corner bigrid node.
- Author:
- Dominik Grzelak
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner class that provides the basic building blocks for constructing the bigrid. -
Field Summary
-
Constructor Summary
ConstructorDescriptionBigridGenerator
(DefaultDynamicSignature signature) Default constructor for a bigrid. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertDimensionsAreCorrect
(int n, int m) Checks some initial conditions before a bigrid can be created.generate
(int numOfRows, int numOfCols) Returns the (probably merged) signature of the bigrid.Get the bigrids original signature that is used to build the grid structure.
-
Field Details
-
signature
-
-
Constructor Details
-
BigridGenerator
Default constructor for a bigrid.Another signature can be provided that is merged with the internal bigrid's signature. This is not to be confused with the signature that should be provided in order that the concrete bigrid nodes can be created.
This might be necessary in some cases, e.g., when the bigrid itself is only one part of a larger model.
If the signature is
null
, the internal bigrid signature is used, seesignature()
.- Parameters:
signature
- another signature to be merged with the internal bigrid signature- See Also:
-
-
Method Details
-
getLinkings
-
getPlacings
-
generate
public PureBigraph generate(int numOfRows, int numOfCols) throws InvalidConnectionException, TypeNotExistsException, IncompatibleSignatureException, IncompatibleInterfaceException -
getSignature
Returns the (probably merged) signature of the bigrid.- Returns:
- the signature of the current bigrid
-
assertDimensionsAreCorrect
protected void assertDimensionsAreCorrect(int n, int m) Checks some initial conditions before a bigrid can be created.- Parameters:
n
- row countm
- column count
-
signature
Get the bigrids original signature that is used to build the grid structure.- Returns:
- the original signature of the bigrid
-