|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.kernel.bo.module.ModuleLabels
public final class ModuleLabels
Maps labels of an QEDEQ module to their nodes. Knows all label names.
Constructor Summary | |
---|---|
ModuleLabels()
Constructs a new empty module label list. |
Method Summary | |
---|---|
void |
addChangedRule(java.lang.String label,
Rule definition,
ChangedRule cr,
ModuleContext context)
Add rule definition. |
void |
addFunction(FunctionDefinition definition,
ModuleContext context)
Add function definition. |
void |
addLabel(ModuleContext context,
java.lang.String label)
Add unique label for module. |
void |
addNode(ModuleContext context,
NodeVo node,
KernelQedeqBo qedeq,
QedeqNumbers data)
Add node with certain id. |
void |
addPredicate(PredicateDefinition definition,
ModuleContext context)
Add predicate definition. |
void |
addRule(java.lang.String label,
Rule definition,
ModuleContext context)
Add rule definition. |
FunctionDefinition |
getFunction(java.lang.String name,
int argumentNumber)
Get function definition. |
ModuleContext |
getFunctionContext(java.lang.String name,
int argumentNumber)
Get function context. |
java.util.Map |
getFunctionDefinitions()
Get mapping of function definitions. |
KernelNodeBo |
getNode(java.lang.String id)
Get node for given id. |
PredicateDefinition |
getPredicate(java.lang.String name,
int argumentNumber)
Get predicate definition. |
ModuleContext |
getPredicateContext(java.lang.String name,
int argumentNumber)
Get predicate context. |
java.util.Map |
getPredicateDefinitions()
Get mapping of predicate definitions. |
ModuleReferenceList |
getReferences()
Get list of external QEDEQ module references. |
Rule |
getRule(RuleKey key)
Get rule definition. |
ModuleContext |
getRuleContext(RuleKey key)
Get rule context. |
java.util.Map |
getRuleDefinitions()
Get mapping of rule definitions. |
RuleKey |
getRuleKey(java.lang.String ruleName)
Get rule key with maximum rule version. |
java.lang.String |
getRuleLabel(RuleKey key)
Get node id of rule key. |
boolean |
isModule(java.lang.String id)
Is the given label id a module? |
boolean |
isNode(java.lang.String id)
Is the given label id a node? Local node labels are not considered. |
void |
resetNodesToProvedUnchecked()
Set the state of all nodes to UNCHECKED for proved. |
void |
resetNodesToWellFormedUnchecked()
Set the state of all nodes to UNCHECKED for being well formed and proved. |
void |
setModuleReferences(ModuleReferenceList references)
Set list of external QEDEQ module references. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleLabels()
Method Detail |
---|
public void setModuleReferences(ModuleReferenceList references)
references
- External QEDEQ module references.public ModuleReferenceList getReferences()
public final void addNode(ModuleContext context, NodeVo node, KernelQedeqBo qedeq, QedeqNumbers data) throws IllegalModuleDataException
node
- Add this node.context
- The node has this context.qedeq
- Parent module the node is within.data
- Various number counters.
IllegalModuleDataException
- The id
already exists (perhaps as a label)
or is null
.public final void addLabel(ModuleContext context, java.lang.String label) throws IllegalModuleDataException
label
- Add this label.context
- With this context.
IllegalModuleDataException
- The id
already exists or is null
.public final KernelNodeBo getNode(java.lang.String id)
id
- Label to search node for.
null
.public final boolean isNode(java.lang.String id)
id
- Label to search node for.
public final boolean isModule(java.lang.String id)
id
- Label to search module reference for.
public void addPredicate(PredicateDefinition definition, ModuleContext context)
definition
- Definition to add.context
- Here the definition stands.public PredicateDefinition getPredicate(java.lang.String name, int argumentNumber)
name
- Predicate name.argumentNumber
- Number of predicate arguments.
null
.public ModuleContext getPredicateContext(java.lang.String name, int argumentNumber)
name
- Predicate name.argumentNumber
- Number of predicate arguments.
null
.public void addFunction(FunctionDefinition definition, ModuleContext context)
definition
- Definition to add.context
- Here the definition stands.public FunctionDefinition getFunction(java.lang.String name, int argumentNumber)
name
- Function name.argumentNumber
- Number of function arguments.
null
.public ModuleContext getFunctionContext(java.lang.String name, int argumentNumber)
name
- Function name.argumentNumber
- Number of function arguments.
null
.public void addRule(java.lang.String label, Rule definition, ModuleContext context)
label
- Node label the rule is defined within.definition
- Definition to add.context
- Here the definition stands.public void addChangedRule(java.lang.String label, Rule definition, ChangedRule cr, ModuleContext context)
label
- Node label the rule is defined within.definition
- Here we have the new rule.cr
- New modification to an old rule.context
- Here the definition stands.public RuleKey getRuleKey(java.lang.String ruleName)
ruleName
- Get maximum rule key for rule with this name.
null
.public Rule getRule(RuleKey key)
key
- Rule key.
null
.public java.lang.String getRuleLabel(RuleKey key)
key
- Rule key.
null
.public ModuleContext getRuleContext(RuleKey key)
key
- Rule key.
null
.public java.util.Map getPredicateDefinitions()
public java.util.Map getFunctionDefinitions()
public java.util.Map getRuleDefinitions()
RuleKey
, value is Rule
.public void resetNodesToWellFormedUnchecked()
public void resetNodesToProvedUnchecked()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |