|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Sigma - the type of symbols kept in this interpretation.public interface Signature
A signature Σ is the set of names of all entities in a certain context.
Where a name in a signature is called a syntactic symbol.
A signature is the vocabulary or alphabet of logical signs of which to
build well-formed formulas. It is assumed to be provided effectively.
A signature Σ =: Union.τ Στ
often is partitioned into disjunct sets Στ
according to the types τ of its symbols.
Then Στ subset of Σ is the subset of symbols
of type τ.
It can also be partitioned into Σ0, Σ1, ... Σn
according to the arity of its symbols.
Constant-symbols are defined as functions of arity 0.
The elements in a signature are of type Symbol in order to ensure type-safety
and arity dependency.
ExpressionSyntax.scanSignature(java.lang.String),
Expression.getSignature(),
SortedSet,
SignatureBase.EMPTY,
SignatureBase.unmodifiableSignature(Signature)Symbol
and sorted according to precedence| Method Summary | |
|---|---|
Signature |
difference(Signature sigma2)
Returns the difference to another signature. |
boolean |
equals(java.lang.Object o)
Checks two signatures for extensional equality. |
Symbol |
get(java.lang.String signifier,
java.lang.Object[] arg)
Returns the symbol with the specified signifier of a functor. |
Symbol |
get(java.lang.String signifier,
Type maxType)
Returns the symbol with the specified signifier. |
int |
hashCode()
Get a hash code fitting extensional equality. |
Signature |
intersection(Signature sigma2)
Returns the intersection of two signatures. |
Signature |
symmetricDifference(Signature sigma2)
Returns the difference to another signature. |
Signature |
union(Signature sigma2)
Returns the union of two signatures. |
| Methods inherited from interface java.util.SortedSet |
|---|
comparator, first, headSet, last, subSet, tailSet |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Setequals in class java.lang.Objectint hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.SethashCode in class java.lang.Object
Symbol get(java.lang.String signifier,
java.lang.Object[] arg)
The most usual use of the arguments array is to check for its length to distinguish unary minus '-' from binary subtraction '-'. But in principle, type checking could be required as well.
Note: if there are multiple symbols that match the given signifier and arguments, which symbol will be selected is unspecified.
This method equals
get(signifier, typeOf(args)-> top ).
signifier - the signifier of the symbol.arg - the arguments that the functor belonging to the signifier is called with.
null, or an array of length 0 can be used for zero arguments.
null otherwise.get(String,Type)
Symbol get(java.lang.String signifier,
Type maxType)
Note: if there are multiple symbols that match the given signifier and type, which symbol will be selected is unspecified.
signifier - the signifier of the symbol.maxType - the maximum type that the symbol can have.
null otherwise.get(String,Object[])Signature union(Signature sigma2)
Setops.union(java.util.Collection,java.util.Collection)Signature intersection(Signature sigma2)
Setops.intersection(java.util.Collection,java.util.Collection)Signature difference(Signature sigma2)
Setops.difference(java.util.Collection,java.util.Collection)Signature symmetricDifference(Signature sigma2)
Setops.symmetricDifference(java.util.Collection,java.util.Collection)
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||