From 63b4ed0994341b1342eeec6c543f7eb0cfe61b66 Mon Sep 17 00:00:00 2001 From: "Sandro S. Andrade" Date: Tue, 28 Oct 2014 11:22:22 -0300 Subject: Move DuSE-MT to a new repository New DuSE-MT location: git@gitorious.org:duse-mt/duse-mt.git Change-Id: I4f3e65542703e39a54d20fa2c418fc61a1dca59c Reviewed-by: Sandro S. Andrade --- examples/uml/duse-mt/duse-mt.pri | 54 - examples/uml/duse-mt/duse-mt.pro | 5 - examples/uml/duse-mt/src/app/SADuse.xmi | 292 - examples/uml/duse-mt/src/app/aboutdusemt.ui | 175 - examples/uml/duse-mt/src/app/aboutplugins.ui | 100 - examples/uml/duse-mt/src/app/app.pro | 42 - examples/uml/duse-mt/src/app/connector-example.xmi | 24 - examples/uml/duse-mt/src/app/duse-mt.qrc | 21 - examples/uml/duse-mt/src/app/example-cp.xmi | 96 - examples/uml/duse-mt/src/app/example.xmi | 80 - examples/uml/duse-mt/src/app/example2.xmi | 35 - examples/uml/duse-mt/src/app/example3.xmi | 36 - examples/uml/duse-mt/src/app/example4.xmi | 45 - .../uml/duse-mt/src/app/icons/application-exit.png | Bin 3017 -> 0 bytes examples/uml/duse-mt/src/app/icons/cleartext.png | Bin 760 -> 0 bytes .../uml/duse-mt/src/app/icons/document-new.png | Bin 2461 -> 0 bytes .../uml/duse-mt/src/app/icons/document-open.png | Bin 2798 -> 0 bytes .../uml/duse-mt/src/app/icons/document-save-as.png | Bin 3792 -> 0 bytes .../uml/duse-mt/src/app/icons/document-save.png | Bin 2122 -> 0 bytes .../uml/duse-mt/src/app/icons/duse-mt-128x128.png | Bin 10607 -> 0 bytes .../uml/duse-mt/src/app/icons/duse-mt-16x16.png | Bin 839 -> 0 bytes .../uml/duse-mt/src/app/icons/duse-mt-22x22.png | Bin 1248 -> 0 bytes .../uml/duse-mt/src/app/icons/duse-mt-32x32.png | Bin 1939 -> 0 bytes .../uml/duse-mt/src/app/icons/duse-mt-48x48.png | Bin 3127 -> 0 bytes .../uml/duse-mt/src/app/icons/duse-mt-64x64.png | Bin 4279 -> 0 bytes examples/uml/duse-mt/src/app/icons/duse-mt.svg | 694 - examples/uml/duse-mt/src/app/icons/help-about.png | Bin 2742 -> 0 bytes .../uml/duse-mt/src/app/icons/resetproperty.png | Bin 169 -> 0 bytes examples/uml/duse-mt/src/app/main.cpp | 52 - examples/uml/duse-mt/src/app/mainwindow.ui | 225 - .../duse-mt/src/app/metamodels/PrimitiveTypes.xmi | 34 - .../duse-mt/src/app/metamodels/SADuSEProfile.xmi | 16 - examples/uml/duse-mt/src/app/metamodels/UML.xmi | 14329 ------------------- examples/uml/duse-mt/src/app/newmodel.ui | 98 - examples/uml/duse-mt/src/app/qml/grid.png | Bin 1291 -> 0 bytes examples/uml/duse-mt/src/app/shell/core.cpp | 120 - examples/uml/duse-mt/src/app/shell/core.h | 75 - examples/uml/duse-mt/src/app/shell/mainwindow.cpp | 410 - examples/uml/duse-mt/src/app/shell/mainwindow.h | 134 - .../uml/duse-mt/src/app/shell/plugincontroller.cpp | 179 - .../uml/duse-mt/src/app/shell/plugincontroller.h | 80 - .../duse-mt/src/app/shell/projectcontroller.cpp | 172 - .../uml/duse-mt/src/app/shell/projectcontroller.h | 86 - .../uml/duse-mt/src/app/shell/uicontroller.cpp | 124 - examples/uml/duse-mt/src/app/shell/uicontroller.h | 74 - examples/uml/duse-mt/src/duse-mt-library.pri | 16 - examples/uml/duse-mt/src/duse-mt-plugin.pri | 52 - .../src/libs/duseinterfaces/duseinterfaces.pro | 18 - .../duseinterfaces/duseinterfaces_dependencies.pri | 1 - .../libs/duseinterfaces/duseinterfaces_global.h | 53 - .../uml/duse-mt/src/libs/duseinterfaces/icore.cpp | 65 - .../uml/duse-mt/src/libs/duseinterfaces/icore.h | 71 - .../duse-mt/src/libs/duseinterfaces/iplugin.cpp | 61 - .../uml/duse-mt/src/libs/duseinterfaces/iplugin.h | 73 - .../src/libs/duseinterfaces/iplugincontroller.cpp | 55 - .../src/libs/duseinterfaces/iplugincontroller.h | 93 - .../src/libs/duseinterfaces/iprojectcontroller.cpp | 55 - .../src/libs/duseinterfaces/iprojectcontroller.h | 94 - .../src/libs/duseinterfaces/iuicontroller.cpp | 55 - .../src/libs/duseinterfaces/iuicontroller.h | 93 - examples/uml/duse-mt/src/libs/libs.pro | 4 - .../acdcarchitecturerecoveryalgorithm.json | 8 - .../acdcarchitecturerecoveryalgorithm.pro | 24 - ...carchitecturerecoveryalgorithm_dependencies.pri | 4 - .../acdcarchitecturerecoveryalgorithm_export.h | 53 - .../acdcarchitecturerecoveryalgorithmplugin.cpp | 100 - .../acdcarchitecturerecoveryalgorithmplugin.h | 93 - .../dependencyrelationstreemanager.cpp | 117 - .../dependencyrelationstreemanager.h | 65 - .../subgraphdominatorpattern.cpp | 173 - .../subgraphdominatorpattern.h | 70 - .../architecturerecoverycore.json | 5 - .../architecturerecoverycore.pro | 20 - .../architecturerecoverycore_dependencies.pri | 1 - .../architecturerecoverycoreplugin.cpp | 94 - .../architecturerecoverycoreplugin.h | 80 - .../iarchitecturerecoveryalgorithm.h | 66 - .../iarchitecturerecoverybackend.h | 59 - .../architecturerecoverycore/imodelingnotation.h | 61 - .../architecturerecoverypanel.cpp | 107 - .../architecturerecoverypanel.h | 90 - .../architecturerecoverypanel.json | 12 - .../architecturerecoverypanel.pro | 22 - .../architecturerecoverypanel.ui | 117 - .../architecturerecoverypanel_dependencies.pri | 7 - .../architecturerecoverypanelplugin.cpp | 66 - .../architecturerecoverypanelplugin.h | 69 - .../concretesyntaxview/concretesyntaxview.json | 5 - .../concretesyntaxview/concretesyntaxview.pro | 17 - .../concretesyntaxview_dependencies.pri | 1 - .../concretesyntaxviewplugin.cpp | 109 - .../concretesyntaxview/concretesyntaxviewplugin.h | 75 - .../concretesyntaxview/qml/concretesyntaxview.qml | 58 - .../concretesyntaxview/qml/concretesyntaxview.qrc | 6 - .../src/plugins/concretesyntaxview/qml/grid.png | Bin 1291 -> 0 bytes .../plugins/designoptimizer/designoptimizer.json | 5 - .../plugins/designoptimizer/designoptimizer.pro | 17 - .../designoptimizer_dependencies.pri | 1 - .../designoptimizer/designoptimizerplugin.cpp | 69 - .../designoptimizer/designoptimizerplugin.h | 70 - .../designoptimizer/qml/designoptimizer.qrc | 5 - .../plugins/designoptimizer/qml/paretofront.qml | 103 - .../designspaceexplorer/designspaceexplorer.json | 5 - .../designspaceexplorer/designspaceexplorer.pro | 21 - .../designspaceexplorer_dependencies.pri | 1 - .../designspaceexplorerplugin.cpp | 404 - .../designspaceexplorerplugin.h | 106 - .../designspaceexplorer/newdusedesigndialog.cpp | 74 - .../designspaceexplorer/newdusedesigndialog.h | 74 - .../designspaceexplorer/newdusedesigndialog.ui | 102 - .../qml/currentdesignspacelocation.qml | 58 - .../qml/designspaceexplorer.qrc | 12 - .../src/plugins/designspaceexplorer/qml/grid.png | Bin 1291 -> 0 bytes .../qml/qualitymetrics/content/Dial.qml | 93 - .../qml/qualitymetrics/content/background.png | Bin 35876 -> 0 bytes .../qml/qualitymetrics/content/needle.png | Bin 342 -> 0 bytes .../qml/qualitymetrics/content/needle_shadow.png | Bin 632 -> 0 bytes .../qml/qualitymetrics/content/overlay.png | Bin 3564 -> 0 bytes .../qml/qualitymetrics/qualitymetrics.qml | 87 - .../gccxmlarchitecturerecoverybackend.json | 8 - .../gccxmlarchitecturerecoverybackend.pro | 22 - ...xmlarchitecturerecoverybackend_dependencies.pri | 4 - .../gccxmlarchitecturerecoverybackend_export.h | 53 - .../gccxmlarchitecturerecoverybackendplugin.cpp | 302 - .../gccxmlarchitecturerecoverybackendplugin.h | 109 - .../xmlfilemanager.cpp | 92 - .../xmlfilemanager.h | 73 - .../xmlfilereader.cpp | 150 - .../xmlfilereader.h | 85 - .../javascriptconsole/javascriptconsole.json | 5 - .../javascriptconsole/javascriptconsole.pro | 18 - .../plugins/javascriptconsole/javascriptconsole.ui | 166 - .../javascriptconsole_dependencies.pri | 1 - .../javascriptconsole/javascriptconsoleplugin.cpp | 261 - .../javascriptconsole/javascriptconsoleplugin.h | 94 - .../src/plugins/modelinspector/modelinspector.json | 5 - .../src/plugins/modelinspector/modelinspector.pro | 15 - .../modelinspector/modelinspector_dependencies.pri | 1 - .../modelinspector/modelinspectorplugin.cpp | 116 - .../plugins/modelinspector/modelinspectorplugin.h | 83 - examples/uml/duse-mt/src/plugins/plugins.pro | 20 - .../umlconcretesyntax/duseplugin/duseplugin.pro | 13 - .../duseplugin/duseplugin_dependencies.pri | 1 - .../duseplugin/umlconcretesyntax.json | 8 - .../duseplugin/umlconcretesyntaxplugin.cpp | 52 - .../duseplugin/umlconcretesyntaxplugin.h | 58 - .../umlconcretesyntax/qmlplugin/UmlAssociation.qml | 62 - .../umlconcretesyntax/qmlplugin/UmlClass.qml | 107 - .../umlconcretesyntax/qmlplugin/UmlComponent.qml | 85 - .../umlconcretesyntax/qmlplugin/UmlElement.qml | 111 - .../qmlplugin/UmlGeneralization.qml | 49 - .../umlconcretesyntax/qmlplugin/UmlProperty.qml | 75 - .../umlconcretesyntax/qmlplugin/UmlSlot.qml | 49 - .../qmlplugin/images/resize-mark.png | Bin 232 -> 0 bytes .../src/plugins/umlconcretesyntax/qmlplugin/qmldir | 9 - .../umlconcretesyntax/qmlplugin/qmlplugin.pro | 40 - .../qmlplugin/relationshipitem.cpp | 231 - .../umlconcretesyntax/qmlplugin/relationshipitem.h | 107 - .../qmlplugin/umlconcretesyntaxqmlplugin.cpp | 53 - .../qmlplugin/umlconcretesyntaxqmlplugin.h | 56 - .../plugins/umlconcretesyntax/qmlplugin/util.js | 67 - .../umlconcretesyntax/umlconcretesyntax.pro | 3 - .../umlmodelingnotation/umlmodelingnotation.json | 8 - .../umlmodelingnotation/umlmodelingnotation.pro | 21 - .../umlmodelingnotation_dependencies.pri | 4 - .../umlmodelingnotation_export.h | 53 - .../umlmodelingnotationplugin.cpp | 101 - .../umlmodelingnotationplugin.h | 77 - .../plugins/welcomedashboard/qml/duse-mt-64x64.png | Bin 4279 -> 0 bytes .../welcomedashboard/qml/welcomedashboard.qml | 58 - .../welcomedashboard/qml/welcomedashboard.qrc | 6 - .../plugins/welcomedashboard/welcomedashboard.json | 5 - .../plugins/welcomedashboard/welcomedashboard.pro | 17 - .../welcomedashboard_dependencies.pri | 1 - .../welcomedashboard/welcomedashboardplugin.cpp | 69 - .../welcomedashboard/welcomedashboardplugin.h | 70 - examples/uml/duse-mt/src/rpath.pri | 18 - examples/uml/duse-mt/src/src.pro | 4 - examples/uml/uml.pro | 1 - 179 files changed, 25359 deletions(-) delete mode 100644 examples/uml/duse-mt/duse-mt.pri delete mode 100644 examples/uml/duse-mt/duse-mt.pro delete mode 100644 examples/uml/duse-mt/src/app/SADuse.xmi delete mode 100644 examples/uml/duse-mt/src/app/aboutdusemt.ui delete mode 100644 examples/uml/duse-mt/src/app/aboutplugins.ui delete mode 100644 examples/uml/duse-mt/src/app/app.pro delete mode 100644 examples/uml/duse-mt/src/app/connector-example.xmi delete mode 100644 examples/uml/duse-mt/src/app/duse-mt.qrc delete mode 100644 examples/uml/duse-mt/src/app/example-cp.xmi delete mode 100644 examples/uml/duse-mt/src/app/example.xmi delete mode 100644 examples/uml/duse-mt/src/app/example2.xmi delete mode 100644 examples/uml/duse-mt/src/app/example3.xmi delete mode 100644 examples/uml/duse-mt/src/app/example4.xmi delete mode 100644 examples/uml/duse-mt/src/app/icons/application-exit.png delete mode 100644 examples/uml/duse-mt/src/app/icons/cleartext.png delete mode 100644 examples/uml/duse-mt/src/app/icons/document-new.png delete mode 100644 examples/uml/duse-mt/src/app/icons/document-open.png delete mode 100644 examples/uml/duse-mt/src/app/icons/document-save-as.png delete mode 100644 examples/uml/duse-mt/src/app/icons/document-save.png delete mode 100644 examples/uml/duse-mt/src/app/icons/duse-mt-128x128.png delete mode 100644 examples/uml/duse-mt/src/app/icons/duse-mt-16x16.png delete mode 100644 examples/uml/duse-mt/src/app/icons/duse-mt-22x22.png delete mode 100644 examples/uml/duse-mt/src/app/icons/duse-mt-32x32.png delete mode 100644 examples/uml/duse-mt/src/app/icons/duse-mt-48x48.png delete mode 100644 examples/uml/duse-mt/src/app/icons/duse-mt-64x64.png delete mode 100644 examples/uml/duse-mt/src/app/icons/duse-mt.svg delete mode 100644 examples/uml/duse-mt/src/app/icons/help-about.png delete mode 100644 examples/uml/duse-mt/src/app/icons/resetproperty.png delete mode 100644 examples/uml/duse-mt/src/app/main.cpp delete mode 100644 examples/uml/duse-mt/src/app/mainwindow.ui delete mode 100644 examples/uml/duse-mt/src/app/metamodels/PrimitiveTypes.xmi delete mode 100644 examples/uml/duse-mt/src/app/metamodels/SADuSEProfile.xmi delete mode 100644 examples/uml/duse-mt/src/app/metamodels/UML.xmi delete mode 100644 examples/uml/duse-mt/src/app/newmodel.ui delete mode 100644 examples/uml/duse-mt/src/app/qml/grid.png delete mode 100644 examples/uml/duse-mt/src/app/shell/core.cpp delete mode 100644 examples/uml/duse-mt/src/app/shell/core.h delete mode 100644 examples/uml/duse-mt/src/app/shell/mainwindow.cpp delete mode 100644 examples/uml/duse-mt/src/app/shell/mainwindow.h delete mode 100644 examples/uml/duse-mt/src/app/shell/plugincontroller.cpp delete mode 100644 examples/uml/duse-mt/src/app/shell/plugincontroller.h delete mode 100644 examples/uml/duse-mt/src/app/shell/projectcontroller.cpp delete mode 100644 examples/uml/duse-mt/src/app/shell/projectcontroller.h delete mode 100644 examples/uml/duse-mt/src/app/shell/uicontroller.cpp delete mode 100644 examples/uml/duse-mt/src/app/shell/uicontroller.h delete mode 100644 examples/uml/duse-mt/src/duse-mt-library.pri delete mode 100644 examples/uml/duse-mt/src/duse-mt-plugin.pri delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces.pro delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_global.h delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/icore.cpp delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/icore.h delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.cpp delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.h delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.cpp delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.h delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.cpp delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.h delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.cpp delete mode 100644 examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.h delete mode 100644 examples/uml/duse-mt/src/libs/libs.pro delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm.json delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm.pro delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm_export.h delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/dependencyrelationstreemanager.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/dependencyrelationstreemanager.h delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/subgraphdominatorpattern.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/subgraphdominatorpattern.h delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore.json delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore.pro delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycoreplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycoreplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverycore/iarchitecturerecoveryalgorithm.h delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverycore/iarchitecturerecoverybackend.h delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverycore/imodelingnotation.h delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.h delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.json delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.pro delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.ui delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview.json delete mode 100644 examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview.pro delete mode 100644 examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxviewplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxviewplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/concretesyntaxview.qml delete mode 100644 examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/concretesyntaxview.qrc delete mode 100644 examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/grid.png delete mode 100644 examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer.json delete mode 100644 examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer.pro delete mode 100644 examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizerplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizerplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/designoptimizer/qml/designoptimizer.qrc delete mode 100644 examples/uml/duse-mt/src/plugins/designoptimizer/qml/paretofront.qml delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer.json delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer.pro delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorerplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorerplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.h delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.ui delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/currentdesignspacelocation.qml delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/designspaceexplorer.qrc delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/grid.png delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/Dial.qml delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/background.png delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/needle.png delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/needle_shadow.png delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/overlay.png delete mode 100644 examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/qualitymetrics.qml delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend.json delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend.pro delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend_export.h delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilemanager.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilemanager.h delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilereader.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilereader.h delete mode 100644 examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.json delete mode 100644 examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.pro delete mode 100644 examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.ui delete mode 100644 examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsoleplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsoleplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/modelinspector/modelinspector.json delete mode 100644 examples/uml/duse-mt/src/plugins/modelinspector/modelinspector.pro delete mode 100644 examples/uml/duse-mt/src/plugins/modelinspector/modelinspector_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/plugins.pro delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/duseplugin.pro delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/duseplugin_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntax.json delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntaxplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntaxplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlAssociation.qml delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlClass.qml delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlComponent.qml delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlElement.qml delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlGeneralization.qml delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlProperty.qml delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlSlot.qml delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/images/resize-mark.png delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/qmldir delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/qmlplugin.pro delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/relationshipitem.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/relationshipitem.h delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/umlconcretesyntaxqmlplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/umlconcretesyntaxqmlplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/util.js delete mode 100644 examples/uml/duse-mt/src/plugins/umlconcretesyntax/umlconcretesyntax.pro delete mode 100644 examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation.json delete mode 100644 examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation.pro delete mode 100644 examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation_export.h delete mode 100644 examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotationplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotationplugin.h delete mode 100644 examples/uml/duse-mt/src/plugins/welcomedashboard/qml/duse-mt-64x64.png delete mode 100644 examples/uml/duse-mt/src/plugins/welcomedashboard/qml/welcomedashboard.qml delete mode 100644 examples/uml/duse-mt/src/plugins/welcomedashboard/qml/welcomedashboard.qrc delete mode 100644 examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard.json delete mode 100644 examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard.pro delete mode 100644 examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard_dependencies.pri delete mode 100644 examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboardplugin.cpp delete mode 100644 examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboardplugin.h delete mode 100644 examples/uml/duse-mt/src/rpath.pri delete mode 100644 examples/uml/duse-mt/src/src.pro (limited to 'examples/uml') diff --git a/examples/uml/duse-mt/duse-mt.pri b/examples/uml/duse-mt/duse-mt.pri deleted file mode 100644 index de1d45ee..00000000 --- a/examples/uml/duse-mt/duse-mt.pri +++ /dev/null @@ -1,54 +0,0 @@ -isEmpty(DUSEMT_LIBRARY_BASENAME) { - DUSEMT_LIBRARY_BASENAME = lib -} -DUSEMT_SOURCE_TREE = $$PWD -DUSEMT_LIBRARY_PATH = $$DUSEMT_SOURCE_TREE/$$DUSEMT_LIBRARY_BASENAME/duse-mt - -INCLUDEPATH += \ - $$DUSEMT_SOURCE_TREE/src/libs \ - $$DUSEMT_SOURCE_TREE/src/plugins - -DUSEMT_APP_TARGET = duse-mt -DUSEMT_APP_PATH = $$DUSEMT_SOURCE_TREE/bin -DUSEMT_PLUGIN_PATH = $$DUSEMT_LIBRARY_PATH/plugins - -defineReplace(qtLibraryName) { - unset(LIBRARY_NAME) - LIBRARY_NAME = $$1 - CONFIG(debug, debug|release) { - !debug_and_release|build_pass { - mac:RET = $$member(LIBRARY_NAME, 0)_debug - else:win32:RET = $$member(LIBRARY_NAME, 0)d - } - } - isEmpty(RET):RET = $$LIBRARY_NAME - return($$RET) -} - -# recursively resolve plugin deps -done_plugins = -for(ever) { - isEmpty(DUSEMT_PLUGIN_DEPENDS): \ - break() - done_plugins += $$DUSEMT_PLUGIN_DEPENDS - for(dep, DUSEMT_PLUGIN_DEPENDS) { - include($$PWD/src/plugins/$$dep/$${dep}_dependencies.pri) - LIBS += -l$$qtLibraryName($$DUSEMT_PLUGIN_NAME) - } - DUSEMT_PLUGIN_DEPENDS = $$unique(DUSEMT_PLUGIN_DEPENDS) - DUSEMT_PLUGIN_DEPENDS -= $$unique(done_plugins) -} - -# recursively resolve library deps -done_libs = -for(ever) { - isEmpty(DUSEMT_LIB_DEPENDS): \ - break() - done_libs += $$DUSEMT_LIB_DEPENDS - for(dep, DUSEMT_LIB_DEPENDS) { - include($$PWD/src/libs/$$dep/$${dep}_dependencies.pri) - LIBS += -l$$qtLibraryName($$DUSEMT_LIB_NAME) - } - DUSEMT_LIB_DEPENDS = $$unique(DUSEMT_LIB_DEPENDS) - DUSEMT_LIB_DEPENDS -= $$unique(done_libs) -} diff --git a/examples/uml/duse-mt/duse-mt.pro b/examples/uml/duse-mt/duse-mt.pro deleted file mode 100644 index 3de26eaf..00000000 --- a/examples/uml/duse-mt/duse-mt.pro +++ /dev/null @@ -1,5 +0,0 @@ -TEMPLATE = subdirs -CONFIG += ordered - -SUBDIRS = src - diff --git a/examples/uml/duse-mt/src/app/SADuse.xmi b/examples/uml/duse-mt/src/app/SADuse.xmi deleted file mode 100644 index fab95038..00000000 --- a/examples/uml/duse-mt/src/app/SADuse.xmi +++ /dev/null @@ -1,292 +0,0 @@ - - - - - - - - - - - - - - - JavaScript - (1/input[0].ownedElements.length)*120 - - - - - JavaScript - (1/input[0].ownedTypes.length)*120 - - - - - JavaScript - var ot = input[0].ownedTypes.length; var sum = 0; for (var j = 0; j < ot; ++j) sum = sum+input[0].ownedTypes[j].ownedAttributes.length; var t = sum/(ot+1); t/sum*120 - - - - - JavaScript - input[0].ownedAttributes - - - - - JavaScript - var inputLength = input.length; var selected = new Array(); for (var i = 0; i < inputLength; ++i) { if (input[i].isKindOf("QSADuseProfileProcessComponent")) selected.push(input[i].base_Component); } selected; - - - - - JavaScript - input - - - JavaScript - input - - - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - var inputLength = input.length; var selected = new Array(); for (var i = 0; i < inputLength; ++i) { if (input[i].isKindOf("QSADuseProfileProcessComponent")) selected.push(input[i].base_Component); } selected; - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - var inputLength = input.length; var selected = new Array(); for (var i = 0; i < inputLength; ++i) { if (input[i].isKindOf("QSADuseProfileProcessComponent")) selected.push(input[i].base_Component); } selected; - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - var inputLength = input.length; var selected = new Array(); for (var i = 0; i < inputLength; ++i) { if (input[i].isKindOf("QSADuseProfileProcessComponent")) selected.push(input[i].base_Component); } selected; - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - - JavaScript - input - - - JavaScript - input - - - - - - diff --git a/examples/uml/duse-mt/src/app/aboutdusemt.ui b/examples/uml/duse-mt/src/app/aboutdusemt.ui deleted file mode 100644 index 7ad998a3..00000000 --- a/examples/uml/duse-mt/src/app/aboutdusemt.ui +++ /dev/null @@ -1,175 +0,0 @@ - - - DuSE::AboutDuSEMT - - - - 0 - 0 - 400 - 280 - - - - - 400 - 280 - - - - - 400 - 280 - - - - About DuSE-MT - - - - - - - - - - - :/icons/duse-mt-128x128.png - - - - - - - 37 - - - - - 15 - - - - - - Sans Serif - 10 - 75 - true - - - - DuSE-MT 0.1 - - - - - - - Based on Qt 5.1 RC (64bit) - - - - - - - Built on June 22 2013 at 14:03:01 - - - - - - - - - 17 - - - - - Copyright (C) 2013 Sandro S. Andrade <sandroandrade@kde.org> - - - true - - - - - - - The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. - - - true - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Close - - - - - - - - - - - buttonBox - accepted() - DuSE::AboutDuSEMT - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - DuSE::AboutDuSEMT - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/examples/uml/duse-mt/src/app/aboutplugins.ui b/examples/uml/duse-mt/src/app/aboutplugins.ui deleted file mode 100644 index 1afaaed9..00000000 --- a/examples/uml/duse-mt/src/app/aboutplugins.ui +++ /dev/null @@ -1,100 +0,0 @@ - - - DuSE::AboutPlugins - - - - 0 - 0 - 613 - 300 - - - - Installed Plugins - - - - - - Qt::Horizontal - - - QDialogButtonBox::Close - - - - - - - true - - - true - - - 120 - - - 35 - - - - Name - - - - - Load - - - - - Version - - - - - Vendor - - - - - - - - - - buttonBox - accepted() - DuSE::AboutPlugins - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - DuSE::AboutPlugins - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/examples/uml/duse-mt/src/app/app.pro b/examples/uml/duse-mt/src/app/app.pro deleted file mode 100644 index e26910f1..00000000 --- a/examples/uml/duse-mt/src/app/app.pro +++ /dev/null @@ -1,42 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2012-10-26T12:43:33 -# -#------------------------------------------------- - -QT += widgets modeling - -DUSEMT_LIB_DEPENDS += \ - duseinterfaces - -include(../../duse-mt.pri) - -LIBS += -L$$DUSEMT_LIBRARY_PATH - -TEMPLATE = app -TARGET = $$DUSEMT_APP_TARGET -DESTDIR = $$DUSEMT_APP_PATH - -include(../rpath.pri) - -SOURCES += main.cpp \ - shell/core.cpp \ - shell/uicontroller.cpp \ - shell/projectcontroller.cpp \ - shell/plugincontroller.cpp \ - shell/mainwindow.cpp - -HEADERS += \ - shell/core.h \ - shell/uicontroller.h \ - shell/projectcontroller.h \ - shell/plugincontroller.h \ - shell/mainwindow.h - -FORMS += mainwindow.ui \ - aboutplugins.ui \ - newmodel.ui \ - aboutdusemt.ui - -RESOURCES += \ - duse-mt.qrc diff --git a/examples/uml/duse-mt/src/app/connector-example.xmi b/examples/uml/duse-mt/src/app/connector-example.xmi deleted file mode 100644 index 44912e3b..00000000 --- a/examples/uml/duse-mt/src/app/connector-example.xmi +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/uml/duse-mt/src/app/duse-mt.qrc b/examples/uml/duse-mt/src/app/duse-mt.qrc deleted file mode 100644 index cd816f42..00000000 --- a/examples/uml/duse-mt/src/app/duse-mt.qrc +++ /dev/null @@ -1,21 +0,0 @@ - - - icons/resetproperty.png - icons/help-about.png - icons/application-exit.png - icons/document-new.png - icons/document-open.png - icons/document-save-as.png - icons/document-save.png - icons/cleartext.png - icons/duse-mt-16x16.png - icons/duse-mt-22x22.png - icons/duse-mt-32x32.png - icons/duse-mt-48x48.png - icons/duse-mt-64x64.png - icons/duse-mt-128x128.png - metamodels/PrimitiveTypes.xmi - metamodels/UML.xmi - metamodels/SADuSEProfile.xmi - - diff --git a/examples/uml/duse-mt/src/app/example-cp.xmi b/examples/uml/duse-mt/src/app/example-cp.xmi deleted file mode 100644 index 670c8fa9..00000000 --- a/examples/uml/duse-mt/src/app/example-cp.xmi +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/uml/duse-mt/src/app/example.xmi b/examples/uml/duse-mt/src/app/example.xmi deleted file mode 100644 index d9d90f59..00000000 --- a/examples/uml/duse-mt/src/app/example.xmi +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/uml/duse-mt/src/app/example2.xmi b/examples/uml/duse-mt/src/app/example2.xmi deleted file mode 100644 index ef8ee7fa..00000000 --- a/examples/uml/duse-mt/src/app/example2.xmi +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/uml/duse-mt/src/app/example3.xmi b/examples/uml/duse-mt/src/app/example3.xmi deleted file mode 100644 index caa8a58a..00000000 --- a/examples/uml/duse-mt/src/app/example3.xmi +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/uml/duse-mt/src/app/example4.xmi b/examples/uml/duse-mt/src/app/example4.xmi deleted file mode 100644 index 8f734bab..00000000 --- a/examples/uml/duse-mt/src/app/example4.xmi +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/uml/duse-mt/src/app/icons/application-exit.png b/examples/uml/duse-mt/src/app/icons/application-exit.png deleted file mode 100644 index 9ae1f1fb..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/application-exit.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/cleartext.png b/examples/uml/duse-mt/src/app/icons/cleartext.png deleted file mode 100644 index 74133baf..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/cleartext.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/document-new.png b/examples/uml/duse-mt/src/app/icons/document-new.png deleted file mode 100644 index 61db97ae..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/document-new.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/document-open.png b/examples/uml/duse-mt/src/app/icons/document-open.png deleted file mode 100644 index 3432ed27..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/document-open.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/document-save-as.png b/examples/uml/duse-mt/src/app/icons/document-save-as.png deleted file mode 100644 index ed2453d9..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/document-save-as.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/document-save.png b/examples/uml/duse-mt/src/app/icons/document-save.png deleted file mode 100644 index cc380a03..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/document-save.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/duse-mt-128x128.png b/examples/uml/duse-mt/src/app/icons/duse-mt-128x128.png deleted file mode 100644 index 16989d43..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/duse-mt-128x128.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/duse-mt-16x16.png b/examples/uml/duse-mt/src/app/icons/duse-mt-16x16.png deleted file mode 100644 index 95385efa..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/duse-mt-16x16.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/duse-mt-22x22.png b/examples/uml/duse-mt/src/app/icons/duse-mt-22x22.png deleted file mode 100644 index 8b719f7a..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/duse-mt-22x22.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/duse-mt-32x32.png b/examples/uml/duse-mt/src/app/icons/duse-mt-32x32.png deleted file mode 100644 index b60f2962..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/duse-mt-32x32.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/duse-mt-48x48.png b/examples/uml/duse-mt/src/app/icons/duse-mt-48x48.png deleted file mode 100644 index a8f5ae6b..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/duse-mt-48x48.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/duse-mt-64x64.png b/examples/uml/duse-mt/src/app/icons/duse-mt-64x64.png deleted file mode 100644 index ec26192f..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/duse-mt-64x64.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/duse-mt.svg b/examples/uml/duse-mt/src/app/icons/duse-mt.svg deleted file mode 100644 index 124ac7e6..00000000 --- a/examples/uml/duse-mt/src/app/icons/duse-mt.svg +++ /dev/null @@ -1,694 +0,0 @@ - - - -image/svg+xmlD - \ No newline at end of file diff --git a/examples/uml/duse-mt/src/app/icons/help-about.png b/examples/uml/duse-mt/src/app/icons/help-about.png deleted file mode 100644 index 8f3a936d..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/help-about.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/icons/resetproperty.png b/examples/uml/duse-mt/src/app/icons/resetproperty.png deleted file mode 100644 index 9048252e..00000000 Binary files a/examples/uml/duse-mt/src/app/icons/resetproperty.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/main.cpp b/examples/uml/duse-mt/src/app/main.cpp deleted file mode 100644 index bf6af337..00000000 --- a/examples/uml/duse-mt/src/app/main.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "shell/core.h" -#include - -int main(int argc, char *argv[]) -{ - QApplication a(argc, argv); - DuSE::Core::initialize(); - - int r = a.exec(); - delete DuSE::Core::self(); - return r; -} diff --git a/examples/uml/duse-mt/src/app/mainwindow.ui b/examples/uml/duse-mt/src/app/mainwindow.ui deleted file mode 100644 index a7a34325..00000000 --- a/examples/uml/duse-mt/src/app/mainwindow.ui +++ /dev/null @@ -1,225 +0,0 @@ - - - DuSE::MainWindow - - - - 0 - 0 - 831 - 474 - - - - DuSE-MT - - - - :/icons/duse-mt-32x32.png:/icons/duse-mt-32x32.png - - - - - 0 - - - 3 - - - 0 - - - 0 - - - - - -1 - - - - - - - - Main Toolbar - - - TopToolBarArea - - - false - - - - - - - - - - - - 0 - 0 - 831 - 19 - - - - - &File - - - - - - - - - - - - - - &Help - - - - - - - &Edit - - - - - &Actions - - - - - - - - - - - :/icons/document-new.png:/icons/document-new.png - - - &New Model... - - - New - - - Ctrl+N - - - - - - :/icons/document-open.png:/icons/document-open.png - - - &Open Model ... - - - Ctrl+O - - - - - - :/icons/document-save.png:/icons/document-save.png - - - &Save - - - Save - - - Ctrl+S - - - - - - :/icons/document-save-as.png:/icons/document-save-as.png - - - Save &as... - - - - - - :/icons/application-exit.png:/icons/application-exit.png - - - &Quit - - - Ctrl+Q - - - - - - :/icons/help-about.png:/icons/help-about.png - - - About &Plugins... - - - - - - :/icons/duse-mt-22x22.png:/icons/duse-mt-22x22.png - - - About &DuSE-MT - - - About DuSE-MT - - - - - - - - - - &Close Model - - - Ctrl+W - - - - - - - - - - actionFileQuit - triggered() - DuSE::MainWindow - close() - - - -1 - -1 - - - 415 - 236 - - - - - diff --git a/examples/uml/duse-mt/src/app/metamodels/PrimitiveTypes.xmi b/examples/uml/duse-mt/src/app/metamodels/PrimitiveTypes.xmi deleted file mode 100644 index 9ec9ba62..00000000 --- a/examples/uml/duse-mt/src/app/metamodels/PrimitiveTypes.xmi +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - A Boolean type is used for logical expression, consisting of the predefined values true and false. - - - - - An integer is a primitive type representing integer values. - - - - - A real is a primitive type representing the mathematical concept of real. - - - - - A string is a sequence of characters in some suitable character set used to display information about the model. Character sets may include non-Roman alphabets and characters. - - - - - An unlimited natural is a primitive type representing unlimited natural values. - - - - - - - - diff --git a/examples/uml/duse-mt/src/app/metamodels/SADuSEProfile.xmi b/examples/uml/duse-mt/src/app/metamodels/SADuSEProfile.xmi deleted file mode 100644 index 577b60ea..00000000 --- a/examples/uml/duse-mt/src/app/metamodels/SADuSEProfile.xmi +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/examples/uml/duse-mt/src/app/metamodels/UML.xmi b/examples/uml/duse-mt/src/app/metamodels/UML.xmi deleted file mode 100644 index 16f56b05..00000000 --- a/examples/uml/duse-mt/src/app/metamodels/UML.xmi +++ /dev/null @@ -1,14329 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This association shows the lifelines that make up an interaction. A lifeline may be part of more than one interaction use. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The event shows the time point at which the action completes execution. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the namespace in which the protocol state machine is defined. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If a Part has multiplicity, multiple lifelines might be used to show it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The event shows the time point at which the action begins execution. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates the dependencies that reference the supplier. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - An abstraction is a relationship that relates two elements or sets of elements that represent the same concept at different levels of abstraction or from different viewpoints. - - - - - An composition of an Expression that states the abstraction relationship between the supplier and the client. In some cases, such as Derivation, it is usually formal and unidirectional; in other cases, such as Trace, it is usually informal and bidirectional. The mapping expression is optional and may be omitted if the precise relationship between the elements is not specified. - - - - - - - An accept call action is an accept event action representing the receipt of a synchronous call request. In addition to the normal operation parameters, the action produces an output that is needed later to supply the information to the reply action necessary to return control to the caller. This action is for synchronous calls. If it is used to handle an asynchronous call, execution of the subsequent reply action will complete immediately with no effects. - - - - The trigger event must be a CallEvent. - - - OCL - trigger.event.oclIsKindOf(CallEvent) - - - - - isUnmrashall must be true for an AcceptCallAction. - - - OCL - isUnmarshall = true - - - - - The result pins must match the in and inout parameters of the operation specified by the trigger event in number, type, and order. - - - OCL - true - - - - - - Pin where a value is placed containing sufficient information to perform a subsequent reply and return control to the caller. The contents of this value are opaque. It can be passed and copied but it cannot be manipulated by the model. - - - - - - A accept event action is an action that waits for the occurrence of an event meeting specified conditions. - - - - AcceptEventActions may have no input pins. - - - OCL - true - - - - - If the trigger events are all TimeEvents, there is exactly one output pin. - - - OCL - true - - - - - If isUnmarshall is true, there must be exactly one trigger for events of type SignalEvent. The number of result output pins must be the same as the number of attributes of the signal. The type and ordering of each result output pin must be the same as the corresponding attribute of the signal. The multiplicity of each result output pin must be compatible with the multiplicity of the corresponding attribute. - - - OCL - true - - - - - There are no output pins if the trigger events are only ChangeEvents, or if they are only CallEvents when this action is an instance of AcceptEventAction and not an instance of a descendant of AcceptEventAction (such as AcceptCallAction). - - - OCL - true - - - - - - Indicates whether there is a single output pin for the event, or multiple output pins for attributes of the event. - - - - - - - Pins holding the received event objects or their attributes. Event objects may be copied in transmission, so identity might not be preserved. - - - - - - - The type of events accepted by the action, as specified by triggers. For triggers with signal events, a signal of the specified type or any subtype of the specified signal type is accepted. - - - - - - - An action has pre- and post-conditions. - - - An action represents a single step within an activity, that is, one that is not further decomposed within the activity. - - - An action is a named element that is the fundamental unit of executable functionality. The execution of an action represents some transformation or processing in the modeled system, be it a computer system or otherwise. - - - - - The classifier that owns the behavior of which this action is a part. - - - - - - The ordered set of input pins connected to the Action. These are among the total set of inputs. - - - - - - - If true, the action can begin a new, concurrent execution, even if there is already another execution of the action ongoing. If false, the action cannot begin a new execution until any previous execution has completed. - - - - - - - Constraint that must be satisfied when executed is completed. - - - - - - - Constraint that must be satisfied when execution is started. - - - - - - - The ordered set of output pins connected to the Action. The action places its results onto pins in this set. - - - - - - - Missing derivation for Action::/context : Classifier - - - - OCL - true - - - - - - - - - - An action execution specification is a kind of execution specification representing the execution of an action. - - - - The Action referenced by the ActionExecutionSpecification, if any, must be owned by the Interaction owning the ActionExecutionOccurrence. - - - OCL - true - - - - - - Action whose execution is occurring. - - - - - - An action input pin is a kind of pin that executes an action to determine the values to input to another. - - - - The fromAction of an action input pin must only have action input pins as input pins. - - - OCL - true - - - - - The fromAction of an action input pin cannot have control or data flows coming into or out of it or its pins. - - - OCL - true - - - - - The fromAction of an action input pin must have exactly one output pin. - - - OCL - true - - - - - - The action used to provide values. - - - - - - An activity is the specification of parameterized behavior as the coordinated sequencing of subordinate units whose individual elements are actions. - - - - The nodes of the activity must include one ActivityParameterNode for each parameter. - - - OCL - true - - - - - An activity cannot be autonomous and have a classifier or behavioral feature context at the same time. - - - OCL - true - - - - - The groups of an activity have no supergroups. - - - OCL - true - - - - - - Edges expressing flow between nodes of the activity. - - - - - - - Top-level groups in the activity. - - - - - - - If true, this activity must not make any changes to variables outside the activity or to objects. (This is an assertion, not an executable property. It may be used by an execution engine to optimize model execution. If the assertion is violated by the action, then the model is ill-formed.) The default is false (an activity may make nonlocal changes). - - - - - - - If true, all invocations of the activity are handled by the same execution. - - - - - - - Nodes coordinated by the activity. - - - - - - - Top-level partitions in the activity. - - - - - - - Top-level structured nodes in the activity. - - - - - - - Top-level variables in the activity. - - - - - - - - Activity edges can be contained in interruptible regions. - - - An activity edge is an abstract class for directed connections between two activity nodes. - - - - Activity edges may be owned only by activities or groups. - - - OCL - true - - - - - The source and target of an edge must be in the same activity as the edge. - - - OCL - true - - - - - Activity edges may be owned by at most one structured node. - - - OCL - true - - - - - - Activity containing the edge. - - - - - - Specification evaluated at runtime to determine if the edge can be traversed. - - - - - Groups containing the edge. - - - - - - - Partitions containing the edge. - - - - - - - Structured activity node containing the edge. - - - - - - Region that the edge can interrupt. - - - - - - Inherited edges replaced by this edge in a specialization of the activity. - - - - - - - Node from which tokens are taken when they traverse the edge. - - - - - Node to which tokens are put when they traverse the edge. - - - - - The minimum number of tokens that must traverse the edge at the same time. - - - - - - An activity final node is a final node that stops all flows in an activity. - - - - - - ActivityGroup is an abstract class for defining sets of nodes and edges in an activity. - - - - Groups may only be owned by activities or groups. - - - OCL - true - - - - - No node or edge in a group may be contained by its subgroups or its containing groups, transitively. - - - OCL - true - - - - - All nodes and edges of the group must be in the same activity as the group. - - - OCL - true - - - - - - Edges immediately contained in the group. - - - - - - - Nodes immediately contained in the group. - - - - - - - Activity containing the group. - - - - - - Groups immediately contained in the group. - - - - - - - Group immediately containing the group. - - - - - - - ActivityNode is an abstract class for points in the flow of an activity connected by edges. - - - - Activity nodes can only be owned by activities or groups. - - - OCL - true - - - - - Activity nodes may be owned by at most one structured node. - - - OCL - true - - - - - - Activity containing the node. - - - - - - Groups containing the node. - - - - - - - Interruptible regions containing the node. - - - - - - - Partitions containing the node. - - - - - - - Structured activity node containing the node. - - - - - - Edges that have the node as target. - - - - - - - Edges that have the node as source. - - - - - - - Inherited nodes replaced by this node in a specialization of the activity. - - - - - - - - An activity parameter node is an object node for inputs and outputs to activities. - - - - A parameter with direction other than inout must have at most one activity parameter node in an activity. - - - OCL - true - - - - - A parameter with direction inout must have at most two activity parameter nodes in an activity, one with incoming flows and one with outgoing flows. - - - OCL - true - - - - - An activity parameter node may have all incoming edges or all outgoing edges, but it must not have both incoming and outgoing edges. - - - OCL - true - - - - - Activity parameter object nodes with no incoming edges and one or more outgoing edges must have a parameter with in or inout direction. - - - OCL - true - - - - - Activity parameter object nodes with no outgoing edges and one or more incoming edges must have a parameter with out, inout, or return direction. - - - OCL - true - - - - - The type of an activity parameter node is the same as the type of its parameter. - - - OCL - true - - - - - Activity parameter nodes must have parameters from the containing activity. - - - OCL - true - - - - - - The parameter the object node will be accepting or providing values for. - - - - - - An activity partition is a kind of activity group for identifying actions that have some characteristic in common. - - - - If a partition represents a part, then all the non-external partitions in the same dimension and at the same level of nesting in that dimension must represent parts directly contained in the internal structure of the same classifier. - - - OCL - true - - - - - If a non-external partition represents a classifier and is contained in another partition, then the containing partition must represent a classifier, and the classifier of the subpartition must be nested in the classifier represented by the containing partition, or be at the contained end of a strong composition association with the classifier represented by the containing partition. - - - OCL - true - - - - - If a partition represents a part and is contained by another partition, then the part must be of a classifier represented by the containing partition, or of a classifier that is the type of a part representing the containing partition. - - - OCL - true - - - - - A partition with isDimension = true may not be contained by another partition. - - - OCL - true - - - - - - Edges immediately contained in the group. - - - - - - - Tells whether the partition groups other partitions along a dimension. - - - - - - - Tells whether the partition represents an entity to which the partitioning structure does not apply. - - - - - - - Nodes immediately contained in the group. - - - - - - - An element constraining behaviors invoked by nodes in the partition. - - - - - - Partitions immediately contained in the partition. - - - - - - - Partition immediately containing the partition. - - - - - - - An actor specifies a role played by a user or any other system that interacts with the subject. - - - - An actor can only have associations to use cases, components and classes. Furthermore these associations must be binary. - - - OCL - self.ownedAttribute->forAll ( a | -(a.association->notEmpty()) implies -((a.association.memberEnd.size() = 2) and -(a.opposite.class.oclIsKindOf(UseCase) or -(a.opposite.class.oclIsKindOf(Class) and not a.opposite.class.oclIsKindOf(Behavior)))) - - - - - - An actor must have a name. - - - OCL - name->notEmpty() - - - - - - - An add structural feature value action is a write structural feature action for adding values to a structural feature. - - - - Actions adding a value to ordered structural features must have a single input pin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, otherwise the action has no input pin for the insertion point. - - - OCL - let insertAtPins : Collection = self.insertAt in -if self.structuralFeature.isOrdered = #false -then insertAtPins->size() = 0 -else let insertAtPin : InputPin= insertAt->asSequence()->first() in -insertAtPins->size() = 1 -and insertAtPin.type = UnlimitedNatural -and insertAtPin.multiplicity.is(1,1)) -endif - - - - - - A value input pin is required. - - - OCL - self.value -> notEmpty() - - - - - - Gives the position at which to insert a new value or move an existing value in ordered structural features. The type of the pin is UnlimitedNatural, but the value cannot be zero. This pin is omitted for unordered structural features. - - - - - - Specifies whether existing values of the structural feature of the object should be removed before adding the new value. - - - - - - - - An add variable value action is a write variable action for adding values to a variable. - - - - A value input pin is required. - - - OCL - self.value -> notEmpty() - - - - - Actions adding values to ordered variables must have a single input pin for the insertion point with type UnlimtedNatural and multiplicity of 1..1, otherwise the action has no input pin for the insertion point. - - - OCL - let insertAtPins : Collection = self.insertAt in -if self.variable.ordering = #unordered -then insertAtPins->size() = 0 -else let insertAtPin : InputPin = insertAt->asSequence()->first() in -insertAtPins->size() = 1 -and insertAtPin.type = UnlimitedNatural -and insertAtPin.multiplicity.is(1,1)) -endif - - - - - - - Gives the position at which to insert a new value or move an existing value in ordered variables. The types is UnlimitedINatural, but the value cannot be zero. This pin is omitted for unordered variables. - - - - - - Specifies whether existing values of the variable should be removed before adding the new value. - - - - - - - - A trigger for an AnyReceiveEvent is triggered by the receipt of any message that is not explicitly handled by any related trigger. - - - - - - An artifact is the source of a deployment to a node. - - - An artifact is the specification of a physical piece of information that is used or produced by a software development process, or by deployment and operation of a system. Examples of artifacts include model files, source files, scripts, and binary executable files, a table in a database system, a development deliverable, or a word-processing document, a mail message. - - - - - - A concrete name that is used to refer to the Artifact in a physical context. Example: file system name, universal resource locator. - - - - - - - The set of model elements that are manifested in the Artifact. That is, these model elements are utilized in the construction (or generation) of the artifact. - - - - - - - The Artifacts that are defined (nested) within the Artifact. The association is a specialization of the ownedMember association from Namespace to NamedElement. - - - - - - - The attributes or association ends defined for the Artifact. The association is a specialization of the ownedMember association. - - - - - - - The Operations defined for the Artifact. The association is a specialization of the ownedMember association. - - - - - - - - An association describes a set of tuples whose values refer to typed instances. An instance of an association is called a link.A link is a tuple with one value for each end of the association, where each value is an instance of the type of the end. - - - An association describes a set of tuples whose values refer to typed instances. An instance of an association is called a link. A link is a tuple with one value for each end of the association, where each value is an instance of the type of the end. - - - - An association specializing another association has the same number of ends as the other association. - - - OCL - parents()->select(oclIsKindOf(Association)).oclAsType(Association)->forAll(p | p.memberEnd->size() = self.memberEnd->size()) - - - - - Association ends of associations with more than two ends must be owned by the association. - - - OCL - if memberEnd->size() > 2 then ownedEnd->includesAll(memberEnd) - - - - - Only binary associations can be aggregations. - - - OCL - self.memberEnd->exists(aggregation <> Aggregation::none) implies self.memberEnd->size() = 2 - - - - - When an association specializes another association, every end of the specific association corresponds to an end of the general association, and the specific end reaches the same type or a subtype of the more general end. - - - OCL - Sequence{1..self.memberEnd->size()}-> - forAll(i | self.general->select(oclIsKindOf(Association)).oclAsType(Association)-> - forAll(ga |self.memberEnd->at(i).type.conformsTo(ga.memberEnd->at(i).type))) - - - - - - - References the classifiers that are used as types of the ends of the association. - - - - - - Specifies whether the association is derived from other model elements such as other associations or constraints. - - - - - - - Each end represents participation of instances of the classifier connected to the end in links of the association. - - - - - - - The navigable ends that are owned by the association itself. - - - - - - - The ends that are owned by the association itself. - - - - - - - endType is derived from the types of the member ends. - - - - OCL - result = self.memberEnd->collect(e | e.type) - - - - - - - - - - - A model element that has both association and class properties. An AssociationClass can be seen as an association that also has class properties, or as a class that also has association properties. It not only connects a set of classifiers but also defines a set of features that belong to the relationship itself and not to any of the classifiers. - - - - The owned attributes and owned ends of an AssociationClass are disjoint - - - OCL - ownedAttribute->intersection(ownedEnd)->isEmpty() - - - - - An AssociationClass cannot be defined between itself and something else. - - - OCL - self.endType->excludes(self) and self.endType>collect(et|et.allparents()->excludes(self)) - - - - - - - - Behavior is a specification of how its context classifier changes state over time. This specification may be either a definition of possible behavior execution or emergent behavior, or a selective illustration of an interesting subset of possible executions. The latter form is typically used for capturing examples, such as a trace of a particular execution. - - - A behavior owns zero or more parameter sets. - - - - The parameters of the behavior must match the parameters of the implemented behavioral feature. - - - OCL - true - - - - - The implemented behavioral feature must be a feature (possibly inherited) of the context classifier of the behavior. - - - OCL - true - - - - - If the implemented behavioral feature has been redefined in the ancestors of the owner of the behavior, then the behavior must realize the latest redefining behavioral feature. - - - OCL - true - - - - - There may be at most one behavior for a given pairing of classifier (as owner of the behavior) and behavioral feature (as specification of the behavior). - - - OCL - true - - - - - - The classifier that is the context for the execution of the behavior. If the behavior is owned by a BehavioredClassifier, that classifier is the context. Otherwise, the context is the first BehavioredClassifier reached by following the chain of owner relationships. For example, following this algorithm, the context of an entry action in a state machine is the classifier that owns the state machine. The features of the context classifier as well as the elements visible to the context classifier are visible to the behavior. - - - - - - Tells whether the behavior can be invoked while it is still executing from a previous invocation. - - - - - - - References a list of parameters to the behavior which describes the order and type of arguments that can be given when the behavior is invoked and of the values which will be returned when the behavior completes its execution. - - - - - - - The ParameterSets owned by this Behavior. - - - - - - - An optional set of Constraints specifying what is fulfilled after the execution of the behavior is completed, if its precondition was fulfilled before its invocation. - - - - - - - An optional set of Constraints specifying what must be fulfilled when the behavior is invoked. - - - - - - - References a behavior that this behavior redefines. A subtype of Behavior may redefine any other subtype of Behavior. If the behavior implements a behavioral feature, it replaces the redefined behavior. If the behavior is a classifier behavior, it extends the redefined behavior. - - - - - - - Designates a behavioral feature that the behavior implements. The behavioral feature must be owned by the classifier that owns the behavior or be inherited by it. The parameters of the behavioral feature and the implementing behavior must match. A behavior does not need to have a specification, in which case it either is the classifer behavior of a BehavioredClassifier or it can only be invoked by another behavior of the classifier. - - - - - - Missing derivation for Behavior::/context : BehavioredClassifier - - - - OCL - true - - - - - - - - - - A behavior execution specification is a kind of execution specification representing the execution of a behavior. - - - - - Behavior whose execution is occurring. - - - - - - - A behavioral feature is a feature of a classifier that specifies an aspect of the behavior of its instances. - - - A behavioral feature is implemented (realized) by a behavior. A behavioral feature specifies that a classifier will respond to a designated request by invoking its implementing method. - - - A behavioral feature owns zero or more parameter sets. - - - - - - Specifies the semantics of concurrent calls to the same passive instance (i.e., an instance originating from a class with isActive being false). Active instances control access to their own behavioral features. - - - - - - If true, then the behavioral feature does not have an implementation, and one must be supplied by a more specific element. If false, the behavioral feature must have an implementation in the classifier or one must be inherited from a more general element. - - - - - - - A behavioral description that implements the behavioral feature. There may be at most one behavior for a particular pairing of a classifier (as owner of the behavior) and a behavioral feature (as specification of the behavior). - - - - - - - Specifies the ordered set of formal parameters of this BehavioralFeature. - - - - - - - The ParameterSets owned by this BehavioralFeature. - - - - - - - References the Types representing exceptions that may be raised during an invocation of this feature. - - - - - - - The query isDistinguishableFrom() determines whether two BehavioralFeatures may coexist in the same Namespace. It specifies that they have to have different signatures. - - - - OCL - result = if n.oclIsKindOf(BehavioralFeature) -then - if ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty() - then Set{}->including(self)->including(n)->isUnique(bf | bf.ownedParameter->collect(type)) - else true - endif -else true -endif - - - - - - - - - - - - A behaviored classifier may have an interface realization. - - - A classifier can have behavior specifications defined in its namespace. One of these may specify the behavior of the classifier itself. - - - - If a behavior is classifier behavior, it does not have a specification. - - - OCL - self.classifierBehavior->notEmpty() implies self.classifierBehavior.specification->isEmpty() - - - - - - A behavior specification that specifies the behavior of the classifier itself. - - - - - - The set of InterfaceRealizations owned by the BehavioredClassifier. Interface realizations reference the Interfaces of which the BehavioredClassifier is an implementation. - - - - - - - References behavior specifications owned by a classifier. - - - - - - - - A broadcast signal action is an action that transmits a signal instance to all the potential target objects in the system, which may cause the firing of a state machine transitions or the execution of associated activities of a target object. The argument values are available to the execution of associated behaviors. The requestor continues execution immediately after the signals are sent out. It does not wait for receipt. Any reply messages are ignored and are not transmitted to the requestor. - - - - The type, ordering, and multiplicity of an argument pin must be the same as the corresponding attribute of the signal. - - - OCL - true - - - - - The number and order of argument pins must be the same as the number and order of attributes in the signal. - - - OCL - true - - - - - - The specification of signal object transmitted to the target objects. - - - - - - CallAction is an abstract class for actions that invoke behavior and receive return values. - - - - Only synchronous call actions can have result pins. - - - OCL - true - - - - - The number and order of argument pins must be the same as the number and order of parameters of the invoked behavior or behavioral feature. Pins are matched to parameters by order. - - - OCL - true - - - - - The type, ordering, and multiplicity of an argument pin must be the same as the corresponding parameter of the behavior or behavioral feature. - - - OCL - true - - - - - - If true, the call is synchronous and the caller waits for completion of the invoked behavior. If false, the call is asynchronous and the caller proceeds immediately and does not expect a return values. - - - - - - - A list of output pins where the results of performing the invocation are placed. - - - - - - - - A call behavior action is a call action that invokes a behavior directly rather than invoking a behavioral feature that, in turn, results in the invocation of that behavior. The argument values of the action are available to the execution of the invoked behavior. For synchronous calls the execution of the call behavior action waits until the execution of the invoked behavior completes and a result is returned on its output pin. The action completes immediately without a result, if the call is asynchronous. In particular, the invoked behavior may be an activity. - - - - The number of result pins and the number of parameters of the behavior of type return, out, and in-out must be equal. - - - OCL - true - - - - - The type, ordering, and multiplicity of an argument or result pin is derived from the corresponding parameter of the behavior. - - - OCL - true - - - - - The number of argument pins and the number of parameters of the behavior of type in and in-out must be equal. - - - OCL - true - - - - - - The invoked behavior. It must be capable of accepting and returning control. - - - - - - A call event models the receipt by an object of a message invoking a call of an operation. - - - - - Designates the operation whose invocation raised the call event. - - - - - - A call operation action is an action that transmits an operation call request to the target object, where it may cause the invocation of associated behavior. The argument values of the action are available to the execution of the invoked behavior. If the action is marked synchronous, the execution of the call operation action waits until the execution of the invoked behavior completes and a reply transmission is returned to the caller; otherwise execution of the action is complete when the invocation of the operation is established and the execution of the invoked operation proceeds concurrently with the execution of the calling behavior. Any values returned as part of the reply transmission are put on the result output pins of the call operation action. Upon receipt of the reply transmission, execution of the call operation action is complete. - - - - The number of argument pins and the number of owned parameters of the operation of type in and in-out must be equal. - - - OCL - true - - - - - The number of result pins and the number of owned parameters of the operation of type return, out, and in-out must be equal. - - - OCL - true - - - - - The type of the target pin must be the same as the type that owns the operation. - - - OCL - true - - - - - The type, ordering, and multiplicity of an argument or result pin is derived from the corresponding owned parameter of the operation. - - - OCL - true - - - - - - The operation to be invoked by the action execution. - - - - - The target object to which the request is sent. The classifier of the target object is used to dynamically determine a behavior to invoke. This object constitutes the context of the execution of the operation. - - - - - - A central buffer node is an object node for managing flows from multiple sources and destinations. - - - - - - A change event models a change in the system configuration that makes a condition true. - - - - - A Boolean-valued expression that will result in a change event whenever its value changes from false to true. - - - - - - A class may be designated as active (i.e., each of its instances having its own thread of control) or passive (i.e., each of its instances executing within the context of some other object). A class may also specify which signals the instances of this class handle. - - - A class describes a set of objects that share the same specifications of features, constraints, and semantics. - - - A class has the capability to have an internal structure and ports. - - - Class has derived association that indicates how it may be extended through one or more stereotypes. Stereotype is the only kind of metaclass that cannot be extended by stereotypes. - - - - A passive class may not own receptions. - - - OCL - not self.isActive implies self.ownedReception.isEmpty() - - - - - - - References the Extensions that specify additional properties of the metaclass. The property is derived from the extensions whose memberEnds are typed by the Class. - - - - - - - If true, the Classifier does not provide a complete declaration and can typically not be instantiated. An abstract classifier is intended to be used by other classifiers e.g. as the target of general metarelationships or generalization relationships. - - - True when a class is abstract. - - - - - - - Determines whether an object specified by this class is active or not. If true, then the owning class is referred to as an active class. If false, then such a class is referred to as a passive class. - - - - - - - References all the Classifiers that are defined (nested) within the Class. - - - - - - - The attributes (i.e. the properties) owned by the class. - - - - - - - The operations owned by the class. - - - - - - - Receptions that objects of this class are willing to accept. - - - - - - - This gives the superclasses of a class. - - - - - - - Missing derivation for Class::/extension : Extension - - - - OCL - true - - - - - - - - - - The inherit operation is overridden to exclude redefined properties. - - - - OCL - result = inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh))) - - - - - - - - - - - - - - Missing derivation for Class::/superClass : Class - - - - OCL - true - - - - - - - - - - - A classifier is a classification of instances - it describes a set of instances that have features in common. A classifier can specify a generalization hierarchy by referencing its general classifiers. - - - A classifier has the capability to own use cases. Although the owning classifier typically represents the subject to which the owned use cases apply, this is not necessarily the case. In principle, the same use case can be applied to multiple subjects, as identified by the subject association role of a use case. - - - Classifier is defined to be a kind of templateable element so that a classifier can be parameterized. It is also defined to be a kind of parameterable element so that a classifier can be a formal template parameter. - - - A classifier has the capability to own collaboration uses. These collaboration uses link a collaboration with the classifier to give a description of the workings of the classifier. - - - - The parents of a classifier must be non-final. - - - OCL - self.parents()->forAll(not isFinalSpecialization) - - - - - Generalization hierarchies must be directed and acyclical. A classifier can not be both a transitively general and transitively specific classifier of the same classifier. - - - OCL - not self.allParents()->includes(self) - - - - - A classifier may only specialize classifiers of a valid type. - - - OCL - self.parents()->forAll(c | self.maySpecializeType(c)) - - - - - The Classifier that maps to a GeneralizationSet may neither be a specific nor a general Classifier in any of the Generalization relationships defined for that GeneralizationSet. In other words, a power type may not be an instance of itself nor may its instances also be its subclasses. - - - OCL - true - - - - - - - - - Refers to all of the Properties that are direct (i.e. not inherited or imported) attributes of the classifier. - - - - - - - References the collaboration uses owned by the classifier. - - - - - - - Specifies each feature defined in the classifier. - - - Note that there may be members of the Classifier that are of the type Feature but are not included in this association, e.g. inherited features. - - - - - - - Specifies the general Classifiers for this Classifier. - - - References the general classifier in the Generalization relationship. - - - - - - - Specifies the Generalization relationships for this Classifier. These Generalizations navigaten to more general classifiers in the generalization hierarchy. - - - - - - - Specifies all elements inherited by this classifier from the general classifiers. - - - - - - - If true, the Classifier does not provide a complete declaration and can typically not be instantiated. An abstract classifier is intended to be used by other classifiers e.g. as the target of general metarelationships or generalization relationships. - - - - - - - If true, the Classifier cannot be specialized by generalization. Note that this property is preserved through package merge operations; that is, the capability to specialize a Classifier (i.e., isFinalSpecialization =false) must be preserved in the resulting Classifier of a package merge operation where a Classifier with isFinalSpecialization =false is merged with a matching Classifier with isFinalSpecialization =true: the resulting Classifier will have isFinalSpecialization =false. - - - - - - - The optional template signature specifying the formal template parameters. - - - - - - References the use cases owned by this classifier. - - - - - - - Designates the GeneralizationSet of which the associated Classifier is a power type. - - - - - - - References the Classifiers that are redefined by this Classifier. - - - - - - - References a collaboration use which indicates the collaboration that represents this classifier. - - - - - - References the substitutions that are owned by this Classifier. - - - - - - - The template parameter that exposes this element as a formal parameter. - - - - - - The set of use cases for which this Classifier is the subject. - - - - - - - The query allFeatures() gives all of the features in the namespace of the classifier. In general, through mechanisms such as inheritance, this will be a larger set than feature. - - - - OCL - result = member->select(oclIsKindOf(Feature)) - - - - - - - - - - The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier. - - - - OCL - result = self.parents()->union(self.parents()->collect(p | p.allParents()) - - - - - - - - - - The query conformsTo() gives true for a classifier that defines a type that conforms to another. This is used, for example, in the specification of signature conformance for operations. - - - - OCL - result = (self=other) or (self.allParents()->includes(other)) - - - - - - - - - - The general classifiers are the classifiers referenced by the generalization relationships. - - - - OCL - result = self.parents() - - - - - - - - - - The query hasVisibilityOf() determines whether a named element is visible in the classifier. By default all are visible. It is only called when the argument is something owned by a parent. - - - - OCL - self.allParents()->including(self)->collect(c | c.member)->includes(n) - - - - - OCL - result = (n.visibility <> VisibilityKind::private) - - - - - - - - - - The inherit operation is overridden to exclude redefined properties. - - - The query inherit() defines how to inherit a set of elements. Here the operation is defined to inherit them all. It is intended to be redefined in circumstances where inheritance is affected by redefinition. - - - - OCL - result = inhs - - - - - - - - - - - - - - The query inheritableMembers() gives all of the members of a classifier that may be inherited in one of its descendants, subject to whatever visibility restrictions apply. - - - - OCL - c.allParents()->includes(self) - - - - - OCL - result = member->select(m | c.hasVisibilityOf(m)) - - - - - - - - - - - The inheritedMember association is derived by inheriting the inheritable members of the parents. - - - The inheritedMember association is derived by inheriting the inheritable members of the parents. - - - - OCL - result = self.inherit(self.parents()->collect(p|p.inheritableMembers(self))->asSet()) - - - - - - - - - - The query isTemplate() returns whether this templateable element is actually a template. - - - - OCL - result = oclAsType(TemplatableElement).isTemplate() or general->exists(g | g.isTemplate()) - - - - - - - - - The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type. By default a classifier may specialize classifiers of the same or a more general type. It is intended to be redefined by classifiers that have different specialization constraints. - - - - OCL - result = self.oclIsKindOf(c.oclType) - - - - - - - - - - The query parents() gives all of the immediate ancestors of a generalized Classifier. - - - - OCL - result = generalization.general - - - - - - - - - - - A classifier template parameter exposes a classifier as a formal template parameter. - - - - If "allowSubstitutable" is true, then there must be a constrainingClassifier. - - - OCL - allowSubstitutable implies constrainingClassifier->notEmpty() - - - - - - Constrains the required relationship between an actual parameter and the parameteredElement for this formal parameter. - - - - - - - The classifiers that constrain the argument that can be used for the parameter. If the allowSubstitutable attribute is true, then any classifier that is compatible with this constraining classifier can be substituted; otherwise, it must be either this classifier or one of its subclasses. If this property is empty, there are no constraints on the classifier that can be used as an argument. - - - - - - - The parameterable classifier for this template parameter. - - - - - - A clause is an element that represents a single branch of a conditional construct, including a test and a body section. The body section is executed only if (but not necessarily if) the test section evaluates true. - - - - The test and body parts must be disjoint. - - - OCL - true - - - - - The bodyOutput pins are output pins on actions in the body of the clause. - - - OCL - true - - - - - The decider output pin must be for the test body or a node contained by the test body as a structured node. - - - OCL - true - - - - - - A nested activity fragment that is executed if the test evaluates to true and the clause is chosen over any concurrent clauses that also evaluate to true. - - - - - - - A list of output pins within the body fragment whose values are moved to the result pins of the containing conditional node after execution of the clause body. - - - - - - - An output pin within the test fragment the value of which is examined after execution of the test to determine whether the body should be executed. - - - - - A set of clauses whose tests must all evaluate false before the current clause can be tested. - - - - - - - A set of clauses which may not be tested unless the current clause tests false. - - - - - - - A nested activity fragment with a designated output pin that specifies the result of the test. - - - - - - - A clear association action is an action that destroys all links of an association in which a particular object participates. - - - - The multiplicity of the input pin is 1..1. - - - OCL - self.object.multiplicity.is(1,1) - - - - - The type of the input pin must be the same as the type of at least one of the association ends of the association. - - - OCL - self.association->exists(end.type = self.object.type) - - - - - - Association to be cleared. - - - - - Gives the input pin from which is obtained the object whose participation in the association is to be cleared. - - - - - - A clear structural feature action is a structural feature action that removes all values of a structural feature. - - - - The multiplicity of the result output pin must be 1..1. - - - OCL - result->notEmpty() implies self.result.multiplicity.is(1,1) - - - - - The type of the result output pin is the same as the type of the inherited object input pin. - - - OCL - result->notEmpty() implies self.result.type = self.object.type - - - - - - Gives the output pin on which the result is put. - - - - - - - A clear variable action is a variable action that removes all values of a variable. - - - - - - A collaboration use represents the application of the pattern described by a collaboration to a specific situation involving specific classes or instances playing the roles of the collaboration. - - - - - - References connectable elements (possibly owned by other classifiers) which represent roles that instances may play in this collaboration. - - - - - - - - A collaboration use represents one particular use of a collaboration to explain the relationships between the properties of a classifier. A collaboration use shows how the pattern described by a collaboration is applied in a given context, by binding specific entities from that context to the roles of the collaboration. Depending on the context, these entities could be structural features of a classifier, instance specifications, or even roles in some containing collaboration. There may be multiple occurrences of a given collaboration within a classifier, each involving a different set of roles and connectors. A given role or connector may be involved in multiple occurrences of the same or different collaborations. Associated dependencies map features of the collaboration type to features in the classifier. These dependencies indicate which role in the classifier plays which role in the collaboration. - - - - The connectors in the classifier connect according to the connectors in the collaboration - - - OCL - true - - - - - Every role in the collaboration is bound within the collaboration use to a connectable element within the owning classifier. - - - OCL - true - - - - - All the client elements of a roleBinding are in one classifier and all supplier elements of a roleBinding are in one collaboration and they are compatible. - - - OCL - true - - - - - - A mapping between features of the collaboration type and features of the owning classifier. This mapping indicates which connectable element of the classifier plays which role(s) in the collaboration. A connectable element may be bound to multiple roles in the same collaboration use (that is, it may play multiple roles). - - - - - - - The collaboration which is used in this occurrence. The collaboration defines the cooperation between its roles which are mapped to properties of the classifier owning the collaboration use. - - - - - - A combined fragment defines an expression of interaction fragments. A combined fragment is defined by an interaction operator and corresponding interaction operands. Through the use of combined fragments the user will be able to describe a number of traces in a compact and concise manner. - - - - If the interactionOperator is break, the corresponding InteractionOperand must cover all Lifelines within the enclosing InteractionFragment. - - - OCL - true - - - - - If the interactionOperator is opt, loop, break, assert or neg, there must be exactly one operand. - - - OCL - true - - - - - The interaction operators 'consider' and 'ignore' can only be used for the CombineIgnoreFragment subtype of CombinedFragment - - - OCL - ((interactionOperator = #consider) or (interactionOperator = #ignore)) implies oclsisTypeOf(CombineIgnoreFragment) - - - - - The InteractionConstraint with minint and maxint only apply when attached to an InteractionOperand where the interactionOperator is loop. - - - OCL - true - - - - - - Specifies the gates that form the interface between this CombinedFragment and its surroundings - - - - - - - Specifies the operation which defines the semantics of this combination of InteractionFragments. - - - - - - The set of operands of the combined fragment. - - - - - - - A comment is a textual annotation that can be attached to a set of elements. - - - - - References the Element(s) being commented. - - - - - - - Specifies a string that is the comment. - - - - - - - - A communication path is an association between two deployment targets, through which they are able to exchange signals and messages. - - - - The association ends of a CommunicationPath are typed by DeploymentTargets. - - - OCL - self.endType->forAll (t | t.oclIsKindOf(DeploymentTarget)) - - - - - - - In the namespace of a component, all model elements that are involved in or related to its definition are either owned or imported explicitly. This may include, for example, use cases and dependencies (e.g. mappings), packages, components, and artifacts. - - - A component represents a modular part of a system that encapsulates its contents and whose manifestation is replaceable within its environment. - - - - component nested in a Class cannot have any packaged elements. - - - OCL - (not self.class->isEmpty()) implies self.packagedElement->isEmpty() - - - - - A component cannot nest classifiers. - - - OCL - self.nestedClassifier->isEmpty() - - - - - - isIndirectlyInstantiated : Boolean {default = true} The kind of instantiation that applies to a Component. If false, the component is instantiated as an addressable object. If true, the Component is defined at design-time, but at run-time (or execution-time) an object specified by the Component does not exist, that is, the component is instantiated indirectly, through the instantiation of its realizing classifiers or parts. Several standard stereotypes use this meta attribute (e.g., «specification», «focus», «subsystem»). - - - - - - - The set of PackageableElements that a Component owns. In the namespace of a component, all model elements that are involved in or related to its definition may be owned or imported explicitly. These may include e.g. Classes, Interfaces, Components, Packages, Use cases, Dependencies (e.g. mappings), and Artifacts. - - - - - - - The interfaces that the component exposes to its environment. These interfaces may be Realized by the Component or any of its realizingClassifiers, or they may be the Interfaces that are provided by its public Ports. - - - - - - - The set of Realizations owned by the Component. Realizations reference the Classifiers of which the Component is an abstraction; i.e., that realize its behavior. - - - - - - - The interfaces that the component requires from other components in its environment in order to be able to offer its full set of provided functionality. These interfaces may be used by the Component or any of its realizingClassifiers, or they may be the Interfaces that are required by its public Ports. - - - - - - - Missing derivation for Component::/provided : Interface - - - - OCL - result = -let realizedInterfaces : Set(Interface) = RealizedInterfaces(self) , - realizingClassifiers : Set(Classifier) = Set{self.realizingClassifier}->union(self.allParents().realizingClassifier), - allRealizingClassifiers : Set(Classifier) = realizingClassifiers->union(realizingClassifiers.allParents()) , - realizingClassifierInterfaces : Set(Interface) = allRealizingClassifiers->iterate(c; rci : Set(Interface) = Set{} | rci->union(RealizedInterfaces(c))) , - ports : Set(Port) = self.ownedPort->union(allParents.oclAsType(Set(EncapsulatedClassifier)).ownedPort) , - providedByPorts : Set(Interface) = ports.provided -in realizedInterfaces->union(realizingClassifierInterfaces) ->union(providedByPorts)->asSet() - - - - - - - - - - - Utility returning the set of realized interfaces of a component. - - - - OCL - result = (classifier.clientDependency-> -select(dependency|dependency.oclIsKindOf(Realization) and dependency.supplier.oclIsKindOf(Interface)))-> -collect(dependency|dependency.client) - - - - - - - - - - - Missing derivation for Component::/required : Interface - - - - OCL - result = -let usedInterfaces : Set(Interface) = UsedInterfaces(self), - realizingClassifiers : Set(Classifier) = Set{self.realizingClassifier}->union(self.allParents().realizingClassifier), - allRealizingClassifiers : Set(Classifier) = realizingClassifiers->union(realizingClassifiers.allParents()), - realizingClassifierInterfaces : Set(Interface) = allRealizingClassifiers->iterate(c; rci : Set(Interface) = Set{} | rci->union(UsedInterfaces(c))), - ports : Set(Port) = self.ownedPort->union(allParents.oclAsType(Set(EncapsulatedClassifier)).ownedPort), - usedByPorts : Set(Interface) = ports.required -in usedInterfaces->union(realizingClassifierInterfaces) ->union(usedByPorts)->asSet() - - - - - - - - - - - Utility returning the set of used interfaces of a component. - - - - OCL - result = (classifier.supplierDependency-> -select(dependency|dependency.oclIsKindOf(Usage) and dependency.supplier.oclIsKindOf(interface)))-> -collect(dependency|dependency.supplier) - - - - - - - - - - - - The realization concept is specialized to (optionally) define the classifiers that realize the contract offered by a component in terms of its provided and required interfaces. The component forms an abstraction from these various classifiers. - - - - - The Component that owns this ComponentRealization and which is implemented by its realizing classifiers. - - - - - - The classifiers that are involved in the implementation of the Component that owns this Realization. - - - - - - - A conditional node is a structured activity node that represents an exclusive choice among some number of alternatives. - - - - The union of the ExecutabledNodes in the test and body parts of all clauses must be the same as the subset of nodes contained in the ConditionalNode (considered as a StructuredActivityNode) that are ExecutableNodes. - - - OCL - true - - - - - No two clauses within a ConditionalNode maybe predecessor clauses of each other, either directly or indirectly. - - - OCL - true - - - - - Each clause of a conditional node must have the same number of bodyOutput pins as the conditional node has result output pins, and each clause bodyOutput pin must be compatible with the corresponding result pin (by positional order) in type, multiplicity, ordering and uniqueness. - - - OCL - true - - - - - No ExecutableNode may appear in the test or body part of more than one clause of a conditional node. - - - OCL - true - - - - - The result output pins have no incoming edges. - - - OCL - true - - - - - A conditional node has no input pins. - - - OCL - true - - - - - - Set of clauses composing the conditional. - - - - - - If true, the modeler asserts that at least one test will succeed. - - - - - - - If true, the modeler asserts that at most one test will succeed. - - - - - - - A list of output pins that constitute the data flow outputs of the conditional. - - - - - - - - ConnectableElement is an abstract metaclass representing a set of instances that play roles of a classifier. Connectable elements may be joined by attached connectors and specify configurations of linked instances to be created within an instance of the containing classifier. - - - A connectable element may be exposed as a connectable element template parameter. - - - - - - Denotes a set of connector ends that attaches to this connectable element. - - - - - - - The ConnectableElementTemplateParameter for this ConnectableElement parameter. - - - - - - Missing derivation for ConnectableElement::/end : ConnectorEnd - - - - OCL - true - - - - - - - - - - - A connectable element template parameter exposes a connectable element as a formal parameter for a template. - - - - - The ConnectableElement for this template parameter. - - - - - - A connection point reference represents a usage (as part of a submachine state) of an entry/exit point defined in the statemachine reference by the submachine state. - - - - The entry Pseudostates must be Pseudostates with kind entryPoint. - - - OCL - entry->notEmpty() implies entry->forAll(e | e.kind = #entryPoint) - - - - - The exit Pseudostates must be Pseudostates with kind exitPoint. - - - OCL - exit->notEmpty() implies exit->forAll(e | e.kind = #exitPoint) - - - - - - The entryPoint kind pseudo states corresponding to this connection point. - - - - - - - The exitPoints kind pseudo states corresponding to this connection point. - - - - - - - The State in which the connection point refreshens are defined. - - - - - - - A delegation connector is a connector that links the external contract of a component (as specified by its ports) to the realization of that behavior. It represents the forwarding of events (operation requests and events): a signal that arrives at a port that has a delegation connector to one or more parts or ports on parts will be passed on to those targets for handling. An assembly connector is a connector between two or more parts or ports on parts that defines that one or more parts provide the services that other parts use. - - - Specifies a link that enables communication between two or more instances. This link may be an instance of an association, or it may represent the possibility of the instances being able to communicate because their identities are known by virtue of being passed in as parameters, held in variables or slots, or because the communicating instances are the same instance. The link may be realized by something as simple as a pointer or by something as complex as a network connection. In contrast to associations, which specify links between any instance of the associated classifiers, connectors specify links between instances playing the connected parts only. - - - - The connectable elements attached to the ends of a connector must be compatible. - - - OCL - true - - - - - The ConnectableElements attached as roles to each ConnectorEnd owned by a Connector must be roles of the Classifier that owned the Connector, or they must be ports of such roles. - - - OCL - true - - - - - Each feature of each of the required interfaces of each Port or Part at the end of a connector must have at least one compatible feature among the features of the provided interfaces of Ports or Parts at the other ends, where the required set of (interface) features of a delegating port from the context of the delegating connector is the set of features that exist in the port's provided interfaces, and the provided set of (interface) features of a delegating port from the context of the delegating connector is the set of features that exist in the port's required interfaces. - - - OCL - true - - - - - The types of the connectable elements that the ends of a connector are attached to must conform to the types of the association ends of the association that types the connector, if any. - - - OCL - true - - - - - - The set of Behaviors that specify the valid interaction patterns across the connector. - - - - - - - A connector consists of at least two connector ends, each representing the participation of instances of the classifiers typing the connectable elements attached to this end. The set of connector ends is ordered. - - - - - - - Indicates the kind of connector. This is derived: a connector with one or more ends connected to a Port which is not on a Part and which is not a behavior port is a delegation; otherwise it is an assembly. - - - - - A connector may be redefined when its containing classifier is specialized. The redefining connector may have a type that specializes the type of the redefined connector. The types of the connector ends of the redefining connector may specialize the types of the connector ends of the redefined connector. The properties of the connector ends of the redefining connector may be replaced. - - - - - - - An optional association that specifies the link corresponding to this connector. - - - - - - Missing derivation for Connector::/kind : ConnectorKind - - - - OCL - result = -if end->exists( - role.oclIsKindOf(Port) - and partWithPort->isEmpty() - and not role.oclAsType(Port).isBehavior) -then ConnectorKind::delegation -else ConnectorKind::assembly -endif - - - - - - - - A connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector end is part of one connector. - - - - If a connector end references a partWithPort, then the role must be a port that is defined by the type of the partWithPort. - - - OCL - true - - - - - The property held in self.partWithPort must not be a Port. - - - OCL - true - - - - - The multiplicity of the connector end may not be more general than the multiplicity of the association typing the owning connector. - - - OCL - true - - - - - If a connector end is attached to a port of the containing classifier, partWithPort will be empty. - - - OCL - true - - - - - - A derived association referencing the corresponding association end on the association which types the connector owing this connector end. This association is derived by selecting the association end at the same place in the ordering of association ends as this connector end. - - - - - - Indicates the role of the internal structure of a classifier with the port to which the connector end is attached. - - - - - - The connectable element attached at this connector end. When an instance of the containing classifier is created, a link may (depending on the multiplicities) be created to an instance of the classifier that types this connectable element. - - - - - Missing derivation for ConnectorEnd::/definingEnd : Property - - - - OCL - true - - - - - - - - - - A consider ignore fragment is a kind of combined fragment that is used for the consider and ignore cases, which require lists of pertinent messages to be specified. - - - - The NamedElements must be of a type of element that identifies a message (e.g., an Operation, Reception, or a Signal). - - - OCL - message->forAll(m | m.oclIsKindOf(Operation) or m.oclIsKindOf(Reception) or m.oclIsKindOf(Signal)) - - - - - The interaction operator of a ConsiderIgnoreFragment must be either 'consider' or 'ignore'. - - - OCL - (interactionOperator = #consider) or (interactionOperator = #ignore) - - - - - - The set of messages that apply to this fragment - - - - - - - - A constraint is a condition or restriction expressed in natural language text or in a machine readable language for the purpose of declaring some of the semantics of an element. - - - - A constraint cannot be applied to itself. - - - OCL - not constrainedElement->includes(self) - - - - - Evaluating the value specification for a constraint must not have side effects. - - - OCL - true - - - - - The value specification for a constraint must evaluate to a Boolean value. - - - OCL - true - - - - - The value specification for a constraint must evaluate to a Boolean value. - - - OCL - self.specification().booleanValue().isOclKindOf(Boolean) - - - - - - The ordered set of Elements referenced by this Constraint. - - - - - - - Specifies the namespace that owns the NamedElement. - - - - - - A condition that must be true when evaluated in order for the constraint to be satisfied. - - - - - - A continuation is a syntactic way to define continuations of different branches of an alternative combined fragment. Continuations is intuitively similar to labels representing intermediate points in a flow of control. - - - - Continuations with the same name may only cover the same set of Lifelines (within one Classifier). - - - OCL - true - - - - - Continuations always occur as the very first InteractionFragment or the very last InteractionFragment of the enclosing InteractionFragment. - - - OCL - true - - - - - Continuations are always global in the enclosing InteractionFragment e.g. it always covers all Lifelines covered by the enclosing InteractionFragment. - - - OCL - true - - - - - - True: when the Continuation is at the end of the enclosing InteractionFragment and False when it is in the beginning. - - - - - - - - A control flow is an edge that starts an activity node after the previous one is finished. - - - - Control flows may not have object nodes at either end, except for object nodes with control type. - - - OCL - true - - - - - - - A control node is an abstract activity node that coordinates flows in an activity. - - - - - - A create link action is a write link action for creating links. - - - - The association cannot be an abstract classifier. - - - OCL - self.association().isAbstract = #false - - - - - - Specifies ends of association and inputs. - - - - - - - - A create link object action creates a link object. - - - - The association must be an association class. - - - OCL - self.association().oclIsKindOf(Class) - - - - - The type of the result pin must be the same as the association of the action. - - - OCL - self.result.type = self.association() - - - - - The multiplicity of the output pin is 1..1. - - - OCL - self.result.multiplicity.is(1,1) - - - - - - Gives the output pin on which the result is put. - - - - - - A create object action is an action that creates an object that conforms to a statically specified classifier and puts it on an output pin at runtime. - - - - The classifier cannot be an association class - - - OCL - not self.classifier.oclIsKindOf(AssociationClass) - - - - - The classifier cannot be abstract. - - - OCL - not (self.classifier.isAbstract = #true) - - - - - The type of the result pin must be the same as the classifier of the action. - - - OCL - self.result.type = self.classifier - - - - - The multiplicity of the output pin is 1..1. - - - OCL - self.result.multiplicity.is(1,1) - - - - - - Classifier to be instantiated. - - - - - Gives the output pin on which the result is put. - - - - - - A data store node is a central buffer node for non-transient information. - - - - - - A data type is a type whose instances are identified only by their value. A data type may contain attributes to support the modeling of structured data types. - - - - - The Attributes owned by the DataType. - - - - - - - The Operations owned by the DataType. - - - - - - - The inherit operation is overridden to exclude redefined properties. - - - - OCL - result = inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh))) - - - - - - - - - - - - - - - A decision node is a control node that chooses between outgoing flows. - - - - A decision input behavior has no output parameters, no in-out parameters and one return parameter. - - - OCL - true - - - - - If the decision node has no decision input flow and an incoming object flow, then a decision input behavior has one input parameter whose type is the same as or a supertype of the type of object tokens offered on the incoming edge. - - - OCL - true - - - - - A decision node has one or two incoming edges and at least one outgoing edge. - - - OCL - true - - - - - If the decision node has a decision input flow and an incoming control flow, then a decision input behavior has one input parameter whose type is the same as or a supertype of the type of object tokens offered on the decision input flow. - - - OCL - true - - - - - If the decision node has a decision input flow and an second incoming object flow, then a decision input behavior has two input parameters, the first of which has a type that is the same as or a supertype of the type of the type of object tokens offered on the nondecision input flow and the second of which has a type that is the same as or a supertype of the type of object tokens offered on the decision input flow. - - - OCL - true - - - - - The decisionInputFlow of a decision node must be an incoming edge of the decision node. - - - OCL - true - - - - - If the decision node has no decision input flow and an incoming control flow, then a decision input behavior has zero input parameters. - - - OCL - true - - - - - The edges coming into and out of a decision node, other than the decision input flow (if any), must be either all object flows or all control flows. - - - OCL - true - - - - - - Provides input to guard specifications on edges outgoing from the decision node. - - - - - - An additional edge incoming to the decision node that provides a decision input value. - - - - - - - A dependency is a relationship that signifies that a single or a set of model elements requires other model elements for their specification or implementation. This means that the complete semantics of the depending elements is either semantically or structurally dependent on the definition of the supplier element(s). - - - - - - The element(s) dependent on the supplier element(s). In some cases (such as a Trace Abstraction) the assignment of direction (that is, the designation of the client element) is at the discretion of the modeler, and is a stipulation. - - - - - - The element(s) independent of the client element(s), in the same respect and the same dependency relationship. In some directed dependency relationships (such as Refinement Abstractions), a common convention in the domain of class-based OO software is to put the more abstract element in this role. Despite this convention, users of UML may stipulate a sense of dependency suitable for their domain, which makes a more abstract element dependent on that which is more specific. - - - - - - - A deployed artifact is an artifact or artifact instance that has been deployed to a deployment target. - - - - - - A deployment is the allocation of an artifact or artifact instance to a deployment target. - - - A component deployment is the deployment of one or more artifacts or artifact instances to a deployment target, optionally parameterized by a deployment specification. Examples are executables and configuration files. - - - - - The specification of properties that parameterize the deployment and execution of one or more Artifacts. - - - - - - - The Artifacts that are deployed onto a Node. This association specializes the supplier association. - - - - - - - The DeployedTarget which is the target of a Deployment. - - - - - - A deployment specification specifies a set of properties that determine execution parameters of a component artifact that is deployed on a node. A deployment specification can be aimed at a specific type of container. An artifact that reifies or implements deployment specification properties is a deployment descriptor. - - - - The deployedElements of a DeploymentTarget that are involved in a Deployment that has an associated Deployment-Specification is a kind of Component (i.e. the configured components). - - - OCL - self.deployment->forAll (d | d.location.deployedElements->forAll (de | - de.oclIsKindOf(Component))) - - - - - The DeploymentTarget of a DeploymentSpecification is a kind of ExecutionEnvironment. - - - OCL - self.deployment->forAll (d | d.location.oclIsKindOf(ExecutionEnvironment)) - - - - - - The deployment with which the DeploymentSpecification is associated. - - - - - - The location where an Artifact is deployed onto a Node. This is typically a 'directory' or 'memory address'. - - - - - - - The location where a component Artifact executes. This may be a local or remote location. - - - - - - - - A deployment target is the location for a deployed artifact. - - - - - The set of elements that are manifested in an Artifact that is involved in Deployment to a DeploymentTarget. - - - - - - - The set of Deployments for a DeploymentTarget. - - - - - - - Missing derivation for DeploymentTarget::/deployedElement : PackageableElement - - - - OCL - result = ((self.deployment->collect(deployedArtifact))->collect(manifestation))->collect(utilizedElement) - - - - - - - - - - - A destroy link action is a write link action that destroys links and link objects. - - - - - Specifies ends of association and inputs. - - - - - - - - A destroy object action is an action that destroys objects. - - - - The multiplicity of the input pin is 1..1. - - - OCL - self.target.multiplicity.is(1,1) - - - - - The input pin has no type. - - - OCL - self.target.type->size() = 0 - - - - - - Specifies whether links in which the object participates are destroyed along with the object. - - - - - - - Specifies whether objects owned by the object are destroyed along with the object. - - - - - - - The input pin providing the object to be destroyed. - - - - - - A destruction event models the destruction of an object. - - - - No other OccurrenceSpecifications on a given Lifeline in an InteractionOperand may appear below a DestructionOccurrenceSpecification. - - - OCL - true - - - - - - - A device is a physical computational resource with processing capability upon which artifacts may be deployed for execution. Devices may be complex (i.e., they may consist of other devices). - - - - - - A directed relationship represents a relationship between a collection of source model elements and a collection of target model elements. - - - - - Specifies the sources of the DirectedRelationship. - - - - - - Specifies the targets of the DirectedRelationship. - - - - - - - Duration defines a value specification that specifies the temporal distance between two time instants. - - - - - The value of the Duration. - - - - - - Refers to the time and duration observations that are involved in expr. - - - - - - - - A duration constraint is a constraint that refers to a duration interval. - - - - The multiplicity of firstEvent must be 2 if the multiplicity of constrainedElement is 2. Otherwise the multiplicity of firstEvent is 0. - - - OCL - if (constrainedElement->size() =2) - then (firstEvent->size() = 2) else (firstEvent->size() = 0) - - - - - - The value of firstEvent[i] is related to constrainedElement[i] (where i is 1 or 2). If firstEvent[i] is true, then the corresponding observation event is the first time instant the execution enters constrainedElement[i]. If firstEvent[i] is false, then the corresponding observation event is the last time instant the execution is within constrainedElement[i]. Default value is true applied when constrainedElement[i] refers an element that represents only one time instant. - - - - - - - - The interval constraining the duration. - - - - - - A duration interval defines the range between two durations. - - - - - Refers to the Duration denoting the maximum value of the range. - - - - - Refers to the Duration denoting the minimum value of the range. - - - - - - A duration observation is a reference to a duration during an execution. It points out the element(s) in the model to observe and whether the observations are when this model element is entered or when it is exited. - - - - The multiplicity of firstEvent must be 2 if the multiplicity of event is 2. Otherwise the multiplicity of firstEvent is 0. - - - OCL - if (event->size() = 2) - then (firstEvent->size() = 2) else (firstEvent->size() = 0) - - - - - - The observation is determined by the entering or exiting of the event element during execution. - - - - - - The value of firstEvent[i] is related to event[i] (where i is 1 or 2). If firstEvent[i] is true, then the corresponding observation event is the first time instant the execution enters event[i]. If firstEvent[i] is false, then the corresponding observation event is the time instant the execution exits event[i]. Default value is true applied when event[i] refers an element that represents only one time instant. - - - - - - - - - An element is a constituent of a model. As such, it has the capability of owning other elements. - - - - Elements that must be owned must have an owner. - - - OCL - self.mustBeOwned() implies owner->notEmpty() - - - - - An element may not directly or indirectly own itself. - - - OCL - not self.allOwnedElements()->includes(self) - - - - - The Comments owned by this element. - - - - - - - The Elements owned by this element. - - - - - - - The Element that owns this element. - - - - - - The query allOwnedElements() gives all of the direct and indirect owned elements of an element. - - - - OCL - result = ownedElement->union(ownedElement->collect(e | e.allOwnedElements())) - - - - - - - - - - The query mustBeOwned() indicates whether elements of this type must have an owner. Subclasses of Element that do not require an owner must override this operation. - - - - OCL - result = true - - - - - - - - - - An element import identifies an element in another package, and allows the element to be referenced using its name without a qualifier. - - - - The visibility of an ElementImport is either public or private. - - - OCL - self.visibility = #public or self.visibility = #private - - - - - An importedElement has either public visibility or no visibility at all. - - - OCL - self.importedElement.visibility.notEmpty() implies self.importedElement.visibility = #public - - - - - - Specifies the name that should be added to the namespace of the importing package in lieu of the name of the imported packagable element. The aliased name must not clash with any other member name in the importing package. By default, no alias is used. - - - - - - - Specifies the PackageableElement whose name is to be added to a Namespace. - - - - - Specifies the Namespace that imports a PackageableElement from another Package. - - - - - Specifies the visibility of the imported PackageableElement within the importing Package. The default visibility is the same as that of the imported element. If the imported element does not have a visibility, it is possible to add visibility to the element import. - - - - - - The query getName() returns the name under which the imported PackageableElement will be known in the importing namespace. - - - - OCL - result = if self.alias->notEmpty() then - self.alias -else - self.importedElement.name -endif - - - - - - - - - - A classifier has the ability to own ports as specific and type checked interaction points. - - - - - References a set of ports that an encapsulated classifier owns. - - - - - - - Missing derivation for EncapsulatedClassifier::/ownedPort : Port - - - - OCL - true - - - - - - - - - - - An enumeration is a data type whose values are enumerated in the model as enumeration literals. - - - - - The ordered set of literals for this Enumeration. - - - - - - - - An enumeration literal is a user-defined data value for an enumeration. - - - - OCL - classifier = enumeration - - - - - - The classifier of this EnumerationLiteral derived to be equal to its enumeration. - - - - - The Enumeration that this EnumerationLiteral is a member of. - - - - - - Missing derivation for EnumerationLiteral::/classifier : Enumeration - - - - OCL - true - - - - - - - - An event is the specification of some occurrence that may potentially trigger effects by an object. - - - - - - An exception handler is an element that specifies a body to execute in case the specified exception occurs during the execution of the protected node. - - - - The handler body has one input, and that input is the same as the exception input. - - - OCL - true - - - - - An edge that has a source in an exception handler structured node must have its target in the handler also, and vice versa. - - - OCL - true - - - - - If the protected node is a StructuredActivityNode with output pins, then the exception handler body must also be a StructuredActivityNode with output pins that correspond in number and types to those of the protected node. - - - OCL - true - - - - - The exception handler and its input object node are not the source or target of any edge. - - - OCL - true - - - - - - An object node within the handler body. When the handler catches an exception, the exception token is placed in this node, causing the body to execute. - - - - - The kind of instances that the handler catches. If an exception occurs whose type is any of the classifiers in the set, the handler catches the exception and executes its body. - - - - - - A node that is executed if the handler satisfies an uncaught exception. - - - - - The node protected by the handler. The handler is examined if an exception propagates to the outside of the node. - - - - - - An executable node is an abstract class for activity nodes that may be executed. It is used as an attachment point for exception handlers. - - - An executable node is an abstract class for activity nodes that may be executed. It is used as an attachment point for exception handlers. - - - - - A set of exception handlers that are examined if an uncaught exception propagates to the outer level of the executable node. - - - - - - - - An execution environment is a node that offers an execution environment for specific types of components that are deployed on it in the form of executable artifacts. - - - - - - An execution occurrence specification represents moments in time at which actions or behaviors start or finish. - - - - - References the execution specification describing the execution that is started or finished at this execution event. - - - - - - An execution specification is a specification of the execution of a unit of behavior or action within the lifeline. The duration of an execution specification is represented by two cccurrence specifications, the start occurrence specification and the finish occurrence specification. - - - - The startEvent and the finishEvent must be on the same Lifeline - - - OCL - start.lifeline = finish.lifeline - - - - - - References the OccurrenceSpecification that designates the finish of the Action or Behavior. - - - - - References the OccurrenceSpecification that designates the start of the Action or Behavior - - - - - - An expansion node is an object node used to indicate a flow across the boundary of an expansion region. A flow into a region contains a collection that is broken into its individual elements inside the region, which is executed once per element. A flow out of a region combines individual elements into a collection for use outside the region. - - - - One of regionAsInput or regionAsOutput must be non-empty, but not both. - - - OCL - true - - - - - - The expansion region for which the node is an input. - - - - - - The expansion region for which the node is an output. - - - - - - - An expansion region is a structured activity region that executes multiple times corresponding to elements of an input collection. - - - - An ExpansionRegion must have one or more argument ExpansionNodes and zero or more result ExpansionNodes. - - - OCL - true - - - - - - An object node that holds a separate element of the input collection during each of the multiple executions of the region. - - - - - - The way in which the executions interact: parallel: all interactions are independent iterative: the interactions occur in order of the elements stream: a stream of values flows into a single execution - - - - - - An object node that accepts a separate element of the output collection during each of the multiple executions of the region. The values are formed into a collection that is available when the execution of the region is complete. - - - - - - - - An expression is a structured tree of symbols that denotes a (possibly empty) set of values when evaluated in a context. - - - An expression represents a node in an expression tree, which may be non-terminal or terminal. It defines a symbol, and has a possibly empty sequence of operands which are value specifications. - - - - - Specifies a sequence of operands. - - - - - - - The symbol associated with the node in the expression tree. - - - - - - - - A relationship from an extending use case to an extended use case that specifies how and when the behavior defined in the extending use case can be inserted into the behavior defined in the extended use case. - - - - The extension points referenced by the extend relationship must belong to the use case that is being extended. - - - OCL - extensionLocation->forAll (xp | extendedCase.extensionPoint->includes(xp)) - - - - - - - References the condition that must hold when the first extension point is reached for the extension to take place. If no constraint is associated with the extend relationship, the extension is unconditional. - - - - - - References the use case that is being extended. - - - - - References the use case that represents the extension and owns the extend relationship. - - - - - An ordered list of extension points belonging to the extended use case, specifying where the respective behavioral fragments of the extending use case are to be inserted. The first fragment in the extending use case is associated with the first extension point in the list, the second fragment with the second point, and so on. (Note that, in most practical cases, the extending use case has just a single behavior fragment, so that the list of extension points is trivial.) - - - - - - - An extension is used to indicate that the properties of a metaclass are extended through a stereotype, and gives the ability to flexibly add (and later remove) stereotypes to classes. - - - - The non-owned end of an Extension is typed by a Class. - - - OCL - metaclassEnd()->notEmpty() and metaclass()->oclIsKindOf(Class) - - - - - An Extension is binary, i.e., it has only two memberEnds. - - - OCL - memberEnd->size() = 2 - - - - - - Indicates whether an instance of the extending stereotype must be created when an instance of the extended class is created. The attribute value is derived from the value of the lower property of the ExtensionEnd referenced by Extension::ownedEnd; a lower value of 1 means that isRequired is true, but otherwise it is false. Since the default value of ExtensionEnd::lower is 0, the default value of isRequired is false. - - - - - - - References the Class that is extended through an Extension. The property is derived from the type of the memberEnd that is not the ownedEnd. - - - - - References the end of the extension that is typed by a Stereotype. - - - - - The query isRequired() is true if the owned end has a multiplicity with the lower bound of 1. - - - - OCL - result = (ownedEnd->lowerBound() = 1) - - - - - - - - - The query metaclass() returns the metaclass that is being extended (as opposed to the extending stereotype). - - - - OCL - result = metaclassEnd().type - - - - - - - The query metaclassEnd() returns the Property that is typed by a metaclass (as opposed to a stereotype). - - - - OCL - result = memberEnd->reject(ownedEnd) - - - - - - - - An extension end is used to tie an extension to a stereotype when extending a metaclass. - - - The default multiplicity of an extension end is 0..1. - - - - The multiplicity of ExtensionEnd is 0..1 or 1. - - - OCL - (self->lowerBound() = 0 or self->lowerBound() = 1) and self->upperBound() = 1 - - - - - The aggregation of an ExtensionEnd is composite. - - - OCL - self.aggregation = #composite - - - - - - This redefinition changes the default multiplicity of association ends, since model elements are usually extended by 0 or 1 instance of the extension stereotype. - - - - - - - - References the type of the ExtensionEnd. Note that this association restricts the possible types of an ExtensionEnd to only be Stereotypes. - - - - - The query lowerBound() returns the lower bound of the multiplicity as an Integer. This is a redefinition of the default lower bound, which normally, for MultiplicityElements, evaluates to 1 if empty. - - - - OCL - result = lowerBound = if lowerValue->isEmpty() then 0 else lowerValue->IntegerValue() endif - - - - - - - - - - - An extension point identifies a point in the behavior of a use case where that behavior can be extended by the behavior of some other (extending) use case, as specified by an extend relationship. - - - - An ExtensionPoint must have a name. - - - OCL - self.name->notEmpty () - - - - - - References the use case that owns this extension point. - - - - - - A feature declares a behavioral or structural characteristic of instances of classifiers. - - - - - The Classifiers that have this Feature as a feature. - - - - - - - Specifies whether this feature characterizes individual instances classified by the classifier (false) or the classifier itself (true). - - - - - - - - A final node is an abstract control node at which a flow in an activity stops. - - - - A final node has no outgoing edges. - - - OCL - true - - - - - - - A special kind of state signifying that the enclosing region is completed. If the enclosing region is directly contained in a state machine and all other regions in the state machine also are completed, then it means that the entire state machine is completed. - - - - A final state cannot have any outgoing transitions. - - - OCL - self.outgoing->size() = 0 - - - - - A final state cannot reference a submachine. - - - OCL - self.submachine->isEmpty() - - - - - A final state has no exit behavior. - - - OCL - self.exit->isEmpty() - - - - - A final state has no entry behavior. - - - OCL - self.entry->isEmpty() - - - - - A final state has no state (doActivity) behavior. - - - OCL - self.doActivity->isEmpty() - - - - - A final state cannot have regions. - - - OCL - self.region->size() = 0 - - - - - - - A flow final node is a final node that terminates a flow. - - - - - - A fork node is a control node that splits a flow into multiple concurrent flows. - - - - The edges coming into and out of a fork node must be either all object flows or all control flows. - - - OCL - true - - - - - A fork node has one incoming edge. - - - OCL - true - - - - - - - A function behavior is an opaque behavior that does not access or modify any objects or other external data. - - - - A function behavior has at least one output parameter. - - - OCL - self.ownedParameters-> - select(p | p.direction=#out or p.direction=#inout or p.direction=#return)->size() >= 1 - - - - - The types of parameters are all data types, which may not nest anything but other datatypes. - - - OCL - def: hasAllDataTypeAttributes(d : DataType) : Boolean = - d.ownedAttribute->forAll(a | - a.type.oclIsTypeOf(DataType) and - hasAllDataTypeAttributes(a.type)) -self.ownedParameters->forAll(p | p.type.notEmpty() and - p.oclIsTypeOf(DataType) and hasAllDataTypeAttributes(p)) - - - - - - - A gate is a connection point for relating a message outside an interaction fragment with a message inside the interaction fragment. - - - - The message leading to/from an (expression) Gate within a CombinedFragment must correspond to the message leading from/to the CombinedFragment on its outside. - - - OCL - true - - - - - The message leading to/from an actualGate of an InteractionUse must correspond to the message leading from/to the formalGate with the same name of the Interaction referenced by the InteractionUse. - - - OCL - true - - - - - - - A general ordering represents a binary relation between two occurrence specifications, to describe that one occurrence specification must occur before the other in a valid trace. This mechanism provides the ability to define partial orders of occurrence cpecifications that may otherwise not have a specified order. - - - - An occurrence specification must not be ordered relative to itself through a series of general orderings. (In other words, the transitive closure of the general orderings is irreflexive.) - - - OCL - start.lifeline = finish.lifeline - - - - - - The OccurrenceSpecification referenced comes after the OccurrenceSpecification referenced by before. - - - - - The OccurrenceSpecification referenced comes before the OccurrenceSpecification referenced by after. - - - - - - A generalization is a taxonomic relationship between a more general classifier and a more specific classifier. Each instance of the specific classifier is also an indirect instance of the general classifier. Thus, the specific classifier inherits the features of the more general classifier. - - - A generalization relates a specific classifier to a more general classifier, and is owned by the specific classifier. - - - - Every Generalization associated with a given GeneralizationSet must have the same general Classifier. That is, all Generalizations for a particular GeneralizationSet must have the same superclass. - - - OCL - true - - - - - - References the general classifier in the Generalization relationship. - - - - - Designates a set in which instances of Generalization is considered members. - - - - - - - Indicates whether the specific classifier can be used wherever the general classifier can be used. If true, the execution traces of the specific classifier will be a superset of the execution traces of the general classifier. - - - - - - - - References the specializing classifier in the Generalization relationship. - - - - - - A generalization set is a packageable element whose instances define collections of subsets of generalization relationships. - - - - The Classifier that maps to a GeneralizationSet may neither be a specific nor a general Classifier in any of the Generalization relationships defined for that GeneralizationSet. In other words, a power type may not be an instance of itself nor may its instances be its subclasses. - - - OCL - true - - - - - Every Generalization associated with a particular GeneralizationSet must have the same general Classifier. - - - OCL - generalization->collect(g | g.general)->asSet()->size() <= 1 - - - - - - Designates the instances of Generalization which are members of a given GeneralizationSet. - - - - - - - Indicates (via the associated Generalizations) whether or not the set of specific Classifiers are covering for a particular general classifier. When isCovering is true, every instance of a particular general Classifier is also an instance of at least one of its specific Classifiers for the GeneralizationSet. When isCovering is false, there are one or more instances of the particular general Classifier that are not instances of at least one of its specific Classifiers defined for the GeneralizationSet. - - - - - - - Indicates whether or not the set of specific Classifiers in a Generalization relationship have instance in common. If isDisjoint is true, the specific Classifiers for a particular GeneralizationSet have no members in common; that is, their intersection is empty. If isDisjoint is false, the specific Classifiers in a particular GeneralizationSet have one or more members in common; that is, their intersection is not empty. For example, Person could have two Generalization relationships, each with the different specific Classifier: Manager or Staff. This would be disjoint because every instance of Person must either be a Manager or Staff. In contrast, Person could have two Generalization relationships involving two specific (and non-covering) Classifiers: Sales Person and Manager. This GeneralizationSet would not be disjoint because there are instances of Person which can be a Sales Person and a Manager. - - - - - - - Designates the Classifier that is defined as the power type for the associated GeneralizationSet. - - - - - - - Physical definition of a graphical image. - - - - - This contains the serialization of the image according to the format. The value could represent a bitmap, image such as a GIF file, or drawing 'instructions' using a standard such as Scalable Vector Graphic (SVG) (which is XML based). - - - - - - - This indicates the format of the content - which is how the string content should be interpreted. The following values are reserved: SVG, GIF, PNG, JPG, WMF, EMF, BMP. In addition the prefix 'MIME: ' is also reserved. This option can be used as an alternative to express the reserved values above, for example "SVG" could instead be expressed as "MIME: image/svg+xml". - - - - - - - This contains a location that can be used by a tool to locate the image as an alternative to embedding it in the stereotype. - - - - - - - - An include relationship defines that a use case contains the behavior defined in another use case. - - - - - - References the use case that is to be included. - - - - - References the use case which will include the addition and owns the include relationship. - - - - - - An information flow specifies that one or more information items circulates from its sources to its targets. Information flows require some kind of information channel for transmitting information items from the source to the destination. An information channel is represented in various ways depending on the nature of its sources and targets. It may be represented by connectors, links, associations, or even dependencies. For example, if the source and destination are parts in some composite structure such as a collaboration, then the information channel is likely to be represented by a connector between them. Or, if the source and target are objects (which are a kind of instance specification), they may be represented by a link that joins the two, and so on. - - - - The sources and targets of the information flow can only be one of the following kind: Actor, Node, UseCase, Artifact, Class, Component, Port, Property, Interface, Package, ActivityNode, ActivityPartition and InstanceSpecification except when its classifier is a relationship (i.e. it represents a link). - - - OCL - (self.informationSource->forAll(p | p->oclIsKindOf(Actor) or oclIsKindOf(Node) or - oclIsKindOf(UseCase) or oclIsKindOf(Artifact) or oclIsKindOf(Class) or - oclIsKindOf(Component) or oclIsKindOf(Port) or oclIsKindOf(Property) or - oclIsKindOf(Interface) or oclIsKindOf(Package) or oclIsKindOf(ActivityNode) or - oclIsKindOf(ActivityPartition) or oclIsKindOf(InstanceSpecification))) and - (self.informationTarget->forAll(p | p->oclIsKindOf(Actor) or oclIsKindOf(Node) or - oclIsKindOf(UseCase) or oclIsKindOf(Artifact) or oclIsKindOf(Class) or - oclIsKindOf(Component) or oclIsKindOf(Port) or oclIsKindOf(Property) or - oclIsKindOf(Interface) or oclIsKindOf(Package) or oclIsKindOf(ActivityNode) or - oclIsKindOf(ActivityPartition) or oclIsKindOf(InstanceSpecification))) - - - - - The sources and targets of the information flow must conform with the sources and targets or conversely the targets and sources of the realization relationships. - - - OCL - true - - - - - An information flow can only convey classifiers that are allowed to represent an information item. - - - OCL - self.conveyed.represented->forAll(p | p->oclIsKindOf(Class) or oclIsKindOf(Interface) - or oclIsKindOf(InformationItem) or oclIsKindOf(Signal) or oclIsKindOf(Component)) - - - - - - - Specifies the information items that may circulate on this information flow. - - - - - - Defines from which source the conveyed InformationItems are initiated. - - - - - - Defines to which target the conveyed InformationItems are directed. - - - - - - Determines which Relationship will realize the specified flow - - - - - - - Determines which ActivityEdges will realize the specified flow. - - - - - - - Determines which Connectors will realize the specified flow. - - - - - - - Determines which Messages will realize the specified flow. - - - - - - - - An information item is an abstraction of all kinds of information that can be exchanged between objects. It is a kind of classifier intended for representing information in a very abstract way, one which cannot be instantiated. - - - - An informationItem has no feature, no generalization, and no associations. - - - OCL - self.generalization->isEmpty() and self.feature->isEmpty() - - - - - It is not instantiable. - - - OCL - isAbstract - - - - - The sources and targets of an information item (its related information flows) must designate subsets of the sources and targets of the representation information item, if any.The Classifiers that can realize an information item can only be of the following kind: Class, Interface, InformationItem, Signal, Component. - - - OCL - (self.represented->select(p | p->oclIsKindOf(InformationItem))->forAll(p | - p.informationFlow.source->forAll(q | self.informationFlow.source->include(q)) and - p.informationFlow.target->forAll(q | self.informationFlow.target->include(q)))) and - (self.represented->forAll(p | p->oclIsKindOf(Class) or oclIsKindOf(Interface) or - oclIsKindOf(InformationItem) or oclIsKindOf(Signal) or oclIsKindOf(Component))) - - - - - - Determines the classifiers that will specify the structure and nature of the information. An information item represents all its represented classifiers. - - - - - - - - An initial node is a control node at which flow starts when the activity is invoked. - - - - An initial node has no incoming edges. - - - OCL - true - - - - - Only control edges can have initial nodes as source. - - - OCL - true - - - - - - - An input pin is a pin that holds input values to be consumed by an action. - - - - Input pins may have outgoing edges only when they are on actions that are structured nodes, and these edges must target a node contained by the structured node. - - - OCL - true - - - - - - - An instance specification has the capability of being a deployment target in a deployment relationship, in the case that it is an instance of a node. It is also has the capability of being a deployed artifact, if it is an instance of an artifact. - - - An instance specification is a model element that represents an instance in a modeled system. - - - - One structural feature (including the same feature inherited from multiple classifiers) is the defining feature of at most one slot in an instance specification. - - - OCL - classifier->forAll(c | (c.allFeatures()->forAll(f | slot->select(s | s.definingFeature = f)->size() <= 1))) - - - - - The defining feature of each slot is a structural feature (directly or inherited) of a classifier of the instance specification. - - - OCL - slot->forAll(s | classifier->exists (c | c.allFeatures()->includes (s.definingFeature))) - - - - - An InstanceSpecification can be a DeploymentTarget if it is the instance specification of a Node and functions as a part in the internal structure of an encompassing Node. - - - OCL - true - - - - - An InstanceSpecification can be a DeployedArtifact if it is the instance specification of an Artifact. - - - OCL - true - - - - - - - - The classifier or classifiers of the represented instance. If multiple classifiers are specified, the instance is classified by all of them. - - - - - - - A slot giving the value or values of a structural feature of the instance. An instance specification can have one slot per structural feature of its classifiers, including inherited features. It is not necessary to model a slot for each structural feature, in which case the instance specification is a partial description. - - - - - - - A specification of how to compute, derive, or construct the instance. - - - - - - - An instance value is a value specification that identifies an instance. - - - - - The instance that is the specified value. - - - - - - An interaction is a unit of behavior that focuses on the observable exchange of information between connectable elements. - - - - - - Actions owned by the Interaction. - - - - - - - Specifies the gates that form the message interface between this Interaction and any InteractionUses which reference it. - - - - - - - The ordered set of fragments in the Interaction. - - - - - - - Specifies the participants in this Interaction. - - - - - - - The Messages contained in this Interaction. - - - - - - - - An interaction constraint is a Boolean expression that guards an operand in a combined fragment. - - - - If maxint is specified, then the expression must evaluate to a positive integer. - - - OCL - true - - - - - Minint/maxint can only be present if the InteractionConstraint is associated with the operand of a loop CombinedFragment. - - - OCL - true - - - - - If minint is specified, then the expression must evaluate to a non-negative integer. - - - OCL - true - - - - - The constraint may contain references to global data or write-once data. - - - OCL - true - - - - - If maxint is specified, then minint must be specified and the evaluation of maxint must be >= the evaluation of minint - - - OCL - true - - - - - The dynamic variables that take part in the constraint must be owned by the ConnectableElement corresponding to the covered Lifeline. - - - OCL - true - - - - - - The maximum number of iterations of a loop - - - - - - The minimum number of iterations of a loop - - - - - - - InteractionFragment is an abstract notion of the most general interaction unit. An interaction fragment is a piece of an interaction. Each interaction fragment is conceptually like an interaction by itself. - - - - - References the Lifelines that the InteractionFragment involves. - - - - - - - The Interaction enclosing this InteractionFragment. - - - - - - The operand enclosing this InteractionFragment (they may nest recursively) - - - - - - The general ordering relationships contained in this fragment. - - - - - - - - An interaction operand is contained in a combined fragment. An interaction operand represents one operand of the expression given by the enclosing combined fragment. - - - - The guard must be placed directly prior to (above) the OccurrenceSpecification that will become the first OccurrenceSpecification within this InteractionOperand. - - - OCL - true - - - - - The guard must contain only references to values local to the Lifeline on which it resides, or values global to the whole Interaction. - - - OCL - true - - - - - - - The fragments of the operand. - - - - - - - Constraint of the operand. - - - - - - - An interaction use refers to an interaction. The interaction use is a shorthand for copying the contents of the referenced interaction where the interaction use is. To be accurate the copying must take into account substituting parameters with arguments and connect the formal gates with the actual ones. - - - - The InteractionUse must cover all Lifelines of the enclosing Interaction that represent the same properties as lifelines within the referred Interaction. - - - OCL - true - - - - - The returnValueRecipient must be a Property of a ConnectableElement that is represented by a Lifeline covered by this InteractionUse. - - - OCL - true - - - - - The arguments of the InteractionUse must correspond to parameters of the referred Interaction - - - OCL - true - - - - - Actual Gates of the InteractionUse must match Formal Gates of the referred Interaction. Gates match when their names are equal. - - - OCL - true - - - - - The arguments must only be constants, parameters of the enclosing Interaction or attributes of the classifier owning the enclosing Interaction. - - - OCL - true - - - - - The type of the returnValue must correspond to the type of the returnValueRecipient. - - - OCL - true - - - - - - The actual gates of the InteractionUse - - - - - - - The actual arguments of the Interaction - - - - - - - Refers to the Interaction that defines its meaning - - - - - The value of the executed Interaction. - - - - - - The recipient of the return value. - - - - - - - Since an interface specifies conformance characteristics, it does not own detailed behavior specifications. Instead, interfaces may own a protocol state machine that specifies event sequences and pre/post conditions for the operations and receptions described by the interface. - - - Interfaces may include receptions (in addition to operations). - - - An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An interface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract. The obligations that may be associated with an interface are in the form of various kinds of constraints (such as pre- and post-conditions) or protocol specifications, which may impose ordering restrictions on interactions through the interface. - - - - The visibility of all features owned by an interface must be public. - - - OCL - self.feature->forAll(f | f.visibility = #public) - - - - - - References all the Classifiers that are defined (nested) within the Class. - - - - - - - The attributes (i.e. the properties) owned by the class. - - - - - - - The operations owned by the class. - - - - - - - Receptions that objects providing this interface are willing to accept. - - - - - - - References a protocol state machine specifying the legal sequences of the invocation of the behavioral features described in the interface. - - - - - - References all the Interfaces redefined by this Interface. - - - - - - - - An interface realization is a specialized realization relationship between a classifier and an interface. This relationship signifies that the realizing classifier conforms to the contract specified by the interface. - - - - - References the Interface specifying the conformance contract. - - - - - References the BehavioredClassifier that owns this Interfacerealization (i.e., the classifier that realizes the Interface to which it points). - - - - - - An interruptible activity region is an activity group that supports termination of tokens flowing in the portions of an activity. - - - - Interrupting edges of a region must have their source node in the region and their target node outside the region in the same activity containing the region. - - - OCL - true - - - - - - The edges leaving the region that will abort other tokens flowing in the region. - - - - - - - Nodes immediately contained in the group. - - - - - - - - An interval defines the range between two value specifications. - - - - - Refers to the ValueSpecification denoting the maximum value of the range. - - - - - Refers to the ValueSpecification denoting the minimum value of the range. - - - - - - An interval constraint is a constraint that refers to an interval. - - - - - A condition that must be true when evaluated in order for the constraint to be satisfied. - - - - - - InvocationAction is an abstract class for the various actions that invoke behavior. - - - In addition to targeting an object, invocation actions can also invoke behavioral features on ports from where the invocation requests are routed onwards on links deriving from attached connectors. Invocation actions may also be sent to a target via a given port, either on the sending object or on another object. - - - - The onPort must be a port on the receiver object. - - - OCL - true - - - - - - Specification of the ordered set of argument values that appears during execution. - - - - - - - A optional port of the receiver object on which the behavioral feature is invoked. - - - - - - - A join node is a control node that synchronizes multiple flows. - - - Join nodes have a Boolean value specification using the names of the incoming edges to specify the conditions under which the join will emit a token. - - - - A join node has one outgoing edge. - - - OCL - self.outgoing->size() = 1 - - - - - If a join node has an incoming object flow, it must have an outgoing object flow, otherwise, it must have an outgoing control flow. - - - OCL - (self.incoming.select(e | e.isTypeOf(ObjectFlow)->notEmpty() implies - self.outgoing.isTypeOf(ObjectFlow)) and - (self.incoming.select(e | e.isTypeOf(ObjectFlow)->empty() implies - self.outgoing.isTypeOf(ControlFlow)) - - - - - - Tells whether tokens having objects with the same identity are combined into one by the join. - - - - - - - A specification giving the conditions under which the join with emit a token. Default is "and". - - - - - - A lifeline represents an individual participant in the interaction. While parts and structural features may have multiplicity greater than 1, lifelines represent only one interacting entity. - - - - If two (or more) InteractionUses within one Interaction, refer to Interactions with 'common Lifelines,' those Lifelines must also appear in the Interaction with the InteractionUses. By common Lifelines we mean Lifelines with the same selector and represents associations. - - - OCL - true - - - - - The classifier containing the referenced ConnectableElement must be the same classifier, or an ancestor, of the classifier that contains the interaction enclosing this lifeline. - - - OCL - if (represents->notEmpty()) then -(if selector->notEmpty() then represents.isMultivalued() else not represents.isMultivalued()) - - - - - - The selector for a Lifeline must only be specified if the referenced Part is multivalued. - - - OCL - (self.selector->isEmpty() implies not self.represents.isMultivalued()) or -(not self.selector->isEmpty() implies self.represents.isMultivalued()) - - - - - - - References the InteractionFragments in which this Lifeline takes part. - - - - - - - References the Interaction that represents the decomposition. - - - - - - References the Interaction enclosing this Lifeline. - - - - - References the ConnectableElement within the classifier that contains the enclosing interaction. - - - - - - If the referenced ConnectableElement is multivalued, then this specifies the specific individual part within that set. - - - - - - - LinkAction is an abstract class for all link actions that identify their links by the objects at the ends of the links and by the qualifiers at ends of the links. - - - - The input pins of the action are the same as the pins of the link end data and insertion pins. - - - OCL - self.input->asSet() = -let ledpins : Set = self.endData->collect(value) in -if self.oclIsKindOf(LinkEndCreationData) -then ledpins->union(self.endData.oclAsType(LinkEndCreationData).insertAt) -else ledpins - - - - - - The association ends of the link end data must all be from the same association and include all and only the association ends of that association. - - - OCL - self.endData->collect(end) = self.association()->collect(connection)) - - - - - The association ends of the link end data must not be static. - - - OCL - self.endData->forall(end.oclisKindOf(NavigableEnd) implies end.isStatic = #false - - - - - - Data identifying one end of a link by the objects on its ends and qualifiers. - - - - - - - Pins taking end objects and qualifier values as input. - - - - - - The association operates on LinkAction. It returns the association of the action. - - - - OCL - result = self.endData->asSequence().first().end.association - - - - - - - - A link end creation data is not an action. It is an element that identifies links. It identifies one end of a link to be created by a create link action. - - - - LinkEndCreationData can only be end data for CreateLinkAction or one of its specializations. - - - OCL - self.LinkAction.oclIsKindOf(CreateLinkAction) - - - - - Link end creation data for ordered association ends must have a single input pin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, otherwise the action has no input pin for the insertion point. - - - OCL - let insertAtPins : Collection = self.insertAt in -if self.end.ordering = #unordered -then insertAtPins->size() = 0 -else let insertAtPin : InputPin = insertAts->asSequence()->first() in -insertAtPins->size() = 1 -and insertAtPin.type = UnlimitedNatural -and insertAtPin.multiplicity.is(1,1)) -endif - - - - - - - Specifies where the new link should be inserted for ordered association ends, or where an existing link should be moved to. The type of the input is UnlimitedNatural, but the input cannot be zero. This pin is omitted for association ends that are not ordered. - - - - - - Specifies whether the existing links emanating from the object on this end should be destroyed before creating a new link. - - - - - - - - A link end data is not an action. It is an element that identifies links. It identifies one end of a link to be read or written by the children of a link action. A link cannot be passed as a runtime value to or from an action. Instead, a link is identified by its end objects and qualifier values, if any. This requires more than one piece of data, namely, the statically-specified end in the user model, the object on the end, and the qualifier values for that end, if any. These pieces are brought together around a link end data. Each association end is identified separately with an instance of the LinkEndData class. - - - - The property must be an association end. - - - OCL - self.end.association->size() = 1 - - - - - The end object input pin is not also a qualifier value input pin. - - - OCL - self.value->excludesAll(self.qualifier.value) - - - - - The type of the end object input pin is the same as the type of the association end. - - - OCL - self.value.type = self.end.type - - - - - The multiplicity of the end object input pin must be 1..1. - - - OCL - self.value.multiplicity.is(1,1) - - - - - The qualifiers include all and only the qualifiers of the association end. - - - OCL - self.qualifier->collect(qualifier) = self.end.qualifier - - - - - - Association end for which this link-end data specifies values. - - - - - List of qualifier values - - - - - - - Input pin that provides the specified object for the given end. This pin is omitted if the link-end data specifies an 'open' end for reading. - - - - - - - A link end destruction data is not an action. It is an element that identifies links. It identifies one end of a link to be destroyed by destroy link action. - - - - LinkEndDestructionData can only be end data for DestroyLinkAction or one of its specializations. - - - OCL - true - - - - - LinkEndDestructionData for ordered nonunique association ends must have a single destroyAt input pin if isDestroyDuplicates is false. It must be of type UnlimitedNatural and have a multiplicity of 1..1. Otherwise, the action has no input pin for the removal position. - - - OCL - true - - - - - - Specifies the position of an existing link to be destroyed in ordered nonunique association ends. The type of the pin is UnlimitedNatural, but the value cannot be zero or unlimited. - - - - - - Specifies whether to destroy duplicates of the value in nonunique association ends. - - - - - - - - A literal Boolean is a specification of a Boolean value. - - - - - The specified Boolean value. - - - - - - - The query booleanValue() gives the value. - - - - OCL - result = value - - - - - - - - - The query isComputable() is redefined to be true. - - - - OCL - result = true - - - - - - - - - - A literal integer is a specification of an integer value. - - - - - The specified Integer value. - - - - - - - The query integerValue() gives the value. - - - - OCL - result = value - - - - - - - - - The query isComputable() is redefined to be true. - - - - OCL - result = true - - - - - - - - - - A literal null specifies the lack of a value. - - - - - The query isComputable() is redefined to be true. - - - - OCL - result = true - - - - - - - - - The query isNull() returns true. - - - - OCL - result = true - - - - - - - - - - A literal real is a specification of a real value. - - - - - - - - The query isComputable() is redefined to be true. - - - - OCL - result = true - - - - - - - - - The query realValue() gives the value. - - - - OCL - result = value - - - - - - - - - - A literal specification identifies a literal constant being modeled. - - - - - - A literal string is a specification of a string value. - - - - - The specified String value. - - - - - - - The query isComputable() is redefined to be true. - - - - OCL - result = true - - - - - - - - - The query stringValue() gives the value. - - - - OCL - result = value - - - - - - - - - - A literal unlimited natural is a specification of an unlimited natural number. - - - - - The specified UnlimitedNatural value. - - - - - - - The query isComputable() is redefined to be true. - - - - OCL - result = true - - - - - - - - - The query unlimitedValue() gives the value. - - - - OCL - result = value - - - - - - - - - - A loop node is a structured activity node that represents a loop with setup, test, and body sections. - - - - The union of the ExecutableNodes in the setupPart, test and bodyPart of a LoopNode must be the same as the subset of nodes contained in the LoopNode (considered as a StructuredActivityNode) that are ExecutableNodes. - - - OCL - true - - - - - The bodyOutput pins are output pins on actions in the body of the loop node. - - - OCL - true - - - - - The result output pins have no incoming edges. - - - OCL - true - - - - - Loop variable inputs must not have outgoing edges. - - - OCL - true - - - - - - A list of output pins within the body fragment the values of which are moved to the loop variable pins after completion of execution of the body, before the next iteration of the loop begins or before the loop exits. - - - - - - - The set of nodes and edges that perform the repetitive computations of the loop. The body section is executed as long as the test section produces a true value. - - - - - - - An output pin within the test fragment the value of which is examined after execution of the test to determine whether to execute the loop body. - - - - - If true, the test is performed before the first execution of the body. If false, the body is executed once before the test is performed. - - - - - - - A list of output pins that hold the values of the loop variables during an execution of the loop. When the test fails, the values are movied to the result pins of the loop. - - - - - - - A list of values that are moved into the loop variable pins before the first iteration of the loop. - - - - - - - A list of output pins that constitute the data flow output of the entire loop. - - - - - - - The set of nodes and edges that initialize values or perform other setup computations for the loop. - - - - - - - The set of nodes, edges, and designated value that compute a Boolean value to determine if another execution of the body will be performed. - - - - - - - A manifestation is the concrete physical rendering of one or more model elements by an artifact. - - - - - The model element that is utilized in the manifestation in an Artifact. - - - - - - A merge node is a control node that brings together multiple alternate flows. It is not used to synchronize concurrent flows but to accept one among several alternate flows. - - - - A merge node has one outgoing edge. - - - OCL - true - - - - - The edges coming into and out of a merge node must be either all object flows or all control flows. - - - OCL - true - - - - - - - A message defines a particular communication between lifelines of an interaction. - - - - If the sendEvent and the receiveEvent of the same Message are on the same Lifeline, the sendEvent must be ordered before the receiveEvent. - - - OCL - true - - - - - If the MessageEnds are both OccurrenceSpecifications then the connector must go between the Parts represented by the Lifelines of the two MessageEnds. - - - OCL - true - - - - - In the case when the Message signature is a Signal, the arguments of the Message must correspond to the attributes of the Signal. A Message Argument corresponds to a Signal Attribute if the Arguement is of the same Class or a specialization of that of the Attribute. - - - OCL - true - - - - - In the case when the Message signature is an Operation, the arguments of the Message must correspond to the parameters of the Operation. A Parameter corresponds to an Argument if the Argument is of the same Class or a specialization of that of the Parameter. - - - OCL - true - - - - - Arguments of a Message must only be: i) attributes of the sending lifeline ii) constants iii) symbolic values (which are wildcard values representing any legal value) iv) explicit parameters of the enclosing Interaction v) attributes of the class owning the Interaction - - - OCL - true - - - - - Messages cannot cross bounderies of CombinedFragments or their operands. - - - OCL - true - - - - - The signature must either refer an Operation (in which case messageSort is either synchCall or asynchCall) or a Signal (in which case messageSort is asynchSignal). The name of the NamedElement referenced by signature must be the same as that of the Message. - - - OCL - true - - - - - - The arguments of the Message - - - - - - - The Connector on which this Message is sent. - - - - - - The enclosing Interaction owning the Message - - - - - The derived kind of the Message (complete, lost, found or unknown) - - - - - - The sort of communication reflected by the Message - - - - - - References the Receiving of the Message - - - - - - References the Sending of the Message. - - - - - - The signature of the Message is the specification of its content. It refers either an Operation or a Signal. - - - - - - Missing derivation for Message::/messageKind : MessageKind - - - - OCL - true - - - - - - - - MessageEnd is an abstract specialization of NamedElement that represents what can occur at the end of a message. - - - - - References a Message. - - - - - - - A message event specifies the receipt by an object of either a call or a signal. - - - - - - A message occurrence specification pecifies the occurrence of message events, such as sending and receiving of signals or invoking or receiving of operation calls. A message occurrence specification is a kind of message end. Messages are generated either by synchronous operation calls or asynchronous signal sends. They are received by the execution of corresponding accept event actions. - - - - - - - A model captures a view of a physical system. It is an abstraction of the physical system, with a certain purpose. This purpose determines what is to be included in the model and what is irrelevant. Thus the model completely describes those aspects of the physical system that are relevant to the purpose of the model, at the appropriate level of detail. - - - - - The name of the viewpoint that is expressed by a model (This name may refer to a profile definition). - - - - - - - - A multiplicity is a definition of an inclusive interval of non-negative integers beginning with a lower bound and ending with a (possibly infinite) upper bound. A multiplicity element embeds this information to specify the allowable cardinalities for an instantiation of this element. - - - - The lower bound must be a non-negative integer literal. - - - OCL - lowerBound()->notEmpty() implies lowerBound() >= 0 - - - - - The upper bound must be greater than or equal to the lower bound. - - - OCL - (upperBound()->notEmpty() and lowerBound()->notEmpty()) implies upperBound() >= lowerBound() - - - - - If a non-literal ValueSpecification is used for the lower or upper bound, then that specification must be a constant expression. - - - OCL - true - - - - - If a non-literal ValueSpecification is used for the lower or upper bound, then evaluating that specification must not have side effects. - - - OCL - true - - - - - - For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this element are sequentially ordered. - - - - - - - For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this element are unique. - - - - - - - Specifies the lower bound of the multiplicity interval. - - - - - - - - The specification of the lower bound for this multiplicity. - - - - - - Specifies the upper bound of the multiplicity interval. - - - - - - - - The specification of the upper bound for this multiplicity. - - - - - - The operation compatibleWith takes another multiplicity as input. It checks if one multiplicity is compatible with another. - - - - OCL - result = Integer.allInstances()->forAll(i : Integer | self.includesCardinality(i) implies other.includesCardinality(i)) - - - - - - - - - - The query includesCardinality() checks whether the specified cardinality is valid for this multiplicity. - - - - OCL - upperBound()->notEmpty() and lowerBound()->notEmpty() - - - - - OCL - result = (lowerBound() <= C) and (upperBound() >= C) - - - - - - - - - - - - The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity. - - - - OCL - result = (self.lowerBound() <= M.lowerBound()) and (self.upperBound() >= M.upperBound()) - - - - - OCL - self.upperBound()->notEmpty() and self.lowerBound()->notEmpty() and M.upperBound()->notEmpty() and M.lowerBound()->notEmpty() - - - - - - - - - - The operation is determines if the upper and lower bound of the ranges are the ones given. - - - - OCL - result = (lowerbound = self.lowerbound and upperbound = self.upperbound) - - - - - - - - - - - - - - - The query isMultivalued() checks whether this multiplicity has an upper bound greater than one. - - - - OCL - result = upperBound() > 1 - - - - - OCL - upperBound()->notEmpty() - - - - - - - - - The derived lower attribute must equal the lowerBound. - - - - OCL - result = lowerBound() - - - - - - - - - - The query lowerBound() returns the lower bound of the multiplicity as an integer. - - - - OCL - result = if lowerValue->isEmpty() then 1 else lowerValue.integerValue() endif - - - - - - - - - - The derived upper attribute must equal the upperBound. - - - - OCL - result = upperBound() - - - - - - - - - - The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural. - - - - OCL - result = if upperValue->isEmpty() then 1 else upperValue.unlimitedValue() endif - - - - - - - - - - - A named element supports using a string expression to specify its name. This allows names of model elements to involve template parameters. The actual name is evaluated from the string expression only when it is sensible to do so (e.g., when a template is bound). - - - A named element is an element in a model that may have a name. - - - - When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces. - - - OCL - (self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()) implies - self.qualifiedName = self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result)) - - - - - If there is no name, or one of the containing namespaces has no name, there is no qualified name. - - - OCL - (self.name->isEmpty() or self.allNamespaces()->select(ns | ns.name->isEmpty())->notEmpty()) - implies self.qualifiedName->isEmpty() - - - - - If a NamedElement is not owned by a Namespace, it does not have a visibility. - - - OCL - namespace->isEmpty() implies visibility->isEmpty() - - - - - - Indicates the dependencies that reference the client. - - - - - - - The name of the NamedElement. - - - - - - - The string expression used to define the name of this named element. - - - - - - Specifies the namespace that owns the NamedElement. - - - - - - A name which allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself. - - - - - - - Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility. - - - - - - The query allNamespaces() gives the sequence of namespaces in which the NamedElement is nested, working outwards. - - - - OCL - result = if self.namespace->isEmpty() -then Sequence{} -else self.namespace.allNamespaces()->prepend(self.namespace) -endif - - - - - - - - - - The query allOwningPackages() returns all the directly or indirectly owning packages. - - - - OCL - result = self.namespace->select(p | p.oclIsKindOf(Package))->union(p.allOwningPackages()) - - - - - - - - - - The query isDistinguishableFrom() determines whether two NamedElements may logically co-exist within a Namespace. By default, two named elements are distinguishable if (a) they have unrelated types or (b) they have related types but different names. - - - - OCL - result = if self.oclIsKindOf(n.oclType) or n.oclIsKindOf(self.oclType) -then ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->isEmpty() -else true -endif - - - - - - - - - - - When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces. - - - - OCL - result = if self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty() -then - self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result)) -else - Set{} -endif - - - - - - - - - The query separator() gives the string that is used to separate names when constructing a qualified name. - - - - OCL - result = '::' - - - - - - - - - - A namespace is an element in a model that contains a set of named elements that can be identified by name. - - - - All the members of a Namespace are distinguishable within it. - - - OCL - membersAreDistinguishable() - - - - - - References the ElementImports owned by the Namespace. - - - - - - - References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports. - - - - - - - A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance. - - - - - - - A collection of NamedElements owned by the Namespace. - - - - - - - Specifies a set of Constraints owned by this Namespace. - - - - - - - References the PackageImports owned by the Namespace. - - - - - - - The query excludeCollisions() excludes from a set of PackageableElements any that would not be distinguishable from each other in this namespace. - - - - OCL - result = imps->reject(imp1 | imps.exists(imp2 | not imp1.isDistinguishableFrom(imp2, self))) - - - - - - - - - - - - - - The query getNamesOfMember() gives a set of all of the names that a member would have in a Namespace. In general a member can have multiple names in a Namespace if it is imported more than once with different aliases. The query takes account of importing. It gives back the set of names that an element would have in an importing namespace, either because it is owned, or if not owned then imported individually, or if not individually then from a package. - - - The query getNamesOfMember() takes importing into account. It gives back the set of names that an element would have in an importing namespace, either because it is owned, or if not owned then imported individually, or if not individually then from a package. - - - - OCL - result = if self.ownedMember ->includes(element) -then Set{}->include(element.name) -else let elementImports: ElementImport = self.elementImport->select(ei | ei.importedElement = element) in - if elementImports->notEmpty() - then elementImports->collect(el | el.getName()) - else self.packageImport->select(pi | pi.importedPackage.visibleMembers()->includes(element))-> collect(pi | pi.importedPackage.getNamesOfMember(element)) - endif -endif - - - - - - - - - - - - The query importMembers() defines which of a set of PackageableElements are actually imported into the namespace. This excludes hidden ones, i.e., those which have names that conflict with names of owned members, and also excludes elements which would have the same name when imported. - - - - OCL - result = self.excludeCollisions(imps)->select(imp | self.ownedMember->forAll(mem | -mem.imp.isDistinguishableFrom(mem, self))) - - - - - - - - - - - - - - The importedMember property is derived from the ElementImports and the PackageImports. References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports. - - - - OCL - result = self.importMembers(self.elementImport.importedElement.asSet()- ->union(self.packageImport.importedPackage->collect(p | p.visibleMembers()))) - - - - - - - - - - The Boolean query membersAreDistinguishable() determines whether all of the namespace's members are distinguishable within it. - - - - OCL - result = self.member->forAll( memb | -self.member->excluding(memb)->forAll(other | -memb.isDistinguishableFrom(other, self))) - - - - - - - - - - A node is computational resource upon which artifacts may be deployed for execution. Nodes can be interconnected through communication paths to define network structures. - - - - The internal structure of a Node (if defined) consists solely of parts of type Node. - - - OCL - true - - - - - - - The Nodes that are defined (nested) within the Node. - - - - - - - - An object flow is an activity edge that can have objects or data passing along it. - - - Object flows have support for multicast/receive, token selection from object nodes, and transformation of tokens. - - - - isMulticast and isMultireceive cannot both be true. - - - OCL - true - - - - - An object flow may have a selection behavior only if has an object node as a source. - - - OCL - true - - - - - Object nodes connected by an object flow, with optionally intervening control nodes, must have compatible types. In particular, the downstream object node type must be the same or a supertype of the upstream object node type. - - - OCL - true - - - - - Object flows may not have actions at either end. - - - OCL - true - - - - - A selection behavior has one input parameter and one output parameter. The input parameter must be a bag of elements of the same as or a supertype of the type of source object node. The output parameter must be the same or a subtype of the type of source object node. The behavior cannot have side effects. - - - OCL - true - - - - - A transformation behavior has one input parameter and one output parameter. The input parameter must be the same as or a supertype of the type of object token coming from the source end. The output parameter must be the same or a subtype of the type of object token expected downstream. The behavior cannot have side effects. - - - OCL - true - - - - - An edge with constant weight may not target an object node, or lead to an object node downstream with no intervening actions, that has an upper bound less than the weight. - - - OCL - true - - - - - Object nodes connected by an object flow, with optionally intervening control nodes, must have the same upper bounds. - - - OCL - true - - - - - - Tells whether the objects in the flow are passed by multicasting. - - - - - - - Tells whether the objects in the flow are gathered from respondents to multicasting. - - - - - - - Selects tokens from a source object node. - - - - - - Changes or replaces data tokens flowing along edge. - - - - - - - An object node is an abstract activity node that is part of defining object flow in an activity. - - - Object nodes have support for token selection, limitation on the number of tokens, specifying the state required for tokens, and carrying control values. - - - - All edges coming into or going out of object nodes must be object flow edges. - - - OCL - true - - - - - If an object node has a selection behavior, then the ordering of the object node is ordered, and vice versa. - - - OCL - true - - - - - A selection behavior has one input parameter and one output parameter. The input parameter must be a bag of elements of the same type as the object node or a supertype of the type of object node. The output parameter must be the same or a subtype of the type of object node. The behavior cannot have side effects. - - - OCL - true - - - - - - - The required states of the object available at this point in the activity. - - - - - - - Tells whether the type of the object node is to be treated as control. - - - - - - - Tells whether and how the tokens in the object node are ordered for selection to traverse edges outgoing from the object node. - - - - - - Selects tokens for outgoing edges. - - - - - - The maximum number of tokens allowed in the node. Objects cannot flow into the node if the upper bound is reached. - - - - - - Observation is a superclass of TimeObservation and DurationObservation in order for TimeExpression and Duration to refer to either in a simple way. - - - - - - An occurrence specification is the basic semantic unit of interactions. The sequences of occurrences specified by them are the meanings of interactions. - - - - - References the Lifeline on which the OccurrenceSpecification appears. - - - - - References the GeneralOrderings that specify EventOcurrences that must occur after this OccurrenceSpecification - - - - - - - References the GeneralOrderings that specify EventOcurrences that must occur before this OccurrenceSpecification - - - - - - - - An action with implementation-specific semantics. - - - - - Specifies the action in one or more languages. - - - - - - - - Provides input to the action. - - - - - - - Languages the body strings use, in the same order as the body strings - - - - - - - - Takes output from the action. - - - - - - - - An behavior with implementation-specific semantics. - - - - - Specifies the behavior in one or more languages. - - - - - - - - Languages the body strings use in the same order as the body strings. - - - - - - - - - An opaque expression is an uninterpreted textual statement that denotes a (possibly empty) set of values when evaluated in a context. - - - Provides a mechanism for precisely defining the behavior of an opaque expression. An opaque expression is defined by a behavior restricted to return one result. - - - - The behavior may only have return result parameters. - - - OCL - self.behavior.notEmpty() implies - self.behavior.ownedParameters->select(p | p.direction<>#return)->isEmpty() - - - - - The behavior must have exactly one return result parameter. - - - OCL - self.behavior.notEmpty() implies - self.behavior.ownedParameter->select(p | p.direction=#return)->size() = 1 - - - - - If the language attribute is not empty, then the size of the body and language arrays must be the same. - - - OCL - language->notEmpty() implies (body->size() = language->size()) - - - - - - Specifies the behavior of the opaque expression. - - - - - - The text of the expression, possibly in multiple languages. - - - - - - - - Specifies the languages in which the expression is stated. The interpretation of the expression body depends on the languages. If the languages are unspecified, they might be implicit from the expression body or the context. Languages are matched to body strings by order. - - - - - - - - Restricts an opaque expression to return exactly one return result. When the invocation of the opaque expression completes, a single set of values is returned to its owner. This association is derived from the single return result parameter of the associated behavior. - - - - - - The query isIntegral() tells whether an expression is intended to produce an integer. - - - - OCL - result = false - - - - - - - - - The query isNonNegative() tells whether an integer expression has a non-negative value. - - - - OCL - result = false - - - - - OCL - self.isIntegral() - - - - - - - - - The query isPositive() tells whether an integer expression has a positive value. - - - - OCL - result = false - - - - - OCL - self.isIntegral() - - - - - - - - - Missing derivation for OpaqueExpression::/result : Parameter - - - - OCL - true - - - - - - - - - The query value() gives an integer value for an expression intended to produce one. - - - - OCL - self.isIntegral() - - - - - OCL - true - - - - - - - - - - An operation is a behavioral feature of a classifier that specifies the name, type, parameters, and constraints for invoking an associated behavior. - - - An operation may invoke both the execution of method behaviors as well as other behavioral responses. - - - Operation specializes TemplateableElement in order to support specification of template operations and bound operations. Operation specializes ParameterableElement to specify that an operation can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template. - - - - An operation can have at most one return parameter; i.e., an owned parameter with the direction set to 'return' - - - OCL - self.ownedParameter->select(par | par.direction = #return)->size() <= 1 - - - - - A bodyCondition can only be specified for a query operation. - - - OCL - bodyCondition->notEmpty() implies isQuery - - - - - - - - An optional Constraint on the result values of an invocation of this Operation. - - - - - - The class that owns the operation. - - - - - - The DataType that owns this Operation. - - - - - - The Interface that owns this Operation. - - - - - - This information is derived from the return result for this Operation. - - - Specifies whether the return parameter is ordered or not, if present. - - - - - - - Specifies whether an execution of the BehavioralFeature leaves the state of the system unchanged (isQuery=true) or whether side effects may occur (isQuery=false). - - - - - - - Specifies whether the return parameter is unique or not, if present. - - - This information is derived from the return result for this Operation. - - - - - - - This information is derived from the return result for this Operation. - - - Specifies the lower multiplicity of the return parameter, if present. - - - - - - - - Specifies the ordered set of formal parameters of this BehavioralFeature. - - - Specifies the parameters owned by this Operation. - - - - - - - An optional set of Constraints specifying the state of the system when the Operation is completed. - - - - - - - An optional set of Constraints on the state of the system when the Operation is invoked. - - - - - - - References the Types representing exceptions that may be raised during an invocation of this operation. - - - - - - - References the Operations that are redefined by this Operation. - - - - - - - The template parameter that exposes this element as a formal parameter. - - - - - - This information is derived from the return result for this Operation. - - - Specifies the return result of the operation, if present. - - - - - - This information is derived from the return result for this Operation. - - - Specifies the upper multiplicity of the return parameter, if present. - - - - - - - - A redefining operation is consistent with a redefined operation if it has the same number of owned parameters, and the type of each owned parameter conforms to the type of the corresponding redefined parameter. - - - The query isConsistentWith() specifies, for any two Operations in a context in which redefinition is possible, whether redefinition would be consistent in the sense of maintaining type covariance. Other senses of consistency may be required, for example to determine consistency in the sense of contravariance. Users may define alternative queries under names different from 'isConsistentWith()', as for example, users may define a query named 'isContravariantWith()'. - - - - OCL - redefinee.isRedefinitionContextValid(self) - - - - - OCL - result = redefinee.oclIsKindOf(Operation) and -let op : Operation = redefinee.oclAsType(Operation) in - self.ownedParameter->size() = op.ownedParameter->size() and - Sequence{1..self.ownedParameter->size()}-> - forAll(i |op.ownedParameter->at(1).type.conformsTo(self.ownedParameter->at(i).type)) - - - - - - - - - - If this operation has a return parameter, isOrdered equals the value of isOrdered for that parameter. Otherwise isOrdered is false. - - - - OCL - result = if returnResult()->notEmpty() then returnResult()->any().isOrdered else false endif - - - - - - - - - If this operation has a return parameter, isUnique equals the value of isUnique for that parameter. Otherwise isUnique is true. - - - - OCL - result = if returnResult()->notEmpty() then returnResult()->any().isUnique else true endif - - - - - - - - - If this operation has a return parameter, lower equals the value of lower for that parameter. Otherwise lower is not defined. - - - - OCL - result = if returnResult()->notEmpty() then returnResult()->any().lower else Set{} endif - - - - - - - - - The query returnResult() returns the set containing the return parameter of the Operation if one exists, otherwise, it returns an empty set - - - - OCL - result = ownedParameter->select (par | par.direction = #return) - - - - - - - - - - If this operation has a return parameter, type equals the value of type for that parameter. Otherwise type is not defined. - - - - OCL - result = if returnResult()->notEmpty() then returnResult()->any().type else Set{} endif - - - - - - - If this operation has a return parameter, upper equals the value of upper for that parameter. Otherwise upper is not defined. - - - - OCL - result = if returnResult()->notEmpty() then returnResult()->any().upper else Set{} endif - - - - - - - - - - An operation template parameter exposes an operation as a formal parameter for a template. - - - - - The operation for this template parameter. - - - - - - An output pin is a pin that holds output values produced by an action. - - - - Output pins may have incoming edges only when they are on actions that are structured nodes, and these edges may not target a node contained by the structured node. - - - OCL - true - - - - - - - A package can have one or more profile applications to indicate which profiles have been applied. Because a profile is a package, it is possible to apply a profile not only to packages, but also to profiles. - - - Package specializes TemplateableElement and PackageableElement specializes ParameterableElement to specify that a package can be used as a template and a PackageableElement as a template parameter. - - - A package is used to group elements, and provides a namespace for the grouped elements. - - - - If an element that is owned by a package has visibility, it is public or private. - - - OCL - self.ownedElements->forAll(e | e.visibility->notEmpty() implies e.visbility = #public or e.visibility = #private) - - - - - - - - Provides an identifier for the package that can be used for many purposes. A URI is the universally unique identification of the package following the IETF URI specification, RFC 2396 http://www.ietf.org/rfc/rfc2396.txt and it must comply with those syntax rules. - - - - - - - References the packaged elements that are Packages. - - - - - - - References the Package that owns this Package. - - - - - - References the Stereotypes that are owned by the Package - - - - - - - References the packaged elements that are Types. - - - - - - - References the PackageMerges that are owned by this Package. - - - - - - - Specifies the packageable elements that are owned by this Package. - - - - - - - References the ProfileApplications that indicate which profiles have been applied to the Package. - - - - - - - The query allApplicableStereotypes() returns all the directly or indirectly owned stereotypes, including stereotypes contained in sub-profiles. - - - - OCL - result = -self.ownedStereotype->union(self.ownedMember-> - select(oclIsKindOf(Package)).oclAsType(Package).allApplicableStereotypes()->flatten())->asSet() - - - - - - - - - - The query containingProfile() returns the closest profile directly or indirectly containing this package (or this package itself, if it is a profile). - - - - OCL - result = -if self.oclIsKindOf(Profile) then - self.oclAsType(Profile) -else - self.namespace.oclAsType(Package).containingProfile() -endif - - - - - - - - - The query makesVisible() defines whether a Package makes an element visible outside itself. Elements with no visibility and elements with public visibility are made visible. - - - - OCL - result = (ownedMember->includes(el)) or -(elementImport->select(ei|ei.importedElement = #public)->collect(ei|ei.importedElement)->includes(el)) or -(packageImport->select(pi|pi.visibility = #public)->collect(pi|pi.importedPackage.member->includes(el))->notEmpty()) - - - - - OCL - self.member->includes(el) - - - - - - - - - - The query mustBeOwned() indicates whether elements of this type must have an owner. - - - - OCL - result = false - - - - - - - - - Missing derivation for Package::/nestedPackage : Package - - - - OCL - true - - - - - - - - - - Missing derivation for Package::/ownedStereotype : Stereotype - - - - OCL - true - - - - - - - - - - Missing derivation for Package::/ownedType : Type - - - - OCL - true - - - - - - - - - - The query visibleMembers() defines which members of a Package can be accessed outside it. - - - - OCL - result = member->select( m | self.makesVisible(m)) - - - - - - - - - - - A package import is a relationship that allows the use of unqualified names to refer to package members from other namespaces. - - - - The visibility of a PackageImport is either public or private. - - - OCL - self.visibility = #public or self.visibility = #private - - - - - - Specifies the Package whose members are imported into a Namespace. - - - - - Specifies the Namespace that imports the members from a Package. - - - - - Specifies the visibility of the imported PackageableElements within the importing Namespace, i.e., whether imported elements will in turn be visible to other packages that use that importingPackage as an importedPackage. If the PackageImport is public, the imported elements will be visible outside the package, while if it is private they will not. - - - - - - - A package merge defines how the contents of one package are extended by the contents of another package. - - - - - References the Package that is to be merged with the receiving package of the PackageMerge. - - - - - References the Package that is being extended with the contents of the merged package of the PackageMerge. - - - - - - Packageable elements are able to serve as a template parameter. - - - A packageable element indicates a named element that may be owned directly by a package. - - - - - - Indicates that packageable elements must always have a visibility, i.e., visibility is not optional. - - - - - - - Parameters are allowed to be treated as connectable elements. - - - A parameter is a specification of an argument used to pass information into or out of an invocation of a behavioral feature. - - - Parameters have support for streaming, exceptions, and parameter sets. - - - - Reentrant behaviors cannot have stream parameters. - - - OCL - true - - - - - A parameter may only be associated with a connector end within the context of a collaboration. - - - OCL - self.end.notEmpty() implies self.collaboration.notEmpty() - - - - - An input parameter cannot be an exception. - - - OCL - true - - - - - Only in and inout parameters may have a delete effect. Only out, inout, and return parameters may have a create effect. - - - OCL - true - - - - - A parameter cannot be a stream and exception at the same time. - - - OCL - true - - - - - - - Specifies a String that represents a value to be used when no argument is supplied for the Parameter. - - - - - - - Specifies a ValueSpecification that represents a value to be used when no argument is supplied for the Parameter. - - - - - - Indicates whether a parameter is being sent into or out of a behavioral element. - - - - - - Specifies the effect that the owner of the parameter has on values passed in or out of the parameter. - - - - - - Tells whether an output parameter may emit a value to the exclusion of the other outputs. - - - - - - - Tells whether an input parameter may accept values while its behavior is executing, or whether an output parameter post values while the behavior is executing. - - - - - - - References the Operation owning this parameter. - - - - - - The parameter sets containing the parameter. See ParameterSet. - - - - - - - Missing derivation for Parameter::/default : String - - - - OCL - true - - - - - - - - - - - A parameter set is an element that provides alternative sets of inputs or outputs that a behavior may use. - - - - Two parameter sets cannot have exactly the same set of parameters. - - - OCL - true - - - - - If a behavior has input parameters that are in a parameter set, then any inputs that are not in a parameter set must be streaming. Same for output parameters. - - - OCL - true - - - - - The parameters in a parameter set must all be inputs or all be outputs of the same parameterized entity, and the parameter set is owned by that entity. - - - OCL - true - - - - - - Constraint that should be satisfied for the owner of the parameters in an input parameter set to start execution using the values provided for those parameters, or the owner of the parameters in an output parameter set to end execution providing the values for those parameters, if all preconditions and conditions on input parameter sets were satisfied. - - - - - - - Parameters in the parameter set. - - - - - - - A parameterable element is an element that can be exposed as a formal template parameter for a template, or specified as an actual parameter in a binding of a template. - - - - - The formal template parameter that owns this element. - - - - - - The template parameter that exposes this element as a formal parameter. - - - - - - The query isCompatibleWith() determines if this parameterable element is compatible with the specified parameterable element. By default parameterable element P is compatible with parameterable element Q if the kind of P is the same or a subtype as the kind of Q. Subclasses should override this operation to specify different compatibility constraints. - - - - OCL - result = p->oclIsKindOf(self.oclType) - - - - - - - - - - The query isTemplateParameter() determines if this parameterable element is exposed as a formal template parameter. - - - - OCL - result = templateParameter->notEmpty() - - - - - - - - - - A part decomposition is a description of the internal interactions of one lifeline relative to an interaction. - - - - PartDecompositions apply only to Parts that are Parts of Internal Structures not to Parts of Collaborations. - - - OCL - true - - - - - Assume that within Interaction X, Lifeline L is of class C and decomposed to D. Within X there is a sequence of constructs along L (such constructs are CombinedFragments, InteractionUse and (plain) OccurrenceSpecifications). Then a corresponding sequence of constructs must appear within D, matched one-to-one in the same order. i) CombinedFragment covering L are matched with an extra-global CombinedFragment in D ii) An InteractionUse covering L are matched with a global (i.e. covering all Lifelines) InteractionUse in D. iii) A plain OccurrenceSpecification on L is considered an actualGate that must be matched by a formalGate of D - - - OCL - true - - - - - Assume that within Interaction X, Lifeline L is of class C and decomposed to D. Assume also that there is within X an InteractionUse (say) U that covers L. According to the constraint above U will have a counterpart CU within D. Within the Interaction referenced by U, L should also be decomposed, and the decomposition should reference CU. (This rule is called commutativity of decomposition) - - - OCL - true - - - - - - - A pin is a typed element and multiplicity element that provides values to actions and accept result values from them. - - - A pin is an object node for inputs and outputs to actions. - - - - Control pins have a control type - - - OCL - isControl implies isControlType - - - - - - - Tells whether the pins provide data to the actions, or just controls when it executes it. - - - - - - - - A port has an associated protocol state machine. - - - A port is a property of a classifier that specifies a distinct interaction point between that classifier and its environment or between the (behavior of the) classifier and its internal parts. Ports are connected to properties of the classifier by connectors through which requests can be made to invoke the behavioral features of a classifier. A Port may specify the services a classifier provides (offers) to its environment as well as the services that a classifier expects (requires) of its environment. - - - - A defaultValue for port cannot be specified when the type of the Port is an Interface - - - OCL - true - - - - - Port.aggregation must be composite. - - - OCL - true - - - - - When a port is destroyed, all connectors attached to this port will be destroyed also. - - - OCL - true - - - - - - Specifies whether requests arriving at this port are sent to the classifier behavior of this classifier. Such ports are referred to as behavior port. Any invocation of a behavioral feature targeted at a behavior port will be handled by the instance of the owning classifier itself, rather than by any instances that this classifier may contain. - - - - - - - Specifies the way that the provided and required interfaces are derived from the Port’s Type. The default value is false. - - - - - - - If true indicates that this port is used to provide the published functionality of a classifier; if false, this port is used to implement the classifier but is not part of the essential externally-visible functionality of the classifier and can, therefore, be altered or deleted along with the internal implementation of the classifier and other properties that are considered part of its implementation. - - - - - - - References an optional protocol state machine which describes valid interactions at this interaction point. - - - - - - References the interfaces specifying the set of operations and receptions that the classifier offers to its environment via this port, and which it will handle either directly or by forwarding it to a part of its internal structure. This association is derived according to the value of isConjugated. If isConjugated is false, provided is derived as the union of the sets of interfaces realized by the type of the port and its supertypes, or directly from the type of the port if the port is typed by an interface. If isConjugated is true, it is derived as the union of the sets of interfaces used by the type of the port and its supertypes. - - - - - - - A port may be redefined when its containing classifier is specialized. The redefining port may have additional interfaces to those that are associated with the redefined port or it may replace an interface by one of its subtypes. - - - - - - - References the interfaces specifying the set of operations and receptions that the classifier expects its environment to handle via this port. This association is derived according to the value of isConjugated. If isConjugated is false, required is derived as the union of the sets of interfaces used by the type of the port and its supertypes. If isConjugated is true, it is derived as the union of the sets of interfaces realized by the type of the port and its supertypes, or directly from the type of the port if the port is typed by an interface. - - - - - - - Missing derivation for Port::/provided : Interface - - - - OCL - true - - - - - - - - - - Missing derivation for Port::/required : Interface - - - - OCL - true - - - - - - - - - - - A primitive type defines a predefined data type, without any relevant substructure (i.e., it has no parts in the context of UML). A primitive datatype may have an algebra and operations defined outside of UML, for example, mathematically. - - - - - - A profile defines limited extensions to a reference metamodel with the purpose of adapting the metamodel to a specific platform or domain. - - - - An element imported as a metaclassReference is not specialized or generalized in a Profile. - - - OCL - self.metaclassReference.importedElement-> - select(c | c.oclIsKindOf(Classifier) and - (c.generalization.namespace = self or c.specialization.namespace = self))->isEmpty() - - - - - All elements imported either as metaclassReferences or through metamodelReferences are members of the same base reference metamodel. - - - OCL - self.metamodelReference.importedPackage.elementImport.importedElement.allOwningPackages()-> - union(self.metaclassReference.importedElement.allOwningPackages() )->notEmpty() - - - - - - References a metaclass that may be extended. - - - - - - - References a package containing (directly or indirectly) metaclasses that may be extended. - - - - - - - - A profile application is used to show which profiles have been applied to a package. - - - - - References the Profiles that are applied to a Package through this ProfileApplication. - - - - - The package that owns the profile application. - - - - - Specifies that the Profile filtering rules for the metaclasses of the referenced metamodel shall be strictly applied. - - - - - - - - Property represents a declared state of one or more instances in terms of a named relationship to a value or values. When a property is an attribute of a classifier, the value or values are related to the instance of the classifier by being held in slots of the instance. When a property is an association end, the value or values are related to the instance or instances at the other end(s) of the association. The range of valid values represented by the property can be controlled by setting the property's type. - - - A property is a structural feature of a classifier that characterizes instances of the classifier. A property related by ownedAttribute to a classifier (other than an association) represents an attribute and might also represent an association end. It relates an instance of the class to a value or set of values of the type of the attribute. A property related by memberEnd or its specializations to an association represents an end of the association. The type of the property is the type of the end of the association. - - - A property has the capability of being a deployment target in a deployment relationship. This enables modeling the deployment to hierarchical nodes that have properties functioning as internal parts. - - - Property specializes ParameterableElement to specify that a property can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template. - - - A property represents a set of instances that are owned by a containing classifier instance. - - - - A property may not subset a property with the same name. - - - OCL - true - - - - - A subsetting property may strengthen the type of the subsetted property, and its upper bound may be less. - - - OCL - self.subsettedProperty->forAll(sp | - self.type.conformsTo(sp.type) and - ((self.upperBound()->notEmpty() and sp.upperBound()->notEmpty()) implies - self.upperBound()<=sp.upperBound() )) - - - - - A multiplicity on an aggregate end of a composite aggregation must not have an upper bound greater than 1. - - - A multiplicity of a composite aggregation must not have an upper bound greater than 1. - - - OCL - isComposite implies (upperBound()->isEmpty() or upperBound() <= 1) - - - - - A binding of a property template parameter representing an attribute must be to an attribute. - - - OCL - (isAttribute(self) and (templateParameterSubstitution->notEmpty()) - implies (templateParameterSubstitution->forAll(ts | isAttribute(ts.formal))) - - - - - A redefined property must be inherited from a more general classifier containing the redefining property. - - - OCL - if (redefinedProperty->notEmpty()) then - (redefinitionContext->notEmpty() and - redefinedProperty->forAll(rp| - ((redefinitionContext->collect(fc| - fc.allParents()))->asSet())->collect(c| c.allFeatures())->asSet()->includes(rp)) - - - - - Subsetting may only occur when the context of the subsetting property conforms to the context of the subsetted property. - - - OCL - self.subsettedProperty->notEmpty() implies - (self.subsettingContext()->notEmpty() and self.subsettingContext()->forAll (sc | - self.subsettedProperty->forAll(sp | - sp.subsettingContext()->exists(c | sc.conformsTo(c))))) - - - - - A Property can be a DeploymentTarget if it is a kind of Node and functions as a part in the internal structure of an encompassing Node. - - - OCL - true - - - - - A derived union is derived. - - - OCL - isDerivedUnion implies isDerived - - - - - A derived union is read only. - - - OCL - isDerivedUnion implies isReadOnly - - - - - - - - Specifies the kind of aggregation that applies to the Property. - - - - - - References the association of which this property is a member, if any. - - - - - - Designates the optional association end that owns a qualifier attribute. - - - - - - References the Class that owns the Property. - - - References the Class that owns the Property. - - - - - - The DataType that owns this Property. - - - - - - Specifies a String that represents a value to be used when no argument is supplied for the Property. - - - A String that is evaluated to give a default value for the Property when an object of the owning Classifier is instantiated. - - - - - - - A ValueSpecification that is evaluated to give a default value for the Property when an object of the owning Classifier is instantiated. - - - - - - References the Interface that owns the Property - - - - - - If isComposite is true, the object containing the attribute is a container for the object or value contained in the attribute. - - - This is a derived value, indicating whether the aggregation of the Property is composite or not. - - - - - - - If isDerived is true, the value of the attribute is derived from information elsewhere. - - - Specifies whether the Property is derived, i.e., whether its value or values can be computed from other information. - - - - - - - Specifies whether the property is derived as the union of all of the properties that are constrained to subset it. - - - - - - - True indicates this property can be used to uniquely identify an instance of the containing Class. - - - - - - - If true, the attribute may only be read, and not written. - - - If isReadOnly is true, the attribute may not be written to after initialization. - - - - - - - In the case where the property is one navigable end of a binary association with both ends navigable, this gives the other end. - - - - - - References the owning association of this property, if any. - - - - - - An optional list of ordered qualifier attributes for the end. If the list is empty, then the Association is not qualified. - - - - - - - References the properties that are redefined by this property. - - - - - - - References the properties of which this property is constrained to be a subset. - - - - - - - Missing derivation for Property::/default : String - - - - OCL - true - - - - - - - - - - The query isAttribute() is true if the Property is defined as an attribute of some classifier. - - - - OCL - result = Classifier.allInstances->exists(c | c.attribute->includes(p)) - - - - - - - - - - The query isCompatibleWith() determines if this parameterable element is compatible with the specified parameterable element. By default parameterable element P is compatible with parameterable element Q if the kind of P is the same or a subtype as the kind of Q. In addition, for properties, the type must be conformant with the type of the specified parameterable element. - - - - OCL - result = p->oclIsKindOf(self.oclType) and self.type.conformsTo(p.oclAsType(TypedElement).type) - - - - - - - - - - The value of isComposite is true only if aggregation is composite. - - - - OCL - result = (self.aggregation = #composite) - - - - - - - - - The query isConsistentWith() specifies, for any two Properties in a context in which redefinition is possible, whether redefinition would be logically consistent. A redefining property is consistent with a redefined property if the type of the redefining property conforms to the type of the redefined property, the multiplicity of the redefining property (if specified) is contained in the multiplicity of the redefined property. - - - The query isConsistentWith() specifies, for any two Properties in a context in which redefinition is possible, whether redefinition would be logically consistent. A redefining property is consistent with a redefined property if the type of the redefining property conforms to the type of the redefined property, and the multiplicity of the redefining property (if specified) is contained in the multiplicity of the redefined property. - - - - OCL - redefinee.isRedefinitionContextValid(self) - - - - - OCL - result = redefinee.oclIsKindOf(Property) and - let prop : Property = redefinee.oclAsType(Property) in - (prop.type.conformsTo(self.type) and - ((prop.lowerBound()->notEmpty() and self.lowerBound()->notEmpty()) implies prop.lowerBound() >= self.lowerBound()) and - ((prop.upperBound()->notEmpty() and self.upperBound()->notEmpty()) implies prop.lowerBound() <= self.lowerBound()) and - (self.isComposite implies prop.isComposite)) - - - - - - - - - - The query isNavigable() indicates whether it is possible to navigate across the property. - - - - OCL - result = not classifier->isEmpty() or association.owningAssociation.navigableOwnedEnd->includes(self) - - - - - - - - - If this property is owned by a class, associated with a binary association, and the other end of the association is also owned by a class, then opposite gives the other end. - - - - OCL - result = if owningAssociation->isEmpty() and association.memberEnd->size() = 2 - then - let otherEnd = (association.memberEnd - self)->any() in - if otherEnd.owningAssociation->isEmpty() then otherEnd else Set{} endif - else Set {} - endif - - - - - - - The query subsettingContext() gives the context for subsetting a property. It consists, in the case of an attribute, of the corresponding classifier, and in the case of an association end, all of the classifiers at the other ends. - - - - OCL - result = if association->notEmpty() -then association.endType-type -else if classifier->notEmpty() then Set{classifier} else Set{} endif -endif - - - - - - - - - - - Protocol state machines can be redefined into more specific protocol state machines, or into behavioral state machines. Protocol conformance declares that the specific protocol state machine specifies a protocol that conforms to the general state machine one, or that the specific behavioral state machine abide by the protocol of the general protocol state machine. - - - - - Specifies the protocol state machine to which the specific state machine conforms. - - - - - Specifies the state machine which conforms to the general state machine. - - - - - - A protocol state machine is always defined in the context of a classifier. It specifies which operations of the classifier can be called in which state and under which condition, thus specifying the allowed call sequences on the classifier's operations. A protocol state machine presents the possible and permitted transitions on the instances of its context classifier, together with the operations which carry the transitions. In this manner, an instance lifecycle can be created for a classifier, by specifying the order in which the operations can be activated and the states through which an instance progresses during its existence. - - - - The states of a protocol state machine cannot have entry, exit, or do activity actions. - - - OCL - region->forAll(r | r.subvertex->forAll(v | v.oclIsKindOf(State) implies -(v.entry->isEmpty() and v.exit->isEmpty() and v.doActivity->isEmpty()))) - - - - - - All transitions of a protocol state machine must be protocol transitions. (transitions as extended by the ProtocolStateMachines package) - - - OCL - region->forAll(r | r.transition->forAll(t | t.oclIsTypeOf(ProtocolTransition))) - - - - - Protocol state machines cannot have deep or shallow history pseudostates. - - - OCL - region->forAll (r | r.subvertex->forAll (v | v.oclIsKindOf(Psuedostate) implies -((v.kind <> #deepHistory) and (v.kind <> #shallowHistory))))) - - - - - - A protocol state machine must only have a classifier context, not a behavioral feature context. - - - OCL - (not context->isEmpty( )) and specification->isEmpty() - - - - - If two ports are connected, then the protocol state machine of the required interface (if defined) must be conformant to the protocol state machine of the provided interface (if defined). - - - OCL - true - - - - - - Conformance between protocol state machines. - - - - - - - - A protocol transition specifies a legal transition for an operation. Transitions of protocol state machines have the following information: a pre condition (guard), on trigger, and a post condition. Every protocol transition is associated to zero or one operation (referred BehavioralFeature) that belongs to the context classifier of the protocol state machine. - - - - If a protocol transition refers to an operation (i. e. has a call trigger corresponding to an operation), then that operation should apply to the context classifier of the state machine of the protocol transition. - - - OCL - true - - - - - A protocol transition never has associated actions. - - - OCL - effect->isEmpty() - - - - - A protocol transition always belongs to a protocol state machine. - - - OCL - container.belongsToPSM() - - - - - - Specifies the post condition of the transition which is the condition that should be obtained once the transition is triggered. This post condition is part of the post condition of the operation connected to the transition. - - - - - - Specifies the precondition of the transition. It specifies the condition that should be verified before triggering the transition. This guard condition added to the source state will be evaluated as part of the precondition of the operation referred by the transition if any. - - - - - - This association refers to the associated operation. It is derived from the operation of the call trigger when applicable. - - - - - - - Missing derivation for ProtocolTransition::/referred : Operation - - - - OCL - true - - - - - - - - - - - A pseudostate is an abstraction that encompasses different types of transient vertices in the state machine graph. - - - - In a complete statemachine, a junction vertex must have at least one incoming and one outgoing transition. - - - OCL - (self.kind = #junction) implies -((self.incoming->size >= 1) and (self.outgoing->size >= 1)) - - - - - - History vertices can have at most one outgoing transition. - - - OCL - ((self.kind = #deepHistory) or (self.kind = #shallowHistory)) implies -(self.outgoing->size <= 1) - - - - - - All transitions outgoing a fork vertex must target states in different regions of an orthogonal state. - - - OCL - (self.kind = #fork) implies - self.outgoing->forAll (t1, t2 | t1<>t2 implies - (self.stateMachine.LCA(t1.target, t2.target).container.isOrthogonal)) - - - - - The outgoing transition from and initial vertex may have a behavior, but not a trigger or a guard. - - - OCL - (self.kind = #initial) implies (self.outgoing.guard->isEmpty() - and self.outgoing.trigger->isEmpty()) - - - - - In a complete statemachine, a fork vertex must have at least two outgoing transitions and exactly one incoming transition. - - - OCL - (self.kind = #fork) implies -((self.incoming->size = 1) and (self.outgoing->size >= 2)) - - - - - - In a complete statemachine, a join vertex must have at least two incoming transitions and exactly one outgoing transition. - - - OCL - (self.kind = #join) implies -((self.outgoing->size = 1) and (self.incoming->size >= 2)) - - - - - - In a complete statemachine, a choice vertex must have at least one incoming and one outgoing transition. - - - OCL - (self.kind = #choice) implies -((self.incoming->size >= 1) and (self.outgoing->size >= 1)) - - - - - - An initial vertex can have at most one outgoing transition. - - - OCL - (self.kind = #initial) implies (self.outgoing->size <= 1) - - - - - All transitions incoming a join vertex must originate in different regions of an orthogonal state. - - - OCL - (self.kind = #join) implies - self.incoming->forAll (t1, t2 | t1<>t2 implies - (self.stateMachine.LCA(t1.source, t2.source).container.isOrthogonal)) - - - - - - Determines the precise type of the Pseudostate and can be one of: entryPoint, exitPoint, initial, deepHistory, shallowHistory, join, fork, junction, terminate or choice. - - - - - - The State that owns this pseudostate and in which it appears. - - - - - - The StateMachine in which this Pseudostate is defined. This only applies to Pseudostates of the kind entryPoint or exitPoint. - - - - - - - A qualifier value is not an action. It is an element that identifies links. It gives a single qualifier within a link end data specification. - - - - The qualifier attribute must be a qualifier of the association end of the link-end data. - - - OCL - self.LinkEndData.end->collect(qualifier)->includes(self.qualifier) - - - - - The multiplicity of the qualifier value input pin is "1..1". - - - OCL - self.value.multiplicity.is(1,1) - - - - - The type of the qualifier value input pin is the same as the type of the qualifier attribute. - - - OCL - self.value.type = self.qualifier.type - - - - - - Attribute representing the qualifier for which the value is to be specified. - - - - - Input pin from which the specified value for the qualifier is taken. - - - - - - A raise exception action is an action that causes an exception to occur. The input value becomes the exception object. - - - - - An input pin whose value becomes an exception object. - - - - - - A read extent action is an action that retrieves the current instances of a classifier. - - - - The type of the result output pin is the classifier. - - - OCL - true - - - - - The multiplicity of the result output pin is 0..*. - - - OCL - self.result.multiplicity.is(0,#null) - - - - - - The classifier whose instances are to be retrieved. - - - - - The runtime instances of the classifier. - - - - - - A read is classified object action is an action that determines whether a runtime object is classified by a given classifier. - - - - The input pin has no type. - - - OCL - self.object.type->isEmpty() - - - - - The multiplicity of the output pin is 1..1. - - - OCL - self.result.multiplicity.is(1,1) - - - - - The type of the output pin is Boolean - - - OCL - self.result.type = Boolean - - - - - The multiplicity of the input pin is 1..1. - - - OCL - self.object.multiplicity.is(1,1) - - - - - - The classifier against which the classification of the input object is tested. - - - - - Indicates whether the classifier must directly classify the input object. - - - - - - - Holds the object whose classification is to be tested. - - - - - After termination of the action, will hold the result of the test. - - - - - - A read link action is a link action that navigates across associations to retrieve objects on one end. - - - - The type and ordering of the result output pin are same as the type and ordering of the open association end. - - - OCL - let openend : Property = self.endData->select(ed | ed.value->size() = 0)->asSequence()->first().end in -self.result.type = openend.type -and self.result.ordering = openend.ordering - - - - - - Exactly one link-end data specification (the 'open' end) must not have an end object input pin. - - - OCL - self.endData->select(ed | ed.value->size() = 0)->size() = 1 - - - - - The multiplicity of the open association end must be compatible with the multiplicity of the result output pin. - - - OCL - let openend : Property = self.endData->select(ed | ed.value->size() = 0)->asSequence()->first().end in -openend.multiplicity.compatibleWith(self.result.multiplicity) - - - - - - The open end must be navigable. - - - OCL - let openend : Property = self.endData->select(ed | ed.value->size() = 0)->asSequence()->first().end in -openend.isNavigable() - - - - - - Visibility of the open end must allow access to the object performing the action. - - - OCL - let host : Classifier = self.context in -let openend : Property = self.endData->select(ed | ed.value->size() = 0)->asSequence()->first().end in -openend.visibility = #public -or self.endData->exists(oed | not oed.end = openend -and (host = oed.end.participant -or (openend.visibility = #protected -and host.allSupertypes->includes(oed.end.participant)))) - - - - - - - The pin on which are put the objects participating in the association at the end not specified by the inputs. - - - - - - A read link object end action is an action that retrieves an end object from a link object. - - - - The association of the association end must be an association class. - - - OCL - self.end.Association.oclIsKindOf(AssociationClass) - - - - - The multiplicity of the object input pin is 1..1. - - - OCL - self.object.multiplicity.is(1,1) - - - - - The type of the result output pin is the same as the type of the association end. - - - OCL - self.result.type = self.end.type - - - - - The type of the object input pin is the association class that owns the association end. - - - OCL - self.object.type = self.end.association - - - - - The property must be an association end. - - - OCL - self.end.association.notEmpty() - - - - - The multiplicity of the result output pin is 1..1. - - - OCL - self.result.multiplicity.is(1,1) - - - - - The ends of the association must not be static. - - - OCL - self.end.association.memberEnd->forall(e | not e.isStatic) - - - - - - Link end to be read. - - - - - Gives the input pin from which the link object is obtained. - - - - - Pin where the result value is placed. - - - - - - A read link object end qualifier action is an action that retrieves a qualifier end value from a link object. - - - - The type of the object input pin is the association class that owns the association end that has the given qualifier attribute. - - - OCL - self.object.type = self.qualifier.associationEnd.association - - - - - The multiplicity of the result output pin is 1..1. - - - OCL - self.result.multiplicity.is(1,1) - - - - - The type of the result output pin is the same as the type of the qualifier attribute. - - - OCL - self.result.type = self.qualifier.type - - - - - The ends of the association must not be static. - - - OCL - self.qualifier.associationEnd.association.memberEnd->forall(e | not e.isStatic) - - - - - The multiplicity of the qualifier attribute is 1..1. - - - OCL - self.qualifier.multiplicity.is(1,1) - - - - - The multiplicity of the object input pin is 1..1. - - - OCL - self.object.multiplicity.is(1,1) - - - - - The association of the association end of the qualifier attribute must be an association class. - - - OCL - self.qualifier.associationEnd.association.oclIsKindOf(AssociationClass) - - - - - The qualifier attribute must be a qualifier attribute of an association end. - - - OCL - self.qualifier.associationEnd->size() = 1 - - - - - - Gives the input pin from which the link object is obtained. - - - - - The attribute representing the qualifier to be read. - - - - - Pin where the result value is placed. - - - - - - A read self action is an action that retrieves the host object of an action. - - - - The action must be contained in an behavior that has a host classifier. - - - OCL - self.context->size() = 1 - - - - - The type of the result output pin is the host classifier. - - - OCL - self.result.type = self.context - - - - - If the action is contained in an behavior that is acting as the body of a method, then the operation of the method must not be static. - - - OCL - true - - - - - The multiplicity of the result output pin is 1..1. - - - OCL - self.result.multiplicity.is(1,1) - - - - - - Gives the output pin on which the hosting object is placed. - - - - - - A read structural feature action is a structural feature action that retrieves the values of a structural feature. - - - - The type and ordering of the result output pin are the same as the type and ordering of the structural feature. - - - OCL - self.result.type = self.structuralFeature.type -and self.result.ordering = self.structuralFeature.ordering - - - - - - The multiplicity of the structural feature must be compatible with the multiplicity of the output pin. - - - OCL - self.structuralFeature.multiplicity.compatibleWith(self.result.multiplicity) - - - - - - Gives the output pin on which the result is put. - - - - - - A read variable action is a variable action that retrieves the values of a variable. - - - - The type and ordering of the result output pin of a read-variable action are the same as the type and ordering of the variable. - - - OCL - self.result.type =self.variable.type -and self.result.ordering = self.variable.ordering - - - - - - The multiplicity of the variable must be compatible with the multiplicity of the output pin. - - - OCL - self.variable.multiplicity.compatibleWith(self.result.multiplicity) - - - - - - Gives the output pin on which the result is put. - - - - - - Realization is a specialized abstraction relationship between two sets of model elements, one representing a specification (the supplier) and the other represents an implementation of the latter (the client). Realization can be used to model stepwise refinement, optimizations, transformations, templates, model synthesis, framework composition, etc. - - - - - - A reception is a declaration stating that a classifier is prepared to react to the receipt of a signal. A reception designates a signal and specifies the expected behavioral response. The details of handling a signal are specified by the behavior associated with the reception or the classifier itself. - - - - A Reception can not be a query. - - - OCL - not self.isQuery - - - - - - The signal that this reception handles. - - - - - - A reclassify object action is an action that changes which classifiers classify an object. - - - - The input pin has no type. - - - OCL - self.argument.type->size() = 0 - - - - - The multiplicity of the input pin is 1..1. - - - OCL - self.argument.multiplicity.is(1,1) - - - - - None of the new classifiers may be abstract. - - - OCL - not self.newClassifier->exists(isAbstract = true) - - - - - - Specifies whether existing classifiers should be removed before adding the new classifiers. - - - - - - - A set of classifiers to be added to the classifiers of the object. - - - - - - - Holds the object to be reclassified. - - - - - A set of classifiers to be removed from the classifiers of the object. - - - - - - - - A redefinable element is an element that, when defined in the context of a classifier, can be redefined more specifically or differently in the context of another classifier that specializes (directly or indirectly) the context classifier. - - - - A redefining element must be consistent with each redefined element. - - - OCL - self.redefinedElement->forAll(re | re.isConsistentWith(self)) - - - - - A redefinable element can only redefine non-leaf redefinable elements - - - OCL - self.redefinedElement->forAll(not isLeaf) - - - - - At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element. - - - OCL - self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e)) - - - - - - Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement. Note that this property is preserved through package merge operations; that is, the capability to redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in the resulting RedefinableElement of a package merge operation where a RedefinableElement with isLeaf=false is merged with a matching RedefinableElement with isLeaf=true: the resulting RedefinableElement will have isLeaf=false. Default value is false. - - - - - - - The redefinable element that is being redefined by this element. - - - - - - - References the contexts that this element may be redefined from. - - - - - - - The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent. By default, this is false; this operation must be overridden for subclasses of RedefinableElement to define the consistency conditions. - - - - OCL - result = false - - - - - OCL - redefinee.isRedefinitionContextValid(self) - - - - - - - - - - The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other. By default at least one of the redefinition contexts of this element must be a specialization of at least one of the redefinition contexts of the specified element. - - - - OCL - result = redefinitionContext->exists(c | c.allParents()->includes(redefined.redefinitionContext))) - - - - - - - - - - - A redefinable template signature supports the addition of formal template parameters in a specialization of a template classifier. - - - - The inherited parameters are the parameters of the extended template signature. - - - OCL - if extendedSignature->isEmpty() then Set{} else extendedSignature.parameter endif - - - - - - - The classifier that owns this template signature. - - - - - The template signature that is extended by this template signature. - - - - - - - The formal template parameters of the extendedSignature. - - - - - - - Missing derivation for RedefinableTemplateSignature::/inheritedParameter : TemplateParameter - - - - OCL - true - - - - - - - - - - The query isConsistentWith() specifies, for any two RedefinableTemplateSignatures in a context in which redefinition is possible, whether redefinition would be logically consistent. A redefining template signature is always consistent with a redefined template signature, since redefinition only adds new formal parameters. - - - - OCL - result = redefinee.oclIsKindOf(RedefineableTemplateSignature) - - - - - OCL - redefinee.isRedefinitionContextValid(self) - - - - - - - - - - - A reduce action is an action that reduces a collection to a single value by combining the elements of the collection. - - - - The type of the output must be compatible with the type of the output of the reducer behavior. - - - OCL - true - - - - - The reducer behavior must have two input parameters and one output parameter, of types compatible with the types of elements of the input collection. - - - OCL - true - - - - - The type of the input must be a collection. - - - OCL - true - - - - - - The collection to be reduced. - - - - - Tells whether the order of the input collection should determine the order in which the behavior is applied to its elements. - - - - - - - Behavior that is applied to two elements of the input collection to produce a value that is the same type as elements of the collection. - - - - - Gives the output pin on which the result is put. - - - - - - A region is an orthogonal part of either a composite state or a state machine. It contains states and transitions. - - - - A region can have at most one shallow history vertex - - - OCL - self.subvertex->select(v | v.oclIsKindOf(Pseudostate))-> -select(p : Pseudostate | p.kind = #shallowHistory)->size() <= 1 - - - - - - A region can have at most one deep history vertex - - - OCL - self.subvertex->select (v | v.oclIsKindOf(Pseudostate))-> -select(p : Pseudostate | p.kind = #deepHistory)->size() <= 1 - - - - - - A region can have at most one initial vertex - - - OCL - self.subvertex->select (v | v.oclIsKindOf(Pseudostate))-> -select(p : Pseudostate | p.kind = #initial)->size() <= 1 - - - - - - If a Region is owned by a StateMachine, then it cannot also be owned by a State and vice versa. - - - OCL - (stateMachine->notEmpty() implies state->isEmpty()) and (state->notEmpty() implies stateMachine->isEmpty()) - - - - - - - The region of which this region is an extension. - - - - - - References the classifier in which context this element may be redefined. - - - - - The State that owns the Region. If a Region is owned by a State, then it cannot also be owned by a StateMachine. - - - - - - The StateMachine that owns the Region. If a Region is owned by a StateMachine, then it cannot also be owned by a State. - - - - - - The set of vertices that are owned by this region. - - - - - - - The set of transitions owned by the region. - - - - - - - The operation belongsToPSM () checks if the region belongs to a protocol state machine - - - - OCL - result = if not stateMachine->isEmpty() then -oclIsTypeOf(ProtocolStateMachine) -else if not state->isEmpty() then -state.container.belongsToPSM () -else false - - - - - - - - - The operation containingStateMachine() returns the sate machine in which this Region is defined - - - - OCL - result = if stateMachine->isEmpty() -then -state.containingStateMachine() -else -stateMachine -endif - - - - - - - The query isConsistentWith() specifies that a redefining region is consistent with a redefined region provided that the redefining region is an extension of the redefined region, i.e. it adds vertices and transitions and it redefines states and transitions of the redefined region. - - - - OCL - result = true - - - - - - - - - - The query isRedefinitionContextValid() specifies whether the redefinition contexts of a region are properly related to the redefinition contexts of the specified region to allow this element to redefine the other. The containing statemachine/state of a redefining region must redefine the containing statemachine/state of the redefined region. - - - - OCL - result = true - - - - - - - - - - The redefinition context of a region is the nearest containing statemachine - - - - OCL - result = let sm = containingStateMachine() in -if sm.context->isEmpty() or sm.general->notEmpty() then -sm -else -sm.context -endif - - - - - - - - Relationship is an abstract concept that specifies some kind of relationship between elements. - - - - - Specifies the elements related by the Relationship. - - - - - - - A remove structural feature value action is a write structural feature action that removes values from structural features. - - - - Actions removing a value from ordered non-unique structural features must have a single removeAt input pin and no value input pin if isRemoveDuplicates is false. The removeAt pin must be of type Unlimited Natural with multiplicity 1..1. Otherwise, the action has a value input pin and no removeAt input pin. - - - OCL - if not self.structuralFeature.isOrdered or self.structuralFeature.isUnique or isRemoveDuplicates then - self.removeAt -> isEmpty() and self.value -> notEmpty() -else - self.value -> isEmpty() and - self.removeAt -> notEmpty() and - self.removeAt.type = UnlimitedNatural and - self.removeAt.lower = 1 and - self.removeAt.upper = 1 -endif - - - - - - Specifies whether to remove duplicates of the value in nonunique structural features. - - - - - - - Specifies the position of an existing value to remove in ordered nonunique structural features. The type of the pin is UnlimitedNatural, but the value cannot be zero or unlimited. - - - - - - - A remove variable value action is a write variable action that removes values from variables. - - - - Actions removing a value from ordered non-unique variables must have a single removeAt input pin and no value input pin if isRemoveDuplicates is false. The removeAt pin must be of type Unlimited Natural with multiplicity 1..1. Otherwise, the action has a value input pin and no removeAt input pin. - - - OCL - if not self.variable.isOrdered or self.variable.isUnique or isRemoveDuplicates then - self.removeAt -> isEmpty() and self.value -> notEmpty() -else - self.value -> isEmpty() and - self.removeAt -> notEmpty() and - self.removeAt.type = UnlimitedNatural and - self.removeAt.lower() = 1 and - self.removeAt.upper() = 1 -endif - - - - - - Specifies whether to remove duplicates of the value in nonunique variables. - - - - - - - Specifies the position of an existing value to remove in ordered nonunique variables. The type of the pin is UnlimitedNatural, but the value cannot be zero or unlimited. - - - - - - - A reply action is an action that accepts a set of return values and a value containing return information produced by a previous accept call action. The reply action returns the values to the caller of the previous call, completing execution of the call. - - - - The event on replyToCall trigger must be a CallEvent replyToCallEvent.oclIsKindOf(CallEvent) - - - OCL - replyToCallEvent.oclIsKindOf(CallEvent) - - - - - The reply value pins must match the return, out, and inout parameters of the operation on the event on the trigger in number, type, and order. - - - OCL - true - - - - - - The trigger specifying the operation whose call is being replied to. - - - - - A list of pins containing the reply values of the operation. These values are returned to the caller. - - - - - - - A pin containing the return information value produced by an earlier AcceptCallAction. - - - - - - A send object action is an action that transmits an object to the target object, where it may invoke behavior such as the firing of state machine transitions or the execution of an activity. The value of the object is available to the execution of invoked behaviors. The requestor continues execution immediately. Any reply message is ignored and is not transmitted to the requestor. - - - - - The request object, which is transmitted to the target object. The object may be copied in transmission, so identity might not be preserved. - - - - - The target object to which the object is sent. - - - - - - A send signal action is an action that creates a signal instance from its inputs, and transmits it to the target object, where it may cause the firing of a state machine transition or the execution of an activity. The argument values are available to the execution of associated behaviors. The requestor continues execution immediately. Any reply message is ignored and is not transmitted to the requestor. If the input is already a signal instance, use a send object action. - - - - The type, ordering, and multiplicity of an argument pin must be the same as the corresponding attribute of the signal. - - - OCL - true - - - - - The number and order of argument pins must be the same as the number and order of attributes in the signal. - - - OCL - true - - - - - - The type of signal transmitted to the target object. - - - - - The target object to which the signal is sent. - - - - - - A sequence node is a structured activity node that executes its actions in order. - - - - - An ordered set of executable nodes. - - - - - - - - A signal is a specification of send request instances communicated between objects. The receiving object handles the received request instances as specified by its receptions. The data carried by a send request (which was passed to it by the send invocation occurrence that caused that request) are represented as attributes of the signal. A signal is defined independently of the classifiers handling the signal occurrence. - - - - - The attributes owned by the signal. - - - - - - - - A signal event represents the receipt of an asynchronous signal instance. A signal event may, for example, cause a state machine to trigger a transition. - - - - - The specific signal that is associated with this event. - - - - - - A slot specifies that an entity modeled by an instance specification has a value or values for a specific structural feature. - - - - - The structural feature that specifies the values that may be held by the slot. - - - - - The instance specification that owns this slot. - - - - - The value or values corresponding to the defining feature for the owning instance specification. - - - - - - - - A start classifier behavior action is an action that starts the classifier behavior of the input. - - - - If the input pin has a type, then the type must have a classifier behavior. - - - OCL - true - - - - - The multiplicity of the input pin is 1..1 - - - OCL - true - - - - - - Holds the object on which to start the owned behavior. - - - - - - StartObjectBehaviorAction is an action that starts the execution either of a directly instantiated behavior or of the classifier behavior of an object. Argument values may be supplied for the input parameters of the behavior. If the behavior is invoked synchronously, then output values may be obtained for output parameters. - - - - The number and order of the argument pins must be the same as the number and order of the in and in-out parameters of the invoked behavior. Pins are matched to parameters by order. - - - OCL - true - - - - - The type, ordering, and multiplicity of an argument or result pin must be the same as the corresponding parameter of the behavior. - - - OCL - true - - - - - The number and order of result pins must be the same as the number and order of the in-out, out and return parameters of the invoked behavior. Pins are matched to parameters by order. - - - OCL - true - - - - - The type of the object input pin must be either a Behavior or a BehavioredClassifier with a classifier behavior. - - - OCL - true - - - - - The multiplicity of the object input pin must be [1..1]. - - - OCL - true - - - - - - Holds the object which is either a behavior to be started or has a classifier behavior to be started. - - - - - - A state models a situation during which some (usually implicit) invariant condition holds. - - - The states of protocol state machines are exposed to the users of their context classifiers. A protocol state represents an exposed stable situation of its context classifier: when an instance of the classifier is not processing any operation, users of this instance can always know its state configuration. - - - - Only entry or exit pseudostates can serve as connection points. - - - OCL - connectionPoint->forAll(cp|cp.kind = #entry or cp.kind = #exit) - - - - - Only composite states can have entry or exit pseudostates defined. - - - OCL - connectionPoint->notEmpty() implies isComoposite - - - - - The connection point references used as destinations/sources of transitions associated with a submachine state must be defined as entry/exit points in the submachine state machine. - - - OCL - self.isSubmachineState implies (self.connection->forAll (cp | -cp.entry->forAll (p | p.statemachine = self.submachine) and -cp.exit->forAll (p | p.statemachine = self.submachine))) - - - - - A state is not allowed to have both a submachine and regions. - - - OCL - isComposite implies not isSubmachineState - - - - - Only submachine states can have connection point references. - - - OCL - isSubmachineState implies connection->notEmpty ( ) - - - - - - - - The entry and exit connection points used in conjunction with this (submachine) state, i.e. as targets and sources, respectively, in the region with the submachine state. A connection point reference references the corresponding definition of a connection point pseudostate in the statemachine referenced by the submachinestate. - - - - - - - The entry and exit pseudostates of a composite state. These can only be entry or exit Pseudostates, and they must have different names. They can only be defined for composite states. - - - - - - - A list of triggers that are candidates to be retained by the state machine if they trigger no transitions out of the state (not consumed). A deferred trigger is retained until the state machine reaches a state configuration where it is no longer deferred. - - - - - - - An optional behavior that is executed while being in the state. The execution starts when this state is entered, and stops either by itself, or when the state is exited, whichever comes first. - - - - - - An optional behavior that is executed whenever this state is entered regardless of the transition taken to reach the state. If defined, entry actions are always executed to completion prior to any internal behavior or transitions performed within the state. - - - - - - An optional behavior that is executed whenever this state is exited regardless of which transition was taken out of the state. If defined, exit actions are always executed to completion only after all internal activities and transition actions have completed execution. - - - - - - A state with isComposite=true is said to be a composite state. A composite state is a state that contains at least one region. - - - - - - - A state with isOrthogonal=true is said to be an orthogonal composite state. An orthogonal composite state contains two or more regions. - - - - - - - A state with isSimple=true is said to be a simple state. A simple state does not have any regions and it does not refer to any submachine state machine. - - - - - - - A state with isSubmachineState=true is said to be a submachine state. Such a state refers to a state machine (submachine). - - - - - - - The state of which this state is a redefinition. - - - - - - References the classifier in which context this element may be redefined. - - - - - The regions owned directly by the state. - - - - - - - Specifies conditions that are always true when this state is the current state. In protocol state machines, state invariants are additional conditions to the preconditions of the outgoing transitions, and to the postcondition of the incoming transitions. - - - - - - The state machine that is to be inserted in place of the (submachine) state. - - - - - - The query containingStateMachine() returns the state machine that contains the state either directly or transitively. - - - - OCL - result = container.containingStateMachine() - - - - - - - A composite state is a state with at least one region. - - - - OCL - result = region.notEmpty() - - - - - - - - - The query isConsistentWith() specifies that a redefining state is consistent with a redefined state provided that the redefining state is an extension of the redefined state: A simple state can be redefined (extended) to become a composite state (by adding a region) and a composite state can be redefined (extended) by adding regions and by adding vertices, states, and transitions to inherited regions. All states may add or replace entry, exit, and 'doActivity' actions. - - - - OCL - result = true - - - - - - - - - - An orthogonal state is a composite state with at least 2 regions - - - - OCL - result = (region->size () > 1) - - - - - - - - - The query isRedefinitionContextValid() specifies whether the redefinition contexts of a state are properly related to the redefinition contexts of the specified state to allow this element to redefine the other. The containing region of a redefining state must redefine the containing region of the redefined state. - - - - OCL - result = true - - - - - - - - - - A simple state is a state without any regions. - - - - OCL - result = region.isEmpty() - - - - - - - - - Only submachine states can have a reference statemachine. - - - - OCL - result = submachine.notEmpty() - - - - - - - - - The redefinition context of a state is the nearest containing statemachine. - - - - OCL - result = let sm = containingStateMachine() in -if sm.context->isEmpty() or sm.general->notEmpty() then -sm -else -sm.context -endif - - - - - - - - A state invariant is a runtime constraint on the participants of the interaction. It may be used to specify a variety of different kinds of constraints, such as values of attributes or variables, internal or external states, and so on. A state invariant is an interaction fragment and it is placed on a lifeline. - - - - - References the Lifeline on which the StateInvariant appears. - - - - - A Constraint that should hold at runtime for this StateInvariant - - - - - - State machines can be used to express the behavior of part of a system. Behavior is modeled as a traversal of a graph of state nodes interconnected by one or more joined transition arcs that are triggered by the dispatching of series of (event) occurrences. During this traversal, the state machine executes a series of activities associated with various elements of the state machine. - - - - A state machine as the method for a behavioral feature cannot have entry/exit connection points. - - - OCL - specification->notEmpty() implies connectionPoint->isEmpty() - - - - - The classifier context of a state machine cannot be an interface. - - - OCL - context->notEmpty() implies not context.oclIsKindOf(Interface) - - - - - The context classifier of the method state machine of a behavioral feature must be the classifier that owns the behavioral feature. - - - OCL - specification->notEmpty() implies (context->notEmpty() and specification->featuringClassifier->exists (c | c = context)) - - - - - The connection points of a state machine are pseudostates of kind entry point or exit point. - - - OCL - conectionPoint->forAll (c | c.kind = #entryPoint or c.kind = #exitPoint) - - - - - - The connection points defined for this state machine. They represent the interface of the state machine when used as part of submachine state. - - - - - - - The state machines of which this is an extension. - - - - - - - The regions owned directly by the state machine. - - - - - - References the submachine(s) in case of a submachine state. Multiple machines are referenced in case of a concurrent state. - - - - - - - The operation LCA(s1,s2) returns an orthogonal state or region which is the least common ancestor of states s1 and s2, based on the statemachine containment hierarchy. - - - - OCL - true - - - - - - - - - The query ancestor(s1, s2) checks whether s1 is an ancestor state of state s2. - - - - OCL - result = -if (s2 = s1) then - true -else - if (s2.container->isEmpty() or not s2.container.owner.oclIsKindOf(State)) then - false - else - ancestor(s1, s2.container.owner.oclAsType(State)) - endif -endif - - - - - - - - - - - - The query isConsistentWith() specifies that a redefining state machine is consistent with a redefined state machine provided that the redefining state machine is an extension of the redefined state machine: Regions are inherited and regions can be added, inherited regions can be redefined. In case of multiple redefining state machines, extension implies that the redefining state machine gets orthogonal regions for each of the redefined state machines. - - - - OCL - result = true - - - - - - - - - - The query isRedefinitionContextValid() specifies whether the redefinition contexts of a statemachine are properly related to the redefinition contexts of the specified statemachine to allow this element to redefine the other. The containing classifier of a redefining statemachine must redefine the containing classifier of the redefined statemachine. - - - - OCL - result = true - - - - - - - - - - - A stereotype defines how an existing metaclass may be extended, and enables the use of platform or domain specific terminology or notation in place of, or in addition to, the ones used for the extended metaclass. - - - - Where a stereotype’s property is an association end for an association other than a kind of extension, and the other end is not a stereotype, the other end must be owned by the association itself. - - - OCL - ownedAttribute -->select(association->notEmpty() and not association.oclIsKindOf(Extension) and not type.oclIsKindOf(Stereotype)) -->forAll(opposite.owner = association) - - - - - Stereotype names should not clash with keyword names for the extended model element. - - - OCL - true - - - - - Stereotypes may only participate in binary associations. - - - OCL - ownedAttribute.association->forAll(memberEnd->size()=2) - - - - - A Stereotype may only generalize or specialize another Stereotype. - - - OCL - generalization.general->forAll(e |e.oclIsKindOf(Stereotype)) and generalization.specific->forAll(e | e.oclIsKindOf(Stereotype)) - - - - - - Stereotype can change the graphical appearance of the extended model element by using attached icons. When this association is not null, it references the location of the icon content to be displayed within diagrams presenting the extended model elements. - - - - - - - The profile that directly or indirectly contains this stereotype. - - - - - The query containingProfile returns the closest profile directly or indirectly containing this stereotype. - - - - OCL - result = self.namespace.oclAsType(Package).containingProfile() - - - - - - - A stereotype must be contained, directly or indirectly, in a profile. - - - - OCL - result = self.containingProfile() - - - - - - - - An expression that specifies a string value that is derived by concatenating a set of sub string expressions, some of which might be template parameters. - - - - If a StringExpression has sub-expressions, it cannot have operands and vice versa (this avoids the problem of having to define a collating sequence between operands and subexpressions). - - - OCL - if subExpression->notEmpty() then operand->isEmpty() else operand->notEmpty() - - - - - All the operands of a StringExpression must be LiteralStrings - - - OCL - operand->forAll (op | op.oclIsKindOf (LiteralString)) - - - - - - - The string expression of which this expression is a substring. - - - - - - The StringExpressions that constitute this StringExpression. - - - - - - - The query stringValue() returns the string that concatenates, in order, all the component string literals of all the subexpressions that are part of the StringExpression. - - - - OCL - result = if subExpression->notEmpty() -then subExpression->iterate(se; stringValue = ‘| stringValue.concat(se.stringValue())) -else operand->iterate()(op; stringValue = ‘ | stringValue.concat(op.value)) - - - - - - - - - - A structural feature is a typed feature of a classifier that specifies the structure of instances of the classifier. - - - By specializing multiplicity element, it supports a multiplicity that specifies valid cardinalities for the collection of values associated with an instantiation of the structural feature. - - - - - - - States whether the feature's value may be modified by a client. - - - - - - - - StructuralFeatureAction is an abstract class for all structural feature actions. - - - - Visibility of structural feature must allow access to the object performing the action. - - - OCL - let host : Classifier = self.context in -self.structuralFeature.visibility = #public -or host = self.structuralFeature.featuringClassifier.type -or (self.structuralFeature.visibility = #protected and host.allSupertypes -->includes(self.structuralFeature.featuringClassifier.type))) - - - - - - The multiplicity of the object input pin must be 1..1. - - - OCL - self.object.lowerBound()=1 and self.object.upperBound()=1 - - - - - The structural feature must not be static. - - - OCL - self.structuralFeature.isStatic = #false - - - - - A structural feature has exactly one featuringClassifier. - - - OCL - self.structuralFeature.featuringClassifier->size() = 1 - - - - - The structural feature must either be owned by the type of the object input pin, or it must be an owned end of a binary association with the type of the opposite end being the type of the object input pin. - - - OCL - self.structuralFeature.featuringClassifier.oclAsType(Type)->includes(self.object.type) or - self.structuralFeature.oclAsType(Property).opposite.type = self.object.type - - - - - - Gives the input pin from which the object whose structural feature is to be read or written is obtained. - - - - - Structural feature to be read. - - - - - - A structured activity node is an executable activity node that may have an expansion into subordinate nodes as an activity group. The subordinate nodes must belong to only one structured activity node, although they may be nested. - - - Because of the concurrent nature of the execution of actions within and across activities, it can be difficult to guarantee the consistent access and modification of object memory. In order to avoid race conditions or other concurrency-related problems, it is sometimes necessary to isolate the effects of a group of actions from the effects of actions outside the group. This may be indicated by setting the mustIsolate attribute to true on a structured activity node. If a structured activity node is "isolated," then any object used by an action within the node cannot be accessed by any action outside the node until the structured activity node as a whole completes. Any concurrent actions that would result in accessing such objects are required to have their execution deferred until the completion of the node. - - - - The incoming edges of the input pins of a StructuredActivityNode must have sources that are not within the StructuredActivityNode. - - - OCL - true - - - - - The edges owned by a structured node must have source and target nodes in the structured node, and vice versa. - - - OCL - true - - - - - The outgoing edges of the output pins of a StructuredActivityNode must have targets that are not within the StructuredActivityNode. - - - OCL - true - - - - - - - - Activity immediately containing the node. - - - - - - Edges immediately contained in the structured node. - - - - - - - If true, then the actions in the node execute in isolation from actions outside the node. - - - - - - - Nodes immediately contained in the group. - - - - - - - - - - - - - - - A variable defined in the scope of the structured activity node. It has no value and may not be accessed - - - - - - - - A structured classifier is an abstract metaclass that represents any classifier whose behavior can be fully or partly described by the collaboration of owned or referenced instances. - - - - The multiplicities on connected elements must be consistent. - - - OCL - true - - - - - - References the properties owned by the classifier. - - - - - - - References the connectors owned by the classifier. - - - - - - - References the properties specifying instances that the classifier owns by composition. This association is derived, selecting those owned properties where isComposite is true. - - - - - - - References the roles that instances may play in this classifier. - - - - - - - Missing derivation for StructuredClassifier::/part : Property - - - - OCL - true - - - - - - - - - - - A substitution is a relationship between two classifiers signifies that the substituting classifier complies with the contract specified by the contract classifier. This implies that instances of the substituting classifier are runtime substitutable where instances of the contract classifier are expected. - - - - - The contract with which the substituting classifier complies. - - - - - Instances of the substituting classifier are runtime substitutable where instances of the contract classifier are expected. - - - - - - A template binding represents a relationship between a templateable element and a template. A template binding specifies the substitutions of actual parameters for the formal parameters of the template. - - - - Each parameter substitution must refer to a formal template parameter of the target template signature. - - - OCL - parameterSubstitution->forAll(b | template.parameter->includes(b.formal)) - - - - - A binding contains at most one parameter substitution for each formal template parameter of the target template signature. - - - OCL - template.parameter->forAll(p | parameterSubstitution->select(b | b.formal = p)->size() <= 1) - - - - - - The element that is bound by this binding. - - - - - The parameter substitutions owned by this template binding. - - - - - - - The template signature for the template that is the target of the binding. - - - - - - A template parameter exposes a parameterable element as a formal template parameter of a template. - - - - The default must be compatible with the formal template parameter. - - - OCL - default->notEmpty() implies default->isCompatibleWith(parameteredElement) - - - - - - The element that is the default for this formal template parameter. - - - - - - The element that is owned by this template parameter for the purpose of providing a default. - - - - - - The element that is owned by this template parameter. - - - - - - The element exposed by this template parameter. - - - - - The template signature that owns this template parameter. - - - - - - A template parameter substitution relates the actual parameter to a formal template parameter as part of a template binding. - - - - The actual parameter must be compatible with the formal template parameter, e.g. the actual parameter for a class template parameter must be a class. - - - OCL - actual->forAll(a | a.isCompatibleWith(formal.parameteredElement)) - - - - - - The element that is the actual parameter for this substitution. - - - - - The formal template parameter that is associated with this substitution. - - - - - The actual parameter that is owned by this substitution. - - - - - - The optional bindings from this element to templates. - - - - - - A template signature bundles the set of formal template parameters for a templated element. - - - - Parameters must own the elements they parameter or those elements must be owned by the element being templated. - - - OCL - templatedElement.ownedElement->includesAll(parameter.parameteredElement - parameter.ownedParameteredElement) - - - - - - The formal template parameters that are owned by this template signature. - - - - - - - The ordered set of all formal template parameters for this template signature. - - - - - - The element that owns this template signature. - - - - - - A templateable element is an element that can optionally be defined as a template and bound to other templates. - - - - - The optional template signature specifying the formal template parameters. - - - - - - The optional bindings from this element to templates. - - - - - - - The query isTemplate() returns whether this templateable element is actually a template. - - - - OCL - result = ownedTemplateSignature->notEmpty() - - - - - - - - - The query parameterableElements() returns the set of elements that may be used as the parametered elements for a template parameter of this templateable element. By default, this set includes all the owned elements. Subclasses may override this operation if they choose to restrict the set of parameterable elements. - - - - OCL - result = allOwnedElements->select(oclIsKindOf(ParameterableElement)) - - - - - - - - - - - A test identity action is an action that tests if two values are identical objects. - - - - The multiplicity of the input pins is 1..1. - - - OCL - self.first.multiplicity.is(1,1) -and self.second.multiplicity.is(1,1) - - - - - - The input pins have no type. - - - OCL - self.first.type->size() = 0 -and self.second.type->size() = 0 - - - - - - The type of the result is the UML standard primitive type Boolean. (This is not directly representable in OCL at the metamodel level.) - - - OCL - true - - - - - - - Gives the pin on which an object is placed. - - - - - Tells whether the two input objects are identical. - - - - - Gives the pin on which an object is placed. - - - - - - A time constraint is a constraint that refers to a time interval. - - - - - The value of firstEvent is related to constrainedElement. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters constrainedElement. If firstEvent is false, then the corresponding observation event is the last time instant the execution is within constrainedElement. - - - - - - - - A condition that must be true when evaluated in order for the constraint to be satisfied. - - - - - - A time event can be defined relative to entering the current state of the executing state machine. - - - A time event specifies a point in time. At the specified time, the event occurs. - - - - The starting time for a relative time event may only be omitted for a time event that is the trigger of a state machine. - - - OCL - true - - - - - The ValueSpecification when must return a non-negative Integer. - - - OCL - true - - - - - - Specifies whether it is relative or absolute time. - - - - - - - Specifies the corresponding time deadline. - - - - - - A time expression defines a value specification that represents a time value. - - - - - The value of the time expression. - - - - - - Refers to the time and duration observations that are involved in expr. - - - - - - - - A time interval defines the range between two time expressions. - - - - - Refers to the TimeExpression denoting the maximum value of the range. - - - - - Refers to the TimeExpression denoting the minimum value of the range. - - - - - - A time observation is a reference to a time instant during an execution. It points out the element in the model to observe and whether the observation is when this model element is entered or when it is exited. - - - - - The observation is determined by the entering or exiting of the event element during execution. - - - - - The value of firstEvent is related to event. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters event. If firstEvent is false, then the corresponding observation event is the time instant the execution exits event. - - - - - - - - A transition is a directed relationship between a source vertex and a target vertex. It may be part of a compound transition, which takes the state machine from one state configuration to another, representing the complete response of the state machine to an occurrence of an event of a particular type. - - - - A transition with kind local must have a composite state or an entry point as its source. - - - OCL - (kind = TransitionKind::local) implies - ((source.oclIsKindOf (State) and source.oclAsType(State).isComposite) or - (source.oclIsKindOf (Pseudostate) and source.oclAsType(Pseudostate).kind = PseudostateKind::entryPoint)) - - - - - A fork segment must not have guards or triggers. - - - OCL - (source.oclIsKindOf(Pseudostate) and source.kind = #fork) implies (guard->isEmpty() and trigger->isEmpty()) - - - - - A join segment must always originate from a state. - - - OCL - (target.oclIsKindOf(Pseudostate) and target.kind = #join) implies (source.oclIsKindOf(State)) - - - - - An initial transition at the topmost level (region of a statemachine) either has no trigger or it has a trigger with the stereotype >. - - - OCL - self.source.oclIsKindOf(Pseudostate) implies -(self.source.oclAsType(Pseudostate).kind = #initial) implies -(self.source.container = self.stateMachine.top) implies -((self.trigger->isEmpty) or -(self.trigger.stereotype.name = 'create')) - - - - - - Transitions outgoing pseudostates may not have a trigger. - - - OCL - source.oclIsKindOf(Pseudostate) and (source.kind <> #initial)) implies trigger->isEmpty() - - - - - In case of more than one trigger, the signatures of these must be compatible in case the parameters of the signal are assigned to local variables/attributes. - - - OCL - true - - - - - A transition with kind internal must have a state as its source, and its source and target must be equal. - - - OCL - (kind = TransitionKind::internal) implies - (source.oclIsKindOf (State) and source = target) - - - - - A join segment must not have guards or triggers. - - - OCL - (target.oclIsKindOf(Pseudostate) and target.kind = #join) implies (guard->isEmpty() and trigger->isEmpty()) - - - - - A fork segment must always target a state. - - - OCL - (source.oclIsKindOf(Pseudostate) and source.kind = #fork) implies (target.oclIsKindOf(State)) - - - - - A transition with kind external can source any vertex except entry points. - - - OCL - (kind = TransitionKind::external) implies - not (source.oclIsKindOf(Pseudostate) and source.oclAsType(Pseudostate).kind = PseudostateKind::entryPoint) - - - - - - - Designates the region that owns this transition. - - - - - Specifies an optional behavior to be performed when the transition fires. - - - - - - A guard is a constraint that provides a fine-grained control over the firing of the transition. The guard is evaluated when an event occurrence is dispatched by the state machine. If the guard is true at that time, the transition may be enabled, otherwise, it is disabled. Guards should be pure expressions without side effects. Guard expressions with side effects are ill formed. - - - - - - Indicates the precise type of the transition. - - - - - - The transition that is redefined by this transition. - - - - - - References the classifier in which context this element may be redefined. - - - - - Designates the originating vertex (state or pseudostate) of the transition. - - - - - Designates the target vertex that is reached when the transition is taken. - - - - - Specifies the triggers that may fire the transition. - - - - - - - The query containingStateMachine() returns the state machine that contains the transition either directly or transitively. - - - - OCL - result = container.containingStateMachine() - - - - - - - The query isConsistentWith() specifies that a redefining transition is consistent with a redefined transition provided that the redefining transition has the following relation to the redefined transition: A redefining transition redefines all properties of the corresponding redefined transition, except the source state and the trigger. - - - - OCL - redefinee.isRedefinitionContextValid(self) - - - - - OCL - result = (redefinee.oclIsKindOf(Transition) and - let trans: Transition = redefinee.oclAsType(Transition) in - (source() = trans.source() and trigger() = tran.trigger()) - - - - - - - - - - The redefinition context of a transition is the nearest containing statemachine. - - - - OCL - result = let sm = containingStateMachine() in -if sm.context->isEmpty() or sm.general->notEmpty() then -sm -else -sm.context -endif - - - - - - - - A trigger specification may be qualified by the port on which the event occurred. - - - A trigger relates an event to a behavior that may affect an instance of the classifier. - - - - - The event that causes the trigger. - - - - - A optional port of the receiver object on which the behavioral feature is invoked. - - - - - - - - A type is a named element that is used as the type for a typed element. A type can be contained in a package. - - - A type constrains the values represented by a typed element. - - - - - Specifies the owning package of this classifier, if any. - - - - - - The query conformsTo() gives true for a type that conforms to another. By default, two types do not conform to each other. This query is intended to be redefined for specific conformance situations. - - - - OCL - result = false - - - - - - - - - - - A typed element is a kind of named element that represents an element with a type. - - - A typed element has a type. - - - - - This information is derived from the return result for this Operation. - - - The type of the TypedElement. - - - - - - - An unmarshall action is an action that breaks an object of a known type into outputs each of which is equal to a value from a structural feature of the object. - - - - The type of the object input pin must be the same as the unmarshall classifier. - - - OCL - true - - - - - The unmarshall classifier must have at least one structural feature. - - - OCL - true - - - - - The multiplicity of the object input pin is 1..1 - - - OCL - true - - - - - The type and ordering of each result output pin must be the same as the corresponding structural feature of the unmarshall classifier. - - - OCL - true - - - - - The number of result output pins must be the same as the number of structural features of the unmarshall classifier. - - - OCL - true - - - - - unmarshallType must be a Classifier with ordered attributes - - - OCL - true - - - - - The multiplicity of each result output pin must be compatible with the multiplicity of the corresponding structural features of the unmarshall classifier. - - - OCL - true - - - - - - The object to be unmarshalled. - - - - - The values of the structural features of the input object. - - - - - - The type of the object to be unmarshalled. - - - - - - A usage is a relationship in which one element requires another element (or set of elements) for its full implementation or operation. A usage is a dependency in which the client requires the presence of the supplier. - - - - - - A use case is the specification of a set of actions performed by a system, which yields an observable result that is, typically, of value for one or more actors or other stakeholders of the system. - - - - A UseCase must have a name. - - - OCL - self.name -> notEmpty () - - - - - A use case cannot include use cases that directly or indirectly include it. - - - OCL - not self.allIncludedUseCases()->includes(self) - - - - - UseCases can only be involved in binary Associations. - - - OCL - true - - - - - UseCases can not have Associations to UseCases specifying the same subject. - - - OCL - true - - - - - - References the Extend relationships owned by this use case. - - - - - - - References the ExtensionPoints owned by the use case. - - - - - - - References the Include relationships owned by this use case. - - - - - - - References the subjects to which this use case applies. The subject or its parts realize all the use cases that apply to this subject. Use cases need not be attached to any specific subject, however. The subject may, but need not, own the use cases that apply to it. - - - - - - - The query allIncludedUseCases() returns the transitive closure of all use cases (directly or indirectly) included by this use case. - - - - OCL - result = self.include->union(self.include->collect(in | in.allIncludedUseCases())) - - - - - - - - - - - A value pin is an input pin that provides a value by evaluating a value specification. - - - - The type of value specification must be compatible with the type of the value pin. - - - OCL - true - - - - - Value pins have no incoming edges. - - - OCL - true - - - - - - Value that the pin will provide. - - - - - - ValueSpecification specializes ParameterableElement to specify that a value specification can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template. - - - A value specification is the specification of a (possibly empty) set of instances, including both objects and data values. - - - - - - The query booleanValue() gives a single Boolean value when one can be computed. - - - - OCL - result = Set{} - - - - - - - - - - The query integerValue() gives a single Integer value when one can be computed. - - - - OCL - result = Set{} - - - - - - - - - - The query isCompatibleWith() determines if this parameterable element is compatible with the specified parameterable element. By default parameterable element P is compatible with parameterable element Q if the kind of P is the same or a subtype as the kind of Q. In addition, for ValueSpecification, the type must be conformant with the type of the specified parameterable element. - - - - OCL - result = p->oclIsKindOf(self.oclType) and self.type.conformsTo(p.oclAsType(TypedElement).type) - - - - - - - - - - The query isComputable() determines whether a value specification can be computed in a model. This operation cannot be fully defined in OCL. A conforming implementation is expected to deliver true for this operation for all value specifications that it can compute, and to compute all of those for which the operation is true. A conforming implementation is expected to be able to compute the value of all literals. - - - - OCL - result = false - - - - - - - - - The query isNull() returns true when it can be computed that the value is null. - - - - OCL - result = false - - - - - - - - - The query realValue() gives a single Real value when one can be computed. - - - - OCL - result = Set{} - - - - - - - - - - The query stringValue() gives a single String value when one can be computed. - - - - OCL - result = Set{} - - - - - - - - - - The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed. - - - - OCL - result = Set{} - - - - - - - - - - - A value specification action is an action that evaluates a value specification. - - - - The multiplicity of the result pin is 1..1 - - - OCL - true - - - - - The type of value specification must be compatible with the type of the result pin. - - - OCL - true - - - - - - Gives the output pin on which the result is put. - - - - - Value specification to be evaluated. - - - - - - A variable is considered a connectable element. - - - Variables are elements for passing data between actions indirectly. A local variable stores values shared by the actions within a structured activity group but not accessible outside it. The output of an action may be written to a variable and read for the input to a subsequent action, which is effectively an indirect data flow path. Because there is no predefined relationship between actions that read and write variables, these actions must be sequenced by control flows to prevent race conditions that may occur between actions that read or write the same variable. - - - - A variable is owned by a StructuredNode or Activity, but not both. - - - OCL - true - - - - - - - An activity that owns the variable. - - - - - - A structured activity node that owns the variable. - - - - - - The isAccessibleBy() operation is not defined in standard UML. Implementations should define it to specify which actions can access a variable. - - - - OCL - result = true - - - - - - - - - - - VariableAction is an abstract class for actions that operate on a statically specified variable. - - - - The action must be in the scope of the variable. - - - OCL - self.variable.isAccessibleBy(self) - - - - - - Variable to be read. - - - - - - A vertex is an abstraction of a node in a state machine graph. In general, it can be the source or destination of any number of transitions. - - - - - The region that contains this vertex. - - - - - - Specifies the transitions entering this vertex. - - - - - - - Specifies the transitions departing from this vertex. - - - - - - - The operation containingStateMachine() returns the state machine in which this Vertex is defined - - - - OCL - result = if not container->isEmpty() -then --- the container is a region -container.containingStateMachine() -else if (oclIsKindOf(Pseudostate)) then --- entry or exit point? -if (kind = #entryPoint) or (kind = #exitPoint) then -stateMachine -else if (oclIsKindOf(ConnectionPointReference)) then -state.containingStateMachine() -- no other valid cases possible -endif - - - - - - - - Missing derivation for Vertex::/incoming : Transition - - - - OCL - result = Transition.allInstances()->select(t | t.target=self) - - - - - - - - - - Missing derivation for Vertex::/outgoing : Transition - - - - OCL - result = Transition.allInstances()->select(t | t.source=self) - - - - - - - - - - - WriteLinkAction is an abstract class for link actions that create and destroy links. - - - - The visibility of at least one end must allow access to the class using the action. - - - OCL - true - - - - - - - WriteStructuralFeatureAction is an abstract class for structural feature actions that change structural feature values. - - - - The type of the value input pin is the same as the type of the structural feature. - - - OCL - self.value->notEmpty() implies self.value.type = self.structuralFeature.type - - - - - The multiplicity of the input pin is 1..1. - - - OCL - self.value.multiplicity.is(1,1) - - - - - The type of the result output pin is the same as the type of the inherited object input pin. - - - OCL - result->notEmpty() implies self.result.type = self.object.type - - - - - The multiplicity of the result output pin must be 1..1. - - - OCL - result->notEmpty() implies self.result.multiplicity.is(1,1) - - - - - - Gives the output pin on which the result is put. - - - - - - Value to be added or removed from the structural feature. - - - - - - - WriteVariableAction is an abstract class for variable actions that change variable values. - - - - The multiplicity of the input pin is 1..1. - - - OCL - self.value.multiplicity.is(1,1) - - - - - The type input pin is the same as the type of the variable. - - - OCL - self.value -> notEmpty() implies self.value.type = self.variable.type - - - - - - Value to be added or removed from the variable. - - - - - - - AggregationKind is an enumeration type that specifies the literals for defining the kind of aggregation of a property. - - - - Indicates that the property has no aggregation. - - - - - Indicates that the property has a shared aggregation. - - - - - Indicates that the property is aggregated compositely, i.e., the composite object has responsibility for the existence and storage of the composed objects (parts). - - - - - - CallConcurrencyKind is an enumeration type. - - - - No concurrency management mechanism is associated with the operation and, therefore, concurrency conflicts may occur. Instances that invoke a behavioral feature need to coordinate so that only one invocation to a target on any behavioral feature occurs at once. - - - - - Multiple invocations of a behavioral feature may occur simultaneously to one instance, but only one is allowed to commence. The others are blocked until the performance of the currently executing behavioral feature is complete. It is the responsibility of the system designer to ensure that deadlocks do not occur due to simultaneous blocks. - - - - - Multiple invocations of a behavioral feature may occur simultaneously to one instance and all of them may proceed concurrently. - - - - - - ConnectorKind is an enumeration type. - - - - Indicates that the connector is an assembly connector. - - - - - Indicates that the connector is a delegation connector. - - - - - - ExpansionKind is an enumeration type used to specify how multiple executions of an expansion region interact. - - - - The executions are independent. They may be executed concurrently. - - - - - The executions are dependent and must be executed one at a time, in order of the collection elements. - - - - - A stream of collection elements flows into a single execution, in order of the collection elements. - - - - - - InteractionOperatorKind is an enumeration designating the different kinds of operators of combined fragments. The interaction operand defines the type of operator of a combined fragment. - - - - The interactionOperator seq designates that the CombinedFragment represents a weak sequencing between the behaviors of the operands. - - - - - The interactionOperator alt designates that the CombinedFragment represents a choice of behavior. At most one of the operands will be chosen. The chosen operand must have an explicit or implicit guard expression that evaluates to true at this point in the interaction. An implicit true guard is implied if the operand has no guard. - - - - - The interactionOperator opt designates that the CombinedFragment represents a choice of behavior where either the (sole) operand happens or nothing happens. An option is semantically equivalent to an alternative CombinedFragment where there is one operand with non-empty content and the second operand is empty. - - - - - The interactionOperator break designates that the CombinedFragment represents a breaking scenario in the sense that the operand is a scenario that is performed instead of the remainder of the enclosing InteractionFragment. A break operator with a guard is chosen when the guard is true and the rest of the enclosing Interaction Fragment is ignored. When the guard of the break operand is false, the break operand is ignored and the rest of the enclosing InteractionFragment is chosen. The choice between a break operand without a guard and the rest of the enclosing InteractionFragment is done non-deterministically. - - - - - The interactionOperator par designates that the CombinedFragment represents a parallel merge between the behaviors of the operands. The OccurrenceSpecifications of the different operands can be interleaved in any way as long as the ordering imposed by each operand as such is preserved. - - - - - The interactionOperator strict designates that the CombinedFragment represents a strict sequencing between the behaviors of the operands. The semantics of strict sequencing defines a strict ordering of the operands on the first level within the CombinedFragment with interactionOperator strict. Therefore OccurrenceSpecifications within contained CombinedFragment will not directly be compared with other OccurrenceSpecifications of the enclosing CombinedFragment. - - - - - The interactionOperator loop designates that the CombinedFragment represents a loop. The loop operand will be repeated a number of times. - - - - - The interactionOperator critical designates that the CombinedFragment represents a critical region. A critical region means that the traces of the region cannot be interleaved by other OccurrenceSpecifications (on those Lifelines covered by the region). This means that the region is treated atomically by the enclosing fragment when determining the set of valid traces. Even though enclosing CombinedFragments may imply that some OccurrenceSpecifications may interleave into the region, such as e.g. with par-operator, this is prevented by defining a region. - - - - - The interactionOperator neg designates that the CombinedFragment represents traces that are defined to be invalid. - - - - - The interactionOperator assert designates that the CombinedFragment represents an assertion. The sequences of the operand of the assertion are the only valid continuations. All other continuations result in an invalid trace. - - - - - The interacionOperator ignore designates that there are some message types that are not shown within this combined fragment. These message types can be considered insignificant and are implicitly ignored if they appear in a corresponding execution. Alternatively, one can understand ignore to mean that the message types that are ignored can appear anywhere in the traces. - - - - - The interactionOperator consider designates which messages should be considered within this combined fragment. This is equivalent to defining every other message to be ignored. - - - - - - This is an enumerated type that identifies the type of message. - - - - sendEvent and receiveEvent are present - - - - - sendEvent present and receiveEvent absent - - - - - sendEvent absent and receiveEvent present - - - - - sendEvent and receiveEvent absent (should not appear) - - - - - - This is an enumerated type that identifies the type of communication action that was used to generate the message. - - - - The message was generated by a synchronous call to an operation. - - - - - The message was generated by an asynchronous call to an operation; i.e., a CallAction with isSynchronous = false. - - - - - The message was generated by an asynchronous send action. - - - - - The message designating the creation of another lifeline object. - - - - - The message designating the termination of another lifeline. - - - - - The message is a reply message to an operation call. - - - - - - ObjectNodeOrderingKind is an enumeration indicating queuing order within a node. - - - - Indicates that object node tokens are unordered. - - - - - Indicates that object node tokens are ordered. - - - - - Indicates that object node tokens are queued in a last in, first out manner. - - - - - Indicates that object node tokens are queued in a first in, first out manner. - - - - - - Parameter direction kind is an enumeration type that defines literals used to specify direction of parameters. - - - - Indicates that parameter values are passed into the behavioral element by the caller. - - - - - Indicates that parameter values are passed into a behavioral element by the caller and then back out to the caller from the behavioral element. - - - - - Indicates that parameter values are passed from a behavioral element out to the caller. - - - - - Indicates that parameter values are passed as return values from a behavioral element back to the caller. - - - - - - The datatype ParameterEffectKind is an enumeration that indicates the effect of a behavior on values passed in or out of its parameters. - - - - Indicates that the behavior creates values. - - - - - Indicates that the behavior reads values. - - - - - Indicates that the behavior updates values. - - - - - Indicates that the behavior deletes values. - - - - - - PseudostateKind is an enumeration type. - - - - An initial pseudostate represents a default vertex that is the source for a single transition to the default state of a composite state. There can be at most one initial vertex in a region. The outgoing transition from the initial vertex may have a behavior, but not a trigger or guard. - - - - - DeepHistory represents the most recent active configuration of the composite state that directly contains this pseudostate; e.g. the state configuration that was active when the composite state was last exited. A composite state can have at most one deep history vertex. At most one transition may originate from the history connector to the default deep history state. This transition is taken in case the composite state had never been active before. Entry actions of states entered on the path to the state represented by a deep history are performed. - - - - - ShallowHistory represents the most recent active substate of its containing state (but not the substates of that substate). A composite state can have at most one shallow history vertex. A transition coming into the shallow history vertex is equivalent to a transition coming into the most recent active substate of a state. At most one transition may originate from the history connector to the default shallow history state. This transition is taken in case the composite state had never been active before. Entry actions of states entered on the path to the state represented by a shallow history are performed. - - - - - Join vertices serve to merge several transitions emanating from source vertices in different orthogonal regions. The transitions entering a join vertex cannot have guards or triggers. - - - - - Fork vertices serve to split an incoming transition into two or more transitions terminating on orthogonal target vertices (i.e. vertices in different regions of a composite state). The segments outgoing from a fork vertex must not have guards or triggers. - - - - - Junction vertices are semantic-free vertices that are used to chain together multiple transitions. They are used to construct compound transition paths between states. For example, a junction can be used to converge multiple incoming transitions into a single outgoing transition representing a shared transition path (this is known as an merge). Conversely, they can be used to split an incoming transition into multiple outgoing transition segments with different guard conditions. This realizes a static conditional branch. (In the latter case, outgoing transitions whose guard conditions evaluate to false are disabled. A predefined guard denoted 'else' may be defined for at most one outgoing transition. This transition is enabled if all the guards labeling the other transitions are false.) Static conditional branches are distinct from dynamic conditional branches that are realized by choice vertices (described below). - - - - - Choice vertices which, when reached, result in the dynamic evaluation of the guards of the triggers of its outgoing transitions. This realizes a dynamic conditional branch. It allows splitting of transitions into multiple outgoing paths such that the decision on which path to take may be a function of the results of prior actions performed in the same run-tocompletion step. If more than one of the guards evaluates to true, an arbitrary one is selected. If none of the guards evaluates to true, then the model is considered ill-formed. (To avoid this, it is recommended to define one outgoing transition with the predefined else guard for every choice vertex.) Choice vertices should be distinguished from static branch points that are based on junction points (described above). - - - - - An entry point pseudostate is an entry point of a state machine or composite state. In each region of the state machine or composite state it has a single transition to a vertex within the same region. - - - - - An exit point pseudostate is an exit point of a state machine or composite state. Entering an exit point within any region of the composite state or state machine referenced by a submachine state implies the exit of this composite state or submachine state and the triggering of the transition that has this exit point as source in the state machine enclosing the submachine or composite state. - - - - - Entering a terminate pseudostate implies that the execution of this state machine by means of its context object is terminated. The state machine does not exit any states nor does it perform any exit actions other than those associated with the transition leading to the terminate pseudostate. Entering a terminate pseudostate is equivalent to invoking a DestroyObjectAction. - - - - - - TransitionKind is an enumeration type. - - - - Implies that the transition, if triggered, occurs without exiting or entering the source state. Thus, it does not cause a state change. This means that the entry or exit condition of the source state will not be invoked. An internal transition can be taken even if the state machine is in one or more regions nested within this state. - - - - - Implies that the transition, if triggered, will not exit the composite (source) state, but it will apply to any state within the composite state, and these will be exited and entered. - - - - - Implies that the transition, if triggered, will exit the composite (source) state. - - - - - - VisibilityKind is an enumeration type that defines literals to determine the visibility of elements in a model. - - - - A public element is visible to all elements that can access the contents of the namespace that owns it. - - - - - A private element is only visible inside the namespace that owns it. - - - - - A protected element is visible to elements that have a generalization relationship to the namespace that owns it. - - - - - A package element is owned by a namespace that is not a package, and is visible to elements that are in the same package as its owning namespace. Only named elements that are not owned by packages can be marked as having package visibility. Any element marked as having package visibility is visible to all elements within the nearest enclosing package (given that other owning elements have proper visibility). Outside the nearest enclosing package, an element marked as having package visibility is not visible. - - - - - - diff --git a/examples/uml/duse-mt/src/app/newmodel.ui b/examples/uml/duse-mt/src/app/newmodel.ui deleted file mode 100644 index e2637dae..00000000 --- a/examples/uml/duse-mt/src/app/newmodel.ui +++ /dev/null @@ -1,98 +0,0 @@ - - - DuSE::NewModel - - - - 0 - 0 - 453 - 217 - - - - Create new model - - - - - - - - Model name: - - - - - - - - - - Metamodel: - - - - - - - - - - - - - Top level container: - - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - DuSE::NewModel - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - DuSE::NewModel - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/examples/uml/duse-mt/src/app/qml/grid.png b/examples/uml/duse-mt/src/app/qml/grid.png deleted file mode 100644 index 52162608..00000000 Binary files a/examples/uml/duse-mt/src/app/qml/grid.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/app/shell/core.cpp b/examples/uml/duse-mt/src/app/shell/core.cpp deleted file mode 100644 index 037ddb02..00000000 --- a/examples/uml/duse-mt/src/app/shell/core.cpp +++ /dev/null @@ -1,120 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "core.h" - -#include "plugincontroller.h" -#include "projectcontroller.h" -#include "uicontroller.h" - -#include - -namespace DuSE -{ - -Core::~Core() -{ - delete _pluginController; - delete _projectController; - delete _uiController; -} - -bool Core::initialize() -{ - if (_self) - return true; - - _self = new Core(); - - return true; -} - -IPluginController *Core::pluginController() -{ - return _pluginController; -} - -IProjectController *Core::projectController() -{ - return _projectController; -} - -IUiController *Core::uiController() -{ - return _uiController; -} - -Core::Core() : - _pluginController(0), - _projectController(0), - _uiController(0) -{ - initializeInternal(); -} - -bool Core::initializeInternal() -{ - if (!_pluginController) - _pluginController = new PluginController; - if (!_projectController) - _projectController = new ProjectController; - if (!_uiController) - _uiController = new UiController; - - if (!_pluginController->initialize()) { - qDebug() << "Error when initializing plugin controller:"; - qDebug(); - qDebug() << _pluginController->errorStrings(); - qDebug(); - } - if (!_projectController->initialize()) { - qDebug() << "Error when initializing project controller:"; - qDebug(); - qDebug() << _projectController->errorStrings(); - qDebug(); - } - if (!_uiController->initialize()) { - qDebug() << "Error when initializing UI controller:"; - } - - return true; -} - -} diff --git a/examples/uml/duse-mt/src/app/shell/core.h b/examples/uml/duse-mt/src/app/shell/core.h deleted file mode 100644 index 9c96c8c3..00000000 --- a/examples/uml/duse-mt/src/app/shell/core.h +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef CORE_H -#define CORE_H - -#include - -namespace DuSE -{ - -class PluginController; -class ProjectController; -class UiController; - -class Core : public ICore -{ -public: - virtual ~Core(); - - static bool initialize(); - - virtual IPluginController *pluginController(); - virtual IProjectController *projectController(); - virtual IUiController *uiController(); - -protected: - Core(); - bool initializeInternal(); - - PluginController *_pluginController; - ProjectController *_projectController; - UiController *_uiController; -}; - -} - -#endif // CORE_H diff --git a/examples/uml/duse-mt/src/app/shell/mainwindow.cpp b/examples/uml/duse-mt/src/app/shell/mainwindow.cpp deleted file mode 100644 index 19205793..00000000 --- a/examples/uml/duse-mt/src/app/shell/mainwindow.cpp +++ /dev/null @@ -1,410 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "mainwindow.h" -#include "ui_mainwindow.h" -#include "ui_aboutplugins.h" -#include "ui_aboutdusemt.h" -#include "ui_newmodel.h" - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -namespace DuSE -{ - -MainWindow::MainWindow(QWidget *parent) : - QMainWindow(parent), - ui(new Ui::MainWindow), - _aboutPluginsDialog(new QDialog(this)), - _aboutPlugins(new Ui::AboutPlugins), - _aboutDuSEMTDialog(new QDialog(this)), - _aboutDuSEMT(new Ui::AboutDuSEMT), - _newModelDialog(new QDialog(this)), - _newModel(new Ui::NewModel) -{ - ui->setupUi(this); - - _newModel->setupUi(_newModelDialog); - connect(_newModel->cboMetamodel, SIGNAL(currentIndexChanged(QString)), SLOT(metaModelChanged(QString))); - _aboutPlugins->setupUi(_aboutPluginsDialog); - _aboutDuSEMT->setupUi(_aboutDuSEMTDialog); - -// connect(ui->modelingObjectView, &QModelingObjectView::addToView, this, &MainWindow::addToView); - -} - -MainWindow::~MainWindow() -{ - delete ui; - delete _aboutPlugins; - delete _newModel; - delete _aboutDuSEMT; -} - -void MainWindow::readSettings() -{ - QSettings settings("QtProject", "duse-mt"); - restoreGeometry(settings.value("geometry").toByteArray()); - restoreState(settings.value("windowState").toByteArray()); -} - -void MainWindow::on_actionFileNewModel_triggered() -{ - _newModel->lneModel->clear(); - _newModel->cboMetamodel->clear(); - foreach (QMetaModelPlugin *metamodelPlugin, ICore::self()->pluginController()->metamodelPlugins().values()) - _newModel->cboMetamodel->addItem(metamodelPlugin->metaObject()->className()); - _newModel->lneModel->setFocus(); - if (_newModelDialog->exec() == QDialog::Accepted) { - QMetaModelPlugin *metamodelPlugin = 0; - foreach (QMetaModelPlugin *plugin, ICore::self()->pluginController()->metamodelPlugins().values()) { - if (plugin->metaObject()->className() == _newModel->cboMetamodel->currentText()) - metamodelPlugin = plugin; - } - if (ICore::self()->projectController()->createModel(_newModel->lneModel->text(), metamodelPlugin, _newModel->lstTopLevelContainers->currentItem()->text())) - setWindowTitle(ICore::self()->projectController()->currentModelFileName() + " - DuSE-MT"); - } -} - -void MainWindow::on_actionFileOpenModel_triggered() -{ - QString fileName = QFileDialog::getOpenFileName(this, tr("Open"), QDir::currentPath(), "XMI files (*.xmi)"); - if (!fileName.isEmpty()) { - setCursor(Qt::WaitCursor); - bool ret = ICore::self()->projectController()->openModel(fileName); - setCursor(Qt::ArrowCursor); - if (!ret) { - QMessageBox::critical(this, tr("Open model"), ICore::self()->projectController()->errorStrings().first()); - return; - } - setWindowTitle(QFileInfo(fileName).fileName() + " - DuSE-MT"); - -// _currentFileName = fileName; -//// foreach (QWrappedObject *object, _inputModel) -//// delete object; -// _inputModel = loadXmi(_currentFileName); -// _modelQuickView->setClearBeforeRendering(true); -// _modelQuickView->setSource(QUrl("qrc:/qml/modelview.qml")); -// addToView(_inputModel[0]); - } -} - -void MainWindow::on_actionFileCloseModel_triggered() -{ - ICore::self()->projectController()->closeModel(); -} - -void MainWindow::evaluateQualityMetrics() -{ -// _engine.evaluate("var m = designspace.qualityMetrics.length; -// for (var j = 0; j < m; ++j) -// designspace.qualityMetrics[j].value = Math.random()*60+eval(designspace.qualityMetrics[j].expression)"); -} - -void MainWindow::populateDesignSpaceView(QModelingElement *modelingObject) -{ - Q_UNUSED(modelingObject); -// QDuseDesignSpace *designSpace = qobject_cast(modelingObject); -// ui->tblDesignSpace->setRowCount(0); -// int row = 0; -// foreach (QDuseDesignDimension *dimension, designSpace->designDimensions()) { -// ui->tblDesignSpace->setRowCount(ui->tblDesignSpace->rowCount() + dimension->designDimensionInstances().count()); -// foreach (QDuseDesignDimensionInstance *instance, dimension->designDimensionInstances()) { -// ui->tblDesignSpace->setItem(row, 0, new QTableWidgetItem(dimension->name())); -// ui->tblDesignSpace->setItem(row, 1, new QTableWidgetItem(instance->objectName())); -// QComboBox *comboBox = new QComboBox; -// foreach (QDuseVariationPoint *variationPoint, dimension->variationPoints()) { -// comboBox->addItem(variationPoint->objectName()); -// } -// ui->tblDesignSpace->setCellWidget(row, 2, comboBox); -// connect(comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(designSpaceChanged())); -// ++row; -// } -// } -// ui->tblDesignSpace->resizeRowsToContents(); -} - -void MainWindow::on_actionFileSaveAs_triggered() -{ - QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"), QDir::currentPath(), "XMI files (*.xmi)"); - if (!fileName.isEmpty()) - saveXmi(fileName); -} - -void MainWindow::on_actionFileSave_triggered() -{ - if (ICore::self()->projectController()->currentModelFileName().isEmpty()) - on_actionFileSaveAs_triggered(); - else - saveXmi(); -} - -void MainWindow::saveXmi(QString fileName) -{ - IProjectController *projectController = ICore::self()->projectController(); - setCursor(Qt::WaitCursor); - bool ret; - if (fileName.isEmpty()) - ret = projectController->saveModel(); - else - ret = projectController->saveModelAs(fileName); - setCursor(Qt::ArrowCursor); - if (!ret) { - QMessageBox::critical(this, tr("Save model%1").arg(fileName.isEmpty() ? "":" as"), projectController->errorStrings().first()); - return; - } - else { - statusBar()->showMessage("XMI file successfully saved !", 3000); - setWindowTitle(projectController->currentModelFileName() + " - DuSE-MT"); - } -} - -void MainWindow::on_actionHelpAboutPlugins_triggered() -{ - _aboutPluginsDialog->exec(); -} - -void MainWindow::on_actionHelpAboutDuSEMT_triggered() -{ - _aboutDuSEMTDialog->exec(); -} - -void MainWindow::on_centralWidget_currentChanged(int) -{ -// if (_currentFileName.isEmpty()) -// return; -// if (ui->centralWidget->currentIndex() == 1) { -// foreach (QWrappedObject *object, _inputModel) -// delete object; -// _inputModel = loadXmi(_currentFileName); -// evaluateQualityMetrics(); -// } -// else if (ui->centralWidget->currentIndex() == 2) { -// foreach (QWrappedObject *object, _designSpaceLocation) -// delete object; -// _designSpaceLocation = loadXmi("/data/devel/qtmodeling/examples/uml/r1.xmi"); -// addToDesignSpaceView(_designSpaceLocation.first()); -// evaluateQualityMetrics(); -// } -// else if (ui->centralWidget->currentIndex() == 3) { -// foreach (QWrappedObject *object, _designSpaceLocation) -// delete object; -// } -} - -//void MainWindow::on_btnOptimize_clicked() -//{ -// progress = new QProgressDialog("Optimizing architecture", "Abort", 0, 100, this); -// progress->setWindowModality(Qt::WindowModal); -// timer = new QTimer(this); -// connect(progress, SIGNAL(finished(int)), timer, SLOT(stop())); -// connect(timer, SIGNAL(timeout()), this, SLOT(update())); -// timer->start(1000); -//} - -void MainWindow::update() -{ - progress->setValue(progress->value()+10); - if (progress->value() == 99) { - timer->stop(); - progress->hide(); -// _designSpaceLocation = loadXmi(QString::fromLatin1("/data/devel/qtmodeling/examples/uml/r%1.xmi").arg(qrand() % 11)); -// addToPareto(_designSpaceLocation.first(), 0); -// _designSpaceLocation = loadXmi(QString::fromLatin1("/data/devel/qtmodeling/examples/uml/r%1.xmi").arg(qrand() % 11)); -// addToPareto(_designSpaceLocation.first(), 1); -// _designSpaceLocation = loadXmi(QString::fromLatin1("/data/devel/qtmodeling/examples/uml/r%1.xmi").arg(qrand() % 11)); -// addToPareto(_designSpaceLocation.first(), 2); - evaluateQualityMetrics(); - } -} - -void MainWindow::metaModelChanged(QString newMetaModel) -{ - _newModel->lstTopLevelContainers->clear(); - QVariantList list; - foreach (QMetaModelPlugin *metamodelPlugin, ICore::self()->pluginController()->metamodelPlugins()) { - if (metamodelPlugin->metaObject()->className() == newMetaModel) - list = metamodelPlugin->property("metadata").value().value("MetaModelTopLevelTypes").toArray().toVariantList(); - } - foreach (QVariant variant, list) - _newModel->lstTopLevelContainers->addItem(variant.toString()); - _newModel->lstTopLevelContainers->setCurrentRow(0); -} - -//void MainWindow::addToDesignSpaceView(QModelingElement *modelingObject, QQuickItem *parent) -//{ -// QQmlContext *context = new QQmlContext(_designSpaceQuickView->engine()->rootContext()); -// //modelingObject->setQmlContextProperties(context); -// _qmlComponent = new QQmlComponent(_designSpaceQuickView->engine()); -// int x = qrand() % 400; -// int y = qrand() % 400; -// _qmlComponent->setData(QString("import QtQuick 2.0\nimport QtModeling.Uml 1.0\n\n%1 { x: %2; y: %3}").arg(QString(modelingObject->asQModelingObject()->metaObject()->className()).remove(QRegularExpression("^Q"))).arg(x).arg(y).toLatin1(), QUrl()); - -// QQuickItem *item = 0; -// if (_qmlComponent->isError()) { -// qWarning() << _qmlComponent->errors(); -// } else { -// item = qobject_cast(_qmlComponent->create(context)); -// if (item) { -// item->setParentItem(parent ? parent:(qobject_cast(_designSpaceQuickView->rootObject()))->contentItem()); -// } -// } - -// foreach (QObject *child, modelingObject->asQModelingObject()->children()) -// addToDesignSpaceView(dynamic_cast(qModelingElement(child))); - -// _qmlComponent->deleteLater(); -//} - -void MainWindow::addToPareto(QModelingElement *modelingObject, int pos) -{ - Q_UNUSED(modelingObject); - Q_UNUSED(pos); -// QQmlContext *context = _paretoFrontQuickView->engine()->rootContext(); -// //modelingObject->setQmlContextProperties(context); -// _qmlComponent = new QQmlComponent(_paretoFrontQuickView->engine()); -// int x = qrand() % 400; -// int y = qrand() % 400; -// _qmlComponent->setData(QString("import QtQuick 2.0\nimport QtModeling.Uml 1.0\n\n%1 { x: %2; y: %3}").arg(QString(modelingObject->asQModelingObject()->metaObject()->className()).remove(QRegularExpression("^Q"))).arg(x).arg(y).toLatin1(), QUrl()); - -// QQuickItem *item = 0; -// if (_qmlComponent->isError()) { -// qWarning() << _qmlComponent->errors(); -// } else { -// item = qobject_cast(_qmlComponent->create(context)); -// if (item) { -// item->setParentItem(_paretoFrontQuickView->rootObject()->childItems().first()->childItems().first()->childItems().at(pos)); -// } -// } - -// foreach (QObject *child, modelingObject->asQModelingObject()->children()) -// addToPareto(dynamic_cast(qModelingElement(child)), pos); - -// _qmlComponent->deleteLater(); -} - -void MainWindow::designSpaceChanged() -{ -// _designSpaceQuickView->setSource(QUrl("qrc:/qml/designspaceview.qml")); -// _designSpaceQuickView->setClearBeforeRendering(true); - -// foreach (QWrappedObject *object, _designSpaceLocation) -// delete object; - -// _designSpaceLocation = loadXmi(QString::fromLatin1("/data/devel/qtmodeling/examples/uml/r%1.xmi").arg(qrand() % 11)); -// addToDesignSpaceView(_designSpaceLocation.first()); -// evaluateQualityMetrics(); -} - -QTreeWidgetItem *MainWindow::itemForCategory(const QString &category) -{ - int topLevelItemCount = _aboutPlugins->loadedPlugins->topLevelItemCount(); - for (int i = 0; i < topLevelItemCount; ++i) - if (_aboutPlugins->loadedPlugins->topLevelItem(i)->text(0) == category) - return _aboutPlugins->loadedPlugins->topLevelItem(i); - QTreeWidgetItem *topLevelItem = new QTreeWidgetItem(_aboutPlugins->loadedPlugins, QStringList() << category); - topLevelItem->setData(1, Qt::CheckStateRole, QVariant(Qt::Checked)); - return topLevelItem; -} - -void MainWindow::populatePluginDialog() -{ - _aboutPlugins->loadedPlugins->setColumnWidth(1, 40); - _aboutPlugins->loadedPlugins->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents); - _aboutPlugins->loadedPlugins->header()->setSectionResizeMode(2, QHeaderView::ResizeToContents); - - foreach (QMetaModelPlugin *metamodelPlugin, ICore::self()->pluginController()->metamodelPlugins()) { - QJsonObject jsonObject = metamodelPlugin->property("metadata").value(); - QTreeWidgetItem *metamodelItem = new QTreeWidgetItem(itemForCategory("Metamodels"), - QStringList() << metamodelPlugin->metaObject()->className() - << QString() - << jsonObject.value("Version").toString() - << jsonObject.value("Vendor").toString()); - metamodelItem->setData(1, Qt::CheckStateRole, QVariant(Qt::Checked)); - } - foreach (DuSE::IPlugin *dusePlugin, ICore::self()->pluginController()->dusemtPlugins()) { - QJsonObject jsonObject = dusePlugin->property("metadata").value(); - QTreeWidgetItem *dusemtItem = new QTreeWidgetItem(itemForCategory(jsonObject.value("Category").toString()), - QStringList() << dusePlugin->metaObject()->className() - << QString() - << jsonObject.value("Version").toString() - << jsonObject.value("Vendor").toString()); - dusemtItem->setData(1, Qt::CheckStateRole, QVariant(Qt::Checked)); - } - - _aboutPlugins->loadedPlugins->expandAll(); -} - -void MainWindow::closeEvent(QCloseEvent *event) -{ - QSettings settings("QtProject", "duse-mt"); - settings.setValue("geometry", saveGeometry()); - settings.setValue("windowState", saveState()); - QMainWindow::closeEvent(event); -} - -} diff --git a/examples/uml/duse-mt/src/app/shell/mainwindow.h b/examples/uml/duse-mt/src/app/shell/mainwindow.h deleted file mode 100644 index c865c72c..00000000 --- a/examples/uml/duse-mt/src/app/shell/mainwindow.h +++ /dev/null @@ -1,134 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include - -QT_BEGIN_NAMESPACE -class QQuickItem; -class QQmlComponent; -class QTreeWidgetItem; - -class QModelingElement; -//class QModelingObject; -class QMetaModelPlugin; -class QModelingObjectModel; -class QProgressDialog; -QT_END_NAMESPACE - -class NewDuseDesignDialog; - -namespace DuSE -{ - -namespace Ui { - class MainWindow; - class AboutPlugins; - class AboutDuSEMT; - class NewModel; -} - -class IPlugin; - -class MainWindow : public QMainWindow -{ - Q_OBJECT - -public: - explicit MainWindow(QWidget *parent = 0); - virtual ~MainWindow(); - - void readSettings(); - void populatePluginDialog(); - -protected: - void closeEvent(QCloseEvent *event); - -private Q_SLOTS: - void update(); - void on_actionFileNewModel_triggered(); - void on_actionFileOpenModel_triggered(); - void on_actionFileCloseModel_triggered(); - void on_actionFileSaveAs_triggered(); - void on_actionFileSave_triggered(); - void on_actionHelpAboutPlugins_triggered(); - void on_actionHelpAboutDuSEMT_triggered(); - void on_centralWidget_currentChanged(int); -// void on_btnOptimize_clicked(); - void evaluateQualityMetrics(); - - void metaModelChanged(QString newMetaModel); -// void addToDesignSpaceView(QModelingElement *modelingObject, QQuickItem *parent = 0); - void addToPareto(QModelingElement *modelingObject, int pos); - - void designSpaceChanged(); - -private: - Ui::MainWindow *ui; - - void populateDesignSpaceView(QModelingElement *modelingObject); - - QList _inputModel; - QList _designSpaceLocation; - - QDialog *_aboutPluginsDialog; - Ui::AboutPlugins *_aboutPlugins; - QDialog *_aboutDuSEMTDialog; - Ui::AboutDuSEMT *_aboutDuSEMT; - QDialog *_newModelDialog; - Ui::NewModel *_newModel; - NewDuseDesignDialog *_newDuseDesign; - - QQmlComponent *_qmlComponent; - - QProgressDialog *progress; - QTimer *timer; - - QTreeWidgetItem *itemForCategory(const QString &category); - - friend class UiController; - void saveXmi(QString fileName = QString()); -}; - -} - -#endif // MAINWINDOW_H diff --git a/examples/uml/duse-mt/src/app/shell/plugincontroller.cpp b/examples/uml/duse-mt/src/app/shell/plugincontroller.cpp deleted file mode 100644 index 36c2a7c8..00000000 --- a/examples/uml/duse-mt/src/app/shell/plugincontroller.cpp +++ /dev/null @@ -1,179 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "plugincontroller.h" - -#include -#include - -#include - -#include - -#include -#include -#include -#include -#include -#include - -#include - -namespace DuSE -{ - -PluginController::PluginController() -{ -} - -PluginController::~PluginController() -{ - qDeleteAll(_dusemtPlugins); -} - -bool PluginController::initialize() -{ - // Load metamodel plugins - foreach (QString pluginPath, QCoreApplication::libraryPaths()) { - QDir pluginsDir(pluginPath); - pluginsDir.cd("metamodels"); - foreach (const QString &fileName, pluginsDir.entryList(QDir::Files)) { - QPluginLoader loader(pluginsDir.absoluteFilePath(fileName)); - QObject *plugin = loader.instance(); - QMetaModelPlugin *metamodelPlugin = 0; - if (plugin && (metamodelPlugin = qobject_cast(plugin))) { - QJsonObject jsonObject = loader.metaData().value(QStringLiteral("MetaData")).toObject(); - metamodelPlugin->setProperty("metadata", jsonObject); - _metamodelPlugins.insert(jsonObject.value(QStringLiteral("MetaModelNamespaceUri")).toString(), metamodelPlugin); - } - } - } - - // Load DuSE-MT plugins - QDir dusePluginsDir(QCoreApplication::applicationDirPath()); - -#if defined(Q_OS_MAC) - if (dusePluginsDir.dirName() == "MacOS") - { - dusePluginsDir.cdUp(); - dusePluginsDir.cdUp(); - dusePluginsDir.cdUp(); - } -#endif - - dusePluginsDir.cdUp(); - dusePluginsDir.cd("lib/duse-mt/plugins"); - - QHash invertedDependency; - QObjectList pluginList; - foreach (const QFileInfo &subdir, dusePluginsDir.entryInfoList(QDir::Dirs|QDir::NoDotAndDotDot)) { - QDir dusePluginSubDir(subdir.absoluteFilePath()); - foreach (const QString &fileName, dusePluginSubDir.entryList(QDir::Files)) { - QPluginLoader loader(dusePluginSubDir.absoluteFilePath(fileName)); - QObject *plugin = loader.instance(); - if (plugin && qobject_cast(plugin)) { - QJsonObject jsonObject = loader.metaData().value(QStringLiteral("MetaData")).toObject(); - QJsonArray dependencies = jsonObject.value(QStringLiteral("DependencyList")).toArray(); - plugin->setProperty("metadata", loader.metaData().value(QStringLiteral("MetaData")).toObject()); - plugin->setObjectName(plugin->metaObject()->className()); - int dependencyCount = dependencies.size(); - for (int i = 0; i < dependencyCount; ++i) - invertedDependency.insert(dependencies.at(i).toString(), plugin->objectName()); - pluginList << plugin; - } - else { - _errorStrings << "Error when loading plugin" << fileName << ":" << loader.errorString(); - } - } - } - - // Initialize DuSE-MT plugins - IPlugin *dusePlugin; - int previousPluginListSize = 0; - while (pluginList.size() != previousPluginListSize) { - previousPluginListSize = pluginList.size(); - foreach (QObject *plugin, pluginList) { - if (plugin && (dusePlugin = qobject_cast(plugin))) { - int dependencyCount = invertedDependency.values(dusePlugin->metaObject()->className()).count(); - int loadedDependencies = 0; - foreach (const QString &dependency, invertedDependency.values(dusePlugin->metaObject()->className())) { - foreach (DuSE::IPlugin *dusePlugin, _dusemtPlugins) { - if (dusePlugin->metaObject()->className() == dependency) { - ++loadedDependencies; - break; - } - } - } - if (loadedDependencies == dependencyCount) { - if (dusePlugin->initialize()) { - _dusemtPlugins << dusePlugin; - pluginList.removeAll(plugin); - } - } - } - } - } - if (!pluginList.isEmpty()) { - QString errorString = "The following plugins have not been initialized: "; - foreach (QObject *plugin, pluginList) - errorString += plugin->objectName() + ", "; - errorString.chop(2); - _errorStrings << errorString; - } - - return _errorStrings.isEmpty() ? true:false; -} - -const QHash &PluginController::metamodelPlugins() const -{ - return _metamodelPlugins; -} - -const QList &PluginController::dusemtPlugins() const -{ - return _dusemtPlugins; -} - -QStringList PluginController::errorStrings() const -{ - return _errorStrings; -} - -} diff --git a/examples/uml/duse-mt/src/app/shell/plugincontroller.h b/examples/uml/duse-mt/src/app/shell/plugincontroller.h deleted file mode 100644 index acaab850..00000000 --- a/examples/uml/duse-mt/src/app/shell/plugincontroller.h +++ /dev/null @@ -1,80 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -***************************************************************************/ -#ifndef PLUGINCONTROLLER_H -#define PLUGINCONTROLLER_H - -#include - -#include -#include - -QT_BEGIN_NAMESPACE -class QTreeWidgetItem; - -class QMetaModelPlugin; -QT_END_NAMESPACE - -namespace DuSE -{ - -class IPlugin; - -class PluginController : public IPluginController -{ -public: - PluginController(); - virtual ~PluginController(); - - virtual bool initialize(); - - virtual const QHash &metamodelPlugins() const; - virtual const QList &dusemtPlugins() const; - virtual QStringList errorStrings() const; - -private: - QHash _metamodelPlugins; - QList _dusemtPlugins; - QStringList _errorStrings; -}; - -} - -#endif // PLUGINCONTROLLER_H diff --git a/examples/uml/duse-mt/src/app/shell/projectcontroller.cpp b/examples/uml/duse-mt/src/app/shell/projectcontroller.cpp deleted file mode 100644 index 60328ec0..00000000 --- a/examples/uml/duse-mt/src/app/shell/projectcontroller.cpp +++ /dev/null @@ -1,172 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "projectcontroller.h" - -#include -#include - -#include -#include -#include -#include - -namespace DuSE -{ - -ProjectController::ProjectController() -{ -} - -ProjectController::~ProjectController() -{ - closeModel(); -} - -bool ProjectController::initialize() -{ - return true; -} - -QStringList ProjectController::errorStrings() const -{ - return _errorStrings; -} - -QString ProjectController::currentModelFileName() const -{ - return _currentModelFileName; -} - -QList ProjectController::currentModelObjects() const -{ - return _currentModelObjects; -} - -QList ProjectController::currentModelElements() const -{ - return _currentModelElements; -} - -bool ProjectController::openModel(const QString &fileName) -{ - closeModel(); - - QFile file(fileName); - if (!file.open(QFile::ReadOnly | QFile::Text)) { - _errorStrings << QObject::tr("Cannot read file %1").arg(fileName); - return false; - } - - _currentModelFileName = fileName; - - QXmiReader reader; - _currentModelElements = reader.readFile(&file); - _errorStrings << reader.errorStrings(); - - foreach (QModelingElement *element, _currentModelElements) - _currentModelObjects << element->asQModelingObject(); - - emit modelOpened(_currentModelObjects); - - return true; -} - -bool ProjectController::closeModel() -{ - if (_currentModelObjects.size() == 0) - return false; - - emit modelAboutToBeClosed(_currentModelObjects); - qDeleteAll(_currentModelElements); - _currentModelElements.clear(); - _currentModelObjects.clear(); - _errorStrings.clear(); - emit modelClosed(); - - return true; -} - -bool ProjectController::saveModel() -{ - Q_ASSERT(!_currentModelFileName.isEmpty()); - _errorStrings.clear(); - - QFile file(_currentModelFileName); - if (!file.open(QFile::WriteOnly | QFile::Text)) { - _errorStrings << QObject::tr("Cannot write file %1").arg(_currentModelFileName); - return false; - } - - QXmiWriter writer; - if (!writer.writeFile(_currentModelObjects, &file)) { - _errorStrings << QObject::tr("Error when writing XMI file %1").arg(_currentModelFileName); - return false; - } - return true; -} - -bool ProjectController::saveModelAs(const QString &fileName) -{ - _currentModelFileName = fileName; - return saveModel(); -} - -bool ProjectController::createModel(const QString &modelFileName, QMetaModelPlugin *metamodelPlugin, const QString &topLevelType) -{ - QModelingElement *topLevelElement = metamodelPlugin->createModelingElement(topLevelType); - if (topLevelElement) { - topLevelElement->asQModelingObject()->setObjectName(modelFileName); - qDeleteAll(_currentModelElements); - _currentModelElements.clear(); - _currentModelObjects.clear(); - - _currentModelElements << topLevelElement; - _currentModelObjects << topLevelElement->asQModelingObject(); - - emit modelOpened(_currentModelObjects); - - return saveModelAs(modelFileName); - } - else - return false; -} - -} diff --git a/examples/uml/duse-mt/src/app/shell/projectcontroller.h b/examples/uml/duse-mt/src/app/shell/projectcontroller.h deleted file mode 100644 index 12536525..00000000 --- a/examples/uml/duse-mt/src/app/shell/projectcontroller.h +++ /dev/null @@ -1,86 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef PROJECTCONTROLLER_H -#define PROJECTCONTROLLER_H - -#include - -#include "mainwindow.h" - -QT_BEGIN_NAMESPACE -class QModelingObject; -class QModelingElement; -class QMetaModelPlugin; -QT_END_NAMESPACE - -namespace DuSE -{ - -class ProjectController : public IProjectController -{ -public: - ProjectController(); - virtual ~ProjectController(); - - virtual bool initialize(); - - virtual QStringList errorStrings() const; - virtual QString currentModelFileName() const; - virtual QList currentModelObjects() const; - virtual QList currentModelElements() const; - -public Q_SLOTS: - virtual bool openModel(const QString &fileName); - virtual bool closeModel(); - virtual bool saveModel(); - virtual bool saveModelAs(const QString &fileName); - virtual bool createModel(const QString &modelFileName, QMetaModelPlugin *metamodelPlugin, const QString &topLevelType); - -private: - QString _currentModelFileName; - QList _currentModelElements; - QList _currentModelObjects; - QStringList _errorStrings; -}; - -} - -#endif // PROJECTCONTROLLER_H diff --git a/examples/uml/duse-mt/src/app/shell/uicontroller.cpp b/examples/uml/duse-mt/src/app/shell/uicontroller.cpp deleted file mode 100644 index ea488cd4..00000000 --- a/examples/uml/duse-mt/src/app/shell/uicontroller.cpp +++ /dev/null @@ -1,124 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "uicontroller.h" - -#include -#include -#include - -#include "ui_mainwindow.h" - -namespace DuSE -{ - -UiController::UiController() : - _lastBottomDockWidgetAdded(0) -{ -} - -UiController::~UiController() -{ -} - -bool UiController::initialize() -{ - _mainWindow.populatePluginDialog(); - _mainWindow.showMaximized(); - _mainWindow.readSettings(); - _mainWindow.ui->centralWidget->setCurrentIndex(0); - - return true; -} - -void UiController::addDockWidget(Qt::DockWidgetArea area, QString name, QWidget *widget) -{ - QDockWidget *dockWidget = new QDockWidget; - dockWidget->setWindowTitle(name); - dockWidget->setObjectName(name); - dockWidget->setWidget(widget); - widget->setParent(dockWidget); - - _mainWindow.addDockWidget(area, dockWidget); - if (area == Qt::BottomDockWidgetArea) { - if (_lastBottomDockWidgetAdded) - _mainWindow.tabifyDockWidget(_lastBottomDockWidgetAdded, dockWidget); - _lastBottomDockWidgetAdded = dockWidget; - } -} - -void UiController::removeDockWidget(const QString &name) -{ - foreach (QObject *child, _mainWindow.children()) - if (child->objectName() == name && qobject_cast(child) != 0) - delete child; -} - -void UiController::addCentralWidgetTab(QWidget *widget, const QString &label, int position, const QIcon &icon) -{ - if (position == -1) - _mainWindow.ui->centralWidget->addTab(widget, icon, label); - else - _mainWindow.ui->centralWidget->insertTab(position, widget, icon, label); - widget->setObjectName(label); -} - -void UiController::removeCentralWidgetTab(const QString &name) -{ - int tabCount = _mainWindow.ui->centralWidget->count(); - for (int i = 0; i < tabCount; ++i) - if (_mainWindow.ui->centralWidget->widget(i)->objectName() == name) { - _mainWindow.ui->centralWidget->removeTab(i); - break; - } -} - -void UiController::addAction(QAction *action, const QString &menuTitle, const QString &toolbarName) -{ - foreach (QMenu *menu, _mainWindow.ui->menuBar->findChildren()) - if (menu->objectName() == menuTitle) - menu->addAction(action); - foreach (QToolBar *toolbar, _mainWindow.findChildren()) - if (toolbar->objectName() == toolbarName) - toolbar->addAction(action); - action->setParent(&_mainWindow); -} - -} diff --git a/examples/uml/duse-mt/src/app/shell/uicontroller.h b/examples/uml/duse-mt/src/app/shell/uicontroller.h deleted file mode 100644 index c7511517..00000000 --- a/examples/uml/duse-mt/src/app/shell/uicontroller.h +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef UICONTROLLER_H -#define UICONTROLLER_H - -#include - -#include "mainwindow.h" - -namespace DuSE -{ - -class UiController : public IUiController -{ -public: - UiController(); - virtual ~UiController(); - - virtual bool initialize(); - - virtual void addDockWidget(Qt::DockWidgetArea area, QString name, QWidget *widget); - virtual void removeDockWidget(const QString &name); - - virtual void addCentralWidgetTab(QWidget *widget, const QString &label, int position = -1, const QIcon &icon = QIcon()); - virtual void removeCentralWidgetTab(const QString &name); - - virtual void addAction(QAction *action, const QString &menuTitle, const QString &toolbarName = QString()); - -protected: - MainWindow _mainWindow; - QDockWidget *_lastBottomDockWidgetAdded; -}; - -} - -#endif // UICONTROLLER_H diff --git a/examples/uml/duse-mt/src/duse-mt-library.pri b/examples/uml/duse-mt/src/duse-mt-library.pri deleted file mode 100644 index 5c5048e8..00000000 --- a/examples/uml/duse-mt/src/duse-mt-library.pri +++ /dev/null @@ -1,16 +0,0 @@ -include($$replace(_PRO_FILE_PWD_, ([^/]+$), \\1/\\1_dependencies.pri)) - -QT -= gui - -TARGET = $$DUSEMT_LIB_NAME - -include(../duse-mt.pri) - -TARGET = $$qtLibraryName($$TARGET) - -DESTDIR = $$DUSEMT_LIBRARY_PATH - -include(rpath.pri) - -TEMPLATE = lib -CONFIG += shared dll diff --git a/examples/uml/duse-mt/src/duse-mt-plugin.pri b/examples/uml/duse-mt/src/duse-mt-plugin.pri deleted file mode 100644 index adafd1e2..00000000 --- a/examples/uml/duse-mt/src/duse-mt-plugin.pri +++ /dev/null @@ -1,52 +0,0 @@ -depfile = $$replace(_PRO_FILE_PWD_, ([^/]+$), \\1/\\1_dependencies.pri) -exists($$depfile) { - include($$depfile) - isEmpty(DUSEMT_PLUGIN_NAME): \ - error("$$basename(depfile) does not define DUSEMT_PLUGIN_NAME.") -} else { - isEmpty(DUSEMT_PLUGIN_NAME): \ - error("DUSEMT_PLUGIN_NAME is empty. Maybe you meant to create $$basename(depfile)?") -} - -QT -= gui - -DUSEMT_LIB_DEPENDS += duseinterfaces - -TARGET = $$DUSEMT_PLUGIN_NAME - -include(../duse-mt.pri) - -LIBS += -L$$DUSEMT_LIBRARY_PATH - -isEmpty(PROVIDER) { - PROVIDER = QtProject -} else { - LIBS += -L$$DUSEMT_PLUGIN_PATH/QtProject -} - -DESTDIR = $$DUSEMT_PLUGIN_PATH/$$PROVIDER -LIBS += -L$$DESTDIR - -macx { - !isEmpty(TIGER_COMPAT_MODE) { - QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../PlugIns/ - } else { - QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/PlugIns/ - QMAKE_LFLAGS += -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../ - } -} else:linux-* { - #do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR - # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var - QMAKE_RPATHDIR += \$\$ORIGIN - QMAKE_RPATHDIR += \$\$ORIGIN/.. - QMAKE_RPATHDIR += \$\$ORIGIN/../.. - DUSEMT_PLUGIN_RPATH = $$join(QMAKE_RPATHDIR, ":") - - QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${DUSEMT_PLUGIN_RPATH}\' - QMAKE_RPATHDIR = -} - -TEMPLATE = lib -CONFIG += plugin plugin_with_soname - -TARGET = $$qtLibraryName($$TARGET) diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces.pro b/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces.pro deleted file mode 100644 index b1e06eb6..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces.pro +++ /dev/null @@ -1,18 +0,0 @@ -include(../../duse-mt-library.pri) - -HEADERS += \ - duseinterfaces_global.h \ - icore.h\ - iuicontroller.h \ - iprojectcontroller.h \ - iplugincontroller.h \ - iplugin.h - -SOURCES += \ - icore.cpp \ - iuicontroller.cpp \ - iprojectcontroller.cpp \ - iplugincontroller.cpp \ - iplugin.cpp - -DEFINES += DUSEINTERFACES_LIBRARY diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_dependencies.pri b/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_dependencies.pri deleted file mode 100644 index e56115da..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_LIB_NAME = DuseInterfaces diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_global.h b/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_global.h deleted file mode 100644 index df69b9ae..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/duseinterfaces_global.h +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef DUSEINTERFACES_GLOBAL_H -#define DUSEINTERFACES_GLOBAL_H - -#include - -#if defined(DUSEINTERFACES_LIBRARY) -# define DUSEINTERFACESSHARED_EXPORT Q_DECL_EXPORT -#else -# define DUSEINTERFACESSHARED_EXPORT Q_DECL_IMPORT -#endif - -#endif // DUSEINTERFACES_GLOBAL_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/icore.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/icore.cpp deleted file mode 100644 index 3d62fe47..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/icore.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "icore.h" - -namespace DuSE -{ - -ICore *ICore::_self = 0; - -ICore::~ICore() -{ - _self = 0; -} - -ICore *ICore::self() -{ - return _self; -} - -ICore::ICore() -{ - Q_ASSERT(_self == 0); - _self = this; -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/icore.h b/examples/uml/duse-mt/src/libs/duseinterfaces/icore.h deleted file mode 100644 index 704dd080..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/icore.h +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef ICORE_H -#define ICORE_H - -#include "duseinterfaces_global.h" - -namespace DuSE -{ - -class IPluginController; -class IProjectController; -class IUiController; - -class DUSEINTERFACESSHARED_EXPORT ICore -{ -public: - virtual ~ICore(); - static ICore *self(); - - virtual IPluginController *pluginController() = 0; - virtual IProjectController *projectController() = 0; - virtual IUiController *uiController() = 0; - -protected: - ICore(); - static ICore *_self; -}; - -} - -#endif // ICORE_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.cpp deleted file mode 100644 index c5514646..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "iplugin.h" - -namespace DuSE -{ - -IPlugin::IPlugin(QObject *parent) : - QObject(parent) -{ -} - -IPlugin::~IPlugin() -{ -} - -QString IPlugin::name() -{ - return _name; -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.h b/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.h deleted file mode 100644 index 07c13739..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugin.h +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IPLUGIN_H -#define IPLUGIN_H - -#include "duseinterfaces_global.h" - -#include "icore.h" - -#include -#include - -namespace DuSE -{ - -class DUSEINTERFACESSHARED_EXPORT IPlugin : public QObject -{ - Q_OBJECT - -public: - IPlugin(QObject *parent = 0); - virtual ~IPlugin(); - - virtual bool initialize() = 0; - - virtual QString name(); - -protected: - QString _name; -}; - -} - -#endif // IPLUGIN_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.cpp deleted file mode 100644 index cf886620..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "iplugincontroller.h" - -namespace DuSE -{ - -IPluginController::~IPluginController() -{ -} - -IPluginController::IPluginController() -{ -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.h b/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.h deleted file mode 100644 index b21e009c..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iplugincontroller.h +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IPLUGINCONTROLLER_H -#define IPLUGINCONTROLLER_H - -#include "duseinterfaces_global.h" - -#include - -#include -#include - -QT_BEGIN_NAMESPACE -class QMetaModelPlugin; -QT_END_NAMESPACE - -namespace DuSE -{ - -class IPlugin; - -class DUSEINTERFACESSHARED_EXPORT IPluginController : public QObject -{ - Q_OBJECT - -public: - virtual ~IPluginController(); - - virtual bool initialize() = 0; - - virtual const QHash &metamodelPlugins() const = 0; - virtual const QList &dusemtPlugins() const = 0; - - virtual QStringList errorStrings() const = 0; - - template - QList pluginsByType() const - { - QList foundPlugins; - T *tPlugin; - const QList &plugins = dusemtPlugins(); - foreach (IPlugin *dusePlugin, plugins) - if ((tPlugin = dynamic_cast(dusePlugin))) - foundPlugins << tPlugin; - return foundPlugins; - } - -protected: - IPluginController(); -}; - -} - -#endif // IPLUGINCONTROLLER_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.cpp deleted file mode 100644 index d63ec0ed..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "iprojectcontroller.h" - -namespace DuSE -{ - -IProjectController::~IProjectController() -{ -} - -IProjectController::IProjectController() -{ -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.h b/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.h deleted file mode 100644 index 5442cbca..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iprojectcontroller.h +++ /dev/null @@ -1,94 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IPROJECTCONTROLLER_H -#define IPROJECTCONTROLLER_H - -#include "duseinterfaces_global.h" - -#include - -#include - -QT_BEGIN_NAMESPACE -class QWidget; - -class QModelingObject; -class QModelingElement; -class QMetaModelPlugin; -QT_END_NAMESPACE - -namespace DuSE -{ - -class DUSEINTERFACESSHARED_EXPORT IProjectController : public QObject -{ - Q_OBJECT - -public: - virtual ~IProjectController(); - - virtual bool initialize() = 0; - - virtual QStringList errorStrings() const = 0; - virtual QString currentModelFileName() const = 0; - virtual QList currentModelObjects() const = 0; - virtual QList currentModelElements() const = 0; - -public Q_SLOTS: - virtual bool openModel(const QString &fileName) = 0; - virtual bool closeModel() = 0; - virtual bool saveModel() = 0; - virtual bool saveModelAs(const QString &fileName) = 0; - virtual bool createModel(const QString &modelFileName, QMetaModelPlugin *metamodelPlugin, const QString &topLevelType) = 0; - -Q_SIGNALS: - void modelOpened(QList model); - void modelAboutToBeClosed(QList model); - void modelClosed(); - -protected: - IProjectController(); -}; - -} - -#endif // IPROJECTCONTROLLER_H - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.cpp b/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.cpp deleted file mode 100644 index 4f1e075e..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "iuicontroller.h" - -namespace DuSE -{ - -IUiController::~IUiController() -{ -} - -IUiController::IUiController() -{ -} - -} - diff --git a/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.h b/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.h deleted file mode 100644 index e9916651..00000000 --- a/examples/uml/duse-mt/src/libs/duseinterfaces/iuicontroller.h +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IUICONTROLLER_H -#define IUICONTROLLER_H - -#include "duseinterfaces_global.h" - -#include - -#include - -#include - -QT_BEGIN_NAMESPACE -class QModelingObject; - -class QAction; -class QWidget; -class QQuickItem; -class QMainWindow; -QT_END_NAMESPACE - -namespace DuSE -{ - -class DUSEINTERFACESSHARED_EXPORT IUiController : public QObject -{ - Q_OBJECT - -public: - virtual ~IUiController(); - - virtual bool initialize() = 0; - - virtual void addDockWidget(Qt::DockWidgetArea area, QString name, QWidget *widget) = 0; - virtual void removeDockWidget(const QString &name) = 0; - - virtual void addCentralWidgetTab(QWidget *widget, const QString &label, int position = -1, const QIcon &icon = QIcon()) = 0; - virtual void removeCentralWidgetTab(const QString &name) = 0; - - virtual void addAction(QAction *action, const QString &menuTitle, const QString &toolbarName = QString()) = 0; - -Q_SIGNALS: - void currentModelingObjectChanged(QModelingObject *currentModelingObject); - void updateCurrentModelingObject(); - void addToView(QObject *selectedModelingObject, QQuickItem *parent = 0); - -protected: - IUiController(); -}; - -} - -#endif // IUICONTROLLER_H - diff --git a/examples/uml/duse-mt/src/libs/libs.pro b/examples/uml/duse-mt/src/libs/libs.pro deleted file mode 100644 index 5a90806c..00000000 --- a/examples/uml/duse-mt/src/libs/libs.pro +++ /dev/null @@ -1,4 +0,0 @@ -TEMPLATE = subdirs -CONFIG += ordered - -SUBDIRS = duseinterfaces diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm.json b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm.json deleted file mode 100644 index 1952997f..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Category": "Architecture Recovery", - "Vendor": "Qt Project", - "Version": "1.0", - "DependencyList": [ - "ArchitectureRecoveryCorePlugin" - ] -} diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm.pro b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm.pro deleted file mode 100644 index f1964825..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm.pro +++ /dev/null @@ -1,24 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2014-08-13T04:20:30 -# -#------------------------------------------------- - -include(../../duse-mt-plugin.pri) - -QT -= widgets gui - -DEFINES += ACDCARCHITECTURERECOVERYALGORITHM_LIBRARY - -HEADERS += \ - acdcarchitecturerecoveryalgorithm_export.h \ - acdcarchitecturerecoveryalgorithmplugin.h \ - dependencyrelationstreemanager.h \ - subgraphdominatorpattern.h - -SOURCES += \ - acdcarchitecturerecoveryalgorithmplugin.cpp \ - dependencyrelationstreemanager.cpp \ - subgraphdominatorpattern.cpp - -OTHER_FILES += acdcarchitecturerecoveryalgorithm.json diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm_dependencies.pri b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm_dependencies.pri deleted file mode 100644 index d7045bf4..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm_dependencies.pri +++ /dev/null @@ -1,4 +0,0 @@ -DUSEMT_PLUGIN_NAME = AcdcArchitectureRecoveryAlgorithm - -DUSEMT_PLUGIN_DEPENDS += \ - architecturerecoverycore diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm_export.h b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm_export.h deleted file mode 100644 index 87d44411..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithm_export.h +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef ACDCARCHITECTURERECOVERYALGORITHM_EXPORT_H -#define ACDCARCHITECTURERECOVERYALGORITHM_EXPORT_H - -#include - -#if defined(ACDCARCHITECTURERECOVERYALGORITHM_LIBRARY) -# define ACDCARCHITECTURERECOVERYALGORITHM_EXPORT Q_DECL_EXPORT -#else -# define ACDCARCHITECTURERECOVERYALGORITHM_EXPORT Q_DECL_IMPORT -#endif - -#endif // ACDCARCHITECTURERECOVERYALGORITHM_EXPORT_H diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.cpp b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.cpp deleted file mode 100644 index 8a370d68..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.cpp +++ /dev/null @@ -1,100 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "acdcarchitecturerecoveryalgorithmplugin.h" - -#include - -namespace DuSE -{ - -AcdcArchitectureRecoveryAlgorithmPlugin::AcdcArchitectureRecoveryAlgorithmPlugin(QObject *parent) - : IPlugin(parent), _dependencyRelationsTreeManager(new DependencyRelationsTreeManager), - _subgraphDominatorPattern(new SubgraphDominatorPattern) -{ - _name = "ACDC"; -} - -bool AcdcArchitectureRecoveryAlgorithmPlugin::initialize() -{ - return true; -} - -void AcdcArchitectureRecoveryAlgorithmPlugin::run() -{ - _dependencyRelationsTreeManager->fillNodesTable(_nodesTable, _dependencyRelations); - _dependencyRelationsTreeManager->orderNodes(_nodesTable, _orderedNodes); - _subgraphDominatorPattern->executePattern(_orderedNodes, _dependencyRelations); - _subgraphs = _subgraphDominatorPattern->subgraphs(); - _orphanNodes = _subgraphDominatorPattern->orphanNodes(_subgraphs, _dependencyRelations); - _subgraphs.append(_orphanNodes); -} - -void AcdcArchitectureRecoveryAlgorithmPlugin::setDependencyRelations(QMultiMap m_dependencyRelations) -{ - _dependencyRelations = m_dependencyRelations; -} - -QList AcdcArchitectureRecoveryAlgorithmPlugin::subgraphs() -{ - return _subgraphs; -} - -void AcdcArchitectureRecoveryAlgorithmPlugin::setDevelopmentPlatform(IDevelopmentPlatform *m_developmentPlatform) -{ - _developmentPlatform = m_developmentPlatform; -} - -void AcdcArchitectureRecoveryAlgorithmPlugin::setModelingNotation(IModelingNotation *m_modelingNotation) -{ - _modelingNotation = m_modelingNotation; -} - -IDevelopmentPlatform *AcdcArchitectureRecoveryAlgorithmPlugin::developmentPlatform() -{ - return _developmentPlatform; -} - -IModelingNotation *AcdcArchitectureRecoveryAlgorithmPlugin::modelingNotation() -{ - return _modelingNotation; -} - -} diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.h b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.h deleted file mode 100644 index 719485e7..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/acdcarchitecturerecoveryalgorithmplugin.h +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef ACDCARCHITECTURERECOVERYALGORITHMPLUGIN_H -#define ACDCARCHITECTURERECOVERYALGORITHMPLUGIN_H - -#include -#include - -#include -#include - -#include "dependencyrelationstreemanager.h" -#include "subgraphdominatorpattern.h" - -#include "acdcarchitecturerecoveryalgorithm_export.h" - -namespace DuSE -{ - -class ACDCARCHITECTURERECOVERYALGORITHM_EXPORT AcdcArchitectureRecoveryAlgorithmPlugin : public IPlugin, public IArchitectureRecoveryAlgorithm -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "acdcarchitecturerecoveryalgorithm.json") - -public: - AcdcArchitectureRecoveryAlgorithmPlugin(QObject *parent = 0); - - virtual bool initialize(); - - virtual void run(); - - void setDependencyRelations(QMultiMap m_dependencyRelations); - QList subgraphs(); - - virtual void setDevelopmentPlatform(IDevelopmentPlatform *m_developmentPlatform); - virtual void setModelingNotation(IModelingNotation *m_modelingNotation); - - virtual IDevelopmentPlatform* developmentPlatform(); - virtual IModelingNotation* modelingNotation(); - -private: - IDevelopmentPlatform *_developmentPlatform; - IModelingNotation *_modelingNotation; - QMultiMap _dependencyRelations; - DependencyRelationsTreeManager *_dependencyRelationsTreeManager; - QHash _nodesTable; - QStringList _orderedNodes; - SubgraphDominatorPattern *_subgraphDominatorPattern; - QList _subgraphs; - QStringList _orphanNodes; -}; - -} - -#endif // ACDCARCHITECTURERECOVERYALGORITHMPLUGIN_H diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/dependencyrelationstreemanager.cpp b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/dependencyrelationstreemanager.cpp deleted file mode 100644 index 237ed055..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/dependencyrelationstreemanager.cpp +++ /dev/null @@ -1,117 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "dependencyrelationstreemanager.h" - -namespace DuSE -{ - -DependencyRelationsTreeManager::DependencyRelationsTreeManager() -{ -} - -void DependencyRelationsTreeManager::fillNodesTable(QHash &nodesTable, const QMultiMap &dependencies) -{ - foreach (QString key, dependencies.uniqueKeys()) { - nodesTable.insert(key, dependencies.values(key).count()); - } - - foreach (QString value, dependencies.values()) { - if (!nodesTable.keys().contains(value)) { - nodesTable.insert(value, 0); - } - } -} - -void DependencyRelationsTreeManager::orderNodes(const QHash &nodesTable, QStringList &nodeList) -{ - int max = findMax(nodesTable); - - for (int i = 1; i <= max; ++i) { - foreach (QString node, nodesTable.keys()) { - int count = nodesTable.value(node); - - if (i == count) { - nodeList.append(node); - } - } - } -} - -int DependencyRelationsTreeManager::findMax(const QHash &nodesTable) -{ - int max = 0; - foreach (int count, nodesTable.values()) { - if (count > max) { - max = count; - } - } - - return max; -} - -QStringList DependencyRelationsTreeManager::targets(const QStringList &nodesList, const QMultiMap &dependencies) -{ - QStringList coveredNodes; - foreach (QString itemNode, nodesList) { - foreach (QString coveredNode, dependencies.values(itemNode)) { - if ((coveredNode != itemNode) && !coveredNodes.contains(coveredNode)) { - coveredNodes.append(coveredNode); - } - } - } - - return coveredNodes; -} - -QStringList DependencyRelationsTreeManager::sources(QString node, QMultiMap dependencies) -{ - QStringList sourceList; - - foreach (QString key, dependencies.keys()) { - if (dependencies.values(key).contains(node)) { - sourceList.append(key); - } - } - - return sourceList; -} - -} diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/dependencyrelationstreemanager.h b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/dependencyrelationstreemanager.h deleted file mode 100644 index c17faee6..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/dependencyrelationstreemanager.h +++ /dev/null @@ -1,65 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef DEPENDENCYRELATIONSTREEMANAGER_H -#define DEPENDENCYRELATIONSTREEMANAGER_H - -#include -#include -#include - -namespace DuSE -{ - -class DependencyRelationsTreeManager -{ -public: - DependencyRelationsTreeManager(); - - void fillNodesTable(QHash &nodesTable, const QMultiMap &dependencies); - void orderNodes(const QHash &nodesTable, QStringList &nodeList); - int findMax(const QHash &nodesTable); - QStringList targets(const QStringList &nodesList, const QMultiMap &dependencies); - QStringList sources(QString node, QMultiMap dependencies); -}; - -} - -#endif // DEPENDENCYRELATIONSTREEMANAGER_H diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/subgraphdominatorpattern.cpp b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/subgraphdominatorpattern.cpp deleted file mode 100644 index 17ebf6f9..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/subgraphdominatorpattern.cpp +++ /dev/null @@ -1,173 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "subgraphdominatorpattern.h" - -namespace DuSE -{ - -SubgraphDominatorPattern::SubgraphDominatorPattern() -{ -} - -void SubgraphDominatorPattern::executePattern(const QStringList &orderedNodes, QMultiMap dependencies) -{ - // Para cada nó da lista de nós ordenados - foreach (QString node, orderedNodes) { - - // Chamar coveredSet - QStringList coveredNodes = coveredSet(node, dependencies); - - if (coveredNodes.contains(node) && (coveredNodes.count() == 1)) { - } else { - // Um Subgraph Dominator foi descoberto. Ele será adicionado na lista e será removido do Hash de dependências. - _subgraphs.append(coveredNodes); - } - } -} - -QStringList SubgraphDominatorPattern::coveredSet(QString node, QMultiMap dependencies) -{ - QStringList list; - QStringList covered; - - // Criar uma lista e colocar o nó lá dentro - list.append(node); - int currentListSize = 0; - int originalListSize = 0; - - do { - originalListSize = list.count(); - - // Guardar em covered os nós para os quais todos os nós da lista apontam, - // exceto os próprios nós (ou seja, não considera loops) da lista. - covered = _treeManager.targets(list, dependencies); - - // Cria uma lista falseOnes - QStringList falseOnes; - int currentCoveredSize = 0; - int originalCoveredSize = 0; - do { - originalCoveredSize = covered.count(); - - // Tirar uma cópia de covered e guardar em both - QStringList both = covered; - - // Adicionar a lista em both - foreach (QString itemNode, list) { - if (!both.contains(itemNode)) { - both.append(list); - } - } - - foreach (QString coveredNode, covered) { - bool nodeIsFalseOne = false; - QStringList sourceList = _treeManager.sources(coveredNode, dependencies); - foreach (QString source, sourceList) { - if (!both.contains(source)) { - nodeIsFalseOne = true; - break; - } - } - - if (nodeIsFalseOne == true) { - falseOnes.append(coveredNode); - } - } - - foreach (QString falseOne, falseOnes) { - covered.removeOne(falseOne); - } - currentCoveredSize = covered.count(); - } while (originalCoveredSize != currentCoveredSize); - - foreach (QString coveredNode, covered) { - if (!list.contains(coveredNode)) { - list.append(coveredNode); - } - } - currentListSize = list.count(); - } while (originalListSize != currentListSize); - - return list; -} - -QStringList SubgraphDominatorPattern::orphanNodes(const QList &subgraphs, QMultiMap dependencies) -{ - QStringList orphanContainer; - QStringList allNodes; - - foreach (QString dependent, dependencies.uniqueKeys()) { - if (!allNodes.contains(dependent)) { - allNodes.append(dependent); - } - foreach (QString dependency, dependencies.values(dependent)) { - if (!allNodes.contains(dependency)) { - allNodes.append(dependency); - } - } - } - - foreach (QString node, allNodes) { - bool nodeIsOrphan = true; - - foreach (QStringList subgraph, subgraphs) { - if (subgraph.contains(node)) { - nodeIsOrphan = false; - break; - } - } - - if (nodeIsOrphan == true) { - if (!orphanContainer.contains(node)) { - orphanContainer.append(node); - } - } - } - - return orphanContainer; -} - -QList SubgraphDominatorPattern::subgraphs() -{ - return _subgraphs; -} - -} diff --git a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/subgraphdominatorpattern.h b/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/subgraphdominatorpattern.h deleted file mode 100644 index 3f4d3ba3..00000000 --- a/examples/uml/duse-mt/src/plugins/acdcarchitecturerecoveryalgorithm/subgraphdominatorpattern.h +++ /dev/null @@ -1,70 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef SUBGRAPHDOMINATORPATTERN_H -#define SUBGRAPHDOMINATORPATTERN_H - -#include -#include - -#include "dependencyrelationstreemanager.h" - -namespace DuSE -{ - -class SubgraphDominatorPattern -{ -public: - SubgraphDominatorPattern(); - - void executePattern(const QStringList &orderedNodes, QMultiMap dependencies); - QStringList coveredSet(QString node, QMultiMap dependencies); - QStringList orphanNodes(const QList &subgraphs, QMultiMap dependencies); - - QList subgraphs(); - -private: - QList _subgraphs; - DependencyRelationsTreeManager _treeManager; -}; - -} - -#endif // SUBGRAPHDOMINATORPATTERN_H diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore.json b/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore.json deleted file mode 100644 index 24b56a79..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Category": "Architecture Recovery", - "Vendor": "Qt Project", - "Version": "1.0" -} diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore.pro b/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore.pro deleted file mode 100644 index 3044c484..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore.pro +++ /dev/null @@ -1,20 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-11-03T17:38:51 -# -#------------------------------------------------- - -include(../../duse-mt-plugin.pri) - -QT += gui widgets - -HEADERS += architecturerecoverycoreplugin.h \ - iarchitecturerecoverybackend.h \ - imodelingnotation.h \ - iarchitecturerecoveryalgorithm.h - -SOURCES += architecturerecoverycoreplugin.cpp - -OTHER_FILES += architecturerecoverycore.json - -FORMS += diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore_dependencies.pri b/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore_dependencies.pri deleted file mode 100644 index 02a1c417..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycore_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_PLUGIN_NAME = ArchitectureRecoveryCore diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycoreplugin.cpp b/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycoreplugin.cpp deleted file mode 100644 index 3a2b420b..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycoreplugin.cpp +++ /dev/null @@ -1,94 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "architecturerecoverycoreplugin.h" - -#include - -#include -#include "iarchitecturerecoverybackend.h" - -namespace DuSE -{ - -ArchitectureRecoveryCorePlugin::ArchitectureRecoveryCorePlugin(QObject *parent) : - IPlugin(parent) -{ -} - -bool ArchitectureRecoveryCorePlugin::initialize() -{ - return true; -} - -void ArchitectureRecoveryCorePlugin::loadPluginsList() -{ -} - -void ArchitectureRecoveryCorePlugin::loadRecoveryBackends() -{ -} - -void ArchitectureRecoveryCorePlugin::loadRecoveryAlgorithms() -{ - -} - -void ArchitectureRecoveryCorePlugin::loadModelingNotations() -{ - -} - -QList ArchitectureRecoveryCorePlugin::recoveryBackends() -{ - return _recoveryBackends; -} - -QList ArchitectureRecoveryCorePlugin::recoveryAlgorithms() -{ - return _recoveryAlgorithms; -} - -QList ArchitectureRecoveryCorePlugin::modelingNotations() -{ - return _modelingNotations; -} - -} diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycoreplugin.h b/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycoreplugin.h deleted file mode 100644 index df439048..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/architecturerecoverycoreplugin.h +++ /dev/null @@ -1,80 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef ARCHITECTURERECOVERYCOREPLUGIN_H -#define ARCHITECTURERECOVERYCOREPLUGIN_H - -#include -#include -#include -#include - -namespace DuSE -{ - -class ArchitectureRecoveryCorePlugin : public IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "architecturerecoverycore.json") - -public: - ArchitectureRecoveryCorePlugin(QObject *parent = 0); - - virtual bool initialize(); - - void loadPluginsList(); - void loadRecoveryBackends(); - void loadRecoveryAlgorithms(); - void loadModelingNotations(); - QList recoveryBackends(); - QList recoveryAlgorithms(); - QList modelingNotations(); - -private: - QList _metaObjects; - QList _recoveryBackends; - QList _recoveryAlgorithms; - QList _modelingNotations; -}; - -} - -#endif // ARCHITECTURERECOVERYCOREPLUGIN - diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/iarchitecturerecoveryalgorithm.h b/examples/uml/duse-mt/src/plugins/architecturerecoverycore/iarchitecturerecoveryalgorithm.h deleted file mode 100644 index 71498f4a..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/iarchitecturerecoveryalgorithm.h +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtDuse module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IARCHITECTURERECOVERYALGORITHM_H -#define IARCHITECTURERECOVERYALGORITHM_H - -namespace DuSE -{ - -class IDevelopmentPlatform; -class IModelingNotation; - -class IArchitectureRecoveryAlgorithm -{ - -public: - virtual void run() = 0; - - virtual void setDevelopmentPlatform(IDevelopmentPlatform *m_developmentPlatform) = 0; - virtual void setModelingNotation(IModelingNotation *m_modelingNotation) = 0; - - virtual IDevelopmentPlatform* developmentPlatform() = 0; - virtual IModelingNotation* modelingNotation() = 0; -}; - -} - -#endif // IARCHITECTURERECOVERYALGORITHM_H - diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/iarchitecturerecoverybackend.h b/examples/uml/duse-mt/src/plugins/architecturerecoverycore/iarchitecturerecoverybackend.h deleted file mode 100644 index 964c4de5..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/iarchitecturerecoverybackend.h +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtDuse module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IARCHITECTURERECOVERYBACKEND_H -#define IARCHITECTURERECOVERYBACKEND_H - -#include -#include - -namespace DuSE -{ - -class IArchitectureRecoveryBackend -{ -public: - virtual QObjectList components() = 0; - virtual QObjectList connectors() = 0; -}; - -} - -#endif // IARCHITECTURERECOVERYBACKEND_H diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/imodelingnotation.h b/examples/uml/duse-mt/src/plugins/architecturerecoverycore/imodelingnotation.h deleted file mode 100644 index 504e1baa..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverycore/imodelingnotation.h +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtDuse module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef IMODELINGNOTATION_H -#define IMODELINGNOTATION_H - -QT_BEGIN_NAMESPACE -class QString; -QT_END_NAMESPACE - -namespace DuSE -{ - -class IModelingNotation -{ - -public: - virtual void generateDiagram(const QString &name) = 0; -}; - -} - -#endif // IMODELINGNOTATION_H - diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.cpp b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.cpp deleted file mode 100644 index 457e03dd..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.cpp +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "architecturerecoverypanel.h" -#include "ui_architecturerecoverypanel.h" - -#include - -#include - -namespace DuSE -{ - -ArchitectureRecoveryPanel::ArchitectureRecoveryPanel(QWidget *parent) : - QDialog(parent), - ui(new Ui::ArchitectureRecoveryPanel) -{ - ui->setupUi(this); - - connect(ui->startPushButton, SIGNAL(clicked()), this, SLOT(run())); -} - -ArchitectureRecoveryPanel::~ArchitectureRecoveryPanel() -{ - delete ui; -} - -void ArchitectureRecoveryPanel::loadPanel() -{ - loadBackendPlugins(); - loadAlgorithmPlugins(); - loadNotationPlugins(); - show(); -} - -void ArchitectureRecoveryPanel::run() -{ - GccXmlArchitectureRecoveryBackendPlugin *gccXmlBackend = new GccXmlArchitectureRecoveryBackendPlugin; - AcdcArchitectureRecoveryAlgorithmPlugin *acdcAlgorithm = new AcdcArchitectureRecoveryAlgorithmPlugin; - UmlModelingNotationPlugin *umlNotation = new UmlModelingNotationPlugin; - - gccXmlBackend->run(); - DependencyRelations dependencyRelations = gccXmlBackend->components().at(0)->property("components").value(); - QString systemDirectory = gccXmlBackend->components().at(0)->property("systemDirectory").toString(); - - acdcAlgorithm->setDependencyRelations(dependencyRelations); - acdcAlgorithm->run(); - QList subgraphs = acdcAlgorithm->subgraphs(); - - umlNotation->setClusterList(subgraphs); - umlNotation->loadSubsystems(); - umlNotation->generateDiagram(systemDirectory); -} - -void ArchitectureRecoveryPanel::loadBackendPlugins() -{ - ui->backendComboBox->addItem("GCC-XML"); -} - -void ArchitectureRecoveryPanel::loadAlgorithmPlugins() -{ - ui->algorithmComboBox->addItem("ACDC (Algorithm for Compreehension-Driven Clustering)"); -} - -void ArchitectureRecoveryPanel::loadNotationPlugins() -{ - ui->notationComboBox->addItem("UML (Unified Modeling Language)"); -} - -} diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.h b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.h deleted file mode 100644 index 4d59cca2..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.h +++ /dev/null @@ -1,90 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef ARCHITECTURERECOVERYPANEL_H -#define ARCHITECTURERECOVERYPANEL_H - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -namespace DuSE -{ - -namespace Ui { - class ArchitectureRecoveryPanel; -} - -class ArchitectureRecoveryPanel : public QDialog -{ - Q_OBJECT - -public: - explicit ArchitectureRecoveryPanel(QWidget *parent = 0); - ~ArchitectureRecoveryPanel(); - - void loadBackendPlugins(); - void loadAlgorithmPlugins(); - void loadNotationPlugins(); - -public Q_SLOTS: - void loadPanel(); - void run(); - -private: - Ui::ArchitectureRecoveryPanel *ui; - QMap backendPluginsMap; - QMap algorithmPluginsMap; - QMap notationPluginsMap; - ArchitectureRecoveryCorePlugin *architectureRecoveryCore; -}; - -#endif // ARCHITECTURERECOVERYPANEL_H - -} - - diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.json b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.json deleted file mode 100644 index 3b9d9911..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "Category": "Architecture Recovery", - "Vendor": "Qt Project", - "Version": "1.0", - "DependencyList": [ - "ArchitectureRecoveryCorePlugin", - "GccXmlArchitectureRecoveryBackendPlugin", - "AcdcArchitectureRecoveryAlgorithmPlugin", - "UmlModelingNotationPlugin" - ] - -} diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.pro b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.pro deleted file mode 100644 index f575d181..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.pro +++ /dev/null @@ -1,22 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-11-03T17:38:51 -# -#------------------------------------------------- - -include(../../duse-mt-plugin.pri) - -QT += gui widgets modeling - -HEADERS += \ - architecturerecoverypanel.h \ - architecturerecoverypanelplugin.h - -SOURCES += \ - architecturerecoverypanel.cpp \ - architecturerecoverypanelplugin.cpp - -OTHER_FILES += architecturerecoverypanel.json - -FORMS += \ - architecturerecoverypanel.ui diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.ui b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.ui deleted file mode 100644 index 627a06f2..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel.ui +++ /dev/null @@ -1,117 +0,0 @@ - - - DuSE::ArchitectureRecoveryPanel - - - - 0 - 0 - 393 - 265 - - - - Dialog - - - - - 10 - 110 - 71 - 16 - - - - Algoritmo: - - - - - - 90 - 170 - 291 - 23 - - - - - - - 10 - 170 - 71 - 16 - - - - Notação: - - - - - - 10 - 10 - 381 - 16 - - - - Defina as etapas do processo de recuperação arquitetural: - - - true - - - - - - 279 - 220 - 101 - 23 - - - - Iniciar - - - - - - 10 - 50 - 71 - 16 - - - - Backend: - - - - - - 90 - 50 - 291 - 23 - - - - - - - 90 - 110 - 291 - 23 - - - - - - - diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel_dependencies.pri b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel_dependencies.pri deleted file mode 100644 index 40d209d3..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanel_dependencies.pri +++ /dev/null @@ -1,7 +0,0 @@ -DUSEMT_PLUGIN_NAME = ArchitectureRecoveryPanel - -DUSEMT_PLUGIN_DEPENDS += \ - architecturerecoverycore \ - gccxmlarchitecturerecoverybackend \ - acdcarchitecturerecoveryalgorithm \ - umlmodelingnotation diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.cpp b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.cpp deleted file mode 100644 index 9a8ee974..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "architecturerecoverypanelplugin.h" - -#include -#include - -#include - -namespace DuSE -{ - -ArchitectureRecoveryPanelPlugin::ArchitectureRecoveryPanelPlugin(QObject *parent) - : IPlugin(parent), architectureRecoveryPanel(new ArchitectureRecoveryPanel) -{ -} - - -bool DuSE::ArchitectureRecoveryPanelPlugin::initialize() -{ - QAction *newArchitectureRecoveryProcessAction = new QAction(QIcon(), tr("New architecture recovery process"), this); - connect(newArchitectureRecoveryProcessAction, SIGNAL(triggered()), architectureRecoveryPanel, SLOT(loadPanel())); - ICore::self()->uiController()->addAction(newArchitectureRecoveryProcessAction, tr("menu_File")); - - return true; -} - -} diff --git a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.h b/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.h deleted file mode 100644 index a865f28b..00000000 --- a/examples/uml/duse-mt/src/plugins/architecturerecoverypanel/architecturerecoverypanelplugin.h +++ /dev/null @@ -1,69 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef ARCHITECTURERECOVERYPANELPLUGIN_H -#define ARCHITECTURERECOVERYPANELPLUGIN_H - -#include - -#include "architecturerecoverypanel.h" - -namespace DuSE -{ - -class ArchitectureRecoveryPanelPlugin : public IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "architecturerecoverypanel.json") - -public: - ArchitectureRecoveryPanelPlugin(QObject *parent = 0); - - virtual bool initialize(); - - void run(); - -private: - ArchitectureRecoveryPanel *architectureRecoveryPanel; -}; - -} - -#endif // ARCHITECTURERECOVERYPANELPLUGIN_H diff --git a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview.json b/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview.json deleted file mode 100644 index e845db64..00000000 --- a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Category": "Concrete Syntax", - "Vendor": "Qt Project", - "Version": "1.0" -} diff --git a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview.pro b/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview.pro deleted file mode 100644 index b6537f64..00000000 --- a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview.pro +++ /dev/null @@ -1,17 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-10-25T17:38:51 -# -#------------------------------------------------- - -QT += quick-private widgets - -include(../../duse-mt-plugin.pri) - -SOURCES += concretesyntaxviewplugin.cpp - -HEADERS += concretesyntaxviewplugin.h - -RESOURCES += qml/concretesyntaxview.qrc - -OTHER_FILES += concretesyntaxview.json diff --git a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview_dependencies.pri b/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview_dependencies.pri deleted file mode 100644 index 0acc930e..00000000 --- a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxview_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_PLUGIN_NAME = ConcreteSyntaxView diff --git a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxviewplugin.cpp b/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxviewplugin.cpp deleted file mode 100644 index 3e2dc1fb..00000000 --- a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxviewplugin.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "concretesyntaxviewplugin.h" - -#include -#include - -#include -#include - -#include "private/qquickflickable_p.h" - -#include -#include - -#include - -#include -#include - -namespace DuSE -{ - -ConcreteSyntaxViewPlugin::ConcreteSyntaxViewPlugin(QObject *parent) : - IPlugin(parent), - _concreteSyntaxQuickView(new QQuickView) -{ -} - -bool ConcreteSyntaxViewPlugin::initialize() -{ - _concreteSyntaxQuickView->setResizeMode(QQuickView::SizeRootObjectToView); - ICore::self()->uiController()->addCentralWidgetTab(QWidget::createWindowContainer(_concreteSyntaxQuickView), "Concrete Syntax"); - initializeQuickView(); - - connect(ICore::self()->uiController(), &IUiController::addToView, this, &ConcreteSyntaxViewPlugin::addToView); - connect(ICore::self()->projectController(), SIGNAL(modelAboutToBeClosed(QList)), this, SLOT(initializeQuickView())); - - return true; -} - -void ConcreteSyntaxViewPlugin::initializeQuickView() -{ - _concreteSyntaxQuickView->setSource(QUrl("qrc:/concretesyntaxview/concretesyntaxview.qml")); -} - -void ConcreteSyntaxViewPlugin::addToView(QObject *selectedModelingObject, QQuickItem *parent) -{ - QQmlContext *context = new QQmlContext(_concreteSyntaxQuickView->engine()->rootContext()); - context->setContextProperty("element", selectedModelingObject); - QQmlComponent *qmlComponent = new QQmlComponent(_concreteSyntaxQuickView->engine()); - int x = qrand() % 400; - int y = qrand() % 400; - qmlComponent->setData(QString("import QtQuick 2.0\nimport QtModeling.Uml 1.0\n\n%1 { x: %2; y: %3; objectName: \"%4\" }").arg(QString(selectedModelingObject->metaObject()->className()).remove(QRegularExpression("^Q")).remove(QRegularExpression("Object$"))).arg(x).arg(y).arg(selectedModelingObject->objectName()).toLatin1(), QUrl()); - - if (qmlComponent->isError()) { - qWarning() << qmlComponent->errors(); - } else { - QQuickItem *item = qobject_cast(qmlComponent->beginCreate(context)); - if (item) { - item->setParentItem(parent ? parent:(qobject_cast(_concreteSyntaxQuickView->rootObject()))->contentItem()); - qmlComponent->completeCreate(); - } - } - -// _concreteSyntaxQuickView->rootObject()->dumpObjectTree(); - qmlComponent->deleteLater(); -} - -} - diff --git a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxviewplugin.h b/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxviewplugin.h deleted file mode 100644 index df485f36..00000000 --- a/examples/uml/duse-mt/src/plugins/concretesyntaxview/concretesyntaxviewplugin.h +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef CONCRETESYNTAXVIEWPLUGIN_H -#define CONCRETESYNTAXVIEWPLUGIN_H - -#include - -QT_BEGIN_NAMESPACE -class QQuickView; -class QQuickItem; -QT_END_NAMESPACE - -namespace DuSE -{ - -class ConcreteSyntaxViewPlugin : public IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "concretesyntaxview.json") - -public: - ConcreteSyntaxViewPlugin(QObject *parent = 0); - - virtual bool initialize(); - -private Q_SLOTS: - void initializeQuickView(); - void addToView(QObject *selectedModelingObject, QQuickItem *parent = 0); - -private: - QQuickView *_concreteSyntaxQuickView; -}; - -} - -#endif // CONCRETESYNTAXVIEWPLUGIN_H - diff --git a/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/concretesyntaxview.qml b/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/concretesyntaxview.qml deleted file mode 100644 index c4f95246..00000000 --- a/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/concretesyntaxview.qml +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -Flickable { - id: flickable - width: 200; height: 200 - contentHeight: 2890 - contentWidth: 1540 - rightMargin: 0; leftMargin: 0; topMargin: 0; bottomMargin: 0 - MouseArea { - anchors.fill: parent - onPressed: parent.focus = true; - } - Image { - anchors.fill: parent - fillMode: Image.Tile - source: "grid.png" - } -} diff --git a/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/concretesyntaxview.qrc b/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/concretesyntaxview.qrc deleted file mode 100644 index dd25350d..00000000 --- a/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/concretesyntaxview.qrc +++ /dev/null @@ -1,6 +0,0 @@ - - - concretesyntaxview.qml - grid.png - - diff --git a/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/grid.png b/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/grid.png deleted file mode 100644 index 52162608..00000000 Binary files a/examples/uml/duse-mt/src/plugins/concretesyntaxview/qml/grid.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer.json b/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer.json deleted file mode 100644 index 901f0694..00000000 --- a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Category": "Automated Architecture Design", - "Vendor": "Qt Project", - "Version": "1.0" -} diff --git a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer.pro b/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer.pro deleted file mode 100644 index a234e8aa..00000000 --- a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer.pro +++ /dev/null @@ -1,17 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-10-25T17:38:51 -# -#------------------------------------------------- - -QT += quick widgets - -include(../../duse-mt-plugin.pri) - -SOURCES += designoptimizerplugin.cpp - -HEADERS += designoptimizerplugin.h - -RESOURCES += qml/designoptimizer.qrc - -OTHER_FILES += designoptimizer.json diff --git a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer_dependencies.pri b/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer_dependencies.pri deleted file mode 100644 index 31b2e66b..00000000 --- a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizer_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_PLUGIN_NAME = DesignOptimizer diff --git a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizerplugin.cpp b/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizerplugin.cpp deleted file mode 100644 index 43530a5f..00000000 --- a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizerplugin.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "designoptimizerplugin.h" - -#include - -#include - -#include - -namespace DuSE -{ - -DesignOptimizerPlugin::DesignOptimizerPlugin(QObject *parent) : - IPlugin(parent), - _paretoFrontQuickView(new QQuickView) -{ -} - -bool DesignOptimizerPlugin::initialize() -{ - _paretoFrontQuickView->setSource(QUrl("qrc:/designoptimizer/paretofront.qml")); - _paretoFrontQuickView->setResizeMode(QQuickView::SizeRootObjectToView); - - ICore::self()->uiController()->addCentralWidgetTab(QWidget::createWindowContainer(_paretoFrontQuickView), "Pareto Front"); - - return true; -} - -} - diff --git a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizerplugin.h b/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizerplugin.h deleted file mode 100644 index ab9d443f..00000000 --- a/examples/uml/duse-mt/src/plugins/designoptimizer/designoptimizerplugin.h +++ /dev/null @@ -1,70 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef DESIGNOPTIMIZERPLUGIN_H -#define DESIGNOPTIMIZERPLUGIN_H - -#include - -QT_BEGIN_NAMESPACE -class QQuickView; -QT_END_NAMESPACE - -namespace DuSE -{ - -class DesignOptimizerPlugin : public IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "designoptimizer.json") - -public: - DesignOptimizerPlugin(QObject *parent = 0); - - virtual bool initialize(); - -private: - QQuickView *_paretoFrontQuickView; -}; - -} - -#endif // DESIGNOPTIMIZERPLUGIN_H - diff --git a/examples/uml/duse-mt/src/plugins/designoptimizer/qml/designoptimizer.qrc b/examples/uml/duse-mt/src/plugins/designoptimizer/qml/designoptimizer.qrc deleted file mode 100644 index c9152415..00000000 --- a/examples/uml/duse-mt/src/plugins/designoptimizer/qml/designoptimizer.qrc +++ /dev/null @@ -1,5 +0,0 @@ - - - paretofront.qml - - diff --git a/examples/uml/duse-mt/src/plugins/designoptimizer/qml/paretofront.qml b/examples/uml/duse-mt/src/plugins/designoptimizer/qml/paretofront.qml deleted file mode 100644 index 69feb3dc..00000000 --- a/examples/uml/duse-mt/src/plugins/designoptimizer/qml/paretofront.qml +++ /dev/null @@ -1,103 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -Rectangle { - id: root - color: "lightgray" - width: 320 - height: 480 - property bool printDestruction: false - - VisualItemModel { - id: itemModel - - Rectangle { - width: view.width; height: view.height - color: "#FFFEF0" - } - Rectangle { - width: view.width; height: view.height - color: "#F0FFF7" - } - Rectangle { - width: view.width; height: view.height - color: "#F4F0FF" - } - } - - ListView { - id: view - anchors { fill: parent; bottomMargin: 30 } - model: itemModel - preferredHighlightBegin: 0; preferredHighlightEnd: 0 - highlightRangeMode: ListView.StrictlyEnforceRange - orientation: ListView.Horizontal - snapMode: ListView.SnapOneItem; flickDeceleration: 2000 - cacheBuffer: 200 - } - Rectangle { - width: root.width; height: 30 - anchors { top: view.bottom; bottom: parent.bottom } - color: "gray" - - Row { - anchors.centerIn: parent - spacing: 20 - - Repeater { - model: itemModel.count - - Rectangle { - width: 5; height: 5 - radius: 3 - color: view.currentIndex == index ? "blue" : "white" - - MouseArea { - width: 20; height: 20 - anchors.centerIn: parent - onClicked: view.currentIndex = index - } - } - } - } - } -} diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer.json b/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer.json deleted file mode 100644 index 901f0694..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Category": "Automated Architecture Design", - "Vendor": "Qt Project", - "Version": "1.0" -} diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer.pro b/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer.pro deleted file mode 100644 index 56f99df5..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer.pro +++ /dev/null @@ -1,21 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-10-25T17:38:51 -# -#------------------------------------------------- - -QT += widgets quick modeling modelingwidgets script uml duse - -include(../../duse-mt-plugin.pri) - -SOURCES += designspaceexplorerplugin.cpp \ - newdusedesigndialog.cpp - -HEADERS += designspaceexplorerplugin.h \ - newdusedesigndialog.h - -FORMS += newdusedesigndialog.ui - -RESOURCES += qml/designspaceexplorer.qrc - -OTHER_FILES += designspaceexplorer.json diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer_dependencies.pri b/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer_dependencies.pri deleted file mode 100644 index 02490f2a..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorer_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_PLUGIN_NAME = DesignSpaceExplorer diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorerplugin.cpp b/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorerplugin.cpp deleted file mode 100644 index 5c932725..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorerplugin.cpp +++ /dev/null @@ -1,404 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "designspaceexplorerplugin.h" - -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include - -#include - -#include - -#include -#include - -#include -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include "newdusedesigndialog.h" - -#include - -template -QScriptValue qSetToScriptValue(QScriptEngine *engine, const QSet &elements) -{ - QScriptValue array = engine->newArray(); - foreach (T *element, elements) - array.property(QString::fromLatin1("push")).call(array, QScriptValueList() << engine->newQObject(element)); - return array; -} - -template -void scriptValueToQSet(const QScriptValue &obj, QSet &elements) -{ - QScriptValueIterator it(obj); - while (it.hasNext()) { - it.next(); - elements.insert(qobject_cast(it.value().toQObject())); - } -} - -template -QScriptValue qListToScriptValue(QScriptEngine *engine, const QList &elements) -{ - QScriptValue array = engine->newArray(); - foreach (T *element, elements) - array.property(QString::fromLatin1("push")).call(array, QScriptValueList() << engine->newQObject(element)); - return array; -} - -template -void scriptValueToQList(const QScriptValue &obj, QList &elements) -{ - QScriptValueIterator it(obj); - while (it.hasNext()) { - it.next(); - elements.append(qobject_cast(it.value().toQObject())); - } -} - -namespace DuSE -{ - -DesignSpaceExplorerPlugin::DesignSpaceExplorerPlugin(QObject *parent) : - IPlugin(parent), - _currentDesignSpaceLocationQuickView(new QQuickView), - _metricsQuickView(new QQuickView), - _designSpaceExplorer(new QTableWidget), - _currentDesignSpaceLocationView(new QModelingObjectView), - _currentDesignSpaceLocationQtModel(new QModelingObjectModel), - _newDuseDesignDialog(new DuSE::NewDuseDesignDialog), - _engine(0) -{ - _currentDesignSpaceLocationView->setModel(_currentDesignSpaceLocationQtModel); -} - -DesignSpaceExplorerPlugin::~DesignSpaceExplorerPlugin() -{ - delete _newDuseDesignDialog; - delete _engine; -} - -bool DesignSpaceExplorerPlugin::initialize() -{ - _currentDesignSpaceLocationQuickView->setSource(QUrl("qrc:/designspaceexplorer/currentdesignspacelocation.qml")); - _currentDesignSpaceLocationQuickView->setResizeMode(QQuickView::SizeRootObjectToView); - - ICore::self()->uiController()->addCentralWidgetTab(QWidget::createWindowContainer(_currentDesignSpaceLocationQuickView), "Current Design Space Location"); - - _metricsQuickView->setSource(QUrl("qrc:/designspaceexplorer/qualitymetrics/qualitymetrics.qml")); - _metricsQuickView->setResizeMode(QQuickView::SizeRootObjectToView); - - ICore::self()->uiController()->addDockWidget(Qt::LeftDockWidgetArea, tr("Quality Metrics"), QWidget::createWindowContainer(_metricsQuickView)); - - ICore::self()->uiController()->addDockWidget(Qt::LeftDockWidgetArea, tr("Current Location Inspector"), _currentDesignSpaceLocationView); - - _designSpaceExplorer->setAlternatingRowColors(true); - _designSpaceExplorer->horizontalHeader()->setStretchLastSection(true); - _designSpaceExplorer->verticalHeader()->setVisible(false); - _designSpaceExplorer->setRowCount(0); - _designSpaceExplorer->setColumnCount(3); - _designSpaceExplorer->setHorizontalHeaderItem(0, new QTableWidgetItem(tr("Design Dimension"))); - _designSpaceExplorer->setHorizontalHeaderItem(1, new QTableWidgetItem(tr("Dimension Instance Target"))); - _designSpaceExplorer->setHorizontalHeaderItem(2, new QTableWidgetItem(tr("Variation Point"))); - _designSpaceExplorer->resizeColumnToContents(0); - _designSpaceExplorer->resizeColumnToContents(1); - _designSpaceExplorer->resizeColumnToContents(2); - - ICore::self()->uiController()->addDockWidget(Qt::RightDockWidgetArea, "Design Space Explorer", _designSpaceExplorer); - - QString iconThemeName; - - QAction *_actionFileNewDuseDesign = new QAction(0); - _actionFileNewDuseDesign->setText(QApplication::translate("MainWindow", "New &DuSE Design ...", 0)); - _actionFileNewDuseDesign->setShortcut(QApplication::translate("MainWindow", "Ctrl+D", 0)); - _actionFileNewDuseDesign->setObjectName(QStringLiteral("actionFileNewDuseDesign")); - QIcon icon8; - iconThemeName = QStringLiteral("document-new"); - if (QIcon::hasThemeIcon(iconThemeName)) { - icon8 = QIcon::fromTheme(iconThemeName); - } else { - icon8.addFile(QStringLiteral(""), QSize(), QIcon::Normal, QIcon::Off); - } - _actionFileNewDuseDesign->setIcon(icon8); - connect(_actionFileNewDuseDesign, &QAction::triggered, this, &DesignSpaceExplorerPlugin::newDuseDesign); - ICore::self()->uiController()->addAction(_actionFileNewDuseDesign, "menu_File"); - - QAction *_actionFileOpenDuseDesign = new QAction(0); - _actionFileOpenDuseDesign->setText(QApplication::translate("MainWindow", "Open DuSE Design ...", 0)); - _actionFileOpenDuseDesign->setShortcut(QApplication::translate("MainWindow", "Ctrl+U", 0)); - _actionFileOpenDuseDesign->setObjectName(QStringLiteral("actionFileOpenDuseDesign")); - QIcon icon9; - iconThemeName = QStringLiteral("document-open"); - if (QIcon::hasThemeIcon(iconThemeName)) { - icon9 = QIcon::fromTheme(iconThemeName); - } else { - icon9.addFile(QStringLiteral(""), QSize(), QIcon::Normal, QIcon::Off); - } - _actionFileOpenDuseDesign->setIcon(icon9); - connect(_actionFileOpenDuseDesign, &QAction::triggered, this, &DesignSpaceExplorerPlugin::openDuseDesign); - ICore::self()->uiController()->addAction(_actionFileOpenDuseDesign, "menu_File"); - - connect(ICore::self()->projectController(), SIGNAL(modelOpened(QList)), this, SLOT(initializeEngine(QList))); - connect(ICore::self()->projectController(), SIGNAL(modelAboutToBeClosed(QList)), this, SLOT(destroyEngine())); - connect(ICore::self()->projectController(), SIGNAL(modelClosed()), _currentDesignSpaceLocationQtModel, SLOT(clear())); - connect(ICore::self()->projectController(), SIGNAL(modelClosed()), this, SLOT(resetDesignSpaceExplorer())); - - return true; -} - -void DesignSpaceExplorerPlugin::initializeEngine(QList modelingObjects) -{ - Q_UNUSED(modelingObjects); - _engine = new QScriptEngine; - qScriptRegisterMetaType(_engine, qSetToScriptValue, scriptValueToQSet); - qScriptRegisterMetaType(_engine, qListToScriptValue, scriptValueToQList); - currentDesignSpaceLocationChanged(); -} - -void DesignSpaceExplorerPlugin::destroyEngine() -{ - delete _engine; - _engine = 0; -} - -void DesignSpaceExplorerPlugin::resetDesignSpaceExplorer() -{ - qDeleteAll(_duseInstance); - _duseInstance.clear(); - qDeleteAll(_currentDesignSpaceLocationMofModel); - _currentDesignSpaceLocationMofModel.clear(); - - _designSpaceExplorer->setRowCount(0); - _designSpaceExplorer->clearContents(); -} - -void DesignSpaceExplorerPlugin::newDuseDesign() -{ - ICore::self()->projectController()->closeModel(); - resetDesignSpaceExplorer(); - do { - if (_newDuseDesignDialog->exec() == QDialog::Accepted) { - if (_newDuseDesignDialog->_inputModelFileName.isEmpty() || _newDuseDesignDialog->_duseInstanceModelFileName.isEmpty()) { - QMessageBox::critical(0, tr("Create new DuSE design"), tr("You should select an input model and a DuSE instance model !")); - } - else { - QFile file(_newDuseDesignDialog->_duseInstanceModelFileName); - if (!file.open(QFile::ReadOnly | QFile::Text)) { - QMessageBox::critical(0, tr("Create new DuSE design"), tr("Cannot read DuSE instance file !")); - return; - } - QXmiReader reader; - _duseInstance = reader.readFile(&file); - if (QString::fromLatin1(_duseInstance.first()->asQModelingObject()->metaObject()->className()) != QStringLiteral("QDuseDesignSpaceObject")) { - QMessageBox::critical(0, tr("Create new DuSE design"), QStringLiteral("%1 is not a valid DuSE instance !").arg(QFileInfo(file).fileName())); - return; - } - if (!ICore::self()->projectController()->openModel(_newDuseDesignDialog->_inputModelFileName)) { - QMessageBox::critical(0, tr("Create new DuSE design"), QStringLiteral("Error loading input file %1 !").arg(_newDuseDesignDialog->_inputModelFileName)); - return; - } - - bool found = false; - QUmlModel *package = dynamic_cast(ICore::self()->projectController()->currentModelElements().first()); - QDuseDesignSpace *designSpace = dynamic_cast(_duseInstance.first()); - foreach (QUmlProfileApplication *profileApplication, package->profileApplications()) { - if (profileApplication->appliedProfile()->name() == designSpace->requiredProfile()) { - found = true; - break; - } - } - - if (!found) { - QMessageBox::critical(0, tr("Create new DuSE design"), QStringLiteral("Input model does not contain the required %1Profile profile application !").arg(_duseInstance.first()->asQModelingObject()->objectName())); - return; - } - - QScriptValue array = _engine->newArray(); - foreach (QObject *modelingObject, ICore::self()->projectController()->currentModelObjects()) - array.property(QString::fromLatin1("push")).call(array, QScriptValueList() << _engine->newQObject(modelingObject)); - _engine->globalObject().setProperty("input", array); - - foreach (QDuseDesignDimension *designDimension, designSpace->designDimensions()) { - foreach (const QString &body, designDimension->instanceSelectionRule()->bodies()) { - QScriptValue value = _engine->evaluate(body); - if (value.toVariant().canConvert(QMetaType::type("QVariantList"))) { - foreach (const QVariant &variant, value.toVariant().value()) { - if (variant.canConvert(QMetaType::type("QObject*"))) { - QDuseDesignDimensionInstance *designDimensionInstance = new QDuseDesignDimensionInstance; - designDimensionInstance->setTargetInstance(qmodelingelementproperty_cast(variant.value())); - designDimension->addDesignDimensionInstance(designDimensionInstance); - } - } - } - else if (value.toVariant().canConvert(QMetaType::type("QObject*"))) { - QDuseDesignDimensionInstance *designDimensionInstance = new QDuseDesignDimensionInstance; - designDimensionInstance->setTargetInstance(qmodelingelementproperty_cast(value.toVariant().value())); - designDimension->addDesignDimensionInstance(designDimensionInstance); - } - } - } - -// evaluateQualityMetrics(); - populateDesignSpaceExplorer(); - } - } - else - return; - } while (_newDuseDesignDialog->_inputModelFileName.isEmpty() || _newDuseDesignDialog->_duseInstanceModelFileName.isEmpty()); -} - -void DesignSpaceExplorerPlugin::populateDesignSpaceExplorer() -{ - QDuseDesignSpace *designSpace = dynamic_cast(_duseInstance.first()); - _designSpaceExplorer->setRowCount(0); - int row = 0; - foreach (QDuseDesignDimension *dimension, designSpace->designDimensions()) { - _designSpaceExplorer->setRowCount(_designSpaceExplorer->rowCount() + dimension->designDimensionInstances().count()); - foreach (QDuseDesignDimensionInstance *instance, dimension->designDimensionInstances()) { - _designSpaceExplorer->setItem(row, 0, new QTableWidgetItem(dimension->name())); - _designSpaceExplorer->setItem(row, 1, new QTableWidgetItem(instance->targetInstance()->asQModelingObject()->objectName())); - QComboBox *comboBox = new QComboBox; - foreach (QDuseVariationPoint *variationPoint, dimension->variationPoints()) { - comboBox->addItem(variationPoint->asQModelingObject()->objectName()); - } - _designSpaceExplorer->setCellWidget(row, 2, comboBox); - connect(comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(currentDesignSpaceLocationChanged())); - ++row; - } - } - _designSpaceExplorer->resizeRowsToContents(); - currentDesignSpaceLocationChanged(); -} - -void DesignSpaceExplorerPlugin::openDuseDesign() -{ -} - -void DesignSpaceExplorerPlugin::currentDesignSpaceLocationChanged() -{ - qDeleteAll(_currentDesignSpaceLocationMofModel); - _currentDesignSpaceLocationMofModel.clear(); - - _currentDesignSpaceLocation.clear(); - - if (_duseInstance.size() == 0) - return; - - QModelingObject *designSpaceObject = _duseInstance.first()->asQModelingObject(); - int rowCount = _designSpaceExplorer->rowCount(); - for (int i = 0; i < rowCount; ++i) - _currentDesignSpaceLocation[_designSpaceExplorer->item(i, 1)->text()][qmodelingelementproperty_cast(designSpaceObject->findChild(_designSpaceExplorer->item(i, 0)->text()))] = qmodelingelementproperty_cast(designSpaceObject->findChild((dynamic_cast(_designSpaceExplorer->cellWidget(i, 2)))->currentText())); - - foreach (QModelingElement *element, ICore::self()->projectController()->currentModelElements()) - _currentDesignSpaceLocationMofModel << element->clone(); - - QList currentModelObjects; - foreach (QModelingElement *element, _currentDesignSpaceLocationMofModel) - currentModelObjects << element->asQModelingObject(); - - QDuseDesignSpace *designSpace = dynamic_cast(_duseInstance.first()); - QUmlModel *topModel = dynamic_cast(_currentDesignSpaceLocationMofModel.first()); - foreach (QDuseDesignDimension *designDimension, designSpace->designDimensions()) { - foreach (QDuseDesignDimensionInstance *designDimensionInstance, designDimension->designDimensionInstances()) { - QDuseVariationPoint *variationPoint = _currentDesignSpaceLocation[designDimensionInstance->targetInstance()->asQModelingObject()->objectName()][designDimension]; - foreach (QModelingElement *addedElement, variationPoint->addedElements()) { - QObject *modelingObject = addedElement->asQModelingObject(); - QMetaModelPlugin *plugin = ICore::self()->pluginController()->metamodelPlugins()[modelingObject->property("namespaceUri").toString()]; - QModelingElement *newAddedElement = plugin->createModelingElement(modelingObject->property("factoryType").toString()); - newAddedElement->asQModelingObject()->setObjectName(QStringLiteral("%1-%2").arg(designDimensionInstance->targetInstance()->asQModelingObject()->objectName()).arg(modelingObject->property("factoryType").toString())); - topModel->addPackagedElement(dynamic_cast(newAddedElement)); - } - } - } - - foreach (QDuseDesignDimension *designDimension, designSpace->designDimensions()) { - foreach (QDuseDesignDimensionInstance *designDimensionInstance, designDimension->designDimensionInstances()) { - QDuseVariationPoint *variationPoint = _currentDesignSpaceLocation[designDimensionInstance->targetInstance()->asQModelingObject()->objectName()][designDimension]; - foreach (QDuseModelChange *modelChange, variationPoint->modelChanges()) { - QScriptValue target = _engine->evaluate(modelChange->targetSelectionRule()->bodies().first()); - if (target.toVariant().canConvert(QMetaType::type("QObject*"))) { - QObject *targetObject = target.toVariant().value(); - QString propertyName = modelChange->targetProperty()->name(); - QScriptValue value = _engine->evaluate(modelChange->valueSelectionRule()->bodies().first()); - QMetaProperty metaProperty = targetObject->metaObject()->property(targetObject->metaObject()->indexOfProperty(propertyName.toLatin1())); - QString typeName = QString::fromLatin1(metaProperty.typeName()); - if (metaProperty.type() == QVariant::String) { - targetObject->setProperty(propertyName.toLatin1(), value.toVariant().toString()); - } - else if (metaProperty.type() == QVariant::Int || metaProperty.isEnumType()) { - targetObject->setProperty(propertyName.toLatin1(), value.toVariant().toInt()); - } - else if (typeName.endsWith('*')) { - targetObject->setProperty(propertyName.toLatin1(), QVariant::fromValue(qmodelingelementproperty_cast(value.toVariant().value()))); - } - } - } - } - } - - _currentDesignSpaceLocationQtModel->setModelingObjects(currentModelObjects); -} - -} - diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorerplugin.h b/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorerplugin.h deleted file mode 100644 index 66dfdd42..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/designspaceexplorerplugin.h +++ /dev/null @@ -1,106 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef DESIGNSPACEEXPLORERPLUGIN_H -#define DESIGNSPACEEXPLORERPLUGIN_H - -#include - -#include - -QT_BEGIN_NAMESPACE -class QQuickView; -class QTableWidget; - -class QModelingObject; -class QModelingElement; - -class QModelingObjectModel; -class QModelingObjectView; - -class QDuseDesignDimension; -class QDuseVariationPoint; -QT_END_NAMESPACE - -namespace DuSE { - -class ICore; -class NewDuseDesignDialog; - -class DesignSpaceExplorerPlugin : public IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "designspaceexplorer.json") - -public: - DesignSpaceExplorerPlugin(QObject *parent = 0); - virtual ~DesignSpaceExplorerPlugin(); - - virtual bool initialize(); - -private Q_SLOTS: - void initializeEngine(QList modelingObjects); - void destroyEngine(); - void resetDesignSpaceExplorer(); - void newDuseDesign(); - void openDuseDesign(); - void currentDesignSpaceLocationChanged(); - -private: - QQuickView *_currentDesignSpaceLocationQuickView; - QQuickView *_metricsQuickView; - QTableWidget *_designSpaceExplorer; - QModelingObjectView *_currentDesignSpaceLocationView; - QModelingObjectModel *_currentDesignSpaceLocationQtModel; - - DuSE::NewDuseDesignDialog *_newDuseDesignDialog; - QList _duseInstance; - QList _currentDesignSpaceLocationMofModel; - QHash > _currentDesignSpaceLocation; - - QScriptEngine *_engine; - - void populateDesignSpaceExplorer(); -}; - -} - -#endif // DESIGNSPACEEXPLORERPLUGIN_H - diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.cpp b/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.cpp deleted file mode 100644 index a0166669..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "newdusedesigndialog.h" -#include "ui_newdusedesigndialog.h" - -#include - -namespace DuSE -{ - -NewDuseDesignDialog::NewDuseDesignDialog(QWidget *parent) : - QDialog(parent), - ui(new Ui::NewDuseDesignDialog) -{ - ui->setupUi(this); -} - -NewDuseDesignDialog::~NewDuseDesignDialog() -{ - delete ui; -} - -void NewDuseDesignDialog::on_tbtInputModel_clicked() -{ - _inputModelFileName = QFileDialog::getOpenFileName(this, tr("Open input model"), QDir::currentPath(), "XMI files (*.xmi)"); - ui->lneInputModel->setText(_inputModelFileName); -} - -void NewDuseDesignDialog::on_tbtDuseInstanceModel_clicked() -{ - _duseInstanceModelFileName = QFileDialog::getOpenFileName(this, tr("Open DuSE instance model"), QDir::currentPath(), "XMI files (*.xmi)"); - ui->lneDuseInstanceModel->setText(_duseInstanceModelFileName); -} - -} - diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.h b/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.h deleted file mode 100644 index 6bbddb94..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.h +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef NEWDUSEDESIGNDIALOG_H -#define NEWDUSEDESIGNDIALOG_H - -#include - -namespace DuSE -{ - -namespace Ui { - class NewDuseDesignDialog; -} - -class NewDuseDesignDialog : public QDialog -{ - Q_OBJECT - -public: - explicit NewDuseDesignDialog(QWidget *parent = 0); - ~NewDuseDesignDialog(); - - QString _inputModelFileName; - QString _duseInstanceModelFileName; -private Q_SLOTS: - void on_tbtInputModel_clicked(); - void on_tbtDuseInstanceModel_clicked(); - -private: - Ui::NewDuseDesignDialog *ui; -}; - -} - -#endif // NEWDUSEDESIGNDIALOG_H - diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.ui b/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.ui deleted file mode 100644 index e802b0f4..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/newdusedesigndialog.ui +++ /dev/null @@ -1,102 +0,0 @@ - - - DuSE::NewDuseDesignDialog - - - - 0 - 0 - 453 - 127 - - - - Create new DuSE design - - - - - - - - Input model: - - - - - - - - - - ... - - - - - - - DuSE instance model: - - - - - - - - - - ... - - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - DuSE::NewDuseDesignDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - DuSE::NewDuseDesignDialog - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/currentdesignspacelocation.qml b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/currentdesignspacelocation.qml deleted file mode 100644 index c4f95246..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/currentdesignspacelocation.qml +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -Flickable { - id: flickable - width: 200; height: 200 - contentHeight: 2890 - contentWidth: 1540 - rightMargin: 0; leftMargin: 0; topMargin: 0; bottomMargin: 0 - MouseArea { - anchors.fill: parent - onPressed: parent.focus = true; - } - Image { - anchors.fill: parent - fillMode: Image.Tile - source: "grid.png" - } -} diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/designspaceexplorer.qrc b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/designspaceexplorer.qrc deleted file mode 100644 index 5709d182..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/designspaceexplorer.qrc +++ /dev/null @@ -1,12 +0,0 @@ - - - qualitymetrics/qualitymetrics.qml - qualitymetrics/content/background.png - qualitymetrics/content/Dial.qml - qualitymetrics/content/needle_shadow.png - qualitymetrics/content/needle.png - qualitymetrics/content/overlay.png - currentdesignspacelocation.qml - grid.png - - diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/grid.png b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/grid.png deleted file mode 100644 index 52162608..00000000 Binary files a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/grid.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/Dial.qml b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/Dial.qml deleted file mode 100644 index 12a24f1d..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/Dial.qml +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/legal -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names -** of its contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - width: view.width; height: 188 - property alias label: label.text - property alias value: root.value - Item { - id: root - property real value : 0 - - width: 210; height: 210 - anchors.centerIn: parent - scale: 0.75 - - Image { source: "background.png" } - - Image { - x: 96 - y: 35 - source: "needle_shadow.png" - transform: Rotation { - origin.x: 9; origin.y: 67 - angle: needleRotation.angle - } - } - Image { - id: needle - x: 98; y: 33 - antialiasing: true - source: "needle.png" - transform: Rotation { - id: needleRotation - origin.x: 5; origin.y: 65 - angle: Math.min(Math.max(-130, root.value*2.6 - 130), 133) - Behavior on angle { - SpringAnimation { - spring: 1.4 - damping: .15 - } - } - } - } - Image { x: 21; y: 18; source: "overlay.png" } - } - Text { - anchors.top: root.bottom - anchors.topMargin: -30 - anchors.horizontalCenter: parent.horizontalCenter - id: label - color: "white" - font { family: "Korolev" } - } -} diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/background.png b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/background.png deleted file mode 100644 index 75d555d7..00000000 Binary files a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/background.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/needle.png b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/needle.png deleted file mode 100644 index 2d19f750..00000000 Binary files a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/needle.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/needle_shadow.png b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/needle_shadow.png deleted file mode 100644 index 8d8a928c..00000000 Binary files a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/needle_shadow.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/overlay.png b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/overlay.png deleted file mode 100644 index 3860a7b5..00000000 Binary files a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/content/overlay.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/qualitymetrics.qml b/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/qualitymetrics.qml deleted file mode 100644 index ff13b340..00000000 --- a/examples/uml/duse-mt/src/plugins/designspaceexplorer/qml/qualitymetrics/qualitymetrics.qml +++ /dev/null @@ -1,87 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 -import "content" - -Rectangle { - id: root - color: "#545454" - - ListView { - id: view - anchors { fill: parent; bottomMargin: 30 } - model: metrics - preferredHighlightBegin: 0; preferredHighlightEnd: 0 - highlightRangeMode: ListView.StrictlyEnforceRange - orientation: ListView.Vertical - snapMode: ListView.SnapOneItem; - delegate: Dial { - label: modelData.name; - value: modelData.value; - } - } - Rectangle { - width: root.width; height: 30 - anchors { top: view.bottom; bottom: parent.bottom } - color: "gray" - - Row { - anchors.centerIn: parent - spacing: 20 - - Repeater { - model: metrics ? metrics.length:0 - - Rectangle { - width: 5; height: 5 - radius: 3 - color: view.currentIndex == index ? "blue" : "white" - - MouseArea { - width: 20; height: 20 - anchors.centerIn: parent - onClicked: view.currentIndex = index - } - } - } - } - } -} diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend.json b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend.json deleted file mode 100644 index 1952997f..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Category": "Architecture Recovery", - "Vendor": "Qt Project", - "Version": "1.0", - "DependencyList": [ - "ArchitectureRecoveryCorePlugin" - ] -} diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend.pro b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend.pro deleted file mode 100644 index 9c4cf0ab..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend.pro +++ /dev/null @@ -1,22 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-11-03T17:38:51 -# -#------------------------------------------------- - -include(../../duse-mt-plugin.pri) - -QT += widgets gui - -DEFINES += GCCXMLARCHITECTURERECOVERYBACKEND_LIBRARY - -HEADERS += gccxmlarchitecturerecoverybackend_export.h \ - gccxmlarchitecturerecoverybackendplugin.h \ - xmlfilemanager.h \ - xmlfilereader.h - -SOURCES += gccxmlarchitecturerecoverybackendplugin.cpp \ - xmlfilemanager.cpp \ - xmlfilereader.cpp - -OTHER_FILES += gccxmlarchitecturerecoverybackend.json diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend_dependencies.pri b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend_dependencies.pri deleted file mode 100644 index 2762fc82..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend_dependencies.pri +++ /dev/null @@ -1,4 +0,0 @@ -DUSEMT_PLUGIN_NAME = GccXmlArchitectureRecoveryBackend - -DUSEMT_PLUGIN_DEPENDS += \ - architecturerecoverycore diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend_export.h b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend_export.h deleted file mode 100644 index e96b5845..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackend_export.h +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef GCCXMLARCHITECTURERECOVERYBACKEND_EXPORT_H -#define GCCXMLARCHITECTURERECOVERYBACKEND_EXPORT_H - -#include - -#if defined(GCCXMLARCHITECTURERECOVERYBACKEND_LIBRARY) -# define GCCXMLARCHITECTURERECOVERYBACKEND_EXPORT Q_DECL_EXPORT -#else -# define GCCXMLARCHITECTURERECOVERYBACKEND_EXPORT Q_DECL_IMPORT -#endif - -#endif // GCCXMLARCHITECTURERECOVERYBACKEND_EXPORT_H diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.cpp b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.cpp deleted file mode 100644 index 220bf417..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.cpp +++ /dev/null @@ -1,302 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "gccxmlarchitecturerecoverybackendplugin.h" - -#include -#include -#include - -#include -#include -#include - -#include - -namespace DuSE -{ - -GccXmlArchitectureRecoveryBackendPlugin::GccXmlArchitectureRecoveryBackendPlugin(QObject *parent) : - IPlugin(parent) -{ - _name = "C++ (GCC-XML)"; - qRegisterMetaType("DependencyRelations"); -} - -bool GccXmlArchitectureRecoveryBackendPlugin::initialize() -{ - return true; -} - - -QObjectList GccXmlArchitectureRecoveryBackendPlugin::components() -{ - QObjectList components; - - QObject *componentsDependencyRelations = new QObject; - componentsDependencyRelations->setProperty("components", QVariant::fromValue(_dependencyRelations)); - componentsDependencyRelations->setProperty("systemDirectory", QVariant::fromValue(_rootProjectDirectoryString)); - components.append(componentsDependencyRelations); - - return components; -} - -QObjectList GccXmlArchitectureRecoveryBackendPlugin::connectors() -{ - QObjectList connectors; - - return connectors; -} - -void GccXmlArchitectureRecoveryBackendPlugin::run() -{ - runGccXml(); - recoverDependencyRelations(); -} - -void GccXmlArchitectureRecoveryBackendPlugin::runGccXml() -{ - _rootProjectDirectoryString = QFileDialog::getExistingDirectory(0, "Escolha o diretório raíz do projeto", QDir::currentPath()); - - if (_rootProjectDirectoryString.isEmpty()) { - QMessageBox errorMessage; - errorMessage.setInformativeText("Diretório inválido."); - errorMessage.show(); - } else { - _rootProjectDirectory = QDir(_rootProjectDirectoryString); - _xmlFilesList = _xmlFileManager->generateXmlFiles(_rootProjectDirectory); - _xmlCount = _xmlFilesList.count(); - } -} - -void GccXmlArchitectureRecoveryBackendPlugin::recoverDependencyRelations() -{ - QString fileName; - - for (int i = 0; i < _xmlCount; ++i) { - fileName = _xmlFilesList.at(i).toLocal8Bit().constData(); - - _reader = new XmlFileReader(_rootProjectDirectory.absolutePath(), fileName); - - _reader->fillTagContainers(); - - _fileClasses.insert(fileName, _reader->fileClasses()); - _fileFields.insert(fileName, _reader->fileFields()); - _filePointers.insert(fileName, _reader->filePointers()); - _fileBases.insert(fileName, _reader->fileBases()); - _fileArguments.insert(fileName, _reader->fileArguments()); - - fieldAdjacencies(); - baseAdjacencies(); - argumentsAdjacencies(); - - qDebug() << "Tamanho de dependencyRelations: " << _dependencyRelations.count(); - } -} - -void GccXmlArchitectureRecoveryBackendPlugin::fieldAdjacencies() -{ - QString fileName; - - for (int i = 0; i < _xmlCount; ++i) { - - fileName = _xmlFilesList.at(i).toLocal8Bit().constData(); - - QMap classes = _fileClasses.value(fileName); - QList > fields = _fileFields.value(fileName); - QMap pointers = _filePointers.value(fileName); - - QString dependent; - QString dependency; - - QStringList classIds = classes.keys(); - foreach (QString classId, classIds) { - dependent = classes.value(classId); - for (int i = 0; i < fields.size(); ++i) { - QPair field = fields.at(i); - if (classId == field.first) { - if (classes.value(field.second).isEmpty()) { - QStringList pointersId = pointers.keys(); - foreach (QString pointerId, pointersId) { - if (field.second == pointerId) { - if (!classes.value(pointers.value(pointerId)).isEmpty()) { - dependency = classes.value(pointers.value(pointerId)); - } - } - } - } else { - dependency = classes.value(field.second); - } - } - - if (!_dependencyRelations.keys().contains(dependent)) { - if (!dependent.isEmpty() && !dependency.isEmpty()) { - _dependencyRelations.insert(dependent, dependency); - } - } else { - bool isNewDependencie = false; - QStringList dependencies = _dependencyRelations.values(dependent); - foreach (QString d, dependencies) { - if (dependency == d) { - isNewDependencie = true; - } - } - if (isNewDependencie == false) { - if (!dependent.isEmpty() && !dependency.isEmpty()) { - _dependencyRelations.insert(dependent, dependency); - } - } - } - - dependency = ""; - } - } - } -} - -void GccXmlArchitectureRecoveryBackendPlugin::baseAdjacencies() -{ - QString fileName; - - for (int i = 0; i < _xmlCount; ++i) { - - fileName = _xmlFilesList.at(i).toLocal8Bit().constData(); - - QMap classes = _fileClasses.value(fileName); - QList > bases = _fileBases.value(fileName); - - QString dependent; - QString dependency; - - QStringList classIds = classes.keys(); - foreach (QString classId, classIds) { - dependent = classes.value(classId); - for (int i = 0; i < bases.size(); ++i) { - QPair base = bases.at(i); - if (classId == base.first) { - dependency = classes.value(base.second); - } - } - - if (!_dependencyRelations.keys().contains(dependent)) { - if (!dependent.isEmpty() && !dependency.isEmpty()) { - _dependencyRelations.insert(dependent, dependency); - } - } else { - bool isNewDependencie = false; - QStringList dependencies = _dependencyRelations.values(dependent); - foreach (QString d, dependencies) { - if (dependency == d) { - isNewDependencie = true; - } - } - if (isNewDependencie == false) { - if (!dependent.isEmpty() && !dependency.isEmpty()) { - _dependencyRelations.insert(dependent, dependency); - } - } - } - - dependency = ""; - } - } -} - -void GccXmlArchitectureRecoveryBackendPlugin::argumentsAdjacencies() -{ - QString fileName; - - for (int i = 0; i < _xmlCount; ++i) { - - fileName = _xmlFilesList.at(i).toLocal8Bit().constData(); - - QMap classes = _fileClasses.value(fileName); - QList > arguments = _fileArguments.value(fileName); - QMap pointers = _filePointers.value(fileName); - - QString dependent; - QString dependency; - - QStringList classIds = classes.keys(); - foreach (QString classId, classIds) { - dependent = classes.value(classId); - for (int i = 0; i < arguments.size(); ++i) { - QPair argument = arguments.at(i); - if (classId == argument.first) { - if (classes.value(argument.second).isEmpty()) { - QStringList pointersId = pointers.keys(); - foreach (QString pointerId, pointersId) { - if (argument.second == pointerId) { - if (!classes.value(pointers.value(pointerId)).isEmpty()) { - dependency = classes.value(pointers.value(pointerId)); - } - } - } - } else { - dependency = classes.value(argument.second); - } - } - } - - if (!_dependencyRelations.keys().contains(dependent)) { - if (!dependent.isEmpty() && !dependency.isEmpty()) { - _dependencyRelations.insert(dependent, dependency); - } - } else { - bool isNewDependencie = false; - QStringList dependencies = _dependencyRelations.values(dependent); - foreach (QString d, dependencies) { - if (dependency == d) { - isNewDependencie = true; - } - } - if (isNewDependencie == false) { - if (!dependent.isEmpty() && !dependency.isEmpty()) { - _dependencyRelations.insert(dependent, dependency); - } - } - } - - dependency = ""; - } - } -} - -} diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.h b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.h deleted file mode 100644 index e83efce8..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/gccxmlarchitecturerecoverybackendplugin.h +++ /dev/null @@ -1,109 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef GCCXMLARCHITECTURERECOVERYBACKENDPLUGIN_H -#define GCCXMLARCHITECTURERECOVERYBACKENDPLUGIN_H - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -#include "xmlfilemanager.h" -#include "xmlfilereader.h" - -#include "gccxmlarchitecturerecoverybackend_export.h" - -QT_BEGIN_NAMESPACE -class QXmlStreamReader; -QT_END_NAMESPACE - -namespace DuSE -{ - -class GCCXMLARCHITECTURERECOVERYBACKEND_EXPORT GccXmlArchitectureRecoveryBackendPlugin : public IPlugin, public IArchitectureRecoveryBackend -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "gccxmlarchitecturerecoverybackend.json") - -public: - GccXmlArchitectureRecoveryBackendPlugin(QObject *parent = 0); - - virtual bool initialize(); - - virtual QObjectList components(); - virtual QObjectList connectors(); - void run(); - void runGccXml(); - void recoverDependencyRelations(); - void fieldAdjacencies(); - void baseAdjacencies(); - void argumentsAdjacencies(); - -private Q_SLOTS: - -private: - int _xmlCount; - QDir _rootProjectDirectory; - QString _rootProjectDirectoryString; - QStringList _xmlFilesList; - XmlFileManager *_xmlFileManager; - XmlFileReader *_reader; - QMap > _fileClasses; - QMap > > _fileFields; - QMap > _filePointers; - QMap > > _fileBases; - QMap > > _fileArguments; - QMultiMap _dependencyRelations; -}; - -typedef QMultiMap DependencyRelations; - -#endif // GCCXMLARCHITECTURERECOVERYBACKENDPLUGIN - -} - -Q_DECLARE_METATYPE(DuSE::DependencyRelations); diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilemanager.cpp b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilemanager.cpp deleted file mode 100644 index fee7f8d5..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilemanager.cpp +++ /dev/null @@ -1,92 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "xmlfilemanager.h" - -#include -#include -#include - -namespace DuSE -{ - -XmlFileManager::XmlFileManager() -{ -} - -QStringList XmlFileManager::generateXmlFiles(const QDir &rootProjectDir) const -{ - QStringList headers = rootProjectDir.entryList(QStringList("*.h"), QDir::Files | QDir::NoSymLinks); - - int codeFilesSize = headers.size(); - - for (int i = 0; i < codeFilesSize; ++i) { - QString file = headers.at(i).toLocal8Bit().constData(); - QString fileDir = rootProjectDir.absolutePath() + "/" + file; - QString xmlFileDir = rootProjectDir.absolutePath() + "/" + file.replace(".h", ".xml"); - - QProcess process; - process.start("gccxml " + fileDir + " -fxml=" + xmlFileDir); - process.waitForFinished(); - } - - return rootProjectDir.entryList(QStringList("*.xml"), QDir::Files | QDir::NoSymLinks); -} - -QXmlStreamReader *XmlFileManager::openXmlFile(const QString &filePath) -{ - _xmlFile.setFileName(filePath); - _xmlReader = new QXmlStreamReader(&_xmlFile); - - if (!_xmlFile.open(QIODevice::ReadOnly | QIODevice::Text)) { - return new QXmlStreamReader; - } - - return _xmlReader; -} - -void XmlFileManager::closeXmlFile() -{ - if (_xmlFile.isOpen()) { - _xmlFile.close(); - } -} - -} diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilemanager.h b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilemanager.h deleted file mode 100644 index cad93994..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilemanager.h +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef XMLFILEMANAGER_H -#define XMLFILEMANAGER_H - -#include -#include - -QT_BEGIN_NAMESPACE -class QDir; -class QXmlStreamReader; -QT_END_NAMESPACE - -namespace DuSE -{ - -class XmlFileManager -{ -public: - XmlFileManager(); - - ~XmlFileManager(); - - QStringList generateXmlFiles(const QDir &rootProjectDir) const; - QXmlStreamReader* openXmlFile(const QString &filePath); - void closeXmlFile(); - -private: - QFile _xmlFile; - QXmlStreamReader *_xmlReader; -}; - -} - -#endif // XMLFILEMANAGER_H diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilereader.cpp b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilereader.cpp deleted file mode 100644 index 79ce4297..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilereader.cpp +++ /dev/null @@ -1,150 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "xmlfilereader.h" - -#include - -namespace DuSE -{ - -XmlFileReader::XmlFileReader(QString rootDirectory, QString fileName) - : _rootProjectDir(rootDirectory), _fileName(fileName) -{ - _xmlFileManager = new XmlFileManager; -} - -void XmlFileReader::fillTagContainers() -{ - _xmlReader = _xmlFileManager->openXmlFile(_rootProjectDir + "/" + _fileName); - - while (!_xmlReader->atEnd() & !_xmlReader->hasError()) { - QXmlStreamReader::TokenType token = _xmlReader->readNext(); - QPair auxPair; - - if (token == QXmlStreamReader::StartElement) { - QXmlStreamAttributes attributes; - - if (_xmlReader->name() == "Class") { - attributes = _xmlReader->attributes(); - QString classId = attributes.value("id").toString(); - QString className = attributes.value("name").toString(); - if (!_fileClasses.values().contains(className)) { - _fileClasses.insert(classId, className); - } - - do { - if (_xmlReader->readNextStartElement()) { - if (_xmlReader->name() == "Base") { - attributes = _xmlReader->attributes(); - QString baseType = attributes.value("type").toString(); - auxPair.first = classId; - auxPair.second = baseType; - _fileBases.append(auxPair); - } - } - } while (_xmlReader->name() == "Base"); - } - - if (_xmlReader->name() == "Field") { - attributes = _xmlReader->attributes(); - QString fieldContext = attributes.value("context").toString(); - QString fieldType = attributes.value("type").toString(); - auxPair.first = fieldContext; - auxPair.second = fieldType; - _fileFields.append(auxPair); - } - - if (_xmlReader->name() == "PointerType") { - attributes = _xmlReader->attributes(); - QString pointerId = attributes.value("id").toString(); - QString pointerType = attributes.value("type").toString(); - auxPair.first = pointerId; - auxPair.second = pointerType; - _filePointers.insert(pointerId, pointerType); - } - - - if (_xmlReader->name() == "Method") { - attributes = _xmlReader->attributes(); - QString methodContext = attributes.value("context").toString(); - - do { - if (_xmlReader->readNextStartElement()) { - if (_xmlReader->name() == "Argument") { - attributes = _xmlReader->attributes(); - QString argumentType = attributes.value("type").toString(); - auxPair.first = methodContext; - auxPair.second = argumentType; - _fileArguments.append(auxPair); - } - } - } while (_xmlReader->name() == "Argument"); - } - } - } _xmlFileManager->closeXmlFile(); -} - -QMap XmlFileReader::fileClasses() -{ - return _fileClasses; -} - -QList > XmlFileReader::fileFields() -{ - return _fileFields; -} - -QMap XmlFileReader::filePointers() -{ - return _filePointers; -} - -QList > XmlFileReader::fileBases() -{ - return _fileBases; -} - -QList > XmlFileReader::fileArguments() -{ - return _fileArguments; -} - -} diff --git a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilereader.h b/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilereader.h deleted file mode 100644 index 6059c8f5..00000000 --- a/examples/uml/duse-mt/src/plugins/gccxmlarchitecturerecoverybackend/xmlfilereader.h +++ /dev/null @@ -1,85 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef XMLFILEREADER_H -#define XMLFILEREADER_H - -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE -class QXmlStreamReader; -QT_END_NAMESPACE - -#include "xmlfilemanager.h" - -namespace DuSE -{ - -class XmlFileReader -{ -public: - XmlFileReader(QString rootDirectory, QString fileName); - ~XmlFileReader(); - - void fillTagContainers(); - QMap fileClasses(); - QList > fileFields(); - QMap filePointers(); - QList > fileBases(); - QList > fileArguments(); - -private: - QString _rootProjectDir; - QString _fileName; - QXmlStreamReader *_xmlReader; - XmlFileManager *_xmlFileManager; - QMap _fileClasses; - QList > _fileFields; - QMap _filePointers; - QList > _fileBases; - QList > _fileArguments; -}; - -} - -#endif // XMLFILEREADER_H diff --git a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.json b/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.json deleted file mode 100644 index df4b8dbe..00000000 --- a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Category": "Scripting", - "Vendor": "Qt Project", - "Version": "1.0" -} diff --git a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.pro b/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.pro deleted file mode 100644 index f2c9781f..00000000 --- a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.pro +++ /dev/null @@ -1,18 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-10-25T17:38:51 -# -#------------------------------------------------- - -include(../../duse-mt-plugin.pri) - -QT += widgets script modeling - -SOURCES += javascriptconsoleplugin.cpp - -HEADERS += javascriptconsoleplugin.h - -OTHER_FILES += javascriptconsole.json - -FORMS += \ - javascriptconsole.ui diff --git a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.ui b/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.ui deleted file mode 100644 index 2268dae8..00000000 --- a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole.ui +++ /dev/null @@ -1,166 +0,0 @@ - - - DuSE::JavaScriptConsole - - - - 0 - 0 - 638 - 160 - - - - Form - - - - 6 - - - 6 - - - 6 - - - 6 - - - - - JavaScript Editor - - - - 6 - - - 6 - - - 6 - - - 6 - - - - - false - - - - - - - - - false - - - Run (CTRL-R) - - - ... - - - - - - - - Ctrl+R - - - - - - - false - - - Save script as - - - ... - - - - - - - - - - - - false - - - Open script - - - ... - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - - - JavaScript Output - - - - 6 - - - 6 - - - 6 - - - 6 - - - - - true - - - false - - - - - - - - - - - diff --git a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole_dependencies.pri b/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole_dependencies.pri deleted file mode 100644 index a118d0f6..00000000 --- a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsole_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_PLUGIN_NAME = JavaScriptConsole diff --git a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsoleplugin.cpp b/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsoleplugin.cpp deleted file mode 100644 index f38b5c2f..00000000 --- a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsoleplugin.cpp +++ /dev/null @@ -1,261 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "javascriptconsoleplugin.h" - -#include "ui_javascriptconsole.h" - -#include -#include - -#include - -#include -#include - -#include - -#include -#include -#include - -#include -#include -#include - -template -QScriptValue qSetToScriptValue(QScriptEngine *engine, const QSet &elements) -{ - QScriptValue array = engine->newArray(); - foreach (T *element, elements) - array.property(QString::fromLatin1("push")).call(array, QScriptValueList() << engine->newQObject(element)); - return array; -} - -template -void scriptValueToQSet(const QScriptValue &obj, QSet &elements) -{ - QScriptValueIterator it(obj); - while (it.hasNext()) { - it.next(); - elements.insert(qobject_cast(it.value().toQObject())); - } -} - -template -QScriptValue qListToScriptValue(QScriptEngine *engine, const QList &elements) -{ - QScriptValue array = engine->newArray(); - foreach (T *element, elements) - array.property(QString::fromLatin1("push")).call(array, QScriptValueList() << engine->newQObject(element)); - return array; -} - -template -void scriptValueToQList(const QScriptValue &obj, QList &elements) -{ - QScriptValueIterator it(obj); - while (it.hasNext()) { - it.next(); - elements.append(qobject_cast(it.value().toQObject())); - } -} - -namespace DuSE -{ - -JavaScriptConsolePlugin::JavaScriptConsolePlugin(QObject *parent) : - IPlugin(parent), - _javaScriptConsole(new Ui::JavaScriptConsole), - _codeCompletionView(new QListView), - _engine(0) -{ -} - -JavaScriptConsolePlugin::~JavaScriptConsolePlugin() -{ - delete _javaScriptConsole; - delete _engine; -} - -bool JavaScriptConsolePlugin::initialize() -{ - QWidget *javaScriptConsoleWidget = new QWidget; - _javaScriptConsole->setupUi(javaScriptConsoleWidget); - ICore::self()->uiController()->addDockWidget(Qt::BottomDockWidgetArea, tr("JavaScript Console"), javaScriptConsoleWidget); - - _javaScriptConsole->txeJavaScript->installEventFilter(this); - _codeCompletionView->installEventFilter(this); - - _codeCompletionView->setParent(_javaScriptConsole->txeJavaScript); - _codeCompletionView->hide(); - - connect(_javaScriptConsole->tbtJSEvaluate, &QToolButton::clicked, this, &JavaScriptConsolePlugin::evaluate); - connect(_javaScriptConsole->tbtJSEvaluate, SIGNAL(clicked()), ICore::self()->uiController(), SIGNAL(updateCurrentModelingObject())); - - connect(_javaScriptConsole->tbtSaveScript, &QToolButton::clicked, this, &JavaScriptConsolePlugin::saveScript); - connect(_javaScriptConsole->tbtOpenScript, &QToolButton::clicked, this, &JavaScriptConsolePlugin::openScript); - - connect(ICore::self()->uiController(), &IUiController::currentModelingObjectChanged, this, &JavaScriptConsolePlugin::setSelfProperty); - connect(ICore::self()->projectController(), SIGNAL(modelOpened(QList)), this, SLOT(initializeEngine(QList))); - connect(ICore::self()->projectController(), SIGNAL(modelAboutToBeClosed(QList)), this, SLOT(destroyEngine())); - - return true; -} - -void JavaScriptConsolePlugin::setSelfProperty(QModelingObject *modelingObject) -{ - _engine->globalObject().setProperty("self", _engine->newQObject(modelingObject)); -} - -void JavaScriptConsolePlugin::initializeEngine(QList modelingObjects) -{ - if (modelingObjects.size() == 0) - return; - - _engine = new QScriptEngine; - qScriptRegisterMetaType(_engine, qSetToScriptValue, scriptValueToQSet); - qScriptRegisterMetaType(_engine, qListToScriptValue, scriptValueToQList); - - QModelingObject *modelingObject = modelingObjects.at(0); - _engine->globalObject().setProperty(modelingObject->objectName(), _engine->newQObject(modelingObject)); - - QScriptValue array = _engine->newArray(); - foreach (QModelingObject *modelingObject, modelingObjects) - array.property(QString::fromLatin1("push")).call(array, QScriptValueList() << _engine->newQObject(modelingObject)); - _engine->globalObject().setProperty("input", array); - - _javaScriptConsole->txeJavaScript->setText("self"); - _javaScriptConsole->tbtJSEvaluate->setEnabled(true); - _javaScriptConsole->tbtSaveScript->setEnabled(true); - _javaScriptConsole->tbtOpenScript->setEnabled(true); - QTimer::singleShot(0, this, SLOT(evaluate())); -} - -void JavaScriptConsolePlugin::destroyEngine() -{ - delete _engine; - _engine = 0; - _javaScriptConsole->txeJavaScript->clear(); - _javaScriptConsole->txeJavaScriptEvaluation->clear(); - _javaScriptConsole->tbtJSEvaluate->setEnabled(false); - _javaScriptConsole->tbtSaveScript->setEnabled(false); - _javaScriptConsole->tbtOpenScript->setEnabled(false); -} - -bool JavaScriptConsolePlugin::eventFilter(QObject *obj, QEvent *event) -{ - if (event->type() == QEvent::KeyPress && obj == _javaScriptConsole->txeJavaScript) { - QKeyEvent *keyEvent = static_cast(event); - if (keyEvent->key() == 46) { - QModelingObject *modelingObject = dynamic_cast(_engine->evaluate(_javaScriptConsole->txeJavaScript->toPlainText()).toQObject()); - if (modelingObject) { - const QMetaObject *metaObject = modelingObject->metaObject(); - int propertyCount = metaObject->propertyCount(); - QStringList propertyList; - for (int i = 0; i < propertyCount; ++i) - propertyList << metaObject->property(i).name(); - _codeCompletionView->setModel(new QStringListModel(propertyList)); - QFont font; - QFontMetrics fm(font); - _codeCompletionView->setGeometry(_javaScriptConsole->txeJavaScript->cursorRect().x(), _javaScriptConsole->txeJavaScript->cursorRect().y()+fm.height(), 200, 100); - _codeCompletionView->show(); - _codeCompletionView->setFocus(); - } - } - return QObject::eventFilter(obj, event); - } else if (event->type() == QEvent::KeyPress && obj == _codeCompletionView) { - QKeyEvent *keyEvent = static_cast(event); - if (keyEvent->key() == 16777220 || keyEvent->key() == 32) { // spacebar or enter - _javaScriptConsole->txeJavaScript->insertPlainText(_codeCompletionView->model()->data(_codeCompletionView->selectionModel()->selectedIndexes().first()).toString()); - _codeCompletionView->hide(); - _javaScriptConsole->txeJavaScript->setFocus(); - return true; - } - else if (keyEvent->key() == 16777235 || keyEvent->key() == 16777237 || keyEvent->key() == 16777239 || keyEvent->key() == 16777238) { // uparrow and downarrow, pageup, pagedown - return QObject::eventFilter(obj, event); - } - else { - _codeCompletionView->hide(); - _javaScriptConsole->txeJavaScript->setFocus(); - return true; - } - } - // standard event processing - return QObject::eventFilter(obj, event); -} - -void JavaScriptConsolePlugin::evaluate() -{ - _javaScriptConsole->txeJavaScriptEvaluation->setText(_engine->evaluate(_javaScriptConsole->txeJavaScript->toPlainText()).toString()); -} - -void JavaScriptConsolePlugin::saveScript() -{ - QString fileName = QFileDialog::getSaveFileName(0, tr("Save script"), QDir::currentPath(), "*.js"); - if (!fileName.isEmpty()) { - QFile file(fileName); - if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { - QMessageBox::critical(0, tr("Save script"), tr("Error when saving script as %1").arg(fileName)); - return; - } - QTextStream out(&file); - out << _javaScriptConsole->txeJavaScript->toPlainText(); - file.close(); - } -} - -void JavaScriptConsolePlugin::openScript() -{ - QString fileName = QFileDialog::getOpenFileName(0, tr("Open script"), QDir::currentPath(), "*.js"); - if (!fileName.isEmpty()) { - QFile file(fileName); - if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - QMessageBox::critical(0, tr("Open script"), tr("Error when opening script %1").arg(fileName)); - return; - } - QTextStream in(&file); - _javaScriptConsole->txeJavaScript->setPlainText(in.readAll()); - file.close(); - } -} - -} - diff --git a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsoleplugin.h b/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsoleplugin.h deleted file mode 100644 index 6b704f50..00000000 --- a/examples/uml/duse-mt/src/plugins/javascriptconsole/javascriptconsoleplugin.h +++ /dev/null @@ -1,94 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef JAVASCRIPTCONSOLEPLUGIN_H -#define JAVASCRIPTCONSOLEPLUGIN_H - -#include - -QT_BEGIN_NAMESPACE -class QListView; -class QScriptEngine; - -class QModelingObject; -class QModelingObjectView; -class QModelingObjectModel; -class QModelingObjectPropertyEditor; -class QModelingObjectPropertyModel; -QT_END_NAMESPACE - -namespace DuSE -{ - -namespace Ui { - class JavaScriptConsole; -} - -class JavaScriptConsolePlugin : public IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "javascriptconsole.json") - -public: - JavaScriptConsolePlugin(QObject *parent = 0); - virtual ~JavaScriptConsolePlugin(); - - virtual bool initialize(); - -protected: - bool eventFilter(QObject *obj, QEvent *event); - -private Q_SLOTS: - void setSelfProperty(QModelingObject *modelingObject); - void initializeEngine(QList modelingObjects); - void destroyEngine(); - void evaluate(); - void saveScript(); - void openScript(); - -private: - Ui::JavaScriptConsole *_javaScriptConsole; - QListView *_codeCompletionView; - QScriptEngine *_engine; -}; - -} - -#endif // JAVASCRIPTCONSOLEPLUGIN_H diff --git a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector.json b/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector.json deleted file mode 100644 index d4090ad6..00000000 --- a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Category": "Project Management", - "Vendor": "Qt Project", - "Version": "1.0" -} diff --git a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector.pro b/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector.pro deleted file mode 100644 index d57a73ae..00000000 --- a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector.pro +++ /dev/null @@ -1,15 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-10-25T17:38:51 -# -#------------------------------------------------- - -QT += widgets modelingwidgets - -include(../../duse-mt-plugin.pri) - -SOURCES += modelinspectorplugin.cpp - -HEADERS += modelinspectorplugin.h - -OTHER_FILES += modelinspector.json diff --git a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector_dependencies.pri b/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector_dependencies.pri deleted file mode 100644 index 9e0b32df..00000000 --- a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspector_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_PLUGIN_NAME = ModelInspector diff --git a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp b/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp deleted file mode 100644 index bc6465a3..00000000 --- a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp +++ /dev/null @@ -1,116 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "modelinspectorplugin.h" - -#include -#include - -#include -#include -#include -#include - -#include - -#include - -#include - -namespace DuSE -{ - -ModelInspectorPlugin::ModelInspectorPlugin(QObject *parent) : - IPlugin(parent), - _modelingObjectView(new QModelingObjectView), - _modelingObjectModel(new QModelingObjectModel), - _propertyEditor(new QModelingObjectPropertyEditor), - _propertyModel(new QModelingObjectPropertyModel(_modelingObjectModel)), - _outputIssues(new QListView) -{ - _modelingObjectView->setModel(_modelingObjectModel); - _propertyEditor->setModel(_propertyModel); - - _outputIssues->setAlternatingRowColors(true); - QPalette outputIssuesPallete = _outputIssues->palette(); - outputIssuesPallete.setColor(QPalette::Active, QPalette::Base, QColor(255, 255, 255)); - outputIssuesPallete.setColor(QPalette::Inactive, QPalette::Base, QColor(255, 255, 255)); - outputIssuesPallete.setColor(QPalette::Active, QPalette::AlternateBase, QColor(225, 225, 225)); - outputIssuesPallete.setColor(QPalette::Inactive, QPalette::AlternateBase, QColor(225, 225, 225)); - _outputIssues->setPalette(outputIssuesPallete); -} - -ModelInspectorPlugin::~ModelInspectorPlugin() -{ - delete _outputIssues->model(); - delete _outputIssues; -} - -bool ModelInspectorPlugin::initialize() -{ - ICore::self()->uiController()->addDockWidget(Qt::LeftDockWidgetArea, tr("Model Inspector"), _modelingObjectView); - ICore::self()->uiController()->addDockWidget(Qt::RightDockWidgetArea, tr("Property Editor"), _propertyEditor); - ICore::self()->uiController()->addDockWidget(Qt::BottomDockWidgetArea, tr("Issues"), _outputIssues); - - connect(ICore::self()->projectController(), SIGNAL(modelOpened(QList)), _modelingObjectModel, SLOT(setModelingObjects(QList))); - connect(ICore::self()->projectController(), SIGNAL(modelOpened(QList)), this, SLOT(populateOutputIssues())); - - connect(ICore::self()->projectController(), SIGNAL(modelClosed()), _modelingObjectModel, SLOT(clear())); - connect(ICore::self()->projectController(), SIGNAL(modelClosed()), _propertyModel, SLOT(clear())); - connect(ICore::self()->projectController(), SIGNAL(modelClosed()), this, SLOT(populateOutputIssues())); - - connect(_modelingObjectView, &QModelingObjectView::modelingObjectChanged, _propertyModel, &QModelingObjectPropertyModel::setModelingObject); - connect(_modelingObjectView, SIGNAL(modelingObjectChanged(QModelingObject*)), ICore::self()->uiController(), SIGNAL(currentModelingObjectChanged(QModelingObject*))); - - connect(_propertyModel, &QModelingObjectPropertyModel::indexChanged, _modelingObjectModel, &QModelingObjectModel::updateIndex); - connect(ICore::self()->uiController(), SIGNAL(updateCurrentModelingObject()), _modelingObjectView, SLOT(updateSelected())); - connect(_modelingObjectView, SIGNAL(addToView(QObject*,QQuickItem*)), ICore::self()->uiController(), SIGNAL(addToView(QObject*,QQuickItem*))); - - return true; -} - -void ModelInspectorPlugin::populateOutputIssues() -{ - delete _outputIssues->model(); - _outputIssues->setModel(new QStringListModel(ICore::self()->projectController()->errorStrings())); -} - -} - diff --git a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.h b/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.h deleted file mode 100644 index 3ec87a94..00000000 --- a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.h +++ /dev/null @@ -1,83 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef MODELINSPECTORPLUGIN_H -#define MODELINSPECTORPLUGIN_H - -#include - -QT_BEGIN_NAMESPACE -class QListView; - -class QModelingObjectView; -class QModelingObjectModel; -class QModelingObjectPropertyEditor; -class QModelingObjectPropertyModel; -QT_END_NAMESPACE - -namespace DuSE -{ - -class ModelInspectorPlugin : public IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "modelinspector.json") - -public: - ModelInspectorPlugin(QObject *parent = 0); - virtual ~ModelInspectorPlugin(); - - virtual bool initialize(); - -private Q_SLOTS: - void populateOutputIssues(); - -private: - QModelingObjectView *_modelingObjectView; - QModelingObjectModel *_modelingObjectModel; - QModelingObjectPropertyEditor *_propertyEditor; - QModelingObjectPropertyModel *_propertyModel; - QListView *_outputIssues; -}; - -} - -#endif // MODELINSPECTORPLUGIN_H - diff --git a/examples/uml/duse-mt/src/plugins/plugins.pro b/examples/uml/duse-mt/src/plugins/plugins.pro deleted file mode 100644 index 288a90aa..00000000 --- a/examples/uml/duse-mt/src/plugins/plugins.pro +++ /dev/null @@ -1,20 +0,0 @@ -TEMPLATE = subdirs -CONFIG += ordered - -SUBDIRS = \ - modelinspector \ - -qtHaveModule(script): SUBDIRS += javascriptconsole - -qtHaveModule(quick): SUBDIRS += welcomedashboard \ - designoptimizer \ - concretesyntaxview \ - umlconcretesyntax - -qtHaveModule(script):qtHaveModule(quick): SUBDIRS += designspaceexplorer - -SUBDIRS += architecturerecoverycore \ - gccxmlarchitecturerecoverybackend \ - acdcarchitecturerecoveryalgorithm \ - umlmodelingnotation \ - architecturerecoverypanel diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/duseplugin.pro b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/duseplugin.pro deleted file mode 100644 index 25a1eae0..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/duseplugin.pro +++ /dev/null @@ -1,13 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-10-25T17:38:51 -# -#------------------------------------------------- - -include(../../../duse-mt-plugin.pri) - -HEADERS += umlconcretesyntaxplugin.h - -SOURCES += umlconcretesyntaxplugin.cpp - -OTHER_FILES += umlconcretesyntax.json diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/duseplugin_dependencies.pri b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/duseplugin_dependencies.pri deleted file mode 100644 index 21ac3ba6..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/duseplugin_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_PLUGIN_NAME = UmlConcreteSyntax diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntax.json b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntax.json deleted file mode 100644 index a28ac84a..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntax.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Category": "Concrete Syntax", - "Vendor": "Qt Project", - "Version": "1.0", - "DependencyList": [ - "ConcreteSyntaxViewPlugin" - ] -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntaxplugin.cpp b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntaxplugin.cpp deleted file mode 100644 index 8541196b..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntaxplugin.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "umlconcretesyntaxplugin.h" - -UmlConcreteSyntaxPlugin::UmlConcreteSyntaxPlugin(QObject *parent) : - DuSE::IPlugin(parent) -{ -} - -bool UmlConcreteSyntaxPlugin::initialize() -{ - return true; -} - diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntaxplugin.h b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntaxplugin.h deleted file mode 100644 index 44662f8d..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/duseplugin/umlconcretesyntaxplugin.h +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef UMLCONCRETESYNTAXPLUGIN_H -#define UMLCONCRETESYNTAXPLUGIN_H - -#include - -class UmlConcreteSyntaxPlugin : public DuSE::IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "umlconcretesyntax.json") - -public: - UmlConcreteSyntaxPlugin(QObject *parent = 0); - - virtual bool initialize(); -}; - -#endif // UMLCONCRETESYNTAXPLUGIN_H - diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlAssociation.qml b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlAssociation.qml deleted file mode 100644 index fe3468fe..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlAssociation.qml +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 -import QtModeling.Uml 1.0 -import "util.js" as Util - -Relationship { - name: element.name - relationshipType: "association" - source: Util.findQuickItem(parent, element.memberEnds[0].class_.name) - target: Util.findQuickItem(parent, element.memberEnds[0].type.name) - sourceAggregation: aggregation(element.memberEnds[0].aggregation); - targetAggregation: aggregation(element.memberEnds[1].aggregation); - sourceMultiplicity: element.memberEnds[0].lowerValue.value + ".." + element.memberEnds[0].upperValue.value - targetMultiplicity: element.memberEnds[1].lowerValue.value + ".." + element.memberEnds[1].upperValue.value - function aggregation(aggregationEnum) - { - switch (aggregationEnum) { - case 0: return "none" - case 1: return "shared" - case 2: return "composite" - } - } -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlClass.qml b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlClass.qml deleted file mode 100644 index bb85764a..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlClass.qml +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -UmlElement { - UmlSlot { - id: nameSlot - anchors.top: parent.top - Text { - id: label - text: element.name - anchors.centerIn: parent - font { family: "Korolev"; italic: element.isAbstract } - } - } - UmlSlot { - id: attributeSlot - anchors { top: nameSlot.bottom; topMargin: -1 } - height: (parent.height - nameSlot.height)/2 - ListView { - model: element.ownedAttributes - anchors { fill: parent; margins: 4 } - delegate: Text { - text: visibility(modelData.visibility) + modelData.name + ": " + (modelData.type ? modelData.type.name:"") - font { family: "Korolev" } - } - } - } - UmlSlot { - anchors { top: attributeSlot.bottom; topMargin: -1; bottom: parent.bottom } - ListView { - model: element.ownedOperations - anchors { fill: parent; margins: 4 } - delegate: Text { - text: visibility(modelData.visibility) + modelData.name + operationSignature(model) - font { family: "Korolev" } - } - } - } - function visibility(visibilityEnum) - { - switch (visibilityEnum) { - case 0: return " " - case 1: return "+" - case 2: return "-" - case 3: return "#" - case 4: return "~" - } - } - function operationSignature(model) - { - var generalString = "("; - var returnString = ": "; - var list = element.ownedOperations[model.index].ownedParameters; - var count = list.length; - for (var i = 0; i < count ; ++i) - { - if (list[i].direction === 4) - returnString = returnString + list[i].type.name; - else - generalString = generalString + list[i].type.name + ", "; - } - if (returnString == ": ") - returnString = returnString + "void"; - generalString = generalString + ")" + returnString; - generalString = generalString.replace(', )',')'); - return generalString; - } -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlComponent.qml b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlComponent.qml deleted file mode 100644 index a0639d5b..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlComponent.qml +++ /dev/null @@ -1,85 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -UmlElement { - UmlSlot { - id: nameSlot - anchors.top: parent.top - Text { - text: element.name - anchors.centerIn: parent - font { family: "Korolev"; italic: element.isAbstract } - } - Rectangle { - border.width: 1 - width: 18; height: 18 - anchors { right: parent.right; rightMargin: 6; verticalCenter: parent.verticalCenter } - Rectangle { border.width: 1; width: 12; height: 5; x: -6; y: 3 } - Rectangle { border.width: 1; width: 12; height: 5; x: -6; y: 10 } - } - } - UmlSlot { - id: partSlot - anchors { top: nameSlot.bottom; topMargin: -1; bottom: parent.bottom } - } - Row { - width: parent.width - spacing: (parent.width - 14*ports.length)/(ports.length-1) - anchors { bottom: parent.bottom; bottomMargin: -7 } - Repeater { - model: ports.length - Rectangle { - border.width: 1 - width: 14; height: 14 - } - } - } - Component.onCompleted: { - var component = Qt.createComponent("UmlProperty.qml") - if (component.status == Component.Ready) { - var partLength = parts.length - for (var i = 0; i < partLength; ++i) { - component.createObject(partSlot, { name: parts[i].name + ":" + parts[i].type.name }) - } - } - } -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlElement.qml b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlElement.qml deleted file mode 100644 index 3d7bce0b..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlElement.qml +++ /dev/null @@ -1,111 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -Rectangle { - id: element - - width: 120 - height: 80 - - // Drag area - MouseArea { - anchors.fill: parent - drag { target: parent; minimumX: 0; minimumY: 0 } - onPressed: parent.focus = true - } - - // Selection marks (begin) - Rectangle { - visible: parent.focus; color: "black"; width: 6; height: 6; z: 2 - anchors { right: parent.right; top: parent.top; rightMargin: -2; topMargin: -2 } - } - Rectangle { - visible: parent.focus; color: "black"; width: 6; height: 6; z: 2 - anchors { right: parent.right; bottom: parent.bottom; rightMargin: -2; bottomMargin: -2 } - } - Rectangle { - visible: parent.focus; color: "black"; width: 6; height: 6; z: 2 - anchors { left: parent.left; top: parent.top; leftMargin: -2; topMargin: -2 } - } - Rectangle { - visible: parent.focus; color: "black"; width: 6; height: 6; z: 2 - anchors { left: parent.left; bottom: parent.bottom; leftMargin: -2; bottomMargin: -2 } - } - // Selection marks (end) - - // Resize mark - Image { - id: resizeMark - visible: parent.focus - source: "images/resize-mark.png" - anchors { right: parent.right; bottom: parent.bottom } - z: 1 - MouseArea { - enabled: element.focus - - anchors.fill: parent - drag.target: resizeMark - - property int oldMouseX - property int oldMouseY - - hoverEnabled: true - - onPressed: { - element.focus = true; - oldMouseX = mouseX - oldMouseY = mouseY - } - - onPositionChanged: { - if (pressed) { - element.width = Math.max(element.width + (mouseX - oldMouseX), 80) - element.height = Math.max(element.height + (mouseY - oldMouseY), 50) - } - } - } - } - gradient: Gradient { - GradientStop { position: 0.0; color: "#FFFFF5" } - GradientStop { position: 1.0; color: "#FFFFE1" } - } -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlGeneralization.qml b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlGeneralization.qml deleted file mode 100644 index 4928a5ca..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlGeneralization.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 -import QtModeling.Uml 1.0 -import "util.js" as Util - -Relationship { - relationshipType: "generalization" - source: Util.findQuickItem(parent, element.specific.name) - target: Util.findQuickItem(parent, element.general.name) -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlProperty.qml b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlProperty.qml deleted file mode 100644 index 1972afa8..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlProperty.qml +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -UmlElement { - width: 60 - height: 40 - property alias name: label.text - property alias portsLength: repeater.model - UmlSlot { - anchors { top: parent.top; bottom: parent.bottom } - Text { - id: label - anchors.centerIn: parent - font { family: "Korolev"; italic: element.isAbstract } - } - Rectangle { - border.width: 1 - width: 18; height: 18 - anchors { right: parent.right; rightMargin: 6; verticalCenter: parent.verticalCenter } - Rectangle { border.width: 1; width: 12; height: 5; x: -6; y: 3 } - Rectangle { border.width: 1; width: 12; height: 5; x: -6; y: 10 } - } - } - Row { - width: parent.width - spacing: (parent.width - 14*ports.length)/(ports.length-1) - anchors { bottom: parent.bottom; bottomMargin: -7 } - Repeater { - id: repeater - Rectangle { - border.width: 1 - width: 14; height: 14 - } - } - } -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlSlot.qml b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlSlot.qml deleted file mode 100644 index 23f22ded..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/UmlSlot.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -Rectangle { - width: parent.width - height: childrenRect.height + 10 - border { width: 1; color: "black" } - clip: true - color: "transparent" -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/images/resize-mark.png b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/images/resize-mark.png deleted file mode 100644 index b3697697..00000000 Binary files a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/images/resize-mark.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/qmldir b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/qmldir deleted file mode 100644 index a344dd61..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/qmldir +++ /dev/null @@ -1,9 +0,0 @@ -module QtModeling.Uml -internal UmlElement UmlElement.qml -internal UmlSlot UmlSlot.qml -UmlClass 1.0 UmlClass.qml -UmlComponent 1.0 UmlComponent.qml -UmlProperty 1.0 UmlProperty.qml -UmlAssociation 1.0 UmlAssociation.qml -UmlGeneralization 1.0 UmlGeneralization.qml -plugin qtmodelingumlplugin diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/qmlplugin.pro b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/qmlplugin.pro deleted file mode 100644 index 709fd65f..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/qmlplugin.pro +++ /dev/null @@ -1,40 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-10-25T17:38:51 -# -#------------------------------------------------- - -TARGET = qtmodelingumlplugin -TARGETPATH = QtModeling/Uml - -QT += quick-private - -# Qml -QML_FILES = \ - UmlElement.qml \ - UmlSlot.qml \ - UmlClass.qml \ - UmlComponent.qml \ - UmlProperty.qml \ - UmlAssociation.qml \ - UmlGeneralization.qml - -# JavaScript - -QML_FILES += \ - util.js - -# Images -QML_FILES += \ - images/resize-mark.png \ - -HEADERS += \ - umlconcretesyntaxqmlplugin.h \ - relationshipitem.h - -SOURCES += \ - umlconcretesyntaxqmlplugin.cpp \ - relationshipitem.cpp - -CONFIG += no_cxx_module -load(qml_plugin) diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/relationshipitem.cpp b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/relationshipitem.cpp deleted file mode 100644 index 47fc8037..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/relationshipitem.cpp +++ /dev/null @@ -1,231 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "relationshipitem.h" - -#include - -#include - -#include "private/qquickrectangle_p.h" - -RelationshipItem::RelationshipItem(QQuickItem *parent) - : QQuickPaintedItem(parent), - _source(0), - _target(0), - _relationshipType("association"), - _sourceAggregation("none"), - _targetAggregation("none") -{ - setAntialiasing(true); -} - -void RelationshipItem::paint(QPainter *painter) -{ - if (!_source || !_target) - return; - - qreal x1 = _source->x(); qreal y1 = _source->y(); qreal w1 = _source->width(); qreal h1 = _source->height(); - qreal x2 = _target->x(); qreal y2 = _target->y(); qreal w2 = _target->width(); qreal h2 = _target->height(); - - QLineF originalLine(x1 + w1/2, y1 + h1/2, x2 + w2/2, y2 + h2/2); - QPointF p1, p2; - - if (originalLine.intersect(QLineF(x1 , y1 , x1 + w1, y1 ), &p1) == QLineF::BoundedIntersection) {} else - if (originalLine.intersect(QLineF(x1 , y1 + h1, x1 + w1, y1 + h1), &p1) == QLineF::BoundedIntersection) {} else - if (originalLine.intersect(QLineF(x1 , y1 , x1 , y1 + h1), &p1) == QLineF::BoundedIntersection) {} else - if (originalLine.intersect(QLineF(x1 + w1, y1 , x1 + w1, y1 + h1), &p1) == QLineF::BoundedIntersection) {} - - if (originalLine.intersect(QLineF(x2 , y2 , x2 + w2, y2 ), &p2) == QLineF::BoundedIntersection) {} else - if (originalLine.intersect(QLineF(x2 , y2 + h2, x2 + w2, y2 + h2), &p2) == QLineF::BoundedIntersection) {} else - if (originalLine.intersect(QLineF(x2 , y2 , x2 , y2 + h2), &p2) == QLineF::BoundedIntersection) {} else - if (originalLine.intersect(QLineF(x2 + w2, y2 , x2 + w2, y2 + h2), &p2) == QLineF::BoundedIntersection) {} - - painter->drawLine(p1.x()-x(), p1.y()-y(), p2.x()-x(), p2.y()-y()); - QPolygonF arrow(QVector() << QPointF(-12, -8) << QPointF(0, 0) << QPointF(-12, 8)); - QTransform transform; - transform.translate(p2.x()-x(), p2.y()-y()); - transform.rotate(-originalLine.angle()); - if (_relationshipType == "association") { - painter->drawPolyline(transform.map(arrow)); - QFont font("Korolev"); - QFontMetrics metrics(font); - painter->setFont(font); - painter->drawText(p1.x()-x()+(p2.x()-x()-(p1.x()-x()))/2+10, p1.y()-y()+(p2.y()-y()-(p1.y()-y()))/2, _name); - painter->drawText(p2.x()-x()+10, p2.y()-y()-10, _sourceMultiplicity); - painter->drawText(p1.x()-x()+10, p1.y()-y()-10, _targetMultiplicity); - } - else if (_relationshipType == "generalization") { - painter->setBrush(QBrush(Qt::white)); - painter->drawPolygon(transform.map(arrow)); - } - - if (_relationshipType == "association" && (_sourceAggregation == "composite" || _sourceAggregation == "shared")) { - painter->setBrush(QBrush(_sourceAggregation == "composite" ? Qt::black:Qt::white)); - QPolygon diamond(QVector() << QPoint(0, 0) << QPoint(12, -8) << QPoint(24, 0) << QPoint(12, 8)); - QTransform transform; - transform.translate(p1.x()-x(), p1.y()-y()); - transform.rotate(-originalLine.angle()); - painter->drawPolygon(transform.map(diamond)); - } -} - -QString RelationshipItem::name() const -{ - return _name; -} - -void RelationshipItem::setName(QString name) -{ - _name = name; -} - -QQuickRectangle *RelationshipItem::source() const -{ - return _source; -} - -void RelationshipItem::setSource(QQuickRectangle *source) -{ - if (source != _source) { - if (_source) { - disconnect(source, &QQuickRectangle::xChanged, this, &RelationshipItem::updateCoordinates); - disconnect(source, &QQuickRectangle::yChanged, this, &RelationshipItem::updateCoordinates); - } - _source = source; - if (!_target) { - setX(_source->x()); - setY(_source->y()); - } - else { - updateCoordinates(); - } - connect(source, &QQuickRectangle::xChanged, this, &RelationshipItem::updateCoordinates); - connect(source, &QQuickRectangle::yChanged, this, &RelationshipItem::updateCoordinates); - } -} - -QQuickRectangle *RelationshipItem::target() const -{ - return _target; -} - -void RelationshipItem::setTarget(QQuickRectangle *target) -{ - if (target != _target) { - if (_target) { - disconnect(target, &QQuickRectangle::xChanged, this, &RelationshipItem::updateCoordinates); - disconnect(target, &QQuickRectangle::yChanged, this, &RelationshipItem::updateCoordinates); - } - _target = target; - if (!_source) { - setX(_target->x()); - setY(_target->y()); - } - else { - updateCoordinates(); - } - connect(target, &QQuickRectangle::xChanged, this, &RelationshipItem::updateCoordinates); - connect(target, &QQuickRectangle::yChanged, this, &RelationshipItem::updateCoordinates); - } -} - -QString RelationshipItem::relationshipType() const -{ - return _relationshipType; -} - -void RelationshipItem::setRelationshipType(QString relationshipType) -{ - _relationshipType = relationshipType; -} - -QString RelationshipItem::sourceAggregation() const -{ - return _sourceAggregation; -} - -void RelationshipItem::setSourceAggregation(QString sourceAggregation) -{ - _sourceAggregation = sourceAggregation; -} - -QString RelationshipItem::targetAggregation() const -{ - return _targetAggregation; -} - -void RelationshipItem::setTargetAggregation(QString targetAggregation) -{ - _targetAggregation = targetAggregation; -} - -QString RelationshipItem::sourceMultiplicity() const -{ - return _sourceMultiplicity; -} - -void RelationshipItem::setSourceMultiplicity(QString sourceMultiplicity) -{ - _sourceMultiplicity = sourceMultiplicity; -} - -QString RelationshipItem::targetMultiplicity() const -{ - return _targetMultiplicity; -} - -void RelationshipItem::setTargetMultiplicity(QString targetMultiplicity) -{ - _targetMultiplicity = targetMultiplicity; -} - -void RelationshipItem::updateCoordinates() -{ - QQuickRectangle *minRectX = _source->x() < _target->x() ? _source:_target; - QQuickRectangle *minRectY = _source->y() < _target->y() ? _source:_target; - QQuickRectangle *maxRectX = minRectX == _source ? _target:_source; - QQuickRectangle *maxRectY = minRectY == _source ? _target:_source; - setX(minRectX->x()); - setY(minRectY->y()); - setWidth(qMax(maxRectX->x() + maxRectX->width() - minRectX->x(), qMax(_source->width(), _target->width()))); - setHeight(qMax(maxRectY->y() + maxRectY->height() - minRectY->y(), qMax(_source->height(), _target->height()))); -} - diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/relationshipitem.h b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/relationshipitem.h deleted file mode 100644 index aeab5f8a..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/relationshipitem.h +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef RELATIONSHIPITEM_H -#define RELATIONSHIPITEM_H - -#include - -QT_BEGIN_NAMESPACE -class QQuickRectangle; -QT_END_NAMESPACE - -class RelationshipItem : public QQuickPaintedItem -{ - Q_OBJECT - - Q_PROPERTY(QString name READ name WRITE setName) - Q_PROPERTY(QQuickRectangle * source READ source WRITE setSource) - Q_PROPERTY(QQuickRectangle * target READ target WRITE setTarget) - Q_PROPERTY(QString relationshipType READ relationshipType WRITE setRelationshipType) - Q_PROPERTY(QString sourceAggregation READ sourceAggregation WRITE setSourceAggregation) - Q_PROPERTY(QString targetAggregation READ targetAggregation WRITE setTargetAggregation) - Q_PROPERTY(QString sourceMultiplicity READ sourceMultiplicity WRITE setSourceMultiplicity) - Q_PROPERTY(QString targetMultiplicity READ targetMultiplicity WRITE setTargetMultiplicity) - -public: - RelationshipItem(QQuickItem *parent = 0); - - void paint(QPainter *painter); - - QString name() const; - void setName(QString name); - - QQuickRectangle *source() const; - void setSource(QQuickRectangle *source); - - QQuickRectangle *target() const; - void setTarget(QQuickRectangle *target); - - QString relationshipType() const; - void setRelationshipType(QString relationshipType); - - QString sourceAggregation() const; - void setSourceAggregation(QString sourceAggregation); - - QString targetAggregation() const; - void setTargetAggregation(QString targetAggregation); - - QString sourceMultiplicity() const; - void setSourceMultiplicity(QString sourceMultiplicity); - - QString targetMultiplicity() const; - void setTargetMultiplicity(QString targetMultiplicity); - -private Q_SLOTS: - void updateCoordinates(); - -private: - QString _name; - QQuickRectangle *_source; - QQuickRectangle *_target; - QString _relationshipType; - QString _sourceAggregation; - QString _targetAggregation; - QString _sourceMultiplicity; - QString _targetMultiplicity; -}; - -#endif // RELATIONSHIPITEM_H - diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/umlconcretesyntaxqmlplugin.cpp b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/umlconcretesyntaxqmlplugin.cpp deleted file mode 100644 index e640fcd0..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/umlconcretesyntaxqmlplugin.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "umlconcretesyntaxqmlplugin.h" - -#include - -#include "relationshipitem.h" - -void UmlConcreteSyntaxQmlPlugin::registerTypes(const char *uri) -{ - Q_ASSERT(uri == QLatin1String("QtModeling.Uml")); - // @uri QtModeling.Uml - qmlRegisterType(uri, 1, 0, "Relationship"); -} - diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/umlconcretesyntaxqmlplugin.h b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/umlconcretesyntaxqmlplugin.h deleted file mode 100644 index bf5438f6..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/umlconcretesyntaxqmlplugin.h +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef UMLCONCRETESYNTAXQMLPLUGIN_H -#define UMLCONCRETESYNTAXQMLPLUGIN_H - -#include - -class UmlConcreteSyntaxQmlPlugin : public QQmlExtensionPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") - -public: - void registerTypes(const char *uri); -}; - -#endif // UMLCONCRETESYNTAXQMLPLUGIN_H - diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/util.js b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/util.js deleted file mode 100644 index b8438d3f..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/qmlplugin/util.js +++ /dev/null @@ -1,67 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -function findElement(owner, elementName) { - console.log("Procurando " + elementName + " in " + owner.name); - console.log(owner.ownedElements); - var ret; - for (var i = 0; i < owner.ownedElements.length; ++i) { - console.log("Analyzing " + owner.ownedElements[i].name); - ret = findElement(owner.ownedElements[i], elementName); - if (ret != null) - break; - } - if (ret == null && owner.objectName == elementName) - ret = owner; - return ret; -} - -function findQuickItem(parent, objectName) { - var ret = null; - for (var i = 0; i < parent.children.length; ++i) { - ret = findQuickItem(parent.children[i], objectName); - if (ret != null) - break; - } - if (ret == null && parent.objectName == objectName) { - ret = parent; - } - return ret; -} diff --git a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/umlconcretesyntax.pro b/examples/uml/duse-mt/src/plugins/umlconcretesyntax/umlconcretesyntax.pro deleted file mode 100644 index 5dd1557f..00000000 --- a/examples/uml/duse-mt/src/plugins/umlconcretesyntax/umlconcretesyntax.pro +++ /dev/null @@ -1,3 +0,0 @@ -TEMPLATE = subdirs - -SUBDIRS = duseplugin qmlplugin diff --git a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation.json b/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation.json deleted file mode 100644 index 1952997f..00000000 --- a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Category": "Architecture Recovery", - "Vendor": "Qt Project", - "Version": "1.0", - "DependencyList": [ - "ArchitectureRecoveryCorePlugin" - ] -} diff --git a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation.pro b/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation.pro deleted file mode 100644 index acd61e57..00000000 --- a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation.pro +++ /dev/null @@ -1,21 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2014-08-14T03:21:41 -# -#------------------------------------------------- - -include(../../duse-mt-plugin.pri) - -QT -= widgets gui -QT += modeling uml - -DEFINES += UMLMODELINGNOTATION_LIBRARY - -HEADERS += \ - umlmodelingnotation_export.h \ - umlmodelingnotationplugin.h - -SOURCES += \ - umlmodelingnotationplugin.cpp - -OTHER_FILES += umlmodelingnotation.json diff --git a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation_dependencies.pri b/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation_dependencies.pri deleted file mode 100644 index 7a6dd211..00000000 --- a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation_dependencies.pri +++ /dev/null @@ -1,4 +0,0 @@ -DUSEMT_PLUGIN_NAME = UmlModelingNotation - -DUSEMT_PLUGIN_DEPENDS += \ - architecturerecoverycore diff --git a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation_export.h b/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation_export.h deleted file mode 100644 index b5e46f50..00000000 --- a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotation_export.h +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef UMLMODELINGNOTATION_EXPORT_H -#define UMLMODELINGNOTATION_EXPORT_H - -#include - -#if defined(UMLMODELINGNOTATION_LIBRARY) -# define UMLMODELINGNOTATION_EXPORT Q_DECL_EXPORT -#else -# define UMLMODELINGNOTATION_EXPORT Q_DECL_IMPORT -#endif - -#endif // UMLMODELINGNOTATION_EXPORT_H diff --git a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotationplugin.cpp b/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotationplugin.cpp deleted file mode 100644 index c06b6474..00000000 --- a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotationplugin.cpp +++ /dev/null @@ -1,101 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "umlmodelingnotationplugin.h" - -#include - -namespace DuSE -{ - -UmlModelingNotationPlugin::UmlModelingNotationPlugin(QObject *parent) - : IPlugin(parent) -{ - _name = "UML Notation"; -} - -bool UmlModelingNotationPlugin::initialize() -{ - return true; -} - -void UmlModelingNotationPlugin::generateDiagram(const QString &name) -{ - QFile file(QString(name + "/output.xmi")); - - if (!file.open(QFile::WriteOnly | QFile::Text)) { - qDebug() << "Cannot write file !"; - } else { - QXmiWriter writer; - QList list; - foreach (QUmlPackage *subsystem, _subsystems) { - list<< subsystem->asQModelingObject(); - } - - if (writer.writeFile(list, &file)) { - qDebug() << "XMI file saved !"; - } else { - qDebug() << "Error when writing XMI file !"; - } - } - - file.close(); -} - -void UmlModelingNotationPlugin::loadSubsystems() -{ - foreach (QStringList clusterElements, _clusterList) { - QUmlPackage *subsystem = new QUmlPackage; - subsystem->setName(clusterElements.at(0)); - for (int i = 1; i < clusterElements.count(); ++i) { - QUmlPackage *subsystemElement = new QUmlPackage; - subsystemElement->setName(clusterElements.at(i)); - subsystem->addPackagedElement(subsystemElement); - } - _subsystems.append(subsystem); - } -} - -void UmlModelingNotationPlugin::setClusterList(QList m_clusterList) -{ - _clusterList = m_clusterList; -} - -} diff --git a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotationplugin.h b/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotationplugin.h deleted file mode 100644 index fb1f76c3..00000000 --- a/examples/uml/duse-mt/src/plugins/umlmodelingnotation/umlmodelingnotationplugin.h +++ /dev/null @@ -1,77 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef UMLMODELINGNOTATIONPLUGIN_H -#define UMLMODELINGNOTATIONPLUGIN_H - -#include -#include - -#include -#include -#include - -#include "umlmodelingnotation_export.h" - -namespace DuSE -{ - -class UMLMODELINGNOTATION_EXPORT UmlModelingNotationPlugin : public IPlugin, public IModelingNotation -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "umlmodelingnotation.json") - -public: - UmlModelingNotationPlugin(QObject *parent = 0); - - virtual bool initialize(); - virtual void generateDiagram(const QString &name); - void loadSubsystems(); - - void setClusterList(QList m_clusterList); - -private: - QList _clusterList; - QList _subsystems; -}; - -} - -#endif // UMLMODELINGNOTATIONPLUGIN_H diff --git a/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/duse-mt-64x64.png b/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/duse-mt-64x64.png deleted file mode 100644 index ec26192f..00000000 Binary files a/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/duse-mt-64x64.png and /dev/null differ diff --git a/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/welcomedashboard.qml b/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/welcomedashboard.qml deleted file mode 100644 index 7dab38df..00000000 --- a/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/welcomedashboard.qml +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.0 - -Rectangle { - Row { - anchors { left: parent.left; right: parent.right; top: parent.top; margins: 20 } - spacing: 10 - Image { - id: duseIcon - source: "duse-mt-64x64.png" - } - Text { - text: "Welcome to DuSE-MT !" - font { family: "Korolev"; pointSize: 20 } - height: duseIcon.height - verticalAlignment: Text.AlignVCenter - } - } -} diff --git a/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/welcomedashboard.qrc b/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/welcomedashboard.qrc deleted file mode 100644 index 6dcf2323..00000000 --- a/examples/uml/duse-mt/src/plugins/welcomedashboard/qml/welcomedashboard.qrc +++ /dev/null @@ -1,6 +0,0 @@ - - - welcomedashboard.qml - duse-mt-64x64.png - - diff --git a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard.json b/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard.json deleted file mode 100644 index bc146657..00000000 --- a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Category": "Dashboards", - "Vendor": "Qt Project", - "Version": "1.0" -} diff --git a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard.pro b/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard.pro deleted file mode 100644 index d7f0cc1d..00000000 --- a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard.pro +++ /dev/null @@ -1,17 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2013-10-25T17:38:51 -# -#------------------------------------------------- - -QT += quick widgets - -include(../../duse-mt-plugin.pri) - -SOURCES += welcomedashboardplugin.cpp - -HEADERS += welcomedashboardplugin.h - -RESOURCES += qml/welcomedashboard.qrc - -OTHER_FILES += welcomedashboard.json diff --git a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard_dependencies.pri b/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard_dependencies.pri deleted file mode 100644 index 3c4a11a1..00000000 --- a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboard_dependencies.pri +++ /dev/null @@ -1 +0,0 @@ -DUSEMT_PLUGIN_NAME = WelcomeDashboard diff --git a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboardplugin.cpp b/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboardplugin.cpp deleted file mode 100644 index 6a893d30..00000000 --- a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboardplugin.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#include "welcomedashboardplugin.h" - -#include - -#include - -#include - -namespace DuSE -{ - -WelcomeDashboardPlugin::WelcomeDashboardPlugin(QObject *parent) : - IPlugin(parent), - _welcomeQuickView(new QQuickView) -{ -} - -bool WelcomeDashboardPlugin::initialize() -{ - _welcomeQuickView->setSource(QUrl("qrc:/welcomedashboard/welcomedashboard.qml")); - _welcomeQuickView->setResizeMode(QQuickView::SizeRootObjectToView); - - ICore::self()->uiController()->addCentralWidgetTab(QWidget::createWindowContainer(_welcomeQuickView), "Welcome", 0); - - return true; -} - -} - diff --git a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboardplugin.h b/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboardplugin.h deleted file mode 100644 index 26790841..00000000 --- a/examples/uml/duse-mt/src/plugins/welcomedashboard/welcomedashboardplugin.h +++ /dev/null @@ -1,70 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Sandro S. Andrade -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtUml module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef WELCOMEDASHBOARDPLUGIN_H -#define WELCOMEDASHBOARDPLUGIN_H - -#include - -QT_BEGIN_NAMESPACE -class QQuickView; -QT_END_NAMESPACE - -namespace DuSE -{ - -class WelcomeDashboardPlugin : public IPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.liveblue.DuSE.IPlugin" FILE "welcomedashboard.json") - -public: - WelcomeDashboardPlugin(QObject *parent = 0); - - virtual bool initialize(); - -private: - QQuickView *_welcomeQuickView; -}; - -} - -#endif // WELCOMEDASHBOARDPLUGIN_H - diff --git a/examples/uml/duse-mt/src/rpath.pri b/examples/uml/duse-mt/src/rpath.pri deleted file mode 100644 index 28868745..00000000 --- a/examples/uml/duse-mt/src/rpath.pri +++ /dev/null @@ -1,18 +0,0 @@ -macx { - !isEmpty(TIGER_COMPAT_MODE) { - QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../PlugIns/ - } else { - QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/PlugIns/ - QMAKE_LFLAGS += -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../ - } -} else:linux-* { - #do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR - # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var - QMAKE_RPATHDIR += \$\$ORIGIN - QMAKE_RPATHDIR += \$\$ORIGIN/.. - QMAKE_RPATHDIR += \$\$ORIGIN/../$$DUSEMT_LIBRARY_BASENAME/duse-mt - DUSEMT_PLUGIN_RPATH = $$join(QMAKE_RPATHDIR, ":") - - QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${DUSEMT_PLUGIN_RPATH}\' - QMAKE_RPATHDIR = -} \ No newline at end of file diff --git a/examples/uml/duse-mt/src/src.pro b/examples/uml/duse-mt/src/src.pro deleted file mode 100644 index f67f6625..00000000 --- a/examples/uml/duse-mt/src/src.pro +++ /dev/null @@ -1,4 +0,0 @@ -TEMPLATE = subdirs -CONFIG += ordered - -SUBDIRS = libs app plugins diff --git a/examples/uml/uml.pro b/examples/uml/uml.pro index bfa3901a..c13420a7 100644 --- a/examples/uml/uml.pro +++ b/examples/uml/uml.pro @@ -1,4 +1,3 @@ TEMPLATE = subdirs SUBDIRS = nested-packages profile-definition xmi-write xmi-read -qtHaveModule(widgets): SUBDIRS += duse-mt -- cgit v1.2.3