|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deri.wsmo4j.factory.AbstractLogicalExpressionFactoryImpl org.deri.wsmo4j.factory.LogicalExpressionFactoryImpl
public class LogicalExpressionFactoryImpl
Created on Jun 20, 2005 Committed by $Author: morcen $
org.omwg.logexpression.LogicalExpressionFactory
Field Summary |
---|
Fields inherited from interface org.wsmo.factory.LogicalExpressionFactory |
---|
LEFACTORY_DATA_FACTORY, LEFACTORY_WSMO_FACTORY |
Constructor Summary | |
---|---|
LogicalExpressionFactoryImpl()
Creates a default LogicalExpressionFactory. |
|
LogicalExpressionFactoryImpl(Map properties)
Creates a LogicalExpressionFactory. |
Method Summary | |
---|---|
org.omwg.logicalexpression.terms.NumberedAnonymousID |
createAnonymousID(byte number)
|
org.omwg.logicalexpression.Atom |
createAtom(org.wsmo.common.Identifier id,
List<org.omwg.logicalexpression.terms.Term> params)
|
org.omwg.logicalexpression.AttributeConstraintMolecule |
createAttributeConstraint(org.omwg.logicalexpression.terms.Term leftTerm,
org.omwg.logicalexpression.terms.Term attributeName,
org.omwg.logicalexpression.terms.Term rightTerm)
|
org.omwg.logicalexpression.AttributeInferenceMolecule |
createAttributeInference(org.omwg.logicalexpression.terms.Term leftTerm,
org.omwg.logicalexpression.terms.Term attributeName,
org.omwg.logicalexpression.terms.Term rightTerm)
|
org.omwg.logicalexpression.AttributeValueMolecule |
createAttributeValue(org.omwg.logicalexpression.terms.Term leftTerm,
org.omwg.logicalexpression.terms.Term attributeName,
org.omwg.logicalexpression.terms.Term rightTerm)
|
org.omwg.logicalexpression.CompoundMolecule |
createCompoundMolecule(List<org.omwg.logicalexpression.Molecule> molecules)
|
org.omwg.logicalexpression.Conjunction |
createConjunction(org.omwg.logicalexpression.LogicalExpression exprLeft,
org.omwg.logicalexpression.LogicalExpression exprRight)
|
org.omwg.logicalexpression.Constraint |
createConstraint(org.omwg.logicalexpression.LogicalExpression expr)
|
org.omwg.logicalexpression.terms.ConstructedTerm |
createConstructedTerm(org.wsmo.common.IRI functionSymbol,
List<org.omwg.logicalexpression.terms.Term> terms)
|
org.omwg.logicalexpression.Disjunction |
createDisjunction(org.omwg.logicalexpression.LogicalExpression exprLeft,
org.omwg.logicalexpression.LogicalExpression exprRight)
|
org.omwg.logicalexpression.Equivalence |
createEquivalence(org.omwg.logicalexpression.LogicalExpression exprLeft,
org.omwg.logicalexpression.LogicalExpression exprRight)
|
org.omwg.logicalexpression.ExistentialQuantification |
createExistentialQuantification(Set<org.omwg.ontology.Variable> variables,
org.omwg.logicalexpression.LogicalExpression expr)
|
org.omwg.logicalexpression.ExistentialQuantification |
createExistentialQuantification(org.omwg.ontology.Variable variable,
org.omwg.logicalexpression.LogicalExpression expr)
|
org.omwg.logicalexpression.Implication |
createImplication(org.omwg.logicalexpression.LogicalExpression exprLeft,
org.omwg.logicalexpression.LogicalExpression exprRight)
|
org.omwg.logicalexpression.InverseImplication |
createInverseImplication(org.omwg.logicalexpression.LogicalExpression exprLeft,
org.omwg.logicalexpression.LogicalExpression exprRight)
|
org.omwg.logicalexpression.LogicalExpression |
createLogicalExpression(String expr)
Creates a logical expression object model from a string. |
org.omwg.logicalexpression.LogicalExpression |
createLogicalExpression(String expr,
org.wsmo.common.TopEntity nsHolder)
Creates a logical expression object model from a string. |
org.omwg.logicalexpression.LogicProgrammingRule |
createLogicProgrammingRule(org.omwg.logicalexpression.LogicalExpression exprLeft,
org.omwg.logicalexpression.LogicalExpression exprRight)
|
org.omwg.logicalexpression.MembershipMolecule |
createMemberShipMolecule(org.omwg.logicalexpression.terms.Term identifier,
org.omwg.logicalexpression.terms.Term concept)
|
org.omwg.logicalexpression.Negation |
createNegation(org.omwg.logicalexpression.LogicalExpression expr)
|
org.omwg.logicalexpression.NegationAsFailure |
createNegationAsFailure(org.omwg.logicalexpression.LogicalExpression expr)
|
org.omwg.logicalexpression.SubConceptMolecule |
createSubConceptMolecule(org.omwg.logicalexpression.terms.Term identifier,
org.omwg.logicalexpression.terms.Term superConcept)
|
org.omwg.logicalexpression.UniversalQuantification |
createUniversalQuantification(Set<org.omwg.ontology.Variable> variables,
org.omwg.logicalexpression.LogicalExpression expr)
|
org.omwg.logicalexpression.UniversalQuantification |
createUniversalQuantification(org.omwg.ontology.Variable variable,
org.omwg.logicalexpression.LogicalExpression expr)
|
org.omwg.ontology.Variable |
createVariable(String varName)
Creates a new Variable instance |
Methods inherited from class org.deri.wsmo4j.factory.AbstractLogicalExpressionFactoryImpl |
---|
createAttribusteValues, createAttributeConstraints, createAttributeInferences, createMemberShipMolecules, createSubConceptMolecules |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogicalExpressionFactoryImpl()
Factory.createLogicalExpressionFactory(Map)
public LogicalExpressionFactoryImpl(Map properties)
map
- properties used to create the LogicalExpressionFactory, if properties==null,
the default LogicalExpressionFactory is usedFactory.createLogicalExpressionFactory(Map)
Method Detail |
---|
public org.omwg.logicalexpression.LogicalExpression createLogicalExpression(String expr) throws org.wsmo.wsml.ParserException
expr
- String representation of a Logical Expression
org.wsmo.wsml.ParserException
- provides information about where and why the parse process failedpublic org.omwg.logicalexpression.LogicalExpression createLogicalExpression(String expr, org.wsmo.common.TopEntity nsHolder) throws org.wsmo.wsml.ParserException
expr
- String representation of a Logical ExpressionnsHolder
- TopEntity
org.wsmo.wsml.ParserException
- provides information about where and why the parse process failedpublic org.omwg.logicalexpression.Atom createAtom(org.wsmo.common.Identifier id, List<org.omwg.logicalexpression.terms.Term> params) throws IllegalArgumentException
id
- identifier of Atomparams
- list of parameters for that atom
IllegalArgumentException
- in case the parameter id is a Value or the arguments of
the list args aren't all of Type Termorg.omwg.logexpression.LogicalExpressionFactory#createAtom(org.omwg.logexpression.terms.Identifier, java.util.List)
public org.omwg.logicalexpression.CompoundMolecule createCompoundMolecule(List<org.omwg.logicalexpression.Molecule> molecules) throws IllegalArgumentException
IllegalArgumentException
LogicalExpressionFactory.createCompoundMolecule(List)
public org.omwg.logicalexpression.SubConceptMolecule createSubConceptMolecule(org.omwg.logicalexpression.terms.Term identifier, org.omwg.logicalexpression.terms.Term superConcept)
LogicalExpressionFactory#createSubConceptMolecule(List)
public org.omwg.logicalexpression.MembershipMolecule createMemberShipMolecule(org.omwg.logicalexpression.terms.Term identifier, org.omwg.logicalexpression.terms.Term concept)
LogicalExpressionFactory.createMemberShipMolecule(Term, Term)
public org.omwg.logicalexpression.AttributeValueMolecule createAttributeValue(org.omwg.logicalexpression.terms.Term leftTerm, org.omwg.logicalexpression.terms.Term attributeName, org.omwg.logicalexpression.terms.Term rightTerm) throws IllegalArgumentException
IllegalArgumentException
LogicalExpressionFactory.createAttributeValue(Term, Term, Term)
public org.omwg.logicalexpression.AttributeConstraintMolecule createAttributeConstraint(org.omwg.logicalexpression.terms.Term leftTerm, org.omwg.logicalexpression.terms.Term attributeName, org.omwg.logicalexpression.terms.Term rightTerm) throws IllegalArgumentException
IllegalArgumentException
LogicalExpressionFactory.createAttributeConstraint(Term, Term, Term)
public org.omwg.logicalexpression.AttributeInferenceMolecule createAttributeInference(org.omwg.logicalexpression.terms.Term leftTerm, org.omwg.logicalexpression.terms.Term attributeName, org.omwg.logicalexpression.terms.Term rightTerm) throws IllegalArgumentException
IllegalArgumentException
LogicalExpressionFactory.createAttributeInference(Term, Term, Term)
public org.omwg.logicalexpression.terms.ConstructedTerm createConstructedTerm(org.wsmo.common.IRI functionSymbol, List<org.omwg.logicalexpression.terms.Term> terms) throws IllegalArgumentException
functionSymbol
- identifier of the constructed termterms
- arguments of the constructed term
IllegalArgumentException
- in case the functionSymbol is null or the arguments of
the list aren't all of Type Termorg.omwg.logexpression.LogicalExpressionFactory#createConstructedTerm(IRI, List)
public org.omwg.logicalexpression.terms.NumberedAnonymousID createAnonymousID(byte number)
number
- the number of the anonymous id
org.omwg.logexpression.LogicalExpressionFactory#createAnonymousID(byte)
public org.omwg.logicalexpression.Negation createNegation(org.omwg.logicalexpression.LogicalExpression expr) throws IllegalArgumentException
expr
- the expression that is affected by the operator
in
- case the logical expression contains a nested CONSTRAINT
IllegalArgumentException
org.omwg.logexpression.LogicalExpressionFactory#createNegation(LogicalExpression)
public org.omwg.logicalexpression.NegationAsFailure createNegationAsFailure(org.omwg.logicalexpression.LogicalExpression expr) throws IllegalArgumentException
expr
- the expression that is affected by the operator
in
- case the logical expression contains a nested CONSTRAINT
IllegalArgumentException
org.omwg.logexpression.LogicalExpressionFactory#createNegationAsFailure(LogicalExpression)
public org.omwg.logicalexpression.Constraint createConstraint(org.omwg.logicalexpression.LogicalExpression expr) throws IllegalArgumentException
expr
- the expression that is affected by the operator
in
- case the logical expression contains a nested CONSTRAINT
IllegalArgumentException
org.omwg.logexpression.LogicalExpressionFactory#createConstraint(LogicalExpression)
public org.omwg.logicalexpression.Conjunction createConjunction(org.omwg.logicalexpression.LogicalExpression exprLeft, org.omwg.logicalexpression.LogicalExpression exprRight) throws IllegalArgumentException
exprLeft
- the left expression that is conected by the operatorexprRight
- the right expression that is conected by the operator
IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
org.omwg.logexpression.LogicalExpressionFactory#createConjunction(LogicalExpression, LogicalExpression)
public org.omwg.logicalexpression.Disjunction createDisjunction(org.omwg.logicalexpression.LogicalExpression exprLeft, org.omwg.logicalexpression.LogicalExpression exprRight) throws IllegalArgumentException
exprLeft
- the left expression that is conected by the operatorexprRight
- the right expression that is conected by the operator
IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
org.omwg.logexpression.LogicalExpressionFactory#createDisjunction(LogicalExpression, LogicalExpression)
public org.omwg.logicalexpression.Implication createImplication(org.omwg.logicalexpression.LogicalExpression exprLeft, org.omwg.logicalexpression.LogicalExpression exprRight) throws IllegalArgumentException
exprLeft
- the left expression that is conected by the operatorexprRight
- the right expression that is conected by the operator
IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
org.omwg.logexpression.LogicalExpressionFactory#createImplication(LogicalExpression, LogicalExpression)
public org.omwg.logicalexpression.Equivalence createEquivalence(org.omwg.logicalexpression.LogicalExpression exprLeft, org.omwg.logicalexpression.LogicalExpression exprRight) throws IllegalArgumentException
exprLeft
- the left expression that is conected by the operatorexprRight
- the right expression that is conected by the operator
IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
org.omwg.logexpression.LogicalExpressionFactory#createEquivalence(LogicalExpression, LogicalExpression)
public org.omwg.logicalexpression.LogicProgrammingRule createLogicProgrammingRule(org.omwg.logicalexpression.LogicalExpression exprLeft, org.omwg.logicalexpression.LogicalExpression exprRight) throws IllegalArgumentException
exprLeft
- the left expression that is conected by the operatorexprRight
- the right expression that is conected by the operator
IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
org.omwg.logexpression.LogicalExpressionFactory#createLogicProgrammingRule(LogicalExpression, LogicalExpression)
public org.omwg.logicalexpression.InverseImplication createInverseImplication(org.omwg.logicalexpression.LogicalExpression exprLeft, org.omwg.logicalexpression.LogicalExpression exprRight) throws IllegalArgumentException
exprLeft
- the left expression that is conected by the operatorexprRight
- the right expression that is conected by the operator
IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
org.omwg.logexpression.LogicalExpressionFactory#createInverseImplication(LogicalExpression, LogicalExpression)
public org.omwg.logicalexpression.UniversalQuantification createUniversalQuantification(Set<org.omwg.ontology.Variable> variables, org.omwg.logicalexpression.LogicalExpression expr) throws IllegalArgumentException
variables
- Set of variables that are quantified (e.g. "?a")expr
- the expression that is quantified
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
in case the Set of variables is null
in case the arguments of the list aren't all of Type Variable
org.omwg.logexpression.LogicalExpressionFactory#createUniversalQuantification(Set, LogicalExpression)
public org.omwg.logicalexpression.UniversalQuantification createUniversalQuantification(org.omwg.ontology.Variable variable, org.omwg.logicalexpression.LogicalExpression expr) throws IllegalArgumentException
variable
- variable that is quantified (e.g. "?a")expr
- the expression that is quantified
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
in case the Set of variables is null
in case the arguments of the list aren't all of Type Variable
org.omwg.logexpression.LogicalExpressionFactory#createUniversalQuantification(Variable, LogicalExpression)
public org.omwg.logicalexpression.ExistentialQuantification createExistentialQuantification(Set<org.omwg.ontology.Variable> variables, org.omwg.logicalexpression.LogicalExpression expr) throws IllegalArgumentException
variables
- Set of variables that are quantified (e.g. "?a")expr
- the expression that is quantified
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
in case the Set of variables is null
in case the arguments of the list aren't all of Type Variable
org.omwg.logexpression.LogicalExpressionFactory#createExistentialQuantification(Set, LogicalExpression)
public org.omwg.logicalexpression.ExistentialQuantification createExistentialQuantification(org.omwg.ontology.Variable variable, org.omwg.logicalexpression.LogicalExpression expr) throws IllegalArgumentException
variable
- variable that is quantified (e.g. "?a")expr
- the expression that is quantified
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
in case the Set of variables is null
in case the arguments of the list aren't all of Type Variable
org.omwg.logexpression.LogicalExpressionFactory#createExistentialQuantification(Variable, LogicalExpression)
public org.omwg.ontology.Variable createVariable(String varName)
varName
- The name of the new variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |