2008-02-07 1.1.0

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

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.Task_GET_ROSPECS
All Implemented Interfaces:
ITask

public class Task_GET_ROSPECS
extends AbstractLLRPTask

Version:
1.1.0

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.ITask
ERROR, REPORT, SUCCESS, TIMEOUT
 
Constructor Summary
Task_GET_ROSPECS(CommandService command, java.util.Map parameters, SignalService signal)
          Constructs an instance of this class from the specified command, parameters and signal parameters.
Task_GET_ROSPECS(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 containsROSpecId(int rospecId)
          Contains rospec id with the specified rospec id parameter and return the boolean result.
 boolean duplicateTask(ITask task)
          Duplicate task with the specified task parameter and return the boolean result.
 java.util.List getROSpecs()
          Gets the rospecs (List) value.
 int getROSpecState(int rospecId)
          Get rospec state with the specified rospec id parameter and return the int result.
 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.
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.
 
Methods inherited from class org.eclipse.soda.dk.epcglobal.llrp.helper.task.AbstractLLRPTask
getCommand, getErrorCode, getErrorFields, getParameters, getSignal, matchResponse, setCommand, setParameters, setSignal, successInLLRPStatus
 
Methods inherited from class org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.AbstractTask
addTaskListener, getState, getTaskListeners, isRemoveListenerRequired, notifyListener, removeTaskListener, removeTaskListenerNoThread, reset, setState, setTaskListeners, startTimer, stopTimer, timeOutOccurred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task_GET_ROSPECS

public Task_GET_ROSPECS(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:
Task_GET_ROSPECS(CommandService,Map,SignalService,long)

Task_GET_ROSPECS

public Task_GET_ROSPECS(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:
Task_GET_ROSPECS(CommandService,Map,SignalService)
Method Detail

containsROSpecId

public boolean containsROSpecId(int rospecId)
Contains rospec id with the specified rospec id parameter and return the boolean result.

Parameters:
rospecId - The rospec id (int) parameter.
Returns:
Results of the contains rospec id (boolean) value.

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:
launchTask()

getROSpecState

public int getROSpecState(int rospecId)
Get rospec state with the specified rospec id parameter and return the int result.

Parameters:
rospecId - The rospec id (int) parameter.
Returns:
Results of the get rospec state (int) value.

getROSpecs

public java.util.List getROSpecs()
Gets the rospecs (List) value.

Returns:
The rospecs (List) value.

getTaskName

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

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.

Parameters:
source - The source (SignalService) parameter.
timestamp - The timestamp (Object) parameter.
data - The data (Object) parameter.

isSameTaskType

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

Specified by:
isSameTaskType in class AbstractLLRPTask
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
Overrides:
launchTask in class AbstractLLRPTask
Returns:
Results of the launch task (boolean) value.
See Also:
duplicateTask(ITask)

2008-02-07 1.1.0

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