com.perisic.ring
Class RingElt

java.lang.Object
  extended by com.perisic.ring.RingElt

public abstract class RingElt
extends java.lang.Object

This abstract class is the base class for all elements of concrete rings.

Version:
0.2
Author:
Marc Conrad

Constructor Summary
RingElt(Ring R)
          Constructs the ring element as an element of the ring R.
 
Method Summary
 boolean equals(java.lang.Object ob)
          Equality is checked via the method equal() of the ring R to which the element belongs.
 Ring getRing()
          Returns the ring R which has been used for construction of the element.
 java.lang.String toString()
          The String is found using the eltToString() method of the ring to which the element belongs.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RingElt

public RingElt(Ring R)
Constructs the ring element as an element of the ring R.

Method Detail

getRing

public Ring getRing()
Returns the ring R which has been used for construction of the element.


equals

public boolean equals(java.lang.Object ob)
Equality is checked via the method equal() of the ring R to which the element belongs. Before checking for equalitiy, it is tried to map ob to R. If this cannot be done, false is returned.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
The String is found using the eltToString() method of the ring to which the element belongs.

Overrides:
toString in class java.lang.Object