Class 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 automaton 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.
    Author:
    cl
    • Constructor Detail

      • AutomatonGraph

        public AutomatonGraph​(int columns,
                              int rows)
        Creates a new empty graph, initialized with node and edge capacity.
        Parameters:
        columns - The node capacity.
        rows - The edge capacity.
    • Method Detail

      • getCellSections

        public Set<CellRegion> getCellSections()
        Returns all CellSubsections 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.