|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GRCompoundFactor
Class represting a product of elementary GRFactor's.
GenRecoupCoeff
,
GRFactor
,
GRVisitor
Constructor Summary | |
GRCompoundFactor()
Constructs a new (empty) product of GRFactor's. |
|
GRCompoundFactor(GRFactor f)
Constructs a new product of GRFactor's with initial GRFactor f . |
|
GRCompoundFactor(int nroffactors)
Constructs a new (empty) product of GRFactor's with nroffactors expected number of factors. |
|
GRCompoundFactor(int nroffactors,
GRFactor f)
Constructs a new product of GRFactor's with initial GRFactor f and nroffactors expected
number of factors. |
Method Summary | |
void |
accept(GRVisitor v)
Implementation of the Visitor pattern. |
void |
append(GRFactor grf)
Appends the factor grf . |
void |
appendExp(int factor,
java.lang.String j)
Appends a factor (-1)^(factor*j) to this
GRCompoundFactor. |
void |
appendExp(java.lang.String[] j)
Appends a factor (-1)^(j[0] + ... |
void |
appendFactor(java.lang.String[] a,
int exp)
Appends a factor ((2*a[0]+1)*...*(2*a[a.length-1]+1))^(exp/2) to
this GRCompoundFactor. |
void |
appendFactor(java.lang.String a,
int exp)
Appends a factor (2*a+1)^(exp/2) to this
GRCompoundFactor. |
java.lang.Object |
clone()
Returns a clone of this GRCompoundFactor object. |
boolean |
containsLabel(java.lang.String label)
True if this GRCompoundFactor contains a factor with label label , false otherwise. |
java.util.Iterator |
factors()
Returns an Iterator of the factors in this GRCompoundFactor object. |
java.lang.String |
toString()
A String representation of this GRCompoundFactor. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GRCompoundFactor()
GRFactor
public GRCompoundFactor(int nroffactors)
nroffactors
expected number of factors.
nroffactors
- the expected number of factorsGRFactor
public GRCompoundFactor(GRFactor f)
f
.
f
- the intial GRFactor
GRFactor
public GRCompoundFactor(int nroffactors, GRFactor f)
f
and nroffactors
expected
number of factors.
nroffactors
- the expected number of factorsf
- the intial GRFactorGRFactor
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public void accept(GRVisitor v)
v
- the GRVisitor to be acceptedGRVisitor
public void appendExp(java.lang.String[] j)
(-1)^(j[0] + ... +j[j.length-1])
to this GRCompoundFactor.
j
- array of labels to be appendedpublic void appendExp(int factor, java.lang.String j)
(-1)^(factor*j)
to this
GRCompoundFactor.
factor
- the factor of the label to be appendedj
- the label to be appendedpublic void append(GRFactor grf)
grf
.
grf
- the GRFactor to be appendedGRFactor
public void appendFactor(java.lang.String a, int exp)
(2*a+1)^(exp/2)
to this
GRCompoundFactor.
a
- the label of the weight to be appendedexp
- the 2*exponent of the weightpublic void appendFactor(java.lang.String[] a, int exp)
((2*a[0]+1)*...*(2*a[a.length-1]+1))^(exp/2)
to
this GRCompoundFactor.
a
- array of labels of weights to be appendedexp
- the 2*exponent of all the weights to be appendedpublic boolean containsLabel(java.lang.String label)
label
, false otherwise.
label
- the label to be checked
public java.util.Iterator factors()
GRFactor
sGRFactor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |