Class AutomatonNode

  • All Implemented Interfaces:
    bio.singa.mathematics.graphs.model.Node<AutomatonNode,​bio.singa.mathematics.vectors.Vector2D,​bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate>, Updatable

    public class AutomatonNode
    extends bio.singa.mathematics.graphs.model.AbstractNode<AutomatonNode,​bio.singa.mathematics.vectors.Vector2D,​bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate>
    implements Updatable
    A node of the AutomatonGraph. Contains the concentrations of ChemicalEntitys in a ConcentrationContainer and other attributes. Each node holds references to its neighbour nodes.
    Author:
    cl
    • Constructor Detail

      • AutomatonNode

        public AutomatonNode​(bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate identifier)
      • AutomatonNode

        public AutomatonNode​(int column,
                             int row)
    • Method Detail

      • getMembraneVectors

        public List<bio.singa.mathematics.vectors.Vector2D> getMembraneVectors()
      • getSubsectionRepresentations

        public Map<CellSubsection,​bio.singa.mathematics.geometry.model.Polygon> getSubsectionRepresentations()
      • addPotentialDelta

        public void addPotentialDelta​(ConcentrationDelta potentialDelta)
        Adds a potential delta to this node.
        Specified by:
        addPotentialDelta in interface Updatable
        Parameters:
        potentialDelta - The potential delta.
      • isObserved

        public boolean isObserved()
        Returns true if this node is observed.
        Returns:
        true if this node is observed.
      • setObserved

        public void setObserved​(boolean isObserved)
        Sets the observed state of this node.
        Parameters:
        isObserved - true if this node is observed.
      • setCellRegion

        public void setCellRegion​(CellRegion cellRegion)
      • getSpatialRepresentation

        public bio.singa.mathematics.geometry.model.Polygon getSpatialRepresentation()
      • setSpatialRepresentation

        public void setSpatialRepresentation​(bio.singa.mathematics.geometry.model.Polygon spatialRepresentation)
      • getAssociatedLineLikeAgents

        public Map<LineLikeAgent,​Set<bio.singa.mathematics.vectors.Vector2D>> getAssociatedLineLikeAgents()
      • addLineLikeAgentSegment

        public void addLineLikeAgentSegment​(LineLikeAgent lineLikeAgent,
                                            bio.singa.mathematics.vectors.Vector2D segment)
      • addMembraneSegment

        public void addMembraneSegment​(MembraneSegment segment)
      • getMembraneArea

        public javax.measure.Quantity<javax.measure.quantity.Area> getMembraneArea()
      • addSubsectionRepresentation

        public void addSubsectionRepresentation​(CellSubsection subsection,
                                                bio.singa.mathematics.geometry.model.Polygon representation)
      • clearCaches

        public void clearCaches()
      • toString

        public String toString()
        Overrides:
        toString in class bio.singa.mathematics.graphs.model.AbstractNode<AutomatonNode,​bio.singa.mathematics.vectors.Vector2D,​bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate>
      • getCopy

        public AutomatonNode getCopy()
        Specified by:
        getCopy in interface bio.singa.mathematics.graphs.model.Node<AutomatonNode,​bio.singa.mathematics.vectors.Vector2D,​bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate>