org.wsmo.service.rule
Interface MoleculeFact

All Superinterfaces:
CompoundFact, Iterable<org.omwg.logicalexpression.AtomicExpression>
All Known Implementing Classes:
MoleculeFactRI

public interface MoleculeFact
extends CompoundFact

Defines elements needed for normal updates on molecules.

Version:
$Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
Author:
James Scicluna, Thomas Haselwanter Created on 02-Feb-2006 Committed by $Author: vassil_momtchev $ $Source$,

Method Summary
 void addAttributeValueMolecule(org.omwg.logicalexpression.AttributeValueMolecule attrValue)
          Add attribute value molecules to the compound fact.
 void addMembershipMolecule(org.omwg.logicalexpression.MembershipMolecule memberMolecule)
          Add a membership molecule to the Compound Fact.
 Set<org.omwg.logicalexpression.AttributeValueMolecule> listAttributeValueMolecules()
          Returns a list of attribute value facts defined in the compound fact.
 Set<org.omwg.logicalexpression.MembershipMolecule> listMembershipMolecules()
          Returns the membership fact defined in the compound fact.
 void removeAttributeValueMolecule(org.omwg.logicalexpression.AttributeValueMolecule attrValue)
          Remove attribute value molecules to the compound fact.
 void removeMembershipMolecule(org.omwg.logicalexpression.MembershipMolecule memberMolecule)
          Remove a membership molecule from the Compound Fact.
 String toString(org.wsmo.common.TopEntity nsHolder)
          returns this MoleculeFact as string using the namespace definitions in the topEntity given as parameter
 
Methods inherited from interface org.wsmo.service.rule.CompoundFact
isEmpty
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

listMembershipMolecules

Set<org.omwg.logicalexpression.MembershipMolecule> listMembershipMolecules()
Returns the membership fact defined in the compound fact.

Returns:
A MembershipFact object

listAttributeValueMolecules

Set<org.omwg.logicalexpression.AttributeValueMolecule> listAttributeValueMolecules()
Returns a list of attribute value facts defined in the compound fact.

Returns:
A set of AttributeValueFact objects

addMembershipMolecule

void addMembershipMolecule(org.omwg.logicalexpression.MembershipMolecule memberMolecule)
Add a membership molecule to the Compound Fact.

Parameters:
memberof - A MembershipMolecule object defining a membership fact

removeMembershipMolecule

void removeMembershipMolecule(org.omwg.logicalexpression.MembershipMolecule memberMolecule)
Remove a membership molecule from the Compound Fact.

Parameters:
memberof - A MembershipMolecule object defining a membership fact

addAttributeValueMolecule

void addAttributeValueMolecule(org.omwg.logicalexpression.AttributeValueMolecule attrValue)
Add attribute value molecules to the compound fact.

Parameters:
attrValues - AttributeValueMolecule objects defining the facts related to the attribute values

removeAttributeValueMolecule

void removeAttributeValueMolecule(org.omwg.logicalexpression.AttributeValueMolecule attrValue)
Remove attribute value molecules to the compound fact.

Parameters:
attrValues - AttributeValueMolecule objects defining the facts related to the attribute values

toString

String toString(org.wsmo.common.TopEntity nsHolder)
returns this MoleculeFact as string using the namespace definitions in the topEntity given as parameter

Parameters:
nsHolder - TopEntity that namespace are used to abreviate full IRIs.
Returns:
String representation of this fact using sQNames to abbreviate full IRIs


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.