2ronwalf/*
2ronwalf * Created on Dec 23, 2004
2ronwalf */
2ronwalfpackage impl.owls.process;
2ronwalf
22daenzerorama
2ronwalfimport org.mindswap.owl.OWLIndividual;
2ronwalfimport org.mindswap.owls.process.AtomicProcess;
2ronwalfimport org.mindswap.owls.process.CompositeProcess;
2ronwalfimport org.mindswap.owls.process.SimpleProcess;
2ronwalfimport org.mindswap.owls.vocabulary.OWLS;
2ronwalf
2ronwalf/**
2ronwalf * @author evren
2ronwalf *
2ronwalf */
2ronwalfpublic class SimpleProcessImpl extends ProcessImpl implements SimpleProcess {
2ronwalf public SimpleProcessImpl(OWLIndividual ind) {
2ronwalf super(ind);
2ronwalf }
2ronwalf
2ronwalf /* (non-Javadoc)
2ronwalf * @see org.mindswap.owls.process.SimpleProcess#getAtomicProcess()
2ronwalf */
2ronwalf public AtomicProcess getAtomicProcess() {
2ronwalf return (AtomicProcess) getPropertyAs(OWLS.Process.realizedBy, AtomicProcess.class);
2ronwalf }
2ronwalf
2ronwalf /* (non-Javadoc)
2ronwalf * @see org.mindswap.owls.process.SimpleProcess#getCompositeProcess()
2ronwalf */
2ronwalf public CompositeProcess getCompositeProcess() {
2ronwalf return (CompositeProcess) getPropertyAs(OWLS.Process.expandsTo, CompositeProcess.class);
2ronwalf }
2ronwalf
2ronwalf /* (non-Javadoc)
2ronwalf * @see org.mindswap.owls.process.SimpleProcess#setAtomicProcess(org.mindswap.owls.process.AtomicProcess)
2ronwalf */
2ronwalf public void setAtomicProcess(AtomicProcess process) {
2ronwalf setProperty(OWLS.Process.realizedBy, process);
2ronwalf }
2ronwalf
2ronwalf /* (non-Javadoc)
2ronwalf * @see org.mindswap.owls.process.SimpleProcess#setCompositeProcess(org.mindswap.owls.process.CompositeProcess)
2ronwalf */
2ronwalf public void setCompositeProcess(CompositeProcess process) {
2ronwalf setProperty(OWLS.Process.expandsTo, process);
2ronwalf }
2ronwalf
2ronwalf}