Class GR6jSymbol

java.lang.Object
  |
  +--GRFactor
        |
        +--GR6jSymbol
All Implemented Interfaces:
java.lang.Cloneable

public class GR6jSymbol
extends GRFactor

Class representing a Wigner 6j-symbol {a,b,c;d,e,f}. Objects of this class are immutable.

Author:
Dries.VanDyck@rug.ac.be
See Also:
GenRecoupCoeff, Edge, GRFactor, GRVisitor

Constructor Summary
GR6jSymbol(java.lang.String[] toprow, java.lang.String[] bottomrow)
          Constructs a Wigner 6j-symbol with toprow toprow[0], toprow[1], toprow[2] and bottomrow bottomrow[0], bottomrow[1], bottomrow[2].
 
Method Summary
 void accept(GRVisitor v)
          Implementation of the Visitor pattern.
 java.lang.String[] args()
          Returns the arguments of the GR6jSymbol object.
 boolean containsLabel(java.lang.String label)
          True if this 6j-symbol contains the label label, false otherwise.
 java.lang.String toString()
          A String representation of this 6j-symbol.
 
Methods inherited from class GRFactor
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GR6jSymbol

public GR6jSymbol(java.lang.String[] toprow,
                  java.lang.String[] bottomrow)
Constructs a Wigner 6j-symbol with toprow toprow[0], toprow[1], toprow[2] and bottomrow bottomrow[0], bottomrow[1], bottomrow[2].

Parameters:
toprow - array of labels for the toprow
bottomrow - array of labels for the bottomrow
Method Detail

containsLabel

public boolean containsLabel(java.lang.String label)
True if this 6j-symbol contains the label label, false otherwise.

Specified by:
containsLabel in class GRFactor
Parameters:
label - the label to be checked
Returns:
true if the label appears in this GRPreFactor, false otherwise

args

public java.lang.String[] args()
Returns the arguments of the GR6jSymbol object.

Returns:
the arguments of the GR6jSymbol as a String array; the first/last three make up the bottom/top row.

toString

public java.lang.String toString()
A String representation of this 6j-symbol.

Specified by:
toString in class GRFactor
Returns:
a String representation of this GR6jSymbol

accept

public void accept(GRVisitor v)
Implementation of the Visitor pattern.

Specified by:
accept in class GRFactor
Parameters:
v - the GRVisitor to be accepted
See Also:
GRVisitor