01: package org.concern.controller;
02:
03: import org.concern.LoaderException;
04: import org.concern.Log;
05: import org.concern.SubjectNotFoundException;
06: import org.concern.UnknownSubjectException;
07:
08: import java.util.HashMap;
09: import java.util.Iterator;
10: import java.util.List;
11: import java.util.Map;
12:
13: public abstract class AbstractNode implements Node {
14: protected org.concern.controller.Controller controller;
15: protected Map environment = new HashMap();
16:
17: public void setController(Controller controller) {
18: this .controller = controller;
19: }
20:
21: protected final String getProcessName() {
22: return controller.getProcessName();
23: }
24:
25: public void setEnvironment(Map environment) {
26: this .environment = environment;
27: }
28:
29: protected Map getEnvironment() {
30: return environment;
31: }
32:
33: public String toString() {
34: return getName();
35: }
36: }
|