|
2010-01-26 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectEscObject
org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.AbstractTask
org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.TaskManager
public class TaskManager
| 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.ITaskManager |
|---|
STANDBY, STOPPED, TOPTASKRUNNING |
| Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.helper.taskmanager.ITask |
|---|
ABORT, ERROR, REPORT, STATE_RUNNING, STATE_STANDBY, SUCCESS, TIMEOUT |
| Constructor Summary | |
|---|---|
TaskManager(java.lang.String name)
Constructs an instance of this class. |
|
TaskManager(java.lang.String name,
int state)
Constructs an instance of this class from the specified state parameter. |
|
| Method Summary | |
|---|---|
void |
abort()
Abort. |
void |
addTask(ITask task)
Add task with the specified task parameter. |
void |
addTaskToBottom(ITask task,
boolean checkDup)
Add task to bottom with the specified task and check dup parameters. |
void |
addTaskToTop(ITask task,
boolean checkDup)
Add task to top with the specified task and check dup parameters. |
void |
clearTasksByOwner(java.lang.Object taskOwner)
Clear tasks by owner with the specified task owner parameter. |
boolean |
duplicateTask(ITask task)
Duplicate task with the specified task parameter and return the boolean result. |
java.lang.String |
getStrState()
Gets the str state (String) value. |
java.lang.String |
getTaskName()
Gets the task name (String) value. |
ITask |
getTopTask()
Gets the top task (ITask) value. |
void |
handleResponse(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
Handle response with the specified source, timestamp and data parameters. |
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. |
boolean |
isTaskListEmpty()
Gets the task list empty (boolean) value. |
boolean |
launchTask()
Launch task and return the boolean result. |
protected boolean |
launchTopTask()
Launch top task and return the boolean result. |
void |
removeTask(ITask task)
Remove task with the specified task parameter. |
void |
reset()
Reset. |
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 |
|---|
addTaskListener, getState, getTaskListeners, getTaskManager, getTaskOwner, isRemoveListenerRequired, notifyListener, preNotifyListener, removeTaskListener, removeTaskListenerNoThread, 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 |
|---|
addTaskListener, getTaskManager, getTaskOwner, notifyListener, removeTaskListener, setTaskManager, setTaskOwner, start, start |
| Constructor Detail |
|---|
public TaskManager(java.lang.String name)
name - The name (String) parameter.TaskManager(String,int)
public TaskManager(java.lang.String name,
int state)
name - The name (String) parameter.state - The state (int) parameter.TaskManager(String)| Method Detail |
|---|
public void abort()
abort in interface ITaskabort in class AbstractTaskpublic void addTask(ITask task)
addTask in interface ITaskManagertask - The task (ITask) parameter.duplicateTask(ITask),
getTopTask(),
launchTask(),
launchTopTask(),
removeTask(ITask)
public void addTaskToBottom(ITask task,
boolean checkDup)
task - The task (ITask) parameter.checkDup - The check dup (boolean) parameter.
public void addTaskToTop(ITask task,
boolean checkDup)
task - The task (ITask) parameter.checkDup - The check dup (boolean) parameter.public void clearTasksByOwner(java.lang.Object taskOwner)
clearTasksByOwner in interface ITaskManagertaskOwner - The task owner (Object) parameter.public boolean duplicateTask(ITask task)
duplicateTask in interface ITasktask - The task (ITask) parameter.
boolean) value.addTask(ITask),
getTopTask(),
launchTask(),
launchTopTask(),
removeTask(ITask)public java.lang.String getStrState()
String) value.public java.lang.String getTaskName()
getTaskName in interface ITaskString) value.public ITask getTopTask()
ITask) value.launchTopTask()
public void handleResponse(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
handleResponse in interface ITaskhandleResponse in interface ITaskManagersource - The source (SignalService) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.
public boolean isResponseExpected(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
isResponseExpected in interface ITaskisResponseExpected in class AbstractTasksource - The source (SignalService) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.
boolean) value.public boolean isTaskListEmpty()
boolean) value.public boolean launchTask()
launchTask in interface ITaskboolean) value.addTask(ITask),
duplicateTask(ITask),
getTopTask(),
launchTopTask(),
removeTask(ITask)protected boolean launchTopTask()
boolean) value.getTopTask()public void removeTask(ITask task)
removeTask in interface ITaskManagertask - The task (ITask) parameter.addTask(ITask),
duplicateTask(ITask),
getTopTask(),
launchTask(),
launchTopTask()public void reset()
reset in interface ITaskreset in class AbstractTask
public void taskNotice(java.lang.String taskName,
int status,
java.lang.Object result)
taskNotice in interface ITaskListenertaskName - The task name (String) parameter.status - The status (int) parameter.result - The result (Object) parameter.
|
2010-01-26 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||