1 package org.ufcspa.simdecs.diagram.elements;
\r
3 import java.util.List;
\r
4 import java.util.Locale;
\r
6 public abstract class Node extends Element {
\r
8 private String currentImage;
\r
9 private int position;
\r
11 public Node(String messageBundle, Locale locale) {
\r
12 super(messageBundle, locale);
\r
15 public boolean isInternal() {
\r
19 public abstract String getImage();
\r
20 public abstract String getImageWithLink();
\r
21 public abstract List<Node> getGrantedPrevious();
\r
22 public abstract boolean isFirst();
\r
23 public abstract List<SwimLane> getGrantedSwimLanes();
\r
24 public abstract String getName();
\r
26 public boolean isGrantedOnThisSwimLane(SwimLane swimLane) {
\r
27 for (SwimLane x : getGrantedSwimLanes()) {
\r
28 if (x.getClass().equals(swimLane.getClass()))
\r
35 public boolean isGrantedAfterThisNode(Node node) {
\r
36 for (Node x : getGrantedPrevious()) {
\r
37 if (x.getClass().equals(node.getClass()))
\r
44 public String getCurrentImage() {
\r
45 return currentImage;
\r
48 public void setCurrentImage(String currentImage) {
\r
49 this.currentImage = currentImage;
\r
52 public int getPosition() {
\r
56 public void setPosition(int position) {
\r
57 this.position = position;
\r