Package org.somox.configuration
Class SoMoXConfiguration
java.lang.Object
de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
de.uka.ipd.sdq.workflow.configuration.AbstractComposedJobConfiguration
org.somox.configuration.AbstractMoxConfiguration
org.somox.configuration.SoMoXConfiguration
- All Implemented Interfaces:
de.uka.ipd.sdq.workflow.configuration.IJobConfiguration,Cloneable
SoMoX’ central configuration.
attribute map
This configuration has a bijective representation as an attribute map. This is aMap<String, Object> containing the class’ attribute key
constants as keys and the configuration’s attributes as values. The value’s type is the same as
the corresponding setter’s return type. A value of null is interpreted as “not defined”
just like if the map did not contain the key in question.
For a mapping of attribute constants to getters and setters, see their documentation. An
attribute map can be obtained by toMap() and be converted into a
SoMoXConfiguration by SoMoXConfiguration(Map).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringattribute key forgetAdditionalWildcards()/setAdditionalWildcards(String)static final Stringattribute key forgetWildcardKey()/setWildcardKey(String)static final Stringattribute key forgetExcludedPrefixesForNameResemblance()/setExcludedPrefixesForNameResemblance(String)static final Stringattribute key forgetExcludedSuffixesForNameResemblance()/setExcludedSuffixesForNameResemblance(String)static final Stringattribute key forgetClusteringConfig().static final Stringattribute key forgetClusteringConfig().static final Stringattribute key forgetClusteringConfig().static final Stringattribute key forgetClusteringConfig().static final Stringattribute key forgetClusteringConfig().static final Stringattribute key forgetClusteringConfig().static final Stringattribute key forgetWeightDirectoryMapping()/setWeightDirectoryMapping(double)static final Stringattribute key forgetWeightDMS()/setWeightDMS(double)static final Stringattribute key forgetWeightHighCoupling()/setWeightHighCoupling(double)static final Stringattribute key forgetWeightHighNameResemblance()/setWeightHighNameResemblance(double)static final Stringattribute key forgetWeightHighSLAQ()/setWeightHighSLAQ(double)static final Stringattribute key forgetWeightHighestNameResemblance()/setWeightHighestNameResemblance(double)static final Stringattribute key forgetWeightInterfaceViolationIrrelevant()/setWeightInterfaceViolationIrrelevant(double)static final Stringattribute key forgetWeightInterfaceViolationRelevant()/setWeightInterfaceViolationRelevant(double)static final Stringattribute key forgetWeightLowCoupling()/setWeightLowCoupling(double)static final Stringattribute key forgetWeightLowNameResemblance()/setWeightLowNameResemblance(double)static final Stringattribute key forgetWeightLowSLAQ()/setWeightLowSLAQ(double)static final Stringattribute key forgetWeightMidNameResemblance()/setWeightMidNameResemblance(double)static final Stringattribute key forgetWeightPackageMapping()/setWeightPackageMapping(double)static final StringFields inherited from class org.somox.configuration.AbstractMoxConfiguration
SOMOX_ANALYZER_INPUT_FILE, SOMOX_ANALYZER_REVERSE_ENGINEER_INTERFACES_NOT_ASSIGNED_TO_INTERFACES, SOMOX_ANALYZER_REVERSE_ENGINEER_INTERNAL_METHODS_AS_RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR, SOMOX_OUTPUT_FOLDER, SOMOX_PROJECT_NAMEFields inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
isFixed -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SoMoX configuration initialized with default values.SoMoXConfiguration(Map<String, Object> attributeMap) Creates a new SoMoX configuration initialized with theattributeMap’s values. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAttributeMap(Map<String, Object> attributeMap) Sets the attributes specified in theattributeMapon this configuration.Create a new list of blacklist specificationsBaseFilter<org.emftext.language.java.classifiers.ConcreteClassifier>doubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoubledoublevoidsetAdditionalWildcards(String additionalWildcards) voidsetExcludedPrefixesForNameResemblance(String excludedPrefixesForNameResemblance) voidsetExcludedSuffixesForNameResemblance(String excludedSuffixesForNameResemblance) voidsetWeightDirectoryMapping(double weightDirectoryMapping) voidsetWeightDMS(double weightDMS) voidsetWeightHighCoupling(double weightHighCoupling) voidsetWeightHighestNameResemblance(double weightHighestNameResemblance) voidsetWeightHighNameResemblance(double weightHighNameResemblance) voidsetWeightHighSLAQ(double weightHighSLAQ) voidsetWeightInterfaceViolationIrrelevant(double weightInterfaceViolationIrrelevant) voidsetWeightInterfaceViolationRelevant(double weightInterfaceViolationRelevant) voidsetWeightLowCoupling(double weightLowCoupling) voidsetWeightLowNameResemblance(double weightLowNameResemblance) voidsetWeightLowSLAQ(double weightLowSLAQ) voidsetWeightMidNameResemblance(double weightMidNameResemblance) voidsetWeightPackageMapping(double weightPackageMapping) voidsetWildcardKey(String wildcardKey) toMap()Converts this configuration into an attribute map.Methods inherited from class org.somox.configuration.AbstractMoxConfiguration
getFileLocations, isReverseEngineerInterfacesNotAssignedToComponent, isReverseEngineerInternalMethodsAsResourceDemandingInternalBehaviour, setReverseEngineerInterfacesNotAssignedToComponent, setReverseEngineerInternalMethodsAsResourceDemandingInternalBehaviourMethods inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractComposedJobConfiguration
addChildConfiguration, getChildConfiguration, isValid, setDefaults, toStringMethods inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
checkFixed, clone, isFrozen, validateAndFreezeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.uka.ipd.sdq.workflow.configuration.IJobConfiguration
isValid, setDefaults
-
Field Details
-
BLACKLIST_CONFIGURATION_WILDCARDS_ADDITIONAL
attribute key forgetAdditionalWildcards()/setAdditionalWildcards(String)- See Also:
-
SOMOX_ANALYZER_WILDCARD_KEY
attribute key forgetWildcardKey()/setWildcardKey(String)- See Also:
-
SOMOX_EXCLUDED_PREFIXES
attribute key forgetExcludedPrefixesForNameResemblance()/setExcludedPrefixesForNameResemblance(String)- See Also:
-
SOMOX_EXCLUDED_SUFFIXES
attribute key forgetExcludedSuffixesForNameResemblance()/setExcludedSuffixesForNameResemblance(String)- See Also:
-
SOMOX_WEIGHT_CLUSTERING_THRESHOLD_DECREMENT_COMPOSE
attribute key forgetClusteringConfig().getClusteringComposeThresholdDecrement()/getClusteringConfig().setClusteringComposeThresholdDecrement(double)- See Also:
-
SOMOX_WEIGHT_CLUSTERING_THRESHOLD_DECREMENT_MERGE
attribute key forgetClusteringConfig().getClusteringMergeThresholdDecrement()/getClusteringConfig().setClusteringMergeThresholdDecrement(double)- See Also:
-
SOMOX_WEIGHT_CLUSTERING_THRESHOLD_MAX_COMPOSE
attribute key forgetClusteringConfig().getMaxComposeClusteringThreshold()/getClusteringConfig().setMaxComposeClusteringThreshold(double)- See Also:
-
SOMOX_WEIGHT_CLUSTERING_THRESHOLD_MAX_MERGE
attribute key forgetClusteringConfig().getMaxMergeClusteringThreshold()/getClusteringConfig().setMaxMergeClusteringThreshold(double)- See Also:
-
SOMOX_WEIGHT_CLUSTERING_THRESHOLD_MIN_COMPOSE
attribute key forgetClusteringConfig().getMinComposeClusteringThreshold()/getClusteringConfig().setMinComposeClusteringThreshold(double)- See Also:
-
SOMOX_WEIGHT_CLUSTERING_THRESHOLD_MIN_MERGE
attribute key forgetClusteringConfig().getMinMergeClusteringThreshold()/getClusteringConfig().setMinMergeClusteringThreshold(double)- See Also:
-
SOMOX_WEIGHT_DIRECTORY_MAPPING
attribute key forgetWeightDirectoryMapping()/setWeightDirectoryMapping(double)- See Also:
-
SOMOX_WEIGHT_DMS
attribute key forgetWeightDMS()/setWeightDMS(double)- See Also:
-
SOMOX_WEIGHT_HIGH_COUPLING
attribute key forgetWeightHighCoupling()/setWeightHighCoupling(double)- See Also:
-
SOMOX_WEIGHT_HIGH_NAME_RESEMBLANCE
attribute key forgetWeightHighNameResemblance()/setWeightHighNameResemblance(double)- See Also:
-
SOMOX_WEIGHT_HIGH_SLAQ
attribute key forgetWeightHighSLAQ()/setWeightHighSLAQ(double)- See Also:
-
SOMOX_WEIGHT_HIGHEST_NAME_RESEMBLANCE
attribute key forgetWeightHighestNameResemblance()/setWeightHighestNameResemblance(double)- See Also:
-
SOMOX_WEIGHT_INTERFACE_VIOLATION_IRRELEVANT
attribute key forgetWeightInterfaceViolationIrrelevant()/setWeightInterfaceViolationIrrelevant(double)- See Also:
-
SOMOX_WEIGHT_INTERFACE_VIOLATION_RELEVANT
attribute key forgetWeightInterfaceViolationRelevant()/setWeightInterfaceViolationRelevant(double)- See Also:
-
SOMOX_WEIGHT_LOW_COUPLING
attribute key forgetWeightLowCoupling()/setWeightLowCoupling(double)- See Also:
-
SOMOX_WEIGHT_LOW_NAME_RESEMBLANCE
attribute key forgetWeightLowNameResemblance()/setWeightLowNameResemblance(double)- See Also:
-
SOMOX_WEIGHT_LOW_SLAQ
attribute key forgetWeightLowSLAQ()/setWeightLowSLAQ(double)- See Also:
-
SOMOX_WEIGHT_MID_NAME_RESEMBLANCE
attribute key forgetWeightMidNameResemblance()/setWeightMidNameResemblance(double)- See Also:
-
SOMOX_WEIGHT_PACKAGE_MAPPING
attribute key forgetWeightPackageMapping()/setWeightPackageMapping(double)- See Also:
-
SOMOX_WILDCARD_DELIMITER
- See Also:
-
-
Constructor Details
-
SoMoXConfiguration
public SoMoXConfiguration()Creates a new SoMoX configuration initialized with default values. -
SoMoXConfiguration
Creates a new SoMoX configuration initialized with theattributeMap’s values. Attributes not defined in the map will be set to their default values.- Parameters:
attributeMap- An attribute map, as defined in the class description. It does not need to contain all attributes.
-
-
Method Details
-
applyAttributeMap
Sets the attributes specified in theattributeMapon this configuration. Attributes not specified in the map will be left untouched.- Overrides:
applyAttributeMapin classAbstractMoxConfiguration- Parameters:
attributeMap- An attribute map, as defined in the class description. It does not need to contain all attributes.
-
getAdditionalWildcards
-
getBlacklist
Create a new list of blacklist specifications- Returns:
- A set of blacklist entries
-
getClassifierFilter
- Returns:
- The filter to use when deciding which concrete classifiers to take into account. Includes the filters configured through
setAdditionalWildcards(String).
-
getClusteringConfig
- Returns:
- the clusteringConfig
-
getErrorMessage
- Specified by:
getErrorMessagein interfacede.uka.ipd.sdq.workflow.configuration.IJobConfiguration- Overrides:
getErrorMessagein classde.uka.ipd.sdq.workflow.configuration.AbstractComposedJobConfiguration
-
getExcludedPrefixesForNameResemblance
-
getExcludedSuffixesForNameResemblance
-
getWeightDirectoryMapping
public double getWeightDirectoryMapping() -
getWeightDMS
public double getWeightDMS() -
getWeightHighCoupling
public double getWeightHighCoupling() -
getWeightHighestNameResemblance
public double getWeightHighestNameResemblance() -
getWeightHighNameResemblance
public double getWeightHighNameResemblance() -
getWeightHighSLAQ
public double getWeightHighSLAQ() -
getWeightInterfaceViolationIrrelevant
public double getWeightInterfaceViolationIrrelevant() -
getWeightInterfaceViolationRelevant
public double getWeightInterfaceViolationRelevant() -
getWeightLowCoupling
public double getWeightLowCoupling() -
getWeightLowNameResemblance
public double getWeightLowNameResemblance() -
getWeightLowSLAQ
public double getWeightLowSLAQ() -
getWeightMidNameResemblance
public double getWeightMidNameResemblance() -
getWeightPackageMapping
public double getWeightPackageMapping() -
getWildcardKey
-
setAdditionalWildcards
-
setExcludedPrefixesForNameResemblance
-
setExcludedSuffixesForNameResemblance
-
setWeightDirectoryMapping
public void setWeightDirectoryMapping(double weightDirectoryMapping) -
setWeightDMS
public void setWeightDMS(double weightDMS) -
setWeightHighCoupling
public void setWeightHighCoupling(double weightHighCoupling) -
setWeightHighestNameResemblance
public void setWeightHighestNameResemblance(double weightHighestNameResemblance) -
setWeightHighNameResemblance
public void setWeightHighNameResemblance(double weightHighNameResemblance) -
setWeightHighSLAQ
public void setWeightHighSLAQ(double weightHighSLAQ) -
setWeightInterfaceViolationIrrelevant
public void setWeightInterfaceViolationIrrelevant(double weightInterfaceViolationIrrelevant) -
setWeightInterfaceViolationRelevant
public void setWeightInterfaceViolationRelevant(double weightInterfaceViolationRelevant) -
setWeightLowCoupling
public void setWeightLowCoupling(double weightLowCoupling) -
setWeightLowNameResemblance
public void setWeightLowNameResemblance(double weightLowNameResemblance) -
setWeightLowSLAQ
public void setWeightLowSLAQ(double weightLowSLAQ) -
setWeightMidNameResemblance
public void setWeightMidNameResemblance(double weightMidNameResemblance) -
setWeightPackageMapping
public void setWeightPackageMapping(double weightPackageMapping) -
setWildcardKey
-
toMap
Converts this configuration into an attribute map.- Overrides:
toMapin classAbstractMoxConfiguration- Returns:
- an attribute map, such that for any
SoMoXConfiguration c,new SoMoXConfiguration(c.toMap())will behave exactly likec.
-