public class AutomatonGraph extends AbstractGraph<AutomatonNode,AutomatonEdge,Vector2D,Integer>
Simulations. Each AutomatonNode is placed in a two dimensional simulation space, neighbourhoods are defined by AutomatonEdges.
Nodes can be assigned to groups using CellSections that emulate compartments, extracellular space or
membranes.| Constructor and Description |
|---|
AutomatonGraph()
Creates a new empty graph.
|
AutomatonGraph(int nodeCapacity,
int edgeCapacity)
Creates a new empty graph, initialized with node and edge capacity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCellSection(CellSection 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) |
void |
addNodesToCompartment(EnclosedCompartment enclosedCompartment,
Rectangle rectangle)
Adds nodes in a rectangular region to the cell section.
|
CellSection |
getCellSection(String identifier)
Return the cell section with the given identifier.
|
Set<CellSection> |
getCellSections()
Returns all
CellSections 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.
|
Integer |
nextNodeIdentifier() |
addEdgeBetween, addNode, containsEdge, containsNode, getEdge, getEdges, getMaximumDegree, getNode, getNodes, nextEdgeIdentifier, removeNode, removeNode, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCopy, getEdgeBetweenpublic AutomatonGraph()
public AutomatonGraph(int nodeCapacity,
int edgeCapacity)
nodeCapacity - The node capacity.edgeCapacity - The edge capacity.public int addEdgeBetween(int identifier,
AutomatonNode source,
AutomatonNode target)
addEdgeBetween in interface Graph<AutomatonNode,AutomatonEdge,Integer>addEdgeBetween in class AbstractGraph<AutomatonNode,AutomatonEdge,Vector2D,Integer>public int addEdgeBetween(AutomatonNode source, AutomatonNode target)
addEdgeBetween in interface Graph<AutomatonNode,AutomatonEdge,Integer>addEdgeBetween in class AbstractGraph<AutomatonNode,AutomatonEdge,Vector2D,Integer>public Integer nextNodeIdentifier()
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<CellSection> getCellSections()
CellSections referenced in this graph.public CellSection getCellSection(String identifier)
identifier - The identifier.public void addCellSection(CellSection cellSection)
cellSection - The cell section.public void addNodesToCompartment(EnclosedCompartment enclosedCompartment, Rectangle rectangle)
enclosedCompartment - The enclosed compartment.rectangle - The rectangle.Copyright © 2017. All rights reserved.