|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorbital.logic.sign.SymbolBase
public class SymbolBase
Default representation of a syntactic symbol in a signature. A (syntactic) symbol is a triple <name, spec, notation> consisting of a name, its (arity and) type specification, and its notation.
| Field Summary | |
|---|---|
static Type |
BOOLEAN_ATOM
Deprecated. Since Orbital1.1 use Types.TRUTH instead. |
static Type |
UNIVERSAL_ATOM
Deprecated. Since Orbital1.1 use Types.INDIVIDUAL instead. |
| Constructor Summary | |
|---|---|
SymbolBase(java.lang.String signifier,
Type type)
Construct a constant symbol with a signifier, and type specification. |
|
SymbolBase(java.lang.String signifier,
Type type,
Notation.NotationSpecification notation)
Construct a constant symbol with a signifier, type specification, and notation. |
|
SymbolBase(java.lang.String signifier,
Type type,
Notation.NotationSpecification notation,
boolean variable)
Construct a symbol with a signifier, type specification, and notation. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two symbols. |
boolean |
equals(java.lang.Object o)
Compares two symbols for equality according to their three components. |
Notation.NotationSpecification |
getNotation()
Get the notation used when this symbol occurs. |
java.lang.String |
getSignifier()
Get the signifier representing this symbol. |
Type |
getType()
Get the propert type of this object. |
int |
hashCode()
Returns the hash code value for this symbol. |
boolean |
isVariable()
Whether this symbol is a variable 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 |
setType(Type type)
Set the type specification of this symbol. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Type BOOLEAN_ATOM
Types.TRUTH instead.convenience constant for constructor calls.
public static final Type UNIVERSAL_ATOM
Types.INDIVIDUAL instead.convenience constant for constructor calls.
| Constructor Detail |
|---|
public SymbolBase(java.lang.String signifier,
Type type,
Notation.NotationSpecification notation,
boolean variable)
signifier - the string representation of this symbol.type - the type specification of this symbol.notation - The notation used when this symbol occurs.
This includes precedence and associativity information, as well.
May be null for symbols with arity 0,
which will be converted to the default notation specification, then.variable - whether this is a variable symbol.
true if this symbol is a variable symbol,
and false if this symbol is a constant symbol.
public SymbolBase(java.lang.String signifier,
Type type,
Notation.NotationSpecification notation)
signifier - the string representation of this symbol.type - the type specification of this symbol.notation - The notation used when this symbol occurs.
This includes precedence and associativity information, as well.
May be null for symbols with arity 0,
which will be converted to the default notation specification, then.
public SymbolBase(java.lang.String signifier,
Type type)
default notation specification.
signifier - the string representation of this symbol.type - the type specification of this symbol.| Method Detail |
|---|
public boolean equals(java.lang.Object o)
Symbol
equals in interface Symbolequals in class java.lang.Objectpublic int compareTo(java.lang.Object o)
This implementation compares for notation precedence in favor of symbol name in favor of type (lexicographical).
compareTo in interface java.lang.Comparablepublic int hashCode()
Symbol
hashCode in interface SymbolhashCode in class java.lang.Objectpublic java.lang.String getSignifier()
SymbolSynonym(!): sign (C.S.Peirce), signifier (Saussure), token. Depending upon terminology, the "name" of a symbol is known as sign, signifier or token.
Generally the three constituents - according to C.S.Peirce - of a sign are (in their special notations, and with todays most common terminology)
getSignifier in interface Symbolpublic void setSignifier(java.lang.String signifier)
Symbol
setSignifier in interface Symbolpublic Type getType()
Typed
getType in interface Typedpublic void setType(Type type)
Symbol
setType in interface Symboltype - the type specification τ of this symbol.public Notation.NotationSpecification getNotation()
Symbol
getNotation in interface Symbolpublic void setNotation(Notation.NotationSpecification notation)
Symbol
setNotation in interface Symbolnotation - the notation used when this symbol occurs.public boolean isVariable()
SymbolNote that the distinction between variable symbols and constant symbols is independent of the distinction between variable and constant interpretant functions. Especially, it is independent of the arity of this symbol.
Even though in the case of first-order logic, only object variables can occur, higher-order logic also provides function-variable symbols and predicate-variables. Then there truly is the terminologically confusing special case of variable symbols for constant functions (i.e. functions of arity 0).
isVariable in interface SymbolisVariable in interface Variabletrue if this symbol is a variable symbol,
and false if this symbol is a constant symbol.Variablepublic java.lang.String toString()
toString in class java.lang.Object
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||