SimpleProcessImpl.java revision 23
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainen * Created on Dec 23, 2004
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainenimport org.mindswap.owls.process.AtomicProcess;
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainenimport org.mindswap.owls.process.CompositeProcess;
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainenimport org.mindswap.owls.process.SimpleProcess;
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainen * @author evren
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainenpublic class SimpleProcessImpl extends ProcessImpl implements SimpleProcess {
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainen /* (non-Javadoc)
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainen * @see org.mindswap.owls.process.SimpleProcess#getAtomicProcess()
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainen return (AtomicProcess) getPropertyAs(OWLS.Process.realizedBy, AtomicProcess.class);
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainen /* (non-Javadoc)
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainen * @see org.mindswap.owls.process.SimpleProcess#getCompositeProcess()
9294b9ad2eb112258c247906b53010664f84e57bTimo Sirainen public CompositeProcess getCompositeProcess() {
a81be83a3bb00b7b31b832f50bd8542e62a71891Timo Sirainen return (CompositeProcess) getPropertyAs(OWLS.Process.expandsTo, CompositeProcess.class);
a81be83a3bb00b7b31b832f50bd8542e62a71891Timo Sirainen /* (non-Javadoc)
a81be83a3bb00b7b31b832f50bd8542e62a71891Timo Sirainen * @see org.mindswap.owls.process.SimpleProcess#setAtomicProcess(org.mindswap.owls.process.AtomicProcess)
a81be83a3bb00b7b31b832f50bd8542e62a71891Timo Sirainen public void setAtomicProcess(AtomicProcess process) {
a81be83a3bb00b7b31b832f50bd8542e62a71891Timo Sirainen setProperty(OWLS.Process.realizedBy, process);
a81be83a3bb00b7b31b832f50bd8542e62a71891Timo Sirainen /* (non-Javadoc)
a81be83a3bb00b7b31b832f50bd8542e62a71891Timo Sirainen * @see org.mindswap.owls.process.SimpleProcess#setCompositeProcess(org.mindswap.owls.process.CompositeProcess)