|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.math.module.Ring
org.rubato.math.module.NumberRing
org.rubato.math.module.QRing
public final class QRing
The field of rationals.
QElement
,
Serialized FormField Summary | |
---|---|
static QRing |
ring
The unique instance of the ring of rationals. |
Method Summary | |
---|---|
QElement |
cast(CElement element)
|
QElement |
cast(ModuleElement element)
Casts element to an element in this module if possible. |
QElement |
cast(RElement element)
|
QElement |
cast(ZElement element)
|
QElement |
cast(ZnElement element)
|
int |
compareTo(Module object)
Compares this module with object . |
QElement |
createElement(java.util.List<ModuleElement> elements)
Creates an element in this module from a list of module elements. |
boolean |
equals(java.lang.Object object)
Returns true iff this module is equals to object . |
Module |
fromXML(XMLReader reader,
org.w3c.dom.Element element)
Reads XML representation from reader starting with element . |
QRing |
getComponentModule(int i)
A ring has just one component module: itself. |
java.lang.String |
getElementTypeName()
Returns the value of the type attribute for this class. |
QFreeModule |
getFreeModule(int dimension)
Returns the corresponding free module of dimension dim . |
ModuleMorphism |
getIdentityMorphism()
Returns the identity morphism in this module. |
QProperFreeModule |
getNullModule()
Returns the null-module corresponding to this module. |
QElement |
getOne()
Returns the unit element of this ring. |
QRing |
getRing()
The underlying ring of a ring as a module is itself. |
QElement |
getUnitElement(int i)
Returns the unit vector with 1 at position i . |
static XMLInputOutput<Module> |
getXMLInputOutput()
|
QElement |
getZero()
Returns the zero element of this ring. |
boolean |
hasElement(ModuleElement element)
Returns true iff element is an element of this module. |
int |
hashCode()
Returns the hash code for this module. |
boolean |
isField()
Returns true if this ring is a field. |
boolean |
isVectorspace()
Returns true if this free module is a vector space. |
QElement |
parseString(java.lang.String string)
Creates an element in this module from a string representation. |
java.lang.String |
toString()
Returns a human readable string representation of this module. |
java.lang.String |
toVisualString()
Returns a human readable string representation of this module. |
void |
toXML(XMLWriter writer)
Outputs XML representation to writer . |
Methods inherited from class org.rubato.math.module.NumberRing |
---|
compareTo |
Methods inherited from class org.rubato.math.module.Ring |
---|
getDimension, getInjection, getProjection, getTranslation, isNullModule, isRing |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.rubato.math.module.FreeModule |
---|
getInjection, getProjection |
Methods inherited from interface org.rubato.math.module.Module |
---|
getDimension, getTranslation, isNullModule, isRing |
Field Detail |
---|
public static final QRing ring
Method Detail |
---|
public QElement getZero()
Ring
getZero
in interface Module
getZero
in interface QFreeModule
getZero
in class Ring
public QElement getOne()
Ring
getOne
in class Ring
public QElement getUnitElement(int i)
Ring
i
.
In the case of rings, this is simple the unit.
getUnitElement
in interface FreeModule
getUnitElement
in interface QFreeModule
getUnitElement
in class Ring
public QProperFreeModule getNullModule()
Module
getNullModule
in interface Module
public QRing getComponentModule(int i)
Ring
getComponentModule
in interface Module
getComponentModule
in class Ring
public QRing getRing()
Ring
getRing
in interface Module
getRing
in class Ring
public boolean isField()
Ring
isField
in class Ring
public boolean isVectorspace()
FreeModule
isVectorspace
in interface FreeModule
public ModuleMorphism getIdentityMorphism()
Module
getIdentityMorphism
in interface Module
public boolean hasElement(ModuleElement element)
Module
element
is an element of this module.
hasElement
in interface Module
public QFreeModule getFreeModule(int dimension)
Ring
dim
.
getFreeModule
in class Ring
public boolean equals(java.lang.Object object)
Module
object
.
equals
in interface Module
equals
in class java.lang.Object
public int compareTo(Module object)
Module
object
.
compareTo
in interface java.lang.Comparable<Module>
compareTo
in interface Module
compareTo
in class NumberRing
public QElement createElement(java.util.List<ModuleElement> elements)
Module
createElement
in interface Module
createElement
in interface QFreeModule
public QElement cast(ModuleElement element)
Module
element
to an element in this module if possible.
cast
in interface Module
public QElement cast(ZElement element)
public QElement cast(ZnElement element)
public QElement cast(RElement element)
public QElement cast(CElement element)
public java.lang.String toString()
Module
toString
in interface Module
toString
in class java.lang.Object
public java.lang.String toVisualString()
Module
toVisualString
in interface Module
public QElement parseString(java.lang.String string)
Module
parseString
in interface Module
parseString
in class Ring
public void toXML(XMLWriter writer)
XMLInputOutput
writer
.
toXML
in interface XMLInputOutput<Module>
public Module fromXML(XMLReader reader, org.w3c.dom.Element element)
XMLInputOutput
reader
starting with element
.
fromXML
in interface XMLInputOutput<Module>
public java.lang.String getElementTypeName()
XMLInputOutput
getElementTypeName
in interface XMLInputOutput<Module>
public static XMLInputOutput<Module> getXMLInputOutput()
public int hashCode()
Module
hashCode
in interface Module
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |