public class AutomatonGraph extends bio.singa.mathematics.graphs.grid.AbstractGridGraph<AutomatonNode,AutomatonEdge,bio.singa.mathematics.vectors.Vector2D>
Simulations. Each AutomatonNode is placed in a two dimensional simulation space, neighbourhoods are defined by AutomatonEdges.
Nodes can be assigned to groups using CellRegions that emulate compartments, extracellular space or
membranes.| Constructor and Description |
|---|
AutomatonGraph(int columns,
int rows)
Creates a new empty graph, initialized with node and edge capacity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCellRegion(CellRegion cellSection)
Adds a cell section to this graph but does not associate any node to it.
|
int |
addEdgeBetween(AutomatonNode source,
AutomatonNode target) |
int |
addEdgeBetween(int identifier,
AutomatonNode source,
AutomatonNode target) |
CellRegion |
getCellRegion(String identifier)
Return the cell section with the given identifier.
|
Set<CellRegion> |
getCellSections()
Returns all
CellSubsections referenced in this graph. |
addEdgeBetween, addNode, containsEdge, containsNode, getEdge, getEdges, getGrid, getNode, getNode, getNodes, getNodesOfColumn, getNodesOfRow, getNumberOfColumns, getNumberOfRows, nextNodeIdentifier, removeNode, removeNodepublic AutomatonGraph(int columns,
int rows)
columns - The node capacity.rows - The edge capacity.public int addEdgeBetween(int identifier,
AutomatonNode source,
AutomatonNode target)
public int addEdgeBetween(AutomatonNode source, AutomatonNode target)
public Set<CellRegion> getCellSections()
CellSubsections referenced in this graph.public CellRegion getCellRegion(String identifier)
identifier - The identifier.public void addCellRegion(CellRegion cellSection)
cellSection - The cell section.Copyright © 2019. All rights reserved.