1 package org.smartcomps.twister.engine.priv.core.definition;
2
3 import org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext;
4 import org.smartcomps.twister.engine.exception.EngineException;
5
6 import java.util.Set;
7 import java.util.Map;
8
9 /***
10 * Root class for all activities, an activity is the most basic
11 * part of a process defining what should be done.
12 */
13 public interface Activity {
14
15 public String getName();
16 public void setName(String name);
17
18 public String getJoinCondition();
19 public void setJoinCondition(String expr);
20
21 public Set getSourceLinks();
22 public void setSourceLinks(Set sources);
23
24 public Set getTargetLinks();
25 public void setTargetLinks(Set targets);
26
27 /***
28 * An Activity is contained either in a TwisterProcess of in a StructuredActivity,
29 * therefore this method will return the StructuredActivity containing this activity
30 * only if it's not the root activity. For the root activity it will return null (the
31 * root activity being the activity directly in the process).
32 * @return StructuredActivity the container of this activity, null if this activity is root
33 */
34 public StructuredActivity getContainer();
35
36 /***
37 * An Activity is contained either in a TwisterProcess of in a StructuredActivity,
38 * therefore this method will return the TwisterProcess containing this activity
39 * only if it is the root activity. For other activities it will return null (the
40 * root activity being the activity directly in the process).
41 * @return TwisterProcess the process of this activity, null for all activity that are not root
42 */
43 public TwisterProcess getProcess();
44
45 /***
46 * This method browse the activity containment hierarchy to fetch the process
47 * this activity is included in.
48 * @return TwisterProcess
49 */
50 public TwisterProcess fetchProcess();
51 }
This page was automatically generated by Maven