|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.math.module.morphism.ModuleMorphism
org.rubato.math.module.morphism.ConstantMorphism
public final class ConstantMorphism
Constant mappings between modules. A constant morphism encapsulates a value, an element in a module. The codomain is always the module of the element. The domain may default to the codomain, or it can be specified.
Constructor Summary | |
---|---|
ConstantMorphism(ModuleElement value)
Creates a constant morphism with value v . |
|
ConstantMorphism(Module m,
ModuleElement value)
Creates a constant morphism with value v
and domain m . |
Method Summary | |
---|---|
ModuleElement |
atZero()
Returns the value of the morphism evaluated at the zero of the domain. |
int |
compareTo(ModuleMorphism object)
Compares two module morphisms. |
boolean |
equals(java.lang.Object object)
Returns true iff this morphism is equal to object . |
ModuleMorphism |
fromXML(XMLReader reader,
org.w3c.dom.Element element)
Reads XML representation from reader starting with element . |
java.lang.String |
getElementTypeName()
Returns the value of the type attribute for this class. |
ModuleMorphism |
getRingMorphism()
Returns the the ring morphism that transforms between the rings of the domain and codomain modules. |
ModuleElement |
getValue()
Returns the constant value. |
static XMLInputOutput<ModuleMorphism> |
getXMLInputOutput()
|
boolean |
isConstant()
Returns true iff this morphism is constant. |
boolean |
isLinear()
Returns true iff this is a linear morphism. |
boolean |
isModuleHomomorphism()
If true, then this is a module homomorphism. |
boolean |
isRingHomomorphism()
If true, then this is a ring homomorphism. |
ModuleElement |
map(ModuleElement x)
Maps the element x . |
java.lang.String |
toString()
Returns a string representation of this morphism. |
void |
toXML(XMLWriter writer)
Outputs XML representation to writer . |
Methods inherited from class org.rubato.math.module.morphism.ModuleMorphism |
---|
clone, composable, compose, difference, getCodomain, getConstantMorphism, getConstantMorphism, getDomain, getIdentityMorphism, inDomain, isIdentity, isRingMorphism, power, scaled, sum |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstantMorphism(Module m, ModuleElement value)
v
and domain m
.
public ConstantMorphism(ModuleElement value)
v
.
The domain is the same as the codomain.
Method Detail |
---|
public ModuleElement map(ModuleElement x)
ModuleMorphism
x
.
This must be implemented for each specific morphism type.
map
in class ModuleMorphism
x
public boolean isModuleHomomorphism()
ModuleMorphism
isModuleHomomorphism
in class ModuleMorphism
public boolean isRingHomomorphism()
ModuleMorphism
isRingHomomorphism
in class ModuleMorphism
public boolean isLinear()
ModuleMorphism
isLinear
in class ModuleMorphism
public boolean isConstant()
ModuleMorphism
isConstant
in class ModuleMorphism
public ModuleMorphism getRingMorphism()
ModuleMorphism
getRingMorphism
in class ModuleMorphism
public ModuleElement atZero()
ModuleMorphism
atZero
in class ModuleMorphism
public ModuleElement getValue()
public int compareTo(ModuleMorphism object)
ModuleMorphism
compareTo
in interface java.lang.Comparable<ModuleMorphism>
compareTo
in class ModuleMorphism
public boolean equals(java.lang.Object object)
ModuleMorphism
object
.
In general it is not possible to determine whether to functions
are the same, so this returns true iff both morphisms have
the same structure.
equals
in class ModuleMorphism
public java.lang.String toString()
ModuleMorphism
toString
in class ModuleMorphism
public void toXML(XMLWriter writer)
XMLInputOutput
writer
.
public ModuleMorphism fromXML(XMLReader reader, org.w3c.dom.Element element)
XMLInputOutput
reader
starting with element
.
public static XMLInputOutput<ModuleMorphism> getXMLInputOutput()
public java.lang.String getElementTypeName()
XMLInputOutput
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |