Interface CellProperty
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.NodeProperty
,java.io.Serializable
public interface CellProperty<P extends Vector<P>> implements NodeProperty<Double>
A node's capability to behave as a cell.
-
-
Method Summary
Modifier and Type Method Description Unit
addJunction(Junction junction, Node<Double> neighbor)
Add a junction to the current node. Boolean
containsJunction(Junction junction)
Return true if a junction is present in the current node, false otherwise. Unit
removeJunction(Junction junction, Node<Double> neighbor)
Removes a junction from this node. Set<Node<Double>>
getNeighborLinkWithJunction(Junction junction)
Returns a set of Nodes which are linked with the current node by a junction of the type junction. Set<Node<Double>>
getAllNodesLinkWithJunction()
Returns set of Nodes which are linked by a junction with the current node. abstract Unit
addPolarizationVersor(P versor)
add versor to the polarization versor inside the cell; useful for considering the combination of various stimuli in a cell. abstract Map<Junction, Map<Node<Double>, Integer>>
getJunctions()
The map junction - node - quantity. Integer
getJunctionsCount()
abstract P
getPolarizationVersor()
The polarization versor, e.g. abstract Unit
setPolarizationVersor(P polarizationVersor)
The polarization versor, e.g. -
-
Method Detail
-
addJunction
Unit addJunction(Junction junction, Node<Double> neighbor)
Add a junction to the current node. junction the junction. neighbor the neighbor node at the other side of the junction.
-
containsJunction
Boolean containsJunction(Junction junction)
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. junction the junction.
-
removeJunction
Unit removeJunction(Junction junction, Node<Double> neighbor)
-
getNeighborLinkWithJunction
Set<Node<Double>> getNeighborLinkWithJunction(Junction junction)
-
getAllNodesLinkWithJunction
Set<Node<Double>> getAllNodesLinkWithJunction()
Returns set of Nodes which are linked by a junction with the current node.
-
addPolarizationVersor
abstract Unit addPolarizationVersor(P versor)
add versor to the polarization versor inside the cell; useful for considering the combination of various stimuli in a cell.
-
getJunctions
abstract Map<Junction, Map<Node<Double>, Integer>> getJunctions()
The map junction - node - quantity.
-
getJunctionsCount
Integer getJunctionsCount()
-
getPolarizationVersor
abstract P getPolarizationVersor()
The polarization versor, e.g. a versor indicating the direction in which the cell will move the next time.
-
setPolarizationVersor
abstract Unit setPolarizationVersor(P polarizationVersor)
The polarization versor, e.g. a versor indicating the direction in which the cell will move the next time.
-
-
-
-