|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infai.emo.matcher.editor.wizard.WizardPage
org.infai.emo.matcher.editor.wizard.impl.ComparatorPage
public class ComparatorPage
This page contains the settings for the comparison of both models.
It is plugged into the wizard as a wizard-page.
| Field Summary | |
|---|---|
private java.util.Hashtable<java.lang.Integer,java.lang.String> |
MMFeatureNames
This Hash contains the names for the features with which the generic-feature-comparators have to be initialized. |
private java.util.Hashtable<java.lang.Integer,org.eclipse.swt.widgets.Text> |
MMFeatures
This Hash contains the text-fields for the generic-feature-comparators in which the user can enter the names of the features he wishes to compare additionally. |
private java.util.Hashtable<java.lang.Integer,org.eclipse.swt.widgets.Spinner> |
MMSpinners
This Hash contains the Spinners for the meta-model-specific generic-comparators which the user has selected. |
private java.util.Hashtable<java.lang.Integer,java.lang.Integer> |
MMSpinnerValues
This Hash contains the weightings for the generic-feature-comparators which the user has selected. |
private org.eclipse.swt.widgets.Spinner |
spinnerAC
The Spinner which serves as a selector for the weighting of the AttributeComparator. |
private org.eclipse.swt.widgets.Spinner |
spinnerContainerC
The Spinner which serves as a selector for the weighting of the ContainerComparator. |
private org.eclipse.swt.widgets.Spinner |
spinnerContentsC
The Spinner which serves as a selector for the weighting of the ContentsComparator. |
private org.eclipse.swt.widgets.Spinner |
spinnerMCC
The Spinner which serves as a selector for the weighting of the MetaClassComparator. |
private org.eclipse.swt.widgets.Spinner |
spinnerRC
The Spinner which serves as a selector for the weighting of the ReferenceComparator. |
private int |
valueAC
The weighting for the AttributeComparator. |
private int |
valueContainerC
The weighting for the ContainerComparator. |
private int |
valueContentsC
The weighting for the ContentsComparator. |
private int |
valueMCC
The weighting for the MetaClassComparator. |
private int |
valueRC
The weighting for the ReferenceComparator. |
| Constructor Summary | |
|---|---|
ComparatorPage()
Creates a new ComparatorPage but does not initialize the UI. |
|
| Method Summary | |
|---|---|
private void |
addButton(org.eclipse.swt.widgets.Composite container)
Adds the "Add-feature" button to the feature-group. |
private void |
addExistingFeatures(org.eclipse.swt.widgets.Composite container)
Adds the existing features from MMFeatures which the user selected before switching to another page. |
private void |
addListeners()
Adds the Listeners to the Spinners and the Text-fields. |
private void |
addMMListeners()
Method adds the Listeners to the Spinners for the generic-comparators. |
private void |
createFeatures(org.eclipse.swt.widgets.Composite container)
Creates a first empty spinner and text-field for the generic-comparators. |
void |
createPage(org.eclipse.swt.widgets.Composite parent)
Creates the UI for the page. |
double |
getAttributeComparatorWeight()
|
double |
getContainerComparatorWeight()
|
double |
getContentsComparatorWeight()
|
java.util.Hashtable<java.lang.String,java.lang.Double> |
getFeatureWeightings()
|
double |
getMetaClassComparatorWeight()
|
java.lang.String |
getPageDescription()
|
java.lang.String |
getPageTitle()
|
double |
getReferenceComparatorWeight()
|
| Methods inherited from class org.infai.emo.matcher.editor.wizard.WizardPage |
|---|
getImage, getPage, getWizard, setImage, setPage, setWizard |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.eclipse.swt.widgets.Spinner spinnerMCC
MetaClassComparator.
Spinnerprivate int valueMCC
MetaClassComparator.
private org.eclipse.swt.widgets.Spinner spinnerAC
AttributeComparator.
Spinnerprivate int valueAC
AttributeComparator.
private org.eclipse.swt.widgets.Spinner spinnerRC
ReferenceComparator.
Spinnerprivate int valueRC
ReferenceComparator.
private org.eclipse.swt.widgets.Spinner spinnerContainerC
ContainerComparator.
Spinnerprivate int valueContainerC
ContainerComparator.
private org.eclipse.swt.widgets.Spinner spinnerContentsC
ContentsComparator.
Spinnerprivate int valueContentsC
ContentsComparator.
private java.util.Hashtable<java.lang.Integer,org.eclipse.swt.widgets.Spinner> MMSpinners
Hashtable,
Spinnerprivate java.util.Hashtable<java.lang.Integer,java.lang.Integer> MMSpinnerValues
MMSpinners, MMFeatures and MMFeatureNames.
Hashtableprivate java.util.Hashtable<java.lang.Integer,org.eclipse.swt.widgets.Text> MMFeatures
MMSpinners, MMSpinnerValues and MMFeatureNames.
Hashtable,
Textprivate java.util.Hashtable<java.lang.Integer,java.lang.String> MMFeatureNames
MMSpinners, MMSpinnerValues and MMFeatures.
Hashtable| Constructor Detail |
|---|
public ComparatorPage()
| Method Detail |
|---|
public void createPage(org.eclipse.swt.widgets.Composite parent)
createPage in class WizardPageparent - the Composite on which the page can be created.Compositeprivate void addExistingFeatures(org.eclipse.swt.widgets.Composite container)
MMFeatures which the user selected before switching to another page.
container - the composite which shall contain the spinners, text-fields, ... for the features.Compositeprivate void addMMListeners()
private void createFeatures(org.eclipse.swt.widgets.Composite container)
container - the composite on which the spinner shall be placed.Compositeprivate void addButton(org.eclipse.swt.widgets.Composite container)
container - the composite the button and the features shall be placed on.Compositeprivate void addListeners()
public java.lang.String getPageTitle()
getPageTitle in class WizardPagepublic java.lang.String getPageDescription()
getPageDescription in class WizardPagepublic double getMetaClassComparatorWeight()
MetaClassComparator.public double getAttributeComparatorWeight()
AttributeComparator.public double getReferenceComparatorWeight()
ReferenceComparator.public double getContainerComparatorWeight()
ContainerComparator.public double getContentsComparatorWeight()
ContentsComparator.public java.util.Hashtable<java.lang.String,java.lang.Double> getFeatureWeightings()
Hashtable,
GenericFeatureComparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||