Interface ElemFactory<C extends Element<C>>
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
AbelianGroupFactory<C>, AlgebraFactory<A,C>, FieldFactory<C>, ModularRingFactory<C>, ModulFactory<M, C>, MonoidFactory<C>, PolynomialRing<C>, RingFactory<C>
- All Known Implementing Classes:
AlgebraicNumberRing, BigComplex, BigDecimal, BigDecimalComplex, BigInteger, BigOctonion, BigQuaternionRing, BigRational, ComplexAlgebraicRing, ComplexRing, GenExteriorPolynomialRing, GenMatrixRing, GenPolynomialRing, GenSolvablePolynomialRing, GenVectorModul, GenWordPolynomialRing, IndexFactory, LocalRing, LocalRing, LocalSolvablePolynomialRing, ModIntegerRing, ModIntRing, ModLongRing, MultiVarPowerSeriesRing, ProductRing, QLRSolvablePolynomialRing, QuotientRing, QuotientRing, QuotSolvablePolynomialRing, RealAlgebraicRing, RealAlgebraicRing, RecSolvablePolynomialRing, RecSolvableWordPolynomialRing, ResidueRing, ResidueRing, ResidueSolvablePolynomialRing, ResidueSolvableWordPolynomialRing, SolvableLocalResidueRing, SolvableLocalRing, SolvableQuotientRing, SolvableResidueRing, UnivPowerSeriesRing, WordFactory, WordResidueRing
Element factory interface. Defines embedding of integers, parsing and random
element construction.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a copy of Element c.fromInteger(long a) Get the Element for a.Get the Element for a.Get a list of the generating elements.booleanisFinite()Is this structure finite or infinite.Parse from Reader.Parse from String.random(int n) Generate a random Element with size less equal to n.Generate a random Element with size less equal to n.toScript()Get a scripting compatible string representation.default CValue from String.
-
Method Details
-
generators
-
isFinite
boolean isFinite()Is this structure finite or infinite.- Returns:
- true if this structure is finite, else false.
-
fromInteger
Get the Element for a.- Parameters:
a- long- Returns:
- element corresponding to a.
-
fromInteger
Get the Element for a.- Parameters:
a- java.math.BigInteger.- Returns:
- element corresponding to a.
-
random
Generate a random Element with size less equal to n.- Parameters:
n-- Returns:
- a random element.
-
random
-
copy
-
valueOf
-
parse
-
parse
-
toScript
String toScript()Get a scripting compatible string representation.- Returns:
- script compatible representation for this ElemFactory.
-