1 package org.smartcomps.twister.engine.priv.core.definition.impl;
2
3 import org.smartcomps.twister.engine.exception.ProcessStructuralException;
4 import org.smartcomps.twister.engine.priv.core.definition.Scope;
5 import org.smartcomps.twister.engine.priv.core.definition.While;
6 import org.smartcomps.twister.engine.priv.core.definition.Activity;
7
8 /***
9 * A persistent implementation of the While interface.
10 * @see org.smartcomps.twister.engine.priv.core.definition.While
11 */
12 public class WhileImpl extends StructuredActivityImpl implements While {
13
14 private String condition;
15
16 public String getCondition() {
17 return condition;
18 }
19
20 public void setCondition(String booleanExpr) {
21 this.condition = booleanExpr;
22 }
23
24 public void addActivity(Activity activity) {
25 if (getActivitySet().size() > 0) {
26 throw new UnsupportedOperationException("This while already contains an activity, no additional " +
27 "activities can be added, while id : " + getId());
28 }
29 super.addActivity(activity);
30 }
31 }
This page was automatically generated by Maven