2010-01-26 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.helper.task
Class AbstractTask_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.AbstractLLRPTask
              extended by org.eclipse.soda.dk.epcglobal.llrp.helper.task.AbstractSimpleTask
                  extended by org.eclipse.soda.dk.epcglobal.llrp.helper.task.AbstractTask_ROSPEC
All Implemented Interfaces:
ITask
Direct Known Subclasses:
Task_ADD_ROSPEC, Task_DELETE_ROSPEC, Task_DISABLE_ROSPEC, Task_ENABLE_ROSPEC, Task_START_ROSPEC, Task_STOP_ROSPEC

public abstract class AbstractTask_ROSPEC
extends AbstractSimpleTask

Since:
1.0
Version:
1.2.0

Field Summary
 
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
protected AbstractTask_ROSPEC(CommandService command, java.util.Map parameters, SignalService signal)
          Constructs an instance of this class from the specified command, parameters and signal parameters.
protected AbstractTask_ROSPEC(CommandService command, java.util.Map parameters, SignalService signal, long timeout)
          Constructs an instance of this class from the specified command, parameters, signal and timeout 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.
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.
 
Methods inherited from class org.eclipse.soda.dk.epcglobal.llrp.helper.task.AbstractSimpleTask
handleResponse
 
Methods inherited from class org.eclipse.soda.dk.epcglobal.llrp.helper.task.AbstractLLRPTask
getCommand, getErrorCode, getErrorFields, getParameters, getSignal, isResponseExpected, isSameTaskType, launchTask, matchResponse, setCommand, setParameters, setSignal, successInLLRPStatus
 
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
 
Methods inherited from interface org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.ITask
getTaskName
 

Constructor Detail

AbstractTask_ROSPEC

protected AbstractTask_ROSPEC(CommandService command,
                              java.util.Map parameters,
                              SignalService signal)
Constructs an instance of this class from the specified command, parameters and signal parameters.

Parameters:
command - The command (CommandService) parameter.
parameters - The parameters (Map) parameter.
signal - The signal (SignalService) parameter.
See Also:
AbstractTask_ROSPEC(CommandService,Map,SignalService,long)

AbstractTask_ROSPEC

protected AbstractTask_ROSPEC(CommandService command,
                              java.util.Map parameters,
                              SignalService signal,
                              long timeout)
Constructs an instance of this class from the specified command, parameters, signal and timeout parameters.

Parameters:
command - The command (CommandService) parameter.
parameters - The parameters (Map) parameter.
signal - The signal (SignalService) parameter.
timeout - The timeout (long) parameter.
See Also:
AbstractTask_ROSPEC(CommandService,Map,SignalService)
Method Detail

duplicateTask

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

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

getROSpecId

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

Returns:
The rospec id (int) value.

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.

2010-01-26 1.2.0

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