CompositeProcessImpl.java revision 2
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// The MIT License
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose//
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// Copyright (c) 2004 Evren Sirin
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose//
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// Permission is hereby granted, free of charge, to any person obtaining a copy
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// of this software and associated documentation files (the "Software"), to
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// deal in the Software without restriction, including without limitation the
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// sell copies of the Software, and to permit persons to whom the Software is
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// furnished to do so, subject to the following conditions:
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose//
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// The above copyright notice and this permission notice shall be included in
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// all copies or substantial portions of the Software.
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose//
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose// IN THE SOFTWARE.
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose/*
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose * Created on Dec 28, 2003
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose *
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose */
e7a4ea98c6751a8c3d8405ca31481006f29b901eSumit Bosepackage impl.owls.process;
964628ab89229e9266adc5f4f8a26222734788b7Sumit Bose
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Boseimport org.mindswap.owl.OWLIndividual;
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Boseimport org.mindswap.owls.process.CompositeProcess;
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Boseimport org.mindswap.owls.process.ControlConstruct;
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Boseimport org.mindswap.owls.vocabulary.OWLS;
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose/**
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose * @author Evren Sirin
e7a4ea98c6751a8c3d8405ca31481006f29b901eSumit Bose *
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose */
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bosepublic class CompositeProcessImpl extends ProcessImpl implements CompositeProcess {
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose public CompositeProcessImpl(OWLIndividual ind) {
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose super(ind);
7baccb545ac9829b7e1990f45ff6f70e2de55c2aSimo Sorce }
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose public ControlConstruct getComposedOf() {
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose return (ControlConstruct) getPropertyAs(OWLS.Process.composedOf, ControlConstruct.class);
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose }
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose public void setComposedOf(ControlConstruct construct) {
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose setProperty(OWLS.Process.composedOf, construct);
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose }
e7a4ea98c6751a8c3d8405ca31481006f29b901eSumit Bose}
1e29e68388c2e9c5da9cb0afe997bc1b4e6933beSumit Bose