-
-
Method Summary
Modifier and Type Method Description abstract Map<Junction, Map<CellNode<out Object>, Integer>>getJunctions()abstract voidaddJunction(Junction j, CellNode<out Object> neighbor)Add a junction to the current node. abstract booleancontainsJunction(Junction j)Return true if a junction is present in the current node, false otherwise. abstract voidremoveJunction(Junction j, CellNode<out Object> neighbor)Remove a junction from this node. abstract Set<CellNode<out Object>>getNeighborsLinkWithJunction(Junction j)Returns a set of ICellNode which are linked with the current node by a junction of the type j. abstract intgetJunctionsCount()abstract Set<CellNode<out Object>>getAllNodesLinkWithJunction()abstract voidsetPolarization(P v)set the polarization versor, e.g. abstract PgetPolarizationVersor()abstract voidaddPolarization(P v)add v to the polarization versor inside the cell; useful for considering the combination of various stimuli in a cell. -
Methods inherited from class it.unibo.alchemist.model.interfaces.Node
addReaction, cloneNode, contains, getConcentration, getContents, getId, getMoleculeCount, getReactions, hashCode, removeConcentration, removeReaction, setConcentration -
Methods inherited from class java.lang.Iterable
forEach, iterator, spliterator -
Methods inherited from class java.lang.Comparable
compareTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
addJunction
abstract void addJunction(Junction j, CellNode<out Object> neighbor)
Add a junction to the current node.
- Parameters:
j- the junctionneighbor- the neighbor node at the other side of the junction
-
containsJunction
abstract boolean containsJunction(Junction j)
Return true if a junction is present in the current node, false otherwise. Note: a junction is considered present if the method junction.equals(j) return true.
- Parameters:
j- the junction
-
removeJunction
abstract void removeJunction(Junction j, CellNode<out Object> neighbor)
Remove a junction from this node.
- Parameters:
j- the junction to removeneighbor- the node at the other side of the junction.
-
getNeighborsLinkWithJunction
abstract Set<CellNode<out Object>> getNeighborsLinkWithJunction(Junction j)
Returns a set of ICellNode which are linked with the current node by a junction of the type j.
- Parameters:
j- the junction
-
getJunctionsCount
abstract int getJunctionsCount()
-
getAllNodesLinkWithJunction
abstract Set<CellNode<out Object>> getAllNodesLinkWithJunction()
-
setPolarization
abstract void setPolarization(P v)
set the polarization versor, e.g. a versor indicating the direction in which the cell will move the next time.
- Parameters:
v- The Position representing the new polarization versor.
-
getPolarizationVersor
abstract P getPolarizationVersor()
-
addPolarization
abstract void addPolarization(P v)
add v to the polarization versor inside the cell; useful for considering the combination of various stimuli in a cell.
- Parameters:
v- polarization direction
-
-
-
-