2010-01-26 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.helper.task
Class Task_DELETE_EXIST_ROSPEC

java.lang.Object
  extended by EscObject
      extended by org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.AbstractTask
          extended by org.eclipse.soda.dk.epcglobal.llrp.helper.task.Task_DELETE_EXIST_ROSPEC
All Implemented Interfaces:
ITask, ITaskListener

public class Task_DELETE_EXIST_ROSPEC
extends AbstractTask
implements ITaskListener

Since:
1.0
Version:
1.2.0

Field Summary
static java.lang.String TASKNAME
          Define the taskname (String) constant.
 
Fields inherited from class org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.AbstractTask
EMPTY_RESULT, listenerLock, timerLock
 
Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.ITask
ABORT, ERROR, REPORT, STATE_RUNNING, STATE_STANDBY, SUCCESS, TIMEOUT
 
Constructor Summary
Task_DELETE_EXIST_ROSPEC(Task_GET_ROSPECS getRospecs, Task_DELETE_ROSPEC deleteRospec)
          Constructs an instance of this class from the specified get rospecs and delete rospec parameters.
 
Method Summary
 boolean duplicateTask(ITask task)
          Duplicate task with the specified task parameter and return the boolean result.
 int getROSpecId()
          Gets the rospec ID (int) value.
 java.lang.String getTaskName()
          Gets the task name (String) value.
 void handleResponse(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Finished with the specified source, timestamp and data parameters and return the boolean result.
 boolean isResponseExpected(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Is response expected with the specified source, timestamp and data parameters and return the boolean result.
protected  boolean isSameTaskType(ITask task)
          Is same task type with the specified task parameter and return the boolean result.
 boolean launchTask()
          Launch task and return the boolean result.
protected  void preNotifyListener(java.lang.String taskName, int status, java.lang.Object result)
          Pre notify listener with the specified task name, status and result parameters.
 void setDeleteRospec(Task_DELETE_ROSPEC deleteRospec)
          Sets the delete rospec value.
 void setGetRospecs(Task_GET_ROSPECS getRospecs)
          Sets the get rospecs value.
 void taskNotice(java.lang.String taskName, int status, java.lang.Object result)
          Task notice with the specified task name, status and result parameters.
 
Methods inherited from class org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.AbstractTask
abort, addTaskListener, getState, getTaskListeners, getTaskManager, getTaskOwner, isRemoveListenerRequired, notifyListener, removeTaskListener, removeTaskListenerNoThread, reset, setState, setTaskListeners, setTaskManager, setTaskOwner, start, start, startTimer, stopTimer, timeOutOccurred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASKNAME

public static final java.lang.String TASKNAME
Define the taskname (String) constant.

See Also:
Constant Field Values
Constructor Detail

Task_DELETE_EXIST_ROSPEC

public Task_DELETE_EXIST_ROSPEC(Task_GET_ROSPECS getRospecs,
                                Task_DELETE_ROSPEC deleteRospec)
Constructs an instance of this class from the specified get rospecs and delete rospec parameters.

Parameters:
getRospecs - The get rospecs (Task_GET_ROSPECS) parameter.
deleteRospec - The delete rospec (Task_DELETE_ROSPEC) parameter.
Method Detail

duplicateTask

public boolean duplicateTask(ITask task)
Duplicate task with the specified task parameter and return the boolean result.

Specified by:
duplicateTask in interface ITask
Parameters:
task - The task (ITask) parameter.
Returns:
Results of the duplicate task (boolean) value.
See Also:
launchTask()

getROSpecId

public int getROSpecId()
Gets the rospec ID (int) value.

Returns:
The rospec id (int) value.

getTaskName

public java.lang.String getTaskName()
Gets the task name (String) value.

Specified by:
getTaskName in interface ITask
Returns:
The task name (String) value.

handleResponse

public void handleResponse(SignalService source,
                           java.lang.Object timestamp,
                           java.lang.Object data)
Finished with the specified source, timestamp and data parameters and return the boolean result.

Specified by:
handleResponse in interface ITask
Parameters:
source - The source (SignalService) parameter.
timestamp - The timestamp (Object) parameter.
data - The data (Object) parameter.

isResponseExpected

public boolean isResponseExpected(SignalService source,
                                  java.lang.Object timestamp,
                                  java.lang.Object data)
Is response expected with the specified source, timestamp and data parameters and return the boolean result.

Specified by:
isResponseExpected in interface ITask
Overrides:
isResponseExpected in class AbstractTask
Parameters:
source - The source (SignalService) parameter.
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.
Returns:
Results of the is response expected (boolean) value.

isSameTaskType

protected boolean isSameTaskType(ITask task)
Is same task type with the specified task parameter and return the boolean result.

Parameters:
task - The task (ITask) parameter.
Returns:
Results of the is same task type (boolean) value.

launchTask

public boolean launchTask()
Launch task and return the boolean result.

Specified by:
launchTask in interface ITask
Returns:
Results of the launch task (boolean) value.
See Also:
duplicateTask(ITask)

preNotifyListener

protected void preNotifyListener(java.lang.String taskName,
                                 int status,
                                 java.lang.Object result)
Pre notify listener with the specified task name, status and result parameters.

Overrides:
preNotifyListener in class AbstractTask
Parameters:
taskName - The task name (String) parameter.
status - The status (int) parameter.
result - The result (Object) parameter.

setDeleteRospec

public void setDeleteRospec(Task_DELETE_ROSPEC deleteRospec)
Sets the delete rospec value.

Parameters:
deleteRospec - The delete rospec (Task_DELETE_ROSPEC) parameter.

setGetRospecs

public void setGetRospecs(Task_GET_ROSPECS getRospecs)
Sets the get rospecs value.

Parameters:
getRospecs - The get rospecs (Task_GET_ROSPECS) parameter.

taskNotice

public void taskNotice(java.lang.String taskName,
                       int status,
                       java.lang.Object result)
Task notice with the specified task name, status and result parameters.

Specified by:
taskNotice in interface ITaskListener
Parameters:
taskName - The task name (String) parameter.
status - The status (int) parameter.
result - The result (Object) parameter.

2010-01-26 1.2.0

Copyright (c) 2010 IBM. See license in Legal section.