com.ontotext.wsmo4j.service
Class CapabilityImpl

java.lang.Object
  extended by com.ontotext.wsmo4j.common.EntityImpl
      extended by com.ontotext.wsmo4j.common.TopEntityImpl
          extended by com.ontotext.wsmo4j.service.CapabilityImpl
All Implemented Interfaces:
org.wsmo.common.Entity, org.wsmo.common.TopEntity, org.wsmo.service.Capability

public class CapabilityImpl
extends TopEntityImpl
implements org.wsmo.service.Capability


Constructor Summary
CapabilityImpl(org.wsmo.common.IRI capabilityIRI)
           
 
Method Summary
 void addAssumption(org.omwg.ontology.Axiom axiom)
          Adds an assumption to the list of assumptions associated with this capability.
 void addEffect(org.omwg.ontology.Axiom axiom)
          Adds an effect to the list of effects of this capability.
 void addPostCondition(org.omwg.ontology.Axiom axiom)
          Adds a new post-condition to the list of post-conditions associated with this capability.
 void addPreCondition(org.omwg.ontology.Axiom axiom)
          Adds a pre-condition to the list of pre-conditions of this capability.
 void addSharedVariable(org.omwg.ontology.Variable var)
          Adds a new shared variable to the list of variables used by the logical expressions of this capability.
 boolean equals(Object object)
           
 Set<org.omwg.ontology.Axiom> listAssumptions()
          Lists the assumptions associated with this capability.
 Set<org.omwg.ontology.Axiom> listEffects()
          Lists the effects of this capability.
 Set<org.omwg.ontology.Axiom> listPostConditions()
          Returns the list of post-conditions associated with this capability.
 Set<org.omwg.ontology.Axiom> listPreConditions()
          Lists the pre-conditions of this capability.
 Set<org.omwg.ontology.Variable> listSharedVariables()
          returns the set of shared variables used by the logical expressions of this capability.
 void removeAssumption(org.omwg.ontology.Axiom axiom)
          Removes an assumption from the list of assumptions associated with this capability.
 void removeAssumption(org.wsmo.common.Identifier id)
          Removes an assumption from the list of assumptions associated with this capability.
 void removeEffect(org.omwg.ontology.Axiom axiom)
          Removes an effect from the list of effects associated with this capability.
 void removeEffect(org.wsmo.common.Identifier id)
          Removes an effect from the list of effects associated with this capability.
 void removePostCondition(org.omwg.ontology.Axiom axiom)
          Removes a post-condition from the list of post-conditions associated with this capability.
 void removePostCondition(org.wsmo.common.Identifier id)
          Removes a post-condition from the list of post-conditions associated with this capability.
 void removePreCondition(org.omwg.ontology.Axiom axiom)
          Removes a pre-condition from the list of pre-conditions associated with this capability.
 void removePreCondition(org.wsmo.common.Identifier id)
          Removes a pre-condition from the list of pre-conditions associated with this capability.
 void removeSharedVariable(String name)
          Removes a shared variable from the list of variables used by the logical expressions of this capability.
 void removeSharedVariable(org.omwg.ontology.Variable var)
          Removes a shared variable from the list of variables used by the logical expressions of this capability.
 
Methods inherited from class com.ontotext.wsmo4j.common.TopEntityImpl
addMediator, addNamespace, addOntology, findNamespace, getDefaultNamespace, getWsmlVariant, listMediators, listNamespaces, listOntologies, removeMediator, removeNamespace, removeNamespace, removeOntology, removeOntology, setDefaultNamespace, setDefaultNamespace, setWsmlVariant
 
Methods inherited from class com.ontotext.wsmo4j.common.EntityImpl
addNFPValue, addNFPValue, getIdentifier, hashCode, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wsmo.common.TopEntity
addMediator, addNamespace, addOntology, findNamespace, getDefaultNamespace, getWsmlVariant, listMediators, listNamespaces, listOntologies, removeMediator, removeNamespace, removeNamespace, removeOntology, removeOntology, setDefaultNamespace, setDefaultNamespace, setWsmlVariant
 
Methods inherited from interface org.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Constructor Detail

CapabilityImpl

public CapabilityImpl(org.wsmo.common.IRI capabilityIRI)
Method Detail

addSharedVariable

public void addSharedVariable(org.omwg.ontology.Variable var)
                       throws org.wsmo.common.exception.SynchronisationException,
                              org.wsmo.common.exception.InvalidModelException
Adds a new shared variable to the list of variables used by the logical expressions of this capability.

Specified by:
addSharedVariable in interface org.wsmo.service.Capability
Parameters:
var - The variable to be added
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
See Also:
removeSharedVariable(Variable var), removeSharedVariable(String name)

removeSharedVariable

public void removeSharedVariable(org.omwg.ontology.Variable var)
                          throws org.wsmo.common.exception.SynchronisationException,
                                 org.wsmo.common.exception.InvalidModelException
Removes a shared variable from the list of variables used by the logical expressions of this capability.

Specified by:
removeSharedVariable in interface org.wsmo.service.Capability
Parameters:
var - The variable to be removed.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeSharedVariable

public void removeSharedVariable(String name)
                          throws org.wsmo.common.exception.SynchronisationException,
                                 org.wsmo.common.exception.InvalidModelException
Removes a shared variable from the list of variables used by the logical expressions of this capability.

Specified by:
removeSharedVariable in interface org.wsmo.service.Capability
Parameters:
name - The name of the variable to be removed.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listSharedVariables

public Set<org.omwg.ontology.Variable> listSharedVariables()
                                                    throws org.wsmo.common.exception.SynchronisationException
returns the set of shared variables used by the logical expressions of this capability.

Specified by:
listSharedVariables in interface org.wsmo.service.Capability
Returns:
The set of shared variables
Throws:
org.wsmo.common.exception.SynchronisationException
See Also:
Variable

addPostCondition

public void addPostCondition(org.omwg.ontology.Axiom axiom)
                      throws org.wsmo.common.exception.SynchronisationException,
                             org.wsmo.common.exception.InvalidModelException
Adds a new post-condition to the list of post-conditions associated with this capability.

Specified by:
addPostCondition in interface org.wsmo.service.Capability
Parameters:
axiom - The new post-condition to be added to the lsit of post-conditions associated with this capability.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
See Also:
removePostCondition(Axiom axiom), removePostCondition(Identifier id)

removePostCondition

public void removePostCondition(org.omwg.ontology.Axiom axiom)
                         throws org.wsmo.common.exception.SynchronisationException,
                                org.wsmo.common.exception.InvalidModelException
Removes a post-condition from the list of post-conditions associated with this capability.

Specified by:
removePostCondition in interface org.wsmo.service.Capability
Parameters:
axiom - The post-condition to be removed.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removePostCondition

public void removePostCondition(org.wsmo.common.Identifier id)
                         throws org.wsmo.common.exception.SynchronisationException,
                                org.wsmo.common.exception.InvalidModelException
Removes a post-condition from the list of post-conditions associated with this capability.

Specified by:
removePostCondition in interface org.wsmo.service.Capability
Parameters:
id - The ID of post-condition to be removed.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listPostConditions

public Set<org.omwg.ontology.Axiom> listPostConditions()
                                                throws org.wsmo.common.exception.SynchronisationException
Returns the list of post-conditions associated with this capability.

Specified by:
listPostConditions in interface org.wsmo.service.Capability
Returns:
The set of post-conditions associated with this capability.
Throws:
org.wsmo.common.exception.SynchronisationException
See Also:
Axiom

addPreCondition

public void addPreCondition(org.omwg.ontology.Axiom axiom)
                     throws org.wsmo.common.exception.SynchronisationException,
                            org.wsmo.common.exception.InvalidModelException
Adds a pre-condition to the list of pre-conditions of this capability.

Specified by:
addPreCondition in interface org.wsmo.service.Capability
Parameters:
axiom - The pre-condition to be added to the list of pre-conditions of this capability.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
See Also:
removePreCondition(Axiom axiom), removePreCondition(Identifier id)

removePreCondition

public void removePreCondition(org.omwg.ontology.Axiom axiom)
                        throws org.wsmo.common.exception.SynchronisationException,
                               org.wsmo.common.exception.InvalidModelException
Removes a pre-condition from the list of pre-conditions associated with this capability.

Specified by:
removePreCondition in interface org.wsmo.service.Capability
Parameters:
axiom - The pre-condition to be removed from the list.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removePreCondition

public void removePreCondition(org.wsmo.common.Identifier id)
                        throws org.wsmo.common.exception.SynchronisationException,
                               org.wsmo.common.exception.InvalidModelException
Removes a pre-condition from the list of pre-conditions associated with this capability.

Specified by:
removePreCondition in interface org.wsmo.service.Capability
Parameters:
id - The ID of the pre-condition to be removed from the list.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listPreConditions

public Set<org.omwg.ontology.Axiom> listPreConditions()
                                               throws org.wsmo.common.exception.SynchronisationException
Lists the pre-conditions of this capability.

Specified by:
listPreConditions in interface org.wsmo.service.Capability
Returns:
The list of pre-conditions of this capability.
Throws:
org.wsmo.common.exception.SynchronisationException
See Also:
Axiom

addEffect

public void addEffect(org.omwg.ontology.Axiom axiom)
               throws org.wsmo.common.exception.SynchronisationException,
                      org.wsmo.common.exception.InvalidModelException
Adds an effect to the list of effects of this capability.

Specified by:
addEffect in interface org.wsmo.service.Capability
Parameters:
axiom - The effect to be added to the list of effects of this capability.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
See Also:
removeEffect(Axiom axiom), removeEffect(Identifier id)

removeEffect

public void removeEffect(org.omwg.ontology.Axiom axiom)
                  throws org.wsmo.common.exception.SynchronisationException,
                         org.wsmo.common.exception.InvalidModelException
Removes an effect from the list of effects associated with this capability.

Specified by:
removeEffect in interface org.wsmo.service.Capability
Parameters:
axiom - The effect to be removed from the list.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeEffect

public void removeEffect(org.wsmo.common.Identifier id)
                  throws org.wsmo.common.exception.SynchronisationException,
                         org.wsmo.common.exception.InvalidModelException
Removes an effect from the list of effects associated with this capability.

Specified by:
removeEffect in interface org.wsmo.service.Capability
Parameters:
id - The ID of the effect to be removed from the list.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listEffects

public Set<org.omwg.ontology.Axiom> listEffects()
                                         throws org.wsmo.common.exception.SynchronisationException
Lists the effects of this capability.

Specified by:
listEffects in interface org.wsmo.service.Capability
Returns:
The list of effects that this capability produces.
Throws:
org.wsmo.common.exception.SynchronisationException
See Also:
Axiom

addAssumption

public void addAssumption(org.omwg.ontology.Axiom axiom)
                   throws org.wsmo.common.exception.SynchronisationException,
                          org.wsmo.common.exception.InvalidModelException
Adds an assumption to the list of assumptions associated with this capability.

Specified by:
addAssumption in interface org.wsmo.service.Capability
Parameters:
axiom - The new assumption to be added to the list.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
See Also:
removeAssumption(Axiom axiom), removeAssumption(Identifier id)

removeAssumption

public void removeAssumption(org.omwg.ontology.Axiom axiom)
                      throws org.wsmo.common.exception.SynchronisationException,
                             org.wsmo.common.exception.InvalidModelException
Removes an assumption from the list of assumptions associated with this capability.

Specified by:
removeAssumption in interface org.wsmo.service.Capability
Parameters:
axiom - The assumption to be removed from the list of assumtions.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeAssumption

public void removeAssumption(org.wsmo.common.Identifier id)
                      throws org.wsmo.common.exception.SynchronisationException,
                             org.wsmo.common.exception.InvalidModelException
Removes an assumption from the list of assumptions associated with this capability.

Specified by:
removeAssumption in interface org.wsmo.service.Capability
Parameters:
id - The ID of the assumption to be removed from the list of assumtions.
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listAssumptions

public Set<org.omwg.ontology.Axiom> listAssumptions()
                                             throws org.wsmo.common.exception.SynchronisationException
Lists the assumptions associated with this capability.

Specified by:
listAssumptions in interface org.wsmo.service.Capability
Returns:
The list of assumptions associated with this capability.
Throws:
org.wsmo.common.exception.SynchronisationException
See Also:
Axiom

equals

public boolean equals(Object object)
Overrides:
equals in class TopEntityImpl


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