diff options
Diffstat (limited to 'sources/simulator/VSCreateTask.java')
| -rw-r--r-- | sources/simulator/VSCreateTask.java | 39 |
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 |
