2008-02-07 1.1.0

org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager
Interface ITask

All Known Implementing Classes:
AbstractLLRPTask, AbstractSimpleTask, AbstractTask, AbstractTask_ACCESS_TAG, AbstractTask_ACCESSSPEC, AbstractTask_ROSPEC, Task_ADD_ACCESSSPEC, Task_ADD_ROSPEC, Task_Array, Task_BLOCKERASE_TAG, Task_BLOCKWRITE_TAG, Task_DELETE_ACCESSSPEC, Task_DELETE_EXIST_ACCESSSPEC, Task_DELETE_EXIST_ROSPEC, Task_DELETE_ROSPEC, Task_DISABLE_ACCESSSPEC, Task_DISABLE_ROSPEC, Task_ENABLE_ACCESSSPEC, Task_ENABLE_ROSPEC, Task_GET_ACCESSSPECS, Task_GET_ROSPECS, Task_INCREMENT_WRITE, Task_KILL_TAG, Task_LOCK_TAG, Task_READ_TAG, Task_SET_READER_CONFIG, Task_START_EXIST_ROSPEC, Task_START_ROSPEC, Task_STOP_EXIST_ROSPEC, Task_STOP_ROSPEC, Task_WRITE_TAG, TaskManager

public interface ITask

Version:
1.1.0

Field Summary
static int ERROR
          Define the error (int) constant.
static int REPORT
          Define the report (int) constant.
static int SUCCESS
          Define the success (int) constant.
static int TIMEOUT
          Define the timeout (int) constant.
 
Method Summary
 void addTaskListener(ITaskListener listener)
          Add task listener with the specified listener parameter.
 boolean duplicateTask(ITask task)
          Duplicate task with the specified task parameter and return the boolean 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.
 boolean launchTask()
          Launch task and return the boolean result.
 void notifyListener(java.lang.String taskName, int status, java.lang.Object result)
          Notify listener with the specified finished and result parameters.
 void removeTaskListener(ITaskListener listener)
          Remove task listener with the specified listener parameter.
 void reset()
          Reset.
 

Field Detail

ERROR

static final int ERROR
Define the error (int) constant.

See Also:
Constant Field Values

SUCCESS

static final int SUCCESS
Define the success (int) constant.

See Also:
Constant Field Values

TIMEOUT

static final int TIMEOUT
Define the timeout (int) constant.

See Also:
Constant Field Values

REPORT

static final int REPORT
Define the report (int) constant.

See Also:
Constant Field Values
Method Detail

addTaskListener

void addTaskListener(ITaskListener listener)
Add task listener with the specified listener parameter.

Parameters:
listener - The listener (ITaskListener) parameter.
See Also:
removeTaskListener(ITaskListener)

duplicateTask

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

getTaskName

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

Returns:
The task name (String) value.

handleResponse

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.

launchTask

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

Returns:
Results of the launch task (boolean) value.
See Also:
duplicateTask(ITask)

notifyListener

void notifyListener(java.lang.String taskName,
                    int status,
                    java.lang.Object result)
Notify listener with the specified finished and result parameters.

Parameters:
taskName - The task name (String) parameter.
status - The status (int) parameter.
result - The result (Object) parameter.
See Also:
addTaskListener(ITaskListener), removeTaskListener(ITaskListener)

removeTaskListener

void removeTaskListener(ITaskListener listener)
Remove task listener with the specified listener parameter.

Parameters:
listener - The listener (ITaskListener) parameter.
See Also:
addTaskListener(ITaskListener)

reset

void reset()
Reset.


2008-02-07 1.1.0

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