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 Oct 26, 2004
2ronwalf */
2ronwalfpackage org.mindswap.swrl;
2ronwalf
2ronwalfimport org.mindswap.owl.OWLIndividual;
38daenzeroramaimport org.mindswap.query.ValueMap;
2ronwalf
2ronwalf
2ronwalf
2ronwalf/**
38daenzerorama * Encapsulation for SWRL Atom.
38daenzerorama *
2ronwalf * @author Evren Sirin
38daenzerorama * @author Michael D�nzer (University of Zurich)
38daenzerorama *
38daenzerorama * @see <a href="http://www.w3.org/Submission/SWRL/">SWRL on W3C</a>
2ronwalf */
2ronwalfpublic interface Atom extends OWLIndividual {
38daenzerorama /**
38daenzerorama * Returns the number of arguments
38daenzerorama * @return the number of arguments
38daenzerorama */
2ronwalf public int getArgumentCount();
2ronwalf
38daenzerorama /**
38daenzerorama * Returns the argument at position <code>index</code>
38daenzerorama * @param index the integer index of the argument in the argument list
38daenzerorama * @return the argument athe given index. <code>null</code> if there is no argument at th egiven index
38daenzerorama */
2ronwalf public SWRLObject getArgument( int index );
38daenzerorama
38daenzerorama /**
38daenzerorama * Sets the argument at the given position
38daenzerorama *
38daenzerorama * @param index the position to which the argument is added
38daenzerorama * @param arg the argument to add at the given position
38daenzerorama */
2ronwalf public void setArgument( int index, SWRLObject arg );
38daenzerorama
38daenzerorama /**
38daenzerorama * Evaluates the atom. See description for each specific interface.
38daenzerorama *
38daenzerorama * @param values the set of values bound to the process (and its super-processes)
38daenzerorama * for which this atom (i.e. this corresponfing atom) is encapsulated.
38daenzerorama */
38daenzerorama public void evaluate(ValueMap values);
2ronwalf}