2ronwalf/*
2ronwalf * Created on Aug 30, 2004
2ronwalf */
22daenzeroramapackage impl.owls.process.constructs;
2ronwalf
2ronwalfimport org.mindswap.owl.OWLIndividual;
2ronwalfimport org.mindswap.owls.process.Condition;
2ronwalfimport org.mindswap.owls.process.ControlConstruct;
2ronwalfimport org.mindswap.owls.process.RepeatWhile;
2ronwalfimport org.mindswap.owls.vocabulary.OWLS;
2ronwalf
2ronwalf/**
2ronwalf * @author Evren Sirin
38daenzerorama * @author Michael D�nzer (University of Zurich)
2ronwalf */
2ronwalfpublic class RepeatWhileImpl extends IterateImpl implements RepeatWhile {
2ronwalf public RepeatWhileImpl(OWLIndividual ind) {
2ronwalf super(ind);
2ronwalf }
2ronwalf
2ronwalf public Condition getCondition() {
2ronwalf return (Condition) getPropertyAs(OWLS.Process.whileCondition, Condition.class);
2ronwalf }
2ronwalf
2ronwalf public void setCondition(Condition condition) {
2ronwalf setProperty(OWLS.Process.whileCondition, condition);
2ronwalf }
2ronwalf
2ronwalf public ControlConstruct getComponent() {
2ronwalf return (ControlConstruct) getPropertyAs(OWLS.Process.whileProcess, ControlConstruct.class);
2ronwalf }
2ronwalf
2ronwalf public void setComponent(ControlConstruct component) {
2ronwalf setProperty(OWLS.Process.whileProcess, component);
2ronwalf }
2ronwalf
2ronwalf public String getConstructName() {
2ronwalf return "Repeat-While";
2ronwalf }
16daenzerorama
18daenzerorama public void removeComponent() {
18daenzerorama if (hasProperty(OWLS.Process.whileProcess))
18daenzerorama removeProperties(OWLS.Process.whileProcess);
16daenzerorama }
2ronwalf}