|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.math.module.RingElement
org.rubato.math.module.StringElement
public abstract class StringElement
Elements in a string ring.
StringRing
,
Serialized FormConstructor Summary | |
---|---|
StringElement()
|
Method Summary | |
---|---|
double[] |
fold(ModuleElement[] elements)
Folds the RingString elements in elements. |
abstract RingString |
getRingString()
Returns the underlying RingString . |
java.lang.String |
getString()
Convenience method for getting the string in a StringElement . |
abstract java.util.HashMap<java.lang.String,RingElement> |
getTerms()
Returns the terms of the string as a map from strings to factors. |
int |
hashCode()
Returns the hash code for this module element. |
boolean |
isInvertible()
Returns true if this ring element is invertible. |
Methods inherited from class org.rubato.math.module.RingElement |
---|
clone, compareTo, difference, divide, divides, getComponent, getLength, getRing, getRingElement, inverse, invert, isOne, iterator, multiply, multiplyCW, power, product, productCW, quotient, stringRep, sum |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.rubato.math.module.FreeElement |
---|
resize |
Methods inherited from interface org.rubato.math.module.ModuleElement |
---|
add, cast, difference, equals, getModule, isZero, negate, negated, scale, scaled, subtract, sum, toString |
Methods inherited from interface org.rubato.xml.XMLInputOutput |
---|
fromXML, getElementTypeName, toXML |
Constructor Detail |
---|
public StringElement()
Method Detail |
---|
public java.lang.String getString()
StringElement
.
Only useful if the RingString
has only one term.
public abstract RingString getRingString()
RingString
.
public boolean isInvertible()
RingElement
isInvertible
in class RingElement
public abstract java.util.HashMap<java.lang.String,RingElement> getTerms()
public double[] fold(ModuleElement[] elements)
public int hashCode()
ModuleElement
hashCode
in interface ModuleElement
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |