org.rubato.math.module
Class NumberRing

java.lang.Object
  extended by org.rubato.math.module.Ring
      extended by org.rubato.math.module.NumberRing
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Module>, FreeModule, Module, XMLInputOutput<Module>
Direct Known Subclasses:
CRing, QRing, RRing, ZRing

public abstract class NumberRing
extends Ring

Subclasses of this abstract class are the rings of integers, rationals, reals and complex numbers. They are ordered in the way just given.

Author:
Gérard Milmeister
See Also:
Serialized Form

Constructor Summary
NumberRing()
           
 
Method Summary
 int compareTo(Module object)
          Compares this module with object.
 int compareTo(NumberRing r)
          Compares this number ring with the number ring r.
 
Methods inherited from class org.rubato.math.module.Ring
getComponentModule, getDimension, getFreeModule, getInjection, getOne, getProjection, getRing, getTranslation, getUnitElement, getZero, isField, isNullModule, isRing, parseString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rubato.math.module.FreeModule
isVectorspace
 
Methods inherited from interface org.rubato.math.module.Module
cast, createElement, equals, getIdentityMorphism, getNullModule, hasElement, hashCode, toString, toVisualString
 
Methods inherited from interface org.rubato.xml.XMLInputOutput
fromXML, getElementTypeName, toXML
 

Constructor Detail

NumberRing

public NumberRing()
Method Detail

compareTo

public int compareTo(Module object)
Description copied from interface: Module
Compares this module with object.

Specified by:
compareTo in interface java.lang.Comparable<Module>
Specified by:
compareTo in interface Module
Overrides:
compareTo in class Ring

compareTo

public int compareTo(NumberRing r)
Compares this number ring with the number ring r.