Class AbstractComposedJobConfiguration
- java.lang.Object
-
- de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
-
- de.uka.ipd.sdq.workflow.configuration.AbstractComposedJobConfiguration
-
- All Implemented Interfaces:
IJobConfiguration
,Cloneable
public class AbstractComposedJobConfiguration extends AbstractJobConfiguration
Job configuration which is composed from several child job configurations.
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
isFixed
-
-
Constructor Summary
Constructors Constructor Description AbstractComposedJobConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addChildConfiguration(int id, AbstractJobConfiguration childConfig)
Adds the child configuration.protected AbstractJobConfiguration
getChildConfiguration(int id)
Gets the child configuration.String
getErrorMessage()
Gets the error message.boolean
isValid()
Checks if is valid.void
setDefaults()
Sets usefull default values for the configuration object.String
toString()
-
Methods inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
checkFixed, clone, isFrozen, validateAndFreeze
-
-
-
-
Method Detail
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:IJobConfiguration
Gets the error message.- Specified by:
getErrorMessage
in interfaceIJobConfiguration
- Specified by:
getErrorMessage
in classAbstractJobConfiguration
- Returns:
- An error message for the user if the configuration is not valid or null if it is valid
-
isValid
public boolean isValid()
Description copied from interface:IJobConfiguration
Checks if is valid.- Specified by:
isValid
in interfaceIJobConfiguration
- Overrides:
isValid
in classAbstractJobConfiguration
- Returns:
- true if the configuration is valid and can be executed, false otherwise
-
setDefaults
public void setDefaults()
Description copied from interface:IJobConfiguration
Sets usefull default values for the configuration object.- Specified by:
setDefaults
in interfaceIJobConfiguration
- Specified by:
setDefaults
in classAbstractJobConfiguration
-
addChildConfiguration
protected void addChildConfiguration(int id, AbstractJobConfiguration childConfig)
Adds the child configuration.- Parameters:
id
- the idchildConfig
- the child config
-
getChildConfiguration
protected AbstractJobConfiguration getChildConfiguration(int id)
Gets the child configuration.- Parameters:
id
- the id- Returns:
- the child configuration
-
-