Class Cell

java.lang.Object
org.jlab.rec.cvt.track.Cell
All Implemented Interfaces:
Comparable<Cell>

public class Cell extends Object implements Comparable<Cell>
Base cell for the cellular automaton A cell is defined by two crosses and its state
Author:
fbossu
  • Constructor Details

  • Method Details

    • compareTo

      public int compareTo(Cell arg0)
      Specified by:
      compareTo in interface Comparable<Cell>
    • compare

      public int compare(Cell c, Cell k)
    • getLength

      public double getLength()
    • getCrs2D

      public javax.vecmath.Point2d getCrs2D(int i)
    • getCrs2D

      public javax.vecmath.Point2d getCrs2D(int i, String vw)
    • getDir2D

      public javax.vecmath.Vector2d getDir2D()
    • getDir2D

      public javax.vecmath.Vector2d getDir2D(String vw)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Cell c)
    • contains

      public boolean contains(Cross x)
    • addNeighbour

      public void addNeighbour(Cell b)
    • getNeighbors

      public List<Cell> getNeighbors()
    • getC1

      public Cross getC1()
    • setC1

      public void setC1(Cross _c1)
    • getC2

      public Cross getC2()
    • setC2

      public void setC2(Cross _c2)
    • getDir

      public Vector3D getDir()
    • setDir

      public void setDir(Vector3D dir)
    • getState

      public int getState()
    • getState

      public void getState(int _state)
    • getPlane

      public String getPlane()
    • setPlane

      public void setPlane(String _plane)
    • isUsed

      public boolean isUsed()
    • setUsed

      public void setUsed(boolean _used)