public class DefaultTaskEventManager extends Object implements TaskEventManager
Constructor and Description |
---|
DefaultTaskEventManager()
This constructor creates this object but it doesn't register
the task
|
DefaultTaskEventManager(Object process)
This constructor creates the task and register this
in the repository
|
Modifier and Type | Method and Description |
---|---|
static TaskEventManager |
get()
Obtiene un proceso a partir de su identificador
|
EventObject |
getEvent()
Obtiene el evento
|
RasterTask |
getTask() |
void |
manageEvent(EventObject ev)
Gestión de las señales.
|
void |
removeTask()
Removes this task from the repository
|
void |
setEvent(EventObject ev)
Sets a event.
|
void |
setTask(RasterTask task)
Assigns a task without register.
|
public DefaultTaskEventManager()
process
- public DefaultTaskEventManager(Object process)
process
- public void removeTask()
TaskEventManager
removeTask
in interface TaskEventManager
public void setEvent(EventObject ev)
TaskEventManager
setEvent
in interface TaskEventManager
ev
- EventObjectpublic void setTask(RasterTask task)
task
- public RasterTask getTask()
public EventObject getEvent()
TaskEventManager
getEvent
in interface TaskEventManager
public void manageEvent(EventObject ev) throws ProcessInterruptedException
manageEvent
in interface TaskEventManager
ev
- Evento a gestionarProcessInterruptedException
public static TaskEventManager get()
id
- Identificador del proceso