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 28, 2003
2ronwalf *
2ronwalf */
2ronwalfpackage org.mindswap.owls.process;
2ronwalf
2ronwalf/**
18daenzerorama * An IfThenElse is a digital branching construct. Based on the evaluation of
18daenzerorama * a condition, the execution branches to one of the branches. For deeper branching,
18daenzerorama * nest this construct.
18daenzerorama * For more information refer to the OWL-S white paper at
18daenzerorama * the official <a href="http://www.daml.org/services/owl-s/">web site.</a>
18daenzerorama *
2ronwalf * @author Evren Sirin
38daenzerorama * @author Michael D�nzer (University of Zurich)
2ronwalf */
2ronwalfpublic interface IfThenElse extends ControlConstruct, Conditional {
18daenzerorama /**
18daenzerorama * Returns the control construct on which the if then part consists
18daenzerorama * @return the control construct on which the if then part consists
18daenzerorama */
2ronwalf public ControlConstruct getThen();
18daenzerorama /**
18daenzerorama * Sets the control construct on which the if then part consists
18daenzerorama * @param cc the control construct on which the if then part consists
18daenzerorama */
18daenzerorama public void setThen(ControlConstruct cc);
18daenzerorama /**
18daenzerorama * Removes the <code>process:then</code> property from this construct.
18daenzerorama * Note, that the then part is not deleted. Use {@link #deleteThen()} instead.
18daenzerorama */
18daenzerorama public void removeThen();
18daenzerorama /**
18daenzerorama * Deletes the then part from this construct and removes it from the ontology (if possible)
18daenzerorama */
18daenzerorama public void deleteThen();
2ronwalf
18daenzerorama
18daenzerorama /**
18daenzerorama * Returns the control construct on which the else part consists
18daenzerorama * @return the control construct on which the else part consists
18daenzerorama */
2ronwalf public ControlConstruct getElse();
18daenzerorama /**
18daenzerorama * Sets the control construct on which the else part consists
18daenzerorama * @param cc the control construct on which the else part consists
18daenzerorama */
2ronwalf public void setElse(ControlConstruct cc);
18daenzerorama /**
18daenzerorama * Removes the <code>process:else</code> property from this construct.
18daenzerorama * Note, that the else part is not deleted. Use {@link #deleteElse()} instead.
18daenzerorama */
18daenzerorama public void removeElse();
18daenzerorama /**
18daenzerorama * Deletes the else part from this construct and removes it from the ontology (if possible)
18daenzerorama */
18daenzerorama public void deleteElse();
2ronwalf}