|
Hilbert II - Version 0.03.09 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.qedeq.kernel.bo.logic.DefaultExistenceChecker
Checks if all predicate and function constants exist already.
| Field Summary |
| Fields inherited from interface org.qedeq.kernel.bo.logic.ExistenceChecker |
NAME_EQUAL |
| Constructor Summary | |
DefaultExistenceChecker()
Constructor. |
|
| Method Summary | |
void |
add(FunctionDefinition definition)
Add unknown function constant definition. |
void |
add(PredicateDefinition definition)
Add unknown predicate constant definition. |
boolean |
classOperatorExists()
Check if the class operator is already defined. |
void |
clear()
Empty all definitions. |
boolean |
equalityOperatorExists()
Check if the equality operator is already defined. |
boolean |
functionExists(Function function)
Check if a function constant is already defined. |
boolean |
functionExists(String name,
int arguments)
Check if a function is already defined. |
FunctionDefinition |
get(Function function)
Get function constant definition. |
PredicateDefinition |
get(Predicate predicate)
Get predicate constant definition. |
FunctionDefinition |
getFunction(String name,
int arguments)
Get function constant definition. |
String |
getIdentityOperator()
Get equality operator. |
PredicateDefinition |
getPredicate(String name,
int arguments)
Get predicate constant definition. |
boolean |
predicateExists(Predicate predicate)
Check if a predicate constant is already defined. |
boolean |
predicateExists(String name,
int arguments)
Check if a predicate is already defined. |
void |
setClassOperatorExists(boolean existence)
Set if the class operator is already defined. |
void |
setIdentityOperatorDefined(boolean defined,
String identityOperator)
Set the identity operator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultExistenceChecker()
| Method Detail |
public void clear()
public boolean predicateExists(Predicate predicate)
predicateExists in interface PredicateExistenceCheckerpredicate - Predicate.
public boolean predicateExists(String name,
int arguments)
PredicateExistenceChecker
predicateExists in interface PredicateExistenceCheckername - Predicate name.arguments - Number of operands for the predicate.
public void add(PredicateDefinition definition)
definition - Predicate constant definition that is not already known. Must not be
null.
IllegalArgumentException - Predicate constant is already defined.public PredicateDefinition get(Predicate predicate)
predicate - Get definition of this predicate.
public PredicateDefinition getPredicate(String name,
int arguments)
name - Name of predicate.arguments - Arguments of predicate.
public boolean functionExists(Function function)
functionExists in interface FunctionExistenceCheckerfunction - Function.
public boolean functionExists(String name,
int arguments)
FunctionExistenceChecker
functionExists in interface FunctionExistenceCheckername - Function name.arguments - Number of operands for the function.
public void add(FunctionDefinition definition)
definition - Function constant definition that is not already known. Must not be
null.
IllegalArgumentException - Function constant is already defined.public FunctionDefinition get(Function function)
function - Get definition of this predicate.
public FunctionDefinition getFunction(String name,
int arguments)
name - Name of function.arguments - Arguments of function.
public boolean classOperatorExists()
ClassOperatorExistenceChecker
classOperatorExists in interface ClassOperatorExistenceCheckerpublic void setClassOperatorExists(boolean existence)
existence - Class operator is defined.public boolean equalityOperatorExists()
EqualityOperatorExistenceChecker
equalityOperatorExists in interface EqualityOperatorExistenceChecker
public void setIdentityOperatorDefined(boolean defined,
String identityOperator)
defined - Is the operator defined?identityOperator - Operator name.public String getIdentityOperator()
EqualityOperatorExistenceChecker
getIdentityOperator in interface EqualityOperatorExistenceCheckernull
if !EqualityOperatorExistenceChecker.equalityOperatorExists().
|
Hilbert II - Version 0.03.09 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |