org.rubato.math.yoneda
Class NameForm

java.lang.Object
  extended by org.rubato.math.yoneda.AbstractConnectableYoneda
      extended by org.rubato.math.yoneda.Form
          extended by org.rubato.math.yoneda.ListForm
              extended by org.rubato.math.yoneda.NameForm
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Form>, Connectable, Yoneda

public final class NameForm
extends ListForm

Special list form for names of forms and denotators.

Author:
Gérard Milmeister
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.rubato.math.yoneda.Yoneda
COLIMIT, LIMIT, LIST, POWER, SIMPLE
 
Method Summary
 java.lang.Object clone()
          Form object cannot be cloned.
 boolean equals(java.lang.Object object)
          Returns true iff this form is equal to the specified object.
 double getDimension()
          Returns the dimension of a form using default maximal depth.
 double getDimension(int maxDepth)
          Returns the dimension of a form.
 Form getForm(int i)
          Returns a coordinate form.
 int getFormCount()
          Returns the number of coordinate forms.
 java.util.List<Form> getForms()
          Returns a list of the coordinate forms.
 Morphism getIdentifier()
          Returns the identifier of the form.
 NameDenotator getName()
          Returns the name of the form as a denotator.
static NameForm getNameForm()
           
 java.lang.String getNameString()
          Returns the name of the form as a string.
 int getType()
          Returns the type of the form.
 boolean iscomplete()
           
 void setIdentifier(Morphism identifier)
          Sets the identifier of the form.
 void setName(Denotator name)
          Sets the name of the form as a denotator.
 
Methods inherited from class org.rubato.math.yoneda.ListForm
createDefaultDenotator, createDefaultDenotator, equals, fromXML, fullEquals, fullEquals, getForm, getFormDiagram, toString, toXML
 
Methods inherited from class org.rubato.math.yoneda.Form
_register, compareTo, display, display, equals, fullEquals, fullEquals, getDependencies, getTypeString, hashCode, isRegistered, resolveReferences, setName, setName, stringToType, typeToString
 
Methods inherited from class org.rubato.math.yoneda.AbstractConnectableYoneda
getConnector, setConnector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getNameForm

public static NameForm getNameForm()

getName

public NameDenotator getName()
Returns the name of the form as a denotator.

Overrides:
getName in class Form

getNameString

public java.lang.String getNameString()
Returns the name of the form as a string.

Overrides:
getNameString in class Form

getType

public int getType()
Returns the type of the form.

Overrides:
getType in class ListForm

getIdentifier

public Morphism getIdentifier()
Returns the identifier of the form.

Overrides:
getIdentifier in class Form

setName

public void setName(Denotator name)
Sets the name of the form as a denotator.


setIdentifier

public void setIdentifier(Morphism identifier)
Sets the identifier of the form.

Overrides:
setIdentifier in class Form

getDimension

public double getDimension()
Returns the dimension of a form using default maximal depth.

Overrides:
getDimension in class Form

getDimension

public double getDimension(int maxDepth)
Returns the dimension of a form.

Overrides:
getDimension in class Form

clone

public java.lang.Object clone()
Description copied from class: Form
Form object cannot be cloned.

Specified by:
clone in interface Yoneda
Overrides:
clone in class Form

equals

public boolean equals(java.lang.Object object)
Description copied from class: Form
Returns true iff this form is equal to the specified object.

Overrides:
equals in class ListForm

iscomplete

public boolean iscomplete()

getFormCount

public int getFormCount()
Returns the number of coordinate forms.

Overrides:
getFormCount in class ListForm

getForm

public Form getForm(int i)
Returns a coordinate form.

Overrides:
getForm in class ListForm
Parameters:
i - the coordinate position
Returns:
the form at coordinate position i

getForms

public java.util.List<Form> getForms()
Returns a list of the coordinate forms.

Overrides:
getForms in class Form