|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--RuleTable
This class implement the table of oriented rules of a system. The table map a function to a list of rewrite axiom (its definition).
Function
,
FunctionDefinition
,
RewriteRule
, Serialized FormInner classes inherited from class java.util.Map |
Map.Entry |
Constructor Summary | |
RuleTable()
Constructor of the table of rule. |
|
RuleTable(Hypothese h)
Constructor from only one Hypothese. |
Method Summary | |
RewriteRule |
addRuleFrom(SpecialClause c)
Makes a rule with the specified special clause if possible and add it to this table. |
void |
addToDefiniton(RewriteRule rule)
Puts a new rewrite rule at the definitions. |
SCList |
getAllDefinitions()
Returns a list of all definitions in this table. |
FunctionDefinition |
getDefinition(Function id)
Gets the definition of a specified function in this table. |
String |
getPositions()
Returns a string representation of all induction positions of functions defined in this table. |
RewriteRule |
lastUsed()
Returns last rule used. |
Hypothese |
makeHypotheseFrom(Conjecture c)
Makes an hypothese with the specified conjecture and add it to this table if the clause is oriented, add to hypothesis table if semi-oriented or just make an hypothese. |
void |
parsePositions(boolean mono)
Parse positions in function definitions. |
void |
remove(SCList l)
Removes all rewrite rules of a specified list from this table. |
void |
setLastUsed(RewriteRule rule)
Sets last rule used. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RuleTable(Hypothese h)
clause
- the uniq clause of the table.public RuleTable()
Method Detail |
public RewriteRule lastUsed()
public void setLastUsed(RewriteRule rule)
public void addToDefiniton(RewriteRule rule)
rule
- the rewrite rule.public void remove(SCList l)
l
- list of special clauses to remove if they are oriented.public FunctionDefinition getDefinition(Function id)
id
- the function.public RewriteRule addRuleFrom(SpecialClause c)
c
- the specified clause.Node
public Hypothese makeHypotheseFrom(Conjecture c)
c
- the specified clause.public void parsePositions(boolean mono)
mono
- true for a monomorphic rewrite system.public SCList getAllDefinitions()
public String getPositions()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |