Package org.jlab.rec.cvt.track
Class Cell
java.lang.Object
org.jlab.rec.cvt.track.Cell
- All Implemented Interfaces:
Comparable<Cell>
Base cell for the cellular automaton A cell is defined by two crosses and its
state
- Author:
- fbossu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNeighbour
(Cell b) int
int
boolean
boolean
getC1()
getC2()
javax.vecmath.Point2d
getCrs2D
(int i) javax.vecmath.Point2d
getDir()
javax.vecmath.Vector2d
getDir2D()
javax.vecmath.Vector2d
double
getPlane()
int
getState()
void
getState
(int _state) boolean
isUsed()
void
void
void
void
void
setUsed
(boolean _used) toString()
-
Constructor Details
-
Cell
public Cell() -
Cell
-
Cell
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Cell>
-
compare
-
getLength
public double getLength() -
getCrs2D
public javax.vecmath.Point2d getCrs2D(int i) -
getCrs2D
-
getDir2D
public javax.vecmath.Vector2d getDir2D() -
getDir2D
-
toString
-
equals
-
contains
-
addNeighbour
-
getNeighbors
-
getC1
-
setC1
-
getC2
-
setC2
-
getDir
-
setDir
-
getState
public int getState() -
getState
public void getState(int _state) -
getPlane
-
setPlane
-
isUsed
public boolean isUsed() -
setUsed
public void setUsed(boolean _used)
-