Class AbstractComposedJobConfiguration
java.lang.Object
de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
de.uka.ipd.sdq.workflow.configuration.AbstractComposedJobConfiguration
- All Implemented Interfaces:
IJobConfiguration
,Cloneable
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addChildConfiguration
(int id, AbstractJobConfiguration childConfig) Adds the child configuration.protected AbstractJobConfiguration
getChildConfiguration
(int id) Gets the child configuration.Gets the error message.boolean
isValid()
Checks if is valid.void
Sets usefull default values for the configuration object.toString()
Methods inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
checkFixed, clone, isFrozen, validateAndFreeze
-
Constructor Details
-
AbstractComposedJobConfiguration
public AbstractComposedJobConfiguration()
-
-
Method Details
-
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
-
toString
-
addChildConfiguration
Adds the child configuration.- Parameters:
id
- the idchildConfig
- the child config
-
getChildConfiguration
Gets the child configuration.- Parameters:
id
- the id- Returns:
- the child configuration
-