Class GRSummation

java.lang.Object
  |
  +--GRCompoundFactor
        |
        +--GRSummation
All Implemented Interfaces:
java.lang.Cloneable

public class GRSummation
extends GRCompoundFactor

Class representing a summation factor sum(summvar) * GRCompoundFactor appearing in the expression for a General Recoupling Coefficient for angular momenta.

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

Constructor Summary
GRSummation(java.lang.String summvar, java.lang.String a, java.lang.String b, java.lang.String c, java.lang.String d)
          Constructs a new GRSummation object with summation variable summvar with couplings (a,b,summvar) and (c,d,summvar).
GRSummation(java.lang.String summvar, java.lang.String a, java.lang.String b, java.lang.String c, java.lang.String d, GRFactor f)
          Constructs a new GRSummation object with summation variable summvar and factor f.
GRSummation(java.lang.String summvar, java.lang.String a, java.lang.String b, java.lang.String c, java.lang.String d, int nroffactors)
          Constructs a new GRSummation object with summation variable summvar and nroffactors expected number of factors.
GRSummation(java.lang.String summvar, java.lang.String a, java.lang.String b, java.lang.String c, java.lang.String d, int nroffactors, GRFactor f)
          Constructs a new GRSummation object with summation variable summvar, initial factor f and nroffactors expected number of factors.
 
Method Summary
 void accept(GRVisitor v)
          Implementation of the Visitor pattern.
 java.lang.Object clone()
          Returns a clone of this GRSummation object.
 java.lang.String[] couplings()
          Returns the labels of the edges coupled with the summatian variable s; suppose s was coupled as (a,b,s) and (c,d,s) than {a,b,c,d} is returned.
 java.lang.String summVar()
          Returns the label of the summation variable of this summation factor.
 java.lang.String toString()
          Returns a String representation of this GRSummation object.
 
Methods inherited from class GRCompoundFactor
append, appendExp, appendExp, appendFactor, appendFactor, containsLabel, factors
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GRSummation

public GRSummation(java.lang.String summvar,
                   java.lang.String a,
                   java.lang.String b,
                   java.lang.String c,
                   java.lang.String d)
Constructs a new GRSummation object with summation variable summvar with couplings (a,b,summvar) and (c,d,summvar).

Parameters:
summvar - the label of the summation variable
a - first neighbor at first side
b - second neighbor at firs side
c - first neighbor at second side
d - second neighbor at second side

GRSummation

public GRSummation(java.lang.String summvar,
                   java.lang.String a,
                   java.lang.String b,
                   java.lang.String c,
                   java.lang.String d,
                   int nroffactors)
Constructs a new GRSummation object with summation variable summvar and nroffactors expected number of factors.

Parameters:
summvar - the label of the summation variable
a - first neighbor at first side
b - second neighbor at firs side
c - first neighbor at second side
d - second neighbor at second side
nroffactors - expected number of factors

GRSummation

public GRSummation(java.lang.String summvar,
                   java.lang.String a,
                   java.lang.String b,
                   java.lang.String c,
                   java.lang.String d,
                   GRFactor f)
Constructs a new GRSummation object with summation variable summvar and factor f.

Parameters:
summvar - the label of the summation variable
a - first neighbor at first side
b - second neighbor at firs side
c - first neighbor at second side
d - second neighbor at second side
f - initial factor GRFactor
See Also:
GRFactor

GRSummation

public GRSummation(java.lang.String summvar,
                   java.lang.String a,
                   java.lang.String b,
                   java.lang.String c,
                   java.lang.String d,
                   int nroffactors,
                   GRFactor f)
Constructs a new GRSummation object with summation variable summvar, initial factor f and nroffactors expected number of factors.

Parameters:
summvar - the label of the summation variable
a - first neighbor at first side
b - second neighbor at firs side
c - first neighbor at second side
d - second neighbor at second side
f - initial factor GRFactor
nroffactors - expected number of factors
See Also:
GRFactor
Method Detail

summVar

public java.lang.String summVar()
Returns the label of the summation variable of this summation factor.

Returns:
the label of the summation variable

couplings

public java.lang.String[] couplings()
Returns the labels of the edges coupled with the summatian variable s; suppose s was coupled as (a,b,s) and (c,d,s) than {a,b,c,d} is returned.

Returns:
array containing the labels of the neighbors at each side of the summation variable

toString

public java.lang.String toString()
Returns a String representation of this GRSummation object.

Overrides:
toString in class GRCompoundFactor
Returns:
a String representation of this GRSummation object

clone

public java.lang.Object clone()
Returns a clone of this GRSummation object.

Overrides:
clone in class GRCompoundFactor
Returns:
a clone of this GRSummation object

accept

public void accept(GRVisitor v)
Implementation of the Visitor pattern. Visits first itself and then calls accept on it's composites.

Overrides:
accept in class GRCompoundFactor
Parameters:
v - the GRVisitor to be accepted
See Also:
GRVisitor