Adicionado classificaĆ§Ć£o do log conforme exemplo
[simdecs.git] / src / java / org / ufcspa / simdecs / diagram / elements / Begin.java
CommitLineData
d076ae96 1package org.ufcspa.simdecs.diagram.elements;\r
2\r
3import java.util.ArrayList;\r
4import java.util.List;\r
5import java.util.Locale;\r
6\r
7@NodeElement\r
8public class Begin extends Node {\r
9\r
10 @NodeTextProperty(namei18n="NodeBeginDescription")\r
11 private String description;\r
12 @NodeTextProperty(namei18n="NodeBeginTitle")\r
13 private String title;\r
14 @NodeTextProperty(namei18n="NodeBeginScenario")\r
15 private String scenario;\r
16\r
17 public Begin(String messageBundle, Locale locale) {\r
18 super(messageBundle, locale);\r
19 }\r
20\r
21 public String getDescription() {\r
22 return description;\r
23 }\r
24\r
25 public void setDescription(String description) {\r
26 this.description = description;\r
27 }\r
28\r
29 public String getScenario() {\r
30 return scenario;\r
31 }\r
32\r
33 public void setScenario(String scenario) {\r
34 this.scenario = scenario;\r
35 }\r
36\r
37 public String getTitle() {\r
38 return title;\r
39 }\r
40\r
41 public void setTitle(String title) {\r
42 this.title = title;\r
43 }\r
44\r
45 @Override\r
46 public String getImage() {\r
47 return "img/nodes/begin_" + getLocale() + ".png";\r
48 }\r
49\r
50 @Override\r
51 public String getImageWithLink() {\r
52 return "img/nodes/beginLink_" + getLocale() + ".png";\r
53 }\r
54\r
55 @Override\r
56 public List<Node> getGrantedPrevious() {\r
57 List<Node> list = new ArrayList<Node>();\r
58 return list;\r
59 }\r
60\r
61 @Override\r
62 public List<SwimLane> getGrantedSwimLanes() {\r
63 List<SwimLane> list = new ArrayList<SwimLane>();\r
64 list.add(new Doctor(messageBundle, locale));\r
65 return list;\r
66 }\r
67\r
68 @Override\r
69 public boolean isFirst() {\r
70 return true;\r
71 }\r
72\r
73 @Override\r
74 public String getName() {\r
75 return getResourceMessage("elementNodeBegin");\r
76 }\r
77}\r