Class AutomatonNode
- java.lang.Object
-
- bio.singa.mathematics.graphs.model.AbstractNode<AutomatonNode,bio.singa.mathematics.vectors.Vector2D,bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate>
-
- bio.singa.simulation.model.graphs.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 theAutomatonGraph. Contains the concentrations ofChemicalEntitys in aConcentrationContainerand other attributes. Each node holds references to its neighbour nodes.- Author:
- cl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutomatonNode.AreaMapping
-
Constructor Summary
Constructors Constructor Description AutomatonNode(int column, int row)AutomatonNode(bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAreaMapping(CellSubsection subsection, AutomatonNode.AreaMapping mapping)voidaddLineLikeAgentSegment(LineLikeAgent lineLikeAgent, bio.singa.mathematics.vectors.Vector2D segment)voidaddMembraneSegment(MembraneSegment segment)voidaddPotentialDelta(ConcentrationDelta potentialDelta)Adds a potential delta to this node.voidaddSubsectionRepresentation(CellSubsection subsection, bio.singa.mathematics.geometry.model.Polygon representation)voidclearCaches()Set<CellSubsection>getAllReferencedSections()Returns all referenced sections in this node.Map<LineLikeAgent,Set<bio.singa.mathematics.vectors.Vector2D>>getAssociatedLineLikeAgents()CellRegiongetCellRegion()ConcentrationContainergetConcentrationContainer()Returns theConcentrationContainerused by this node.ConcentrationDeltaManagergetConcentrationManager()AutomatonNodegetCopy()javax.measure.Quantity<javax.measure.quantity.Area>getMembraneArea()List<MembraneSegment>getMembraneSegments()List<bio.singa.mathematics.vectors.Vector2D>getMembraneVectors()bio.singa.mathematics.geometry.model.PolygongetSpatialRepresentation()StringgetStringIdentifier()Map<CellSubsection,List<AutomatonNode.AreaMapping>>getSubsectionAdjacency()Map<CellSubsection,bio.singa.mathematics.geometry.model.Polygon>getSubsectionRepresentations()booleanisObserved()Returnstrueif this node is observed.voidsetCellRegion(CellRegion cellRegion)voidsetConcentrationContainer(ConcentrationContainer concentrationContainer)Sets theConcentrationContainerfor this node.voidsetConcentrationManager(ConcentrationDeltaManager concentrationManager)voidsetObserved(boolean isObserved)Sets the observed state of this node.voidsetSpatialRepresentation(bio.singa.mathematics.geometry.model.Polygon spatialRepresentation)StringtoString()-
Methods inherited from class bio.singa.mathematics.graphs.model.AbstractNode
addNeighbour, equals, getDegree, getIdentifier, getNeighbours, getPosition, getSpatialPosition, hashCode, hasNeighbour, removeNeighbour, setIdentifier, setNeighbours, setPosition, setSpatialPosition
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface bio.singa.simulation.model.simulation.Updatable
getPosition
-
-
-
-
Method Detail
-
addAreaMapping
public void addAreaMapping(CellSubsection subsection, AutomatonNode.AreaMapping mapping)
-
getSubsectionAdjacency
public Map<CellSubsection,List<AutomatonNode.AreaMapping>> getSubsectionAdjacency()
-
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:
addPotentialDeltain interfaceUpdatable- Parameters:
potentialDelta- The potential delta.
-
getConcentrationManager
public ConcentrationDeltaManager getConcentrationManager()
- Specified by:
getConcentrationManagerin interfaceUpdatable
-
setConcentrationManager
public void setConcentrationManager(ConcentrationDeltaManager concentrationManager)
-
getAllReferencedSections
public Set<CellSubsection> getAllReferencedSections()
Returns all referenced sections in this node.- Specified by:
getAllReferencedSectionsin interfaceUpdatable- Returns:
- all referenced sections in this node.
-
isObserved
public boolean isObserved()
Returnstrueif this node is observed.- Returns:
trueif this node is observed.
-
setObserved
public void setObserved(boolean isObserved)
Sets the observed state of this node.- Parameters:
isObserved-trueif this node is observed.
-
getCellRegion
public CellRegion getCellRegion()
- Specified by:
getCellRegionin interfaceUpdatable
-
setCellRegion
public void setCellRegion(CellRegion cellRegion)
-
getStringIdentifier
public String getStringIdentifier()
- Specified by:
getStringIdentifierin interfaceUpdatable
-
getConcentrationContainer
public ConcentrationContainer getConcentrationContainer()
Returns theConcentrationContainerused by this node.- Specified by:
getConcentrationContainerin interfaceUpdatable- Returns:
- The
ConcentrationContainerused by this node.
-
setConcentrationContainer
public void setConcentrationContainer(ConcentrationContainer concentrationContainer)
Sets theConcentrationContainerfor this node.- Parameters:
concentrationContainer- TheConcentrationContainerfor this node.
-
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)
-
getMembraneSegments
public List<MembraneSegment> getMembraneSegments()
-
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:
toStringin classbio.singa.mathematics.graphs.model.AbstractNode<AutomatonNode,bio.singa.mathematics.vectors.Vector2D,bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate>
-
getCopy
public AutomatonNode getCopy()
- Specified by:
getCopyin interfacebio.singa.mathematics.graphs.model.Node<AutomatonNode,bio.singa.mathematics.vectors.Vector2D,bio.singa.mathematics.topology.grids.rectangular.RectangularCoordinate>
-
-