|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.logic.sign.SymbolBase orbital.moon.logic.UniqueSymbol
public final class UniqueSymbol
A new unique symbol that is distinct from all others. UniqueSymbols will only be equal to themselves (compared with ==). Note that the signifier IDs are used for printing, and for comparison of Symbols with UniqueSymbols, but for comparisons of UniqueSymbols with Symbols (then that's achieved by reference comparison).
Field Summary |
---|
Fields inherited from class orbital.logic.sign.SymbolBase |
---|
BOOLEAN_ATOM, UNIVERSAL_ATOM |
Constructor Summary | |
---|---|
UniqueSymbol(java.lang.String signifierPrefix,
Type type,
Notation.NotationSpecification notation,
boolean variable)
Create a new unique symbol of (display) signifier starting with signifierPrefix. |
|
UniqueSymbol(Type type,
Notation.NotationSpecification notation,
boolean variable)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares two symbols for equality according to their three components. |
int |
hashCode()
Returns the hash code value for this symbol. |
void |
setNotation(Notation.NotationSpecification notation)
Set the notation used when this symbol occurs. |
void |
setSignifier(java.lang.String signifier)
Set the signifier representing this symbol. |
void |
setSpecification(Functor.Specification spec)
|
Methods inherited from class orbital.logic.sign.SymbolBase |
---|
compareTo, getNotation, getSignifier, getType, isVariable, setType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UniqueSymbol(java.lang.String signifierPrefix, Type type, Notation.NotationSpecification notation, boolean variable)
public UniqueSymbol(Type type, Notation.NotationSpecification notation, boolean variable)
Method Detail |
---|
public final boolean equals(java.lang.Object o)
Symbol
equals
in interface Symbol
equals
in class SymbolBase
public final int hashCode()
Symbol
hashCode
in interface Symbol
hashCode
in class SymbolBase
public void setSignifier(java.lang.String signifier)
Symbol
setSignifier
in interface Symbol
setSignifier
in class SymbolBase
public void setSpecification(Functor.Specification spec)
public void setNotation(Notation.NotationSpecification notation)
Symbol
setNotation
in interface Symbol
setNotation
in class SymbolBase
notation
- the notation used when this symbol occurs.
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |