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
Modifier and TypeFieldDescriptionstatic final String
attribute key forgetAdditionalWildcards()
/setAdditionalWildcards(String)
static final String
attribute key forgetWildcardKey()
/setWildcardKey(String)
static final String
attribute key forgetExcludedPrefixesForNameResemblance()
/setExcludedPrefixesForNameResemblance(String)
static final String
attribute key forgetExcludedSuffixesForNameResemblance()
/setExcludedSuffixesForNameResemblance(String)
static final String
attribute key forgetClusteringConfig()
.static final String
attribute key forgetClusteringConfig()
.static final String
attribute key forgetClusteringConfig()
.static final String
attribute key forgetClusteringConfig()
.static final String
attribute key forgetClusteringConfig()
.static final String
attribute key forgetClusteringConfig()
.static final String
attribute key forgetWeightDirectoryMapping()
/setWeightDirectoryMapping(double)
static final String
attribute key forgetWeightDMS()
/setWeightDMS(double)
static final String
attribute key forgetWeightHighCoupling()
/setWeightHighCoupling(double)
static final String
attribute key forgetWeightHighNameResemblance()
/setWeightHighNameResemblance(double)
static final String
attribute key forgetWeightHighSLAQ()
/setWeightHighSLAQ(double)
static final String
attribute key forgetWeightHighestNameResemblance()
/setWeightHighestNameResemblance(double)
static final String
attribute key forgetWeightInterfaceViolationIrrelevant()
/setWeightInterfaceViolationIrrelevant(double)
static final String
attribute key forgetWeightInterfaceViolationRelevant()
/setWeightInterfaceViolationRelevant(double)
static final String
attribute key forgetWeightLowCoupling()
/setWeightLowCoupling(double)
static final String
attribute key forgetWeightLowNameResemblance()
/setWeightLowNameResemblance(double)
static final String
attribute key forgetWeightLowSLAQ()
/setWeightLowSLAQ(double)
static final String
attribute key forgetWeightMidNameResemblance()
/setWeightMidNameResemblance(double)
static final String
attribute key forgetWeightPackageMapping()
/setWeightPackageMapping(double)
static final String
Fields 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_NAME
Fields inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
isFixed
-
Constructor Summary
ConstructorDescriptionCreates 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 TypeMethodDescriptionvoid
applyAttributeMap
(Map<String, Object> attributeMap) Sets the attributes specified in theattributeMap
on this configuration.Create a new list of blacklist specificationsBaseFilter<org.emftext.language.java.classifiers.ConcreteClassifier>
double
double
double
double
double
double
double
double
double
double
double
double
double
void
setAdditionalWildcards
(String additionalWildcards) void
setExcludedPrefixesForNameResemblance
(String excludedPrefixesForNameResemblance) void
setExcludedSuffixesForNameResemblance
(String excludedSuffixesForNameResemblance) void
setWeightDirectoryMapping
(double weightDirectoryMapping) void
setWeightDMS
(double weightDMS) void
setWeightHighCoupling
(double weightHighCoupling) void
setWeightHighestNameResemblance
(double weightHighestNameResemblance) void
setWeightHighNameResemblance
(double weightHighNameResemblance) void
setWeightHighSLAQ
(double weightHighSLAQ) void
setWeightInterfaceViolationIrrelevant
(double weightInterfaceViolationIrrelevant) void
setWeightInterfaceViolationRelevant
(double weightInterfaceViolationRelevant) void
setWeightLowCoupling
(double weightLowCoupling) void
setWeightLowNameResemblance
(double weightLowNameResemblance) void
setWeightLowSLAQ
(double weightLowSLAQ) void
setWeightMidNameResemblance
(double weightMidNameResemblance) void
setWeightPackageMapping
(double weightPackageMapping) void
setWildcardKey
(String wildcardKey) toMap()
Converts this configuration into an attribute map.Methods inherited from class org.somox.configuration.AbstractMoxConfiguration
getFileLocations, isReverseEngineerInterfacesNotAssignedToComponent, isReverseEngineerInternalMethodsAsResourceDemandingInternalBehaviour, setReverseEngineerInterfacesNotAssignedToComponent, setReverseEngineerInternalMethodsAsResourceDemandingInternalBehaviour
Methods inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractComposedJobConfiguration
addChildConfiguration, getChildConfiguration, isValid, setDefaults, toString
Methods inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
checkFixed, clone, isFrozen, validateAndFreeze
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 theattributeMap
on this configuration. Attributes not specified in the map will be left untouched.- Overrides:
applyAttributeMap
in 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:
getErrorMessage
in interfacede.uka.ipd.sdq.workflow.configuration.IJobConfiguration
- Overrides:
getErrorMessage
in 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:
toMap
in classAbstractMoxConfiguration
- Returns:
- an attribute map, such that for any
SoMoXConfiguration c
,new SoMoXConfiguration(c.toMap())
will behave exactly likec
.
-