001: /*
002: * $Id: Scope.java,v 1.9 2004/12/09 12:34:40 kowap Exp $
003: *
004: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
005: * Berne University of Applied Sciences
006: * School of Engineering and Information Technology
007: * All rights reserved.
008: */
009: package bexee.model.activity;
010:
011: import bexee.model.elements.CorrelationSets;
012: import bexee.model.elements.EventHandlers;
013: import bexee.model.elements.FaultHandlers;
014: import bexee.model.elements.Variables;
015:
016: /**
017: * A scope structured activity. This activity can be compared to a process, it
018: * has its own correlation sets, fault handlers, compensation handlers, event
019: * handlers and a root activity. The handlers specified by this scope activity
020: * are prioritary to the contained activities as compared to the handlers of the
021: * process, or other scopes containing this scope.
022: *
023: * @author Patric Fornasier
024: * @author Pawel Kowalski
025: * @version $Revision: 1.9 $, $Date: 2004/12/09 12:34:40 $
026: */
027: public interface Scope extends Activity {
028:
029: //**************************************************/
030: // xml attributes
031: //**************************************************/
032:
033: /**
034: * Set whether the access to variables is serializable.
035: *
036: * @param varAccessSerializable
037: * a <code>boolean</code> value
038: */
039: public void setVariableAccessSerializable(
040: boolean varAccessSerializable);
041:
042: /**
043: * Get whether the access to variables is serializable.
044: *
045: * @return a <code>boolean</code> value
046: */
047: public boolean isVariableAccessSerializable();
048:
049: //**************************************************/
050: // xml elements
051: //**************************************************/
052:
053: // variables
054:
055: /**
056: * Set <code>Variables</code> of this <code>Scope</code>.
057: *
058: * @param variables
059: * a <code>Variables</code> value
060: */
061: public void setVariables(Variables variables);
062:
063: /**
064: * Get <code>Variables</code> of this <code>Scope</code>.
065: *
066: * @return a <code>Variables</code> value
067: */
068: public Variables getVariables();
069:
070: // correlation sets
071:
072: /**
073: *
074: *
075: * @param correlationSets
076: * a <code>CorrelationSets</code> value
077: */
078: public void setCorrelationSets(CorrelationSets correlationSets);
079:
080: /**
081: *
082: *
083: * @return a <code>CorrelationSets</code> value
084: */
085: public CorrelationSets getCorrelationSets();
086:
087: // fault handlers
088:
089: /**
090: *
091: *
092: * @param faultHandlers
093: * a <code>FaultHandlers</code> value
094: */
095: public void setFaultHandlers(FaultHandlers faultHandlers);
096:
097: /**
098: *
099: *
100: * @return a <code>FaultHandlers</code> value
101: */
102: public FaultHandlers getFaultHandlers();
103:
104: // compensation handler
105:
106: /**
107: *
108: *
109: * @param compensationHandler
110: * a <code>CompensationHandler</code> value
111: */
112: public void setCompensationHanlder(
113: CompensationHandler compensationHandler);
114:
115: /**
116: *
117: *
118: * @return a <code>CompensationHandler</code> value
119: */
120: public CompensationHandler getCompensationHandler();
121:
122: // event handlers
123:
124: /**
125: *
126: *
127: * @param eventHandlers
128: * an <code>EventHandlers</code> value
129: */
130: public void setEventHandlers(EventHandlers eventHandlers);
131:
132: /**
133: *
134: *
135: * @return an <code>EventHandlers</code> value
136: */
137: public EventHandlers getEventHandlers();
138:
139: // activity
140:
141: /**
142: *
143: *
144: * @param activity
145: * an <code>Activity</code> value
146: */
147: public void setActivity(Activity activity);
148:
149: /**
150: *
151: *
152: * @return an <code>Activity</code> value
153: */
154: public Activity getActivity();
155:
156: }
|