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 voidaddChildConfiguration(int id, AbstractJobConfiguration childConfig)Adds the child configuration.protected AbstractJobConfigurationgetChildConfiguration(int id)Gets the child configuration.StringgetErrorMessage()Gets the error message.booleanisValid()Checks if is valid.voidsetDefaults()Sets usefull default values for the configuration object.StringtoString()-
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:IJobConfigurationGets the error message.- Specified by:
getErrorMessagein interfaceIJobConfiguration- Specified by:
getErrorMessagein 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:IJobConfigurationChecks if is valid.- Specified by:
isValidin interfaceIJobConfiguration- Overrides:
isValidin classAbstractJobConfiguration- Returns:
- true if the configuration is valid and can be executed, false otherwise
-
setDefaults
public void setDefaults()
Description copied from interface:IJobConfigurationSets usefull default values for the configuration object.- Specified by:
setDefaultsin interfaceIJobConfiguration- Specified by:
setDefaultsin 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
-
-