|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jason.core.AbstractService
|
+--jason.core.ThreadableService
|
+--jason.core.service.TaskService
Created Thu May 16 10:01:57 2002
This service has a role for storing a task and process it when possible. This is a kind of queue then get task that service can't handle because they have no ressource for that (like without a thread)
| Field Summary | |
static ServiceType |
TYPE
|
| Fields inherited from class jason.core.ThreadableService |
activeThread |
| Fields inherited from class jason.core.AbstractService |
INITIALIZED, name, NOSTATE, serviceContext, STARTED, STOPPED |
| Fields inherited from interface jason.core.Service |
ERROR_MESSAGE, INFORMATION_MESSAGE, VERBOSE_MESSAGE, WARNING_MESSAGE |
| Constructor Summary | |
TaskService()
|
|
| Method Summary | |
protected void |
actionForStart()
We override it not to take into account the initial running |
protected void |
addTaskInQueue(Task task)
Store the user task |
ServiceResponse |
manageRequest(ServiceRequest request)
Manage all Task object. |
protected void |
run()
User should override this method for running a task. |
| Methods inherited from class jason.core.ThreadableService |
enableServiceForThread, getThreadLoopDelay, isThreadLoopMode, isThreadStarted, isWaiting, notifyThreadRunning, runThread, setPriority, setThreadLoopDelay, setThreadLoopMode, threadNotify, threadWait |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static ServiceType TYPE
| Constructor Detail |
public TaskService()
| Method Detail |
public ServiceResponse manageRequest(ServiceRequest request)
throws ServiceException
Task object. If the request doesn't contain this
object type, an exception ServiceException is thrown
manageRequest in interface ServicemanageRequest in class AbstractServicerequest - user request with a Task type object
- Returns:
- the request's response
- Throws:
ServiceException - for bad request typeprotected void addTaskInQueue(Task task)
protected void actionForStart()
actionForStart in class ThreadableServiceprotected void run()
AbstractServicesetThreadLoopMode method
run in class AbstractService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||