public class AutomatonGraphs extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<AutomatonNode> |
circleRegion(AutomatonGraph graph,
CellRegion membraneRegion,
RectangularCoordinate centre,
int radius) |
static AutomatonGraph |
createRectangularAutomatonGraph(int numberOfColumns,
int numberOfRows) |
static void |
fillRegion(AutomatonGraph graph,
CellRegion innerRegion,
RectangularCoordinate centre,
int radius) |
static Map<String,ChemicalEntity> |
generateMapOfEntities(AutomatonGraph graph)
Creates and returns a map that contains all chemical entities that are present in the given graph as values and
with the name of the entity as key.
|
static AutomatonGraph |
singularGraph() |
static CellRegion |
splitRectangularGraphWithMembrane(AutomatonGraph graph,
CellSubsection innerSection,
CellSubsection outerSection,
boolean switchSides) |
static AutomatonGraph |
useStructureFrom(GridGraph gridGraph)
Copies the structure (nodes and edges) of an
UndirectedGraph to a AutomatonGraph. |
public static Map<String,ChemicalEntity> generateMapOfEntities(AutomatonGraph graph)
graph - A graph with speciespublic static AutomatonGraph createRectangularAutomatonGraph(int numberOfColumns, int numberOfRows)
public static AutomatonGraph useStructureFrom(GridGraph gridGraph)
UndirectedGraph to a AutomatonGraph. No new data is
generated. Indices are persistent. Both Graphs are independently modifiable.gridGraph - The graph to be castpublic static AutomatonGraph singularGraph()
public static CellRegion splitRectangularGraphWithMembrane(AutomatonGraph graph, CellSubsection innerSection, CellSubsection outerSection, boolean switchSides)
public static Set<AutomatonNode> circleRegion(AutomatonGraph graph, CellRegion membraneRegion, RectangularCoordinate centre, int radius)
public static void fillRegion(AutomatonGraph graph, CellRegion innerRegion, RectangularCoordinate centre, int radius)
Copyright © 2018. All rights reserved.