KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > physics > quantum > SpinorProjector


1 package JSci.physics.quantum;
2
3 import JSci.maths.Complex;
4 import JSci.maths.vectors.ComplexVector;
5
6 /**
7 * The SpinorProjector class encapsulates the left-handed and right-handed projection operators.
8 * @version 1.0
9 * @author Mark Hale
10 */

11 public final class SpinorProjector extends Projector {
12         private final static Complex ul[]={Complex.ONE,Complex.ZERO};
13         private final static Complex ur[]={Complex.ZERO,Complex.ONE};
14         /**
15         * Left-handed projector (P<SUB>L</SUB>).
16         */

17         public final static SpinorProjector LEFT=new SpinorProjector(ul);
18         /**
19         * Right-handed projector (P<SUB>R</SUB>).
20         */

21         public final static SpinorProjector RIGHT=new SpinorProjector(ur);
22         /**
23         * Constructs a spinor projector from a ket vector.
24         * @param ket a ket vector
25         */

26         private SpinorProjector(Complex array[]) {
27                 super(new KetVector(new ComplexVector(array)));
28         }
29 }
30
31
Popular Tags