public class AutomatonGraph extends AbstractGridGraph<AutomatonNode,AutomatonEdge,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. |
void |
initializeSpeciesWithConcentration(ChemicalEntity entity,
double concentration)
Initializes the concentration of the given chemical entity of every node in this graph to to the given
concentration in mol/l.
|
void |
initializeSpeciesWithConcentration(ChemicalEntity entity,
javax.measure.Quantity<MolarConcentration> concentration)
Initializes the concentration of the given chemical entity of every node in this graph.
|
addEdgeBetween, addNode, containsEdge, containsNode, getEdge, getEdges, getNode, getNode, getNodes, getNodesOfColumn, getNodesOfRow, getNumberOfColumns, getNumberOfRows, nextNodeIdentifier, removeNode, removeNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCopy, getEdgeBetween, nextEdgeIdentifierpublic 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 void initializeSpeciesWithConcentration(ChemicalEntity entity, double concentration)
entity - The chemical entity.concentration - The concentration in mol/l.public void initializeSpeciesWithConcentration(ChemicalEntity entity, javax.measure.Quantity<MolarConcentration> concentration)
entity - The chemical entity.concentration - The concentration.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 © 2018. All rights reserved.