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