Class AutomatonGraph
- java.lang.Object
-
- bio.singa.mathematics.graphs.grid.AbstractGridGraph<AutomatonNode,AutomatonEdge,bio.singa.mathematics.vectors.Vector2D>
-
- bio.singa.simulation.model.graphs.AutomatonGraph
-
- All Implemented Interfaces:
bio.singa.mathematics.graphs.model.Graph<AutomatonNode,AutomatonEdge,bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate>
public class AutomatonGraph extends bio.singa.mathematics.graphs.grid.AbstractGridGraph<AutomatonNode,AutomatonEdge,bio.singa.mathematics.vectors.Vector2D>
The Automaton graph class is the underlying graph of cellular graph automatonSimulations. EachAutomatonNodeis placed in a two dimensional simulation space, neighbourhoods are defined byAutomatonEdges. Nodes can be assigned to groups usingCellRegions that emulate compartments, extracellular space or membranes.- Author:
- cl
-
-
Constructor Summary
Constructors Constructor Description AutomatonGraph(int columns, int rows)Creates a new empty graph, initialized with node and edge capacity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCellRegion(CellRegion cellSection)Adds a cell section to this graph but does not associate any node to it.intaddEdgeBetween(int identifier, AutomatonNode source, AutomatonNode target)intaddEdgeBetween(AutomatonNode source, AutomatonNode target)CellRegiongetCellRegion(String identifier)Return the cell section with the given identifier.Set<CellRegion>getCellSections()Returns allCellSubsections referenced in this graph.-
Methods inherited from class bio.singa.mathematics.graphs.grid.AbstractGridGraph
addEdgeBetween, addNode, containsEdge, containsNode, getEdge, getEdges, getGrid, getNode, getNode, getNodes, getNodesOfColumn, getNodesOfRow, getNumberOfColumns, getNumberOfRows, nextNodeIdentifier, removeNode, removeNode
-
-
-
-
Method Detail
-
addEdgeBetween
public int addEdgeBetween(int identifier, AutomatonNode source, AutomatonNode target)
-
addEdgeBetween
public int addEdgeBetween(AutomatonNode source, AutomatonNode target)
-
getCellSections
public Set<CellRegion> getCellSections()
Returns allCellSubsections referenced in this graph.- Returns:
- The cell sections.
-
getCellRegion
public CellRegion getCellRegion(String identifier)
Return the cell section with the given identifier.- Parameters:
identifier- The identifier.- Returns:
- The cell section.
-
addCellRegion
public void addCellRegion(CellRegion cellSection)
Adds a cell section to this graph but does not associate any node to it.- Parameters:
cellSection- The cell section.
-
-