2ronwalf// The MIT License
2ronwalf//
2ronwalf// Copyright (c) 2004 Evren Sirin
2ronwalf//
2ronwalf// Permission is hereby granted, free of charge, to any person obtaining a copy
2ronwalf// of this software and associated documentation files (the "Software"), to
2ronwalf// deal in the Software without restriction, including without limitation the
2ronwalf// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
2ronwalf// sell copies of the Software, and to permit persons to whom the Software is
2ronwalf// furnished to do so, subject to the following conditions:
2ronwalf//
2ronwalf// The above copyright notice and this permission notice shall be included in
2ronwalf// all copies or substantial portions of the Software.
2ronwalf//
2ronwalf// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2ronwalf// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2ronwalf// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2ronwalf// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2ronwalf// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2ronwalf// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2ronwalf// IN THE SOFTWARE.
2ronwalf
2ronwalf/*
2ronwalf * Created on Dec 27, 2003
2ronwalf *
2ronwalf */
2ronwalfpackage org.mindswap.owls.grounding;
2ronwalf
2ronwalfimport org.mindswap.owl.OWLIndividual;
2ronwalfimport org.mindswap.owls.process.AtomicProcess;
2ronwalfimport org.mindswap.owls.service.Service;
2ronwalf
2ronwalf/**
2ronwalf * Represents the OWL-S grounding. Note that there is not a subclass named WsdlGrounding. The reason is
2ronwalf * a Grounding object may contain many {@link org.mindswap.owls.grounding.AtomicGrounding AtomicGrounding}
2ronwalf * objects that are either WSDL or UPnP. Only {@link org.mindswap.owls.grounding.AtomicGrounding AtomicGrounding}
2ronwalf * objects are labeld as WSDL or UPnP.
2ronwalf *
2ronwalf * OWL-S concept: http://www.daml.org/services/owl-s/1.0/Grounding#Grounding
2ronwalf *
2ronwalf * @author Evren Sirin
2ronwalf *
2ronwalf */
2ronwalfpublic interface Grounding extends OWLIndividual {
2ronwalf /**
2ronwalf * setService
2ronwalf *
2ronwalf * @param service
2ronwalf */
2ronwalf public void setService(Service service);
2ronwalf
2ronwalf /**
2ronwalf * getService
2ronwalf *
2ronwalf * @return
2ronwalf */
2ronwalf public Service getService();
2ronwalf
2ronwalf /**
14daenzerorama * Removes the service from this grounding by breaking the link
14daenzerorama * <code>service:supportedBy</code>. The service itself remains untouched.2
14daenzerorama */
14daenzerorama public void removeService();
14daenzerorama
14daenzerorama /**
2ronwalf * addGrounding
2ronwalf *
2ronwalf * @param apg
2ronwalf */
2ronwalf public void addGrounding(AtomicGrounding apg);
2ronwalf
2ronwalf /**
2ronwalf * Return the AtomicProcessGroundings defined for this process.
2ronwalf *
2ronwalf * @param process
2ronwalf * @return
2ronwalf */
2ronwalf public AtomicGrounding getAtomicGrounding(AtomicProcess process);
2ronwalf
2ronwalf /**
2ronwalf * Return all the AtomicProcessGroundings defined in this grounding.
2ronwalf *
2ronwalf * @return
2ronwalf */
2ronwalf public AtomicGroundingList getAtomicGroundings();
2ronwalf
2ronwalf /**
2ronwalf * getAtomicGroundings
2ronwalf *
2ronwalf * @param process
2ronwalf * @return
2ronwalf */
2ronwalf public AtomicGroundingList getAtomicGroundings(AtomicProcess process);
14daenzerorama
14daenzerorama /**
14daenzerorama * Removes the atomic groundings for the given atomic process from this
14daenzerorama * grounding by breaking the property grounding:hasAtomicProcessGrounding. The
14daenzerorama * atomic grounding itself is not changed at all.
14daenzerorama *
14daenzerorama * @param process the atomic process to which the removeable atomic groundings are bound
14daenzerorama */
14daenzerorama public void removeAtomicGroundings(AtomicProcess process);
14daenzerorama
14daenzerorama /**
14daenzerorama * Deletes the atomic groundings for the given atomic process from this grounding
14daenzerorama *
14daenzerorama * @param process the atomic process to which the deleteable atomic groundings are bound
14daenzerorama */
14daenzerorama public void deleteAtomicGroundings(AtomicProcess process);
14daenzerorama
14daenzerorama /**
14daenzerorama * Removes all atomic groundings from this grounding by breaking the property grounding:hasAtomicProcessGrounding. The
14daenzerorama * atomic grounding itself is not changed at all.
14daenzerorama */
14daenzerorama public void removeAtomicGroundings();
14daenzerorama
14daenzerorama /**
14daenzerorama * Deletes all atomic groundings from this grounding
14daenzerorama */
14daenzerorama public void deleteAtomicGroundings();
2ronwalf}