Package edu.jas.application
Class PrimitiveElement<C extends GcdRingElem<C>>
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description AlgebraicNumber<C>
A
The representation of the first algebraic element in the new ring.AlgebraicNumberRing<C>
Aring
The first original algebraic ring.AlgebraicNumber<C>
B
The representation of the second algebraic element in the new ring.AlgebraicNumberRing<C>
Bring
The second original algebraic ring.AlgebraicNumberRing<C>
primitiveElem
The primitive element.
-
Constructor Summary
Constructors Modifier Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toScript()
Get a scripting compatible string representation.java.lang.String
toString()
String representation of the primitive element.
-
-
-
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 original algebraic ring.
-
Bring
public final AlgebraicNumberRing<C extends GcdRingElem<C>> Bring
The second original 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 elementA
- 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 elementA
- the first element.B
- the second element.
-
-
Method Detail
-
toString
public java.lang.String toString()
String representation of the primitive element.- Overrides:
toString
in classjava.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()
-
-