2009-10-01 1.2.0

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

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

public class Task_GET_GPIConfig
extends AbstractLLRPTask

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_GET_GPIConfig(CommandService command, java.util.Map parameters, SignalService signal)
          Constructs an instance of this class from the specified command, parameters and signal parameters.
Task_GET_GPIConfig(CommandService command, java.util.Map parameters, SignalService signal, long timeoutValue)
          Constructs an instance of this class from the specified command, parameters, signal and timeout value parameters.
 
Method Summary
 boolean duplicateTask(ITask task)
          Duplicate task with the specified task parameter and return the boolean result.
 int getCount()
          Gets the count (int) value.
 java.util.List getStates()
          Gets the states (List) value.
 java.lang.String getTaskName()
          Gets the task name (String) value.
 void handleResponse(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Handle response with the specified source, timestamp and data parameters.
protected  boolean isSameTaskType(ITask task)
          Is same task type with the specified task parameter and return the boolean result.
 
Methods inherited from class org.eclipse.soda.dk.epcglobal.llrp.helper.task.AbstractLLRPTask
getCommand, getErrorCode, getErrorFields, getParameters, getSignal, isResponseExpected, 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, preNotifyListener, 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_GET_GPIConfig

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

Task_GET_GPIConfig

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

Parameters:
command - The command (CommandService) parameter.
parameters - The parameters (Map) parameter.
signal - The signal (SignalService) parameter.
timeoutValue - The timeout value (long) parameter.
See Also:
Task_GET_GPIConfig(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()

getCount

public int getCount()
Gets the count (int) value.

Returns:
The count (int) value.

getStates

public java.util.List getStates()
Gets the states (List) value.

Returns:
The states (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)
Handle response with the specified source, timestamp and data parameters.

Parameters:
source - The source (SignalService) parameter.
timestamp - The time stamp (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.

2009-10-01 1.2.0

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