Class AbstractWorkflowBasedRunConfiguration
- java.lang.Object
-
- de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
-
- de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedRunConfiguration
-
- All Implemented Interfaces:
IJobConfiguration
,Cloneable
public abstract class AbstractWorkflowBasedRunConfiguration extends AbstractJobConfiguration implements IJobConfiguration, Cloneable
An adapted job configuration with specifics for the Eclipse IDE - run mode (run or debug) - interactice - clonable Base class for all configurations used to configure an Eclipse basedWorkflow
(or launch). which internally executes a sequence of jobs (compile, M2M Transforms, simulations, etc.)
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isDebug
The is debug.protected boolean
isInteractive
The is interactive.-
Fields inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
isFixed
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowBasedRunConfiguration()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
clone()
boolean
isDebug()
Is debug determines whether the run is executed as debug run.boolean
isInteractive()
Returns whether the workflow engine runs in interactive mode.void
setDebug(boolean isDebug)
Set the isDebug property.void
setInteractive(boolean isInteractive)
Return whether the workflow runs in interactive mode, i.e., whether user interaction is possible.-
Methods inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
checkFixed, getErrorMessage, isFrozen, isValid, setDefaults, validateAndFreeze
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uka.ipd.sdq.workflow.configuration.IJobConfiguration
getErrorMessage, isValid, setDefaults
-
-
-
-
Method Detail
-
isInteractive
public boolean isInteractive()
Returns whether the workflow engine runs in interactive mode. In non-interactive mode it throws an exception upon failing its task. In interactive mode it displays an error message to the user and logs the failure in the OSGi log. Non-interactive mode is useful for batch execution and unit testing. It is the default.- Returns:
- Whether the workflow engine runs in interactive (UI-based) mode
-
setInteractive
public void setInteractive(boolean isInteractive)
Return whether the workflow runs in interactive mode, i.e., whether user interaction is possible.- Parameters:
isInteractive
- Whether the workflow runs in interactive mode
-
isDebug
public boolean isDebug()
Is debug determines whether the run is executed as debug run. In debug mode, the run can be interrupted to inspect the state of the run. Debug mode can have an impact on all steps executed in a workflow.- Returns:
- Whether the workflow runs in debug mode
-
setDebug
public void setDebug(boolean isDebug)
Set the isDebug property. Can only be called as long as the configuration is not validated and frozen.- Parameters:
isDebug
- Whether debug is enabled or not
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classAbstractJobConfiguration
- Throws:
CloneNotSupportedException
-
-