edu.jas.application
Class PrimitiveElement<C extends GcdRingElem<C>>

java.lang.Object
  extended by edu.jas.application.PrimitiveElement<C>
All Implemented Interfaces:
java.io.Serializable

public class PrimitiveElement<C extends GcdRingElem<C>>
extends java.lang.Object
implements java.io.Serializable

Container for primitive elements.

Author:
Heinz Kredel
See Also:
Serialized Form

Field Summary
 AlgebraicNumber<C> A
          The representation of the first algebraic element in the new ring.
 AlgebraicNumberRing<C> Aring
          The first algebraic ring.
 AlgebraicNumber<C> B
          The representation of the second algebraic element in the new ring.
 AlgebraicNumberRing<C> Bring
          The second algebraic ring.
 AlgebraicNumberRing<C> primitiveElem
          The primitive element.
 
Constructor Summary
protected PrimitiveElement()
          Constructor not for use.
protected PrimitiveElement(AlgebraicNumberRing<C> pe, AlgebraicNumber<C> A, AlgebraicNumber<C> B)
          Constructor.
protected PrimitiveElement(AlgebraicNumberRing<C> pe, AlgebraicNumber<C> A, AlgebraicNumber<C> B, AlgebraicNumberRing<C> ar, AlgebraicNumberRing<C> br)
          Constructor.
 
Method Summary
 java.lang.String toScript()
          Get a scripting compatible string representation.
 java.lang.String toString()
          String representation of the ideal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

primitiveElem

public final AlgebraicNumberRing<C extends GcdRingElem<C>> primitiveElem
The primitive element.


A

public final AlgebraicNumber<C extends GcdRingElem<C>> A
The representation of the first algebraic element in the new ring.


B

public final AlgebraicNumber<C extends GcdRingElem<C>> B
The representation of the second algebraic element in the new ring.


Aring

public final AlgebraicNumberRing<C extends GcdRingElem<C>> Aring
The first algebraic ring.


Bring

public final AlgebraicNumberRing<C extends GcdRingElem<C>> Bring
The second algebraic ring.

Constructor Detail

PrimitiveElement

protected PrimitiveElement()
Constructor not for use.


PrimitiveElement

protected PrimitiveElement(AlgebraicNumberRing<C> pe,
                           AlgebraicNumber<C> A,
                           AlgebraicNumber<C> B)
Constructor.

Parameters:
pe - the primitive element
A - the first element.
B - the second element.

PrimitiveElement

protected PrimitiveElement(AlgebraicNumberRing<C> pe,
                           AlgebraicNumber<C> A,
                           AlgebraicNumber<C> B,
                           AlgebraicNumberRing<C> ar,
                           AlgebraicNumberRing<C> br)
Constructor.

Parameters:
pe - the primitive element
A - the first element.
B - the second element.
Method Detail

toString

public java.lang.String toString()
String representation of the ideal.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

toScript

public java.lang.String toScript()
Get a scripting compatible string representation.

Returns:
script compatible representation for this Element.
See Also:
Element.toScript()