Class ProMTask
- java.lang.Object
-
- org.processmining.contexts.uitopia.model.ProMTask
-
- All Implemented Interfaces:
java.util.EventListener
,org.deckfour.uitopia.api.model.Task<ProMPOResource>
,org.processmining.framework.plugin.events.Logger
,org.processmining.framework.plugin.events.PluginLifeCycleEventListener
,org.processmining.framework.plugin.events.ProgressEventListener
public class ProMTask extends java.lang.Object implements org.deckfour.uitopia.api.model.Task<ProMPOResource>, org.processmining.framework.plugin.events.ProgressEventListener, org.processmining.framework.plugin.events.Logger, org.processmining.framework.plugin.events.PluginLifeCycleEventListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.processmining.framework.plugin.events.Logger
org.processmining.framework.plugin.events.Logger.ListenerList, org.processmining.framework.plugin.events.Logger.MessageLevel
-
-
Constructor Summary
Constructors Constructor Description ProMTask(UIContext context, ProMAction action, java.util.List<java.util.Collection<ProMPOResource>> parameterValues, UIPluginContext pluginContext, org.deckfour.uitopia.api.event.TaskListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeProgress(int progress)
void
changeProgressBounds(int lowBo, int upBo)
void
changeProgressCaption(java.lang.String newCaption)
void
changeProgressIndeterminate(boolean indeterminate)
void
destroy()
ProMAction
getAction()
java.util.List<java.util.Collection<ProMPOResource>>
getParameterValues()
double
getProgress()
java.util.List<org.processmining.framework.providedobjects.ProvidedObjectID>
getProvidedObjectIds()
void
log(java.lang.String message, org.processmining.framework.plugin.PluginContextID contextID, org.processmining.framework.plugin.events.Logger.MessageLevel messageLevel)
void
log(java.lang.Throwable t, org.processmining.framework.plugin.PluginContextID contextID)
void
pluginCancelled(org.processmining.framework.plugin.PluginContext context)
This method is invoked on a context, if it is cancelledvoid
pluginCompleted(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it is completedvoid
pluginCreated(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a parent context, if a child context of that parent is created.void
pluginDeleted(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it's deleted from its parentvoid
pluginFutureCreated(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it's future was set.void
pluginResumed(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it is resumedvoid
pluginStarted(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it is startedvoid
pluginSuspended(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it is suspendedvoid
pluginTerminatedWithError(org.processmining.framework.plugin.PluginContext pluginContext, java.lang.Throwable t)
This method is invoked on a context, if it throws an exceptionorg.deckfour.uitopia.api.event.TaskListener.InteractionResult
showConfiguration(java.lang.String title, javax.swing.JComponent configuration)
org.deckfour.uitopia.api.event.TaskListener.InteractionResult
showWizard(java.lang.String title, boolean first, boolean last, javax.swing.JComponent configuration)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ProMTask
public ProMTask(UIContext context, ProMAction action, java.util.List<java.util.Collection<ProMPOResource>> parameterValues, UIPluginContext pluginContext, org.deckfour.uitopia.api.event.TaskListener listener)
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceorg.deckfour.uitopia.api.model.Task<ProMPOResource>
-
getAction
public ProMAction getAction()
- Specified by:
getAction
in interfaceorg.deckfour.uitopia.api.model.Task<ProMPOResource>
-
getProgress
public double getProgress()
- Specified by:
getProgress
in interfaceorg.deckfour.uitopia.api.model.Task<ProMPOResource>
-
showConfiguration
public org.deckfour.uitopia.api.event.TaskListener.InteractionResult showConfiguration(java.lang.String title, javax.swing.JComponent configuration)
-
showWizard
public org.deckfour.uitopia.api.event.TaskListener.InteractionResult showWizard(java.lang.String title, boolean first, boolean last, javax.swing.JComponent configuration)
-
getParameterValues
public java.util.List<java.util.Collection<ProMPOResource>> getParameterValues()
- Specified by:
getParameterValues
in interfaceorg.deckfour.uitopia.api.model.Task<ProMPOResource>
-
changeProgress
public void changeProgress(int progress)
- Specified by:
changeProgress
in interfaceorg.processmining.framework.plugin.events.ProgressEventListener
-
changeProgressBounds
public void changeProgressBounds(int lowBo, int upBo)
- Specified by:
changeProgressBounds
in interfaceorg.processmining.framework.plugin.events.ProgressEventListener
-
changeProgressCaption
public void changeProgressCaption(java.lang.String newCaption)
- Specified by:
changeProgressCaption
in interfaceorg.processmining.framework.plugin.events.ProgressEventListener
-
changeProgressIndeterminate
public void changeProgressIndeterminate(boolean indeterminate)
- Specified by:
changeProgressIndeterminate
in interfaceorg.processmining.framework.plugin.events.ProgressEventListener
-
log
public void log(java.lang.String message, org.processmining.framework.plugin.PluginContextID contextID, org.processmining.framework.plugin.events.Logger.MessageLevel messageLevel)
- Specified by:
log
in interfaceorg.processmining.framework.plugin.events.Logger
-
log
public void log(java.lang.Throwable t, org.processmining.framework.plugin.PluginContextID contextID)
- Specified by:
log
in interfaceorg.processmining.framework.plugin.events.Logger
-
pluginCancelled
public void pluginCancelled(org.processmining.framework.plugin.PluginContext context)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a context, if it is cancelled- Specified by:
pluginCancelled
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
context
- the context
-
pluginCompleted
public void pluginCompleted(org.processmining.framework.plugin.PluginContext pluginContext)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a context, if it is completed- Specified by:
pluginCompleted
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
pluginContext
- the context
-
pluginCreated
public void pluginCreated(org.processmining.framework.plugin.PluginContext pluginContext)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a parent context, if a child context of that parent is created.- Specified by:
pluginCreated
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
pluginContext
- the new Child context
-
pluginDeleted
public void pluginDeleted(org.processmining.framework.plugin.PluginContext pluginContext)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a context, if it's deleted from its parent- Specified by:
pluginDeleted
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
pluginContext
- the context
-
pluginFutureCreated
public void pluginFutureCreated(org.processmining.framework.plugin.PluginContext pluginContext)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a context, if it's future was set.- Specified by:
pluginFutureCreated
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
pluginContext
- the context
-
pluginResumed
public void pluginResumed(org.processmining.framework.plugin.PluginContext pluginContext)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a context, if it is resumed- Specified by:
pluginResumed
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
pluginContext
- the context
-
pluginStarted
public void pluginStarted(org.processmining.framework.plugin.PluginContext pluginContext)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a context, if it is started- Specified by:
pluginStarted
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
pluginContext
- the context
-
pluginSuspended
public void pluginSuspended(org.processmining.framework.plugin.PluginContext pluginContext)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a context, if it is suspended- Specified by:
pluginSuspended
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
pluginContext
- the context
-
pluginTerminatedWithError
public void pluginTerminatedWithError(org.processmining.framework.plugin.PluginContext pluginContext, java.lang.Throwable t)
Description copied from interface:org.processmining.framework.plugin.events.PluginLifeCycleEventListener
This method is invoked on a context, if it throws an exception- Specified by:
pluginTerminatedWithError
in interfaceorg.processmining.framework.plugin.events.PluginLifeCycleEventListener
- Parameters:
pluginContext
- the context
-
getProvidedObjectIds
public java.util.List<org.processmining.framework.providedobjects.ProvidedObjectID> getProvidedObjectIds()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-