01: package org.enhydra.jawe.components.graph;
02:
03: /**
04: * Used to define Port object in graph.
05: *
06: * @author Sasa Bojanic
07: */
08: public class DefaultGraphPort extends GraphPortInterface {
09:
10: protected String type;
11:
12: /**
13: * Creates activity with given userObject. Also creates default port
14: * for holding activity transitions.
15: */
16: public DefaultGraphPort(String name, String type) {
17: super (name);
18: this .type = type;
19: }
20:
21: public GraphActivityInterface getActivity() {
22: return (GraphActivityInterface) getParent();
23: }
24:
25: public String getType() {
26: return type;
27: }
28:
29: }
|