summaryrefslogtreecommitdiff
path: root/sources/simulator/VSCreateTask.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-06-14 19:37:01 +0000
committerPaul Buetow <paul@buetow.org>2008-06-14 19:37:01 +0000
commit21282d8a04aa609ce2cf7dbd959ce4256d78d354 (patch)
tree518027569f55a0e24f5aac7b7547084fd660f585 /sources/simulator/VSCreateTask.java
parentaae6dc9edffd1838222866a8c299639d0425b9c3 (diff)
inventet VSCreateTask dummy instances. This way all the menu texts can
be included in those objects.
Diffstat (limited to 'sources/simulator/VSCreateTask.java')
-rw-r--r--sources/simulator/VSCreateTask.java39
1 files changed, 36 insertions, 3 deletions
diff --git a/sources/simulator/VSCreateTask.java b/sources/simulator/VSCreateTask.java
index 75c5b08..660eae7 100644
--- a/sources/simulator/VSCreateTask.java
+++ b/sources/simulator/VSCreateTask.java
@@ -41,6 +41,9 @@ public class VSCreateTask {
/** The event classname. */
private String eventClassname;
+ /** The create task menu string. */
+ private String menuText;
+
/** The protocol classname. */
private String protocolClassname;
@@ -64,13 +67,25 @@ public class VSCreateTask {
/**
* Instantiates a new VSCreateTask object.
*
+ * @param menuText the menu text
* @param eventClassname the event classname
*/
- public VSCreateTask(String eventClassname) {
+ public VSCreateTask(String menuText, String eventClassname) {
+ this.menuText = menuText;
this.eventClassname = eventClassname;
}
/**
+ * Instantiates a new VSCreateTask dummy object.
+ *
+ * @param menuText the menu text
+ */
+ public VSCreateTask(String menuText) {
+ this.menuText = menuText;
+ this.eventClassname = null;
+ }
+
+ /**
* Sets if it is a protocol activation task.
*
* @param isProtocolActivation true, if it is a protocol activation
@@ -97,7 +112,7 @@ public class VSCreateTask {
}
/**
- * Checks if is client protocol.
+ * Sets if it is a client protocol.
*
* @param isClientProtocol the is client protocol
*/
@@ -106,7 +121,7 @@ public class VSCreateTask {
}
/**
- * Checks if is client request.
+ * Sets if it is a client request.
*
* @param isRequest the is client request
*/
@@ -115,6 +130,15 @@ public class VSCreateTask {
}
/**
+ * Checks if it is a dummy object..
+ *
+ * @return true, if dummy
+ */
+ public boolean isDummy() {
+ return eventClassname == null;
+ }
+
+ /**
* Sets the protocol classname.
*
* @param protocolClassname the protocol classname
@@ -133,6 +157,15 @@ public class VSCreateTask {
}
/**
+ * Gets the create tasks menu text.
+ *
+ * @return The text
+ */
+ public String getMenuText() {
+ return menuText;
+ }
+
+ /**
* Creates the task.
*
* @param process the process