Class GRWrappedMapleVisitor

java.lang.Object
  |
  +--AbstractGRWrappedTextVisitor
        |
        +--GRWrappedMapleVisitor
All Implemented Interfaces:
GRVisitor

public class GRWrappedMapleVisitor
extends AbstractGRWrappedTextVisitor

A GRVisitor which constructs a wrapped String representation of an object from the GR-family in Maple format, including GenRecoupCoeff. When a FontMetrics Class is specified in the constructor, the wrapsize is in pixels and takes in account the used font.

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

Field Summary
static java.lang.String DELTA_MACRO
          Macro, as a Maple function, for the triangular symbol.
static java.lang.String KR_DELTA_MACRO
          Macro, as a Maple function, for the Kronecker Delta symbol.
static java.lang.String SIXJ_MACRO
          Macro, as a Maple function, for the Wigner 6-j symbol.
 
Fields inherited from class AbstractGRWrappedTextVisitor
wrappedstring
 
Constructor Summary
GRWrappedMapleVisitor()
          Constructs a new GRWrappedMapleVisitor.
GRWrappedMapleVisitor(int wrapsize)
          Constructs a new GRWrappedMapleVisitor which wraps at wrapsize characters.
GRWrappedMapleVisitor(int wrapsize, java.awt.FontMetrics fm)
          Constructs a new GRWrappedMapleVisitor, with given wrapsize in pixels and the FontMetrics class for the used font.
 
Method Summary
static java.lang.String macros()
          Returns some Maple procedures to be used with the generated formula.
 java.lang.Object result()
          Returns the wrapped String representing the object visited.
 void visitGenRecoupCoeff(GenRecoupCoeff grc)
          Specific method for visiting a GenRecoupCoeff object.
 void visitGR6jSymbol(GR6jSymbol gr6j)
          Specific method for visiting a GR6jSymbol object.
 void visitGRCompoundFactor(GRCompoundFactor grcf)
          Specific method for visiting a GRCompoundFactor object.
 void visitGRKrDelta(GRKrDelta grkd)
          Specific method for visiting a GRKrDelta object.
 void visitGRPreFactor(GRPreFactor grpf)
          Specific method for visiting a GRPreFactor object.
 void visitGRSummation(GRSummation grs)
          Specific method for visiting a GRSummation object.
 
Methods inherited from class AbstractGRWrappedTextVisitor
append, size, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KR_DELTA_MACRO

public static final java.lang.String KR_DELTA_MACRO
Macro, as a Maple function, for the Kronecker Delta symbol.

See Also:
Constant Field Values

DELTA_MACRO

public static final java.lang.String DELTA_MACRO
Macro, as a Maple function, for the triangular symbol.

See Also:
Constant Field Values

SIXJ_MACRO

public static final java.lang.String SIXJ_MACRO
Macro, as a Maple function, for the Wigner 6-j symbol.

See Also:
Constant Field Values
Constructor Detail

GRWrappedMapleVisitor

public GRWrappedMapleVisitor()
Constructs a new GRWrappedMapleVisitor. Default wrapsize is 80 characters.


GRWrappedMapleVisitor

public GRWrappedMapleVisitor(int wrapsize,
                             java.awt.FontMetrics fm)
Constructs a new GRWrappedMapleVisitor, with given wrapsize in pixels and the FontMetrics class for the used font.

Parameters:
wrapsize - number of allowed pixels on a line

GRWrappedMapleVisitor

public GRWrappedMapleVisitor(int wrapsize)
Constructs a new GRWrappedMapleVisitor which wraps at wrapsize characters.

Parameters:
wrapsize - number of allowed chars on one line
Method Detail

visitGenRecoupCoeff

public void visitGenRecoupCoeff(GenRecoupCoeff grc)
Specific method for visiting a GenRecoupCoeff object.

Parameters:
grc - the GenRecoupCoeff to be visited
See Also:
GenRecoupCoeff

visitGRCompoundFactor

public void visitGRCompoundFactor(GRCompoundFactor grcf)
Specific method for visiting a GRCompoundFactor object.

Parameters:
grcf - the GRCompoundFactor to be visited
See Also:
GRCompoundFactor

visitGRSummation

public void visitGRSummation(GRSummation grs)
Specific method for visiting a GRSummation object.

Parameters:
grs - the GRSummation to be visited
See Also:
GRSummation

visitGRPreFactor

public void visitGRPreFactor(GRPreFactor grpf)
Specific method for visiting a GRPreFactor object.

Parameters:
grpf - the GRPreFactorto be visited
See Also:
GRPreFactor

visitGRKrDelta

public void visitGRKrDelta(GRKrDelta grkd)
Specific method for visiting a GRKrDelta object.

Parameters:
grkd - the GRKrDelta to be visited
See Also:
GRKrDelta

visitGR6jSymbol

public void visitGR6jSymbol(GR6jSymbol gr6j)
Specific method for visiting a GR6jSymbol object.

Parameters:
gr6j - the GR6jSymbol to be visited
See Also:
GR6jSymbol

result

public java.lang.Object result()
Returns the wrapped String representing the object visited.

Returns:
the resulting wrapped String as an Object

macros

public static java.lang.String macros()
Returns some Maple procedures to be used with the generated formula.

Returns:
the needed procedures as a String.