simulator
Class VSCreateTask

java.lang.Object
  extended by simulator.VSCreateTask

public class VSCreateTask
extends java.lang.Object

The class VSCreateTask, an object of this class represents how new VSTask objects are to be created using JComboBox selections of the GUI editor..

Author:
Paul C. Buetow

Constructor Summary
VSCreateTask(java.lang.String menuText)
          Instantiates a new VSCreateTask dummy object.
VSCreateTask(java.lang.String menuText, java.lang.String eventClassname)
          Instantiates a new VSCreateTask object.
 
Method Summary
 VSTask createTask(VSInternalProcess process, long time, boolean localTimedTask)
          Creates the task.
 java.lang.String getMenuText()
          Gets the create tasks menu text.
 void isClientProtocol(boolean isClientProtocol)
          Sets if it is a client protocol.
 boolean isDummy()
          Checks if it is a dummy object..
 void isProtocolActivation(boolean isProtocolActivation)
          Sets if it is a protocol activation task.
 void isProtocolDeactivation(boolean isProtocolDeactivation)
          Sets if it is a protocol deactivation task.
 void isRequest(boolean isRequest)
          Sets if it is a client request.
 void setProtocolClassname(java.lang.String protocolClassname)
          Sets the protocol classname.
 void setShortname(java.lang.String shortname)
          Sets the shortname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VSCreateTask

public VSCreateTask(java.lang.String menuText,
                    java.lang.String eventClassname)
Instantiates a new VSCreateTask object.

Parameters:
menuText - the menu text
eventClassname - the event classname

VSCreateTask

public VSCreateTask(java.lang.String menuText)
Instantiates a new VSCreateTask dummy object.

Parameters:
menuText - the menu text
Method Detail

isProtocolActivation

public void isProtocolActivation(boolean isProtocolActivation)
Sets if it is a protocol activation task.

Parameters:
isProtocolActivation - true, if it is a protocol activation task.

isProtocolDeactivation

public void isProtocolDeactivation(boolean isProtocolDeactivation)
Sets if it is a protocol deactivation task.

Parameters:
isProtocolDeactivation - true, if it is a protocol deactivation task.

isClientProtocol

public void isClientProtocol(boolean isClientProtocol)
Sets if it is a client protocol.

Parameters:
isClientProtocol - the is client protocol

isRequest

public void isRequest(boolean isRequest)
Sets if it is a client request.

Parameters:
isRequest - the is client request

isDummy

public boolean isDummy()
Checks if it is a dummy object..

Returns:
true, if dummy

setProtocolClassname

public void setProtocolClassname(java.lang.String protocolClassname)
Sets the protocol classname.

Parameters:
protocolClassname - the protocol classname

setShortname

public void setShortname(java.lang.String shortname)
Sets the shortname.

Parameters:
shortname - the shortname

getMenuText

public java.lang.String getMenuText()
Gets the create tasks menu text.

Returns:
The text

createTask

public VSTask createTask(VSInternalProcess process,
                         long time,
                         boolean localTimedTask)
Creates the task.

Parameters:
process - the process
time - the time
localTimedTask - the local timed task
Returns:
the new task