Package 

Interface CellNode

  • All Implemented Interfaces:
    it.unibo.alchemist.model.interfaces.Node , java.io.Serializable , java.lang.Comparable , java.lang.Iterable

    
    public interface CellNode<P extends Position<out P>>
     implements Node<Double>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • addJunction

         abstract void addJunction(Junction j, CellNode<out Object> neighbor)

        Add a junction to the current node.

        Parameters:
        j - the junction
        neighbor - 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 remove
        neighbor - the node at the other side of the junction.
      • 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.
      • 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