diff options
author | ArenBabikian <aren.babikian@mail.mcgill.ca> | 2020-02-03 15:20:02 -0500 |
---|---|---|
committer | ArenBabikian <aren.babikian@mail.mcgill.ca> | 2020-02-03 15:20:02 -0500 |
commit | 4d27f2788d2f728d4ee2be8861df09da62bf135f (patch) | |
tree | fd71433c91ca998d37f0038564e913a724979c80 | |
parent | VAMPIRE: Further Post-submission updates (diff) | |
download | VIATRA-Generator-4d27f2788d2f728d4ee2be8861df09da62bf135f.tar.gz VIATRA-Generator-4d27f2788d2f728d4ee2be8861df09da62bf135f.tar.zst VIATRA-Generator-4d27f2788d2f728d4ee2be8861df09da62bf135f.zip |
VAMPIRE: last commit
114 files changed, 31767 insertions, 258 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ide/.ApplicationConfigurationIdeModule.xtendbin b/Application/hu.bme.mit.inf.dslreasoner.application.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ide/.ApplicationConfigurationIdeModule.xtendbin index 3f997d1e..f37b0e9a 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ide/.ApplicationConfigurationIdeModule.xtendbin +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ide/.ApplicationConfigurationIdeModule.xtendbin | |||
Binary files differ | |||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ide/.ApplicationConfigurationIdeSetup.xtendbin b/Application/hu.bme.mit.inf.dslreasoner.application.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ide/.ApplicationConfigurationIdeSetup.xtendbin index fd411426..209a7b80 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ide/.ApplicationConfigurationIdeSetup.xtendbin +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ide/.ApplicationConfigurationIdeSetup.xtendbin | |||
Binary files differ | |||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/start-application-umontreal.launch b/Application/hu.bme.mit.inf.dslreasoner.application/start-application-umontreal.launch new file mode 100644 index 00000000..abff69ee --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/start-application-umontreal.launch | |||
@@ -0,0 +1,37 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench"> | ||
3 | <booleanAttribute key="append.args" value="true"/> | ||
4 | <booleanAttribute key="askclear" value="true"/> | ||
5 | <booleanAttribute key="automaticAdd" value="true"/> | ||
6 | <booleanAttribute key="automaticValidate" value="false"/> | ||
7 | <stringAttribute key="bad_container_name" value="\hu.bme.mit.inf.dslreasoner.application/application.launc"/> | ||
8 | <stringAttribute key="bootstrap" value=""/> | ||
9 | <stringAttribute key="checked" value="[NONE]"/> | ||
10 | <booleanAttribute key="clearConfig" value="false"/> | ||
11 | <booleanAttribute key="clearws" value="false"/> | ||
12 | <booleanAttribute key="clearwslog" value="false"/> | ||
13 | <stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/start-application-umontreal"/> | ||
14 | <booleanAttribute key="default" value="true"/> | ||
15 | <booleanAttribute key="includeOptional" value="true"/> | ||
16 | <stringAttribute key="location" value="${workspace_loc}/../ViatraSolver-umontreal-AplicationWS"/> | ||
17 | <listAttribute key="org.eclipse.debug.ui.favoriteGroups"> | ||
18 | <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> | ||
19 | <listEntry value="org.eclipse.debug.ui.launchGroup.run"/> | ||
20 | </listAttribute> | ||
21 | <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
22 | <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/> | ||
23 | <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/> | ||
24 | <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx8G"/> | ||
25 | <booleanAttribute key="pde.generated.config" value="false"/> | ||
26 | <stringAttribute key="pde.version" value="3.3"/> | ||
27 | <stringAttribute key="product" value="org.eclipse.platform.ide"/> | ||
28 | <stringAttribute key="selected_target_plugins" value="com.eclipsesource.j2v8.win32_x86_64@default:default,com.google.gson@default:default,com.google.guava*15.0.0.v201403281430@default:default,com.google.guava*21.0.0.v20170206-1425@default:default,com.google.inject.multibindings@default:false,com.google.inject@default:default,com.ibm.icu@default:default,com.jcraft.jsch@default:default,com.sun.el@default:default,com.sun.jna.platform@default:default,com.sun.jna@default:default,guru.nidi.graphviz-java@default:default,javaewah@default:default,javax.annotation@default:default,javax.el@default:default,javax.inject@default:default,javax.servlet.jsp@default:default,javax.servlet@default:default,javax.xml@default:default,lpg.runtime.java@default:default,org.antlr.runtime*3.2.0.v201101311130@default:default,org.antlr.runtime*4.3.0.v201502022030@default:default,org.apache.ant@default:default,org.apache.batik.bridge@default:default,org.apache.batik.css*1.6.0.v201011041432@default:default,org.apache.batik.css*1.8.0.v20170214-1941@default:default,org.apache.batik.dom.svg@default:default,org.apache.batik.dom@default:default,org.apache.batik.ext.awt@default:default,org.apache.batik.parser@default:default,org.apache.batik.pdf@default:default,org.apache.batik.svggen@default:default,org.apache.batik.transcoder@default:default,org.apache.batik.util*1.6.0.v201011041432@default:default,org.apache.batik.util*1.8.0.v20170214-1941@default:default,org.apache.batik.util.gui*1.6.0.v201011041432@default:default,org.apache.batik.util.gui*1.8.0.v20170214-1941@default:default,org.apache.batik.xml@default:default,org.apache.commons.cli@default:default,org.apache.commons.codec@default:default,org.apache.commons.compress@default:default,org.apache.commons.exec@default:default,org.apache.commons.httpclient@default:default,org.apache.commons.io@default:default,org.apache.commons.jxpath@default:default,org.apache.commons.lang3@default:default,org.apache.commons.lang@default:default,org.apache.commons.logging@default:default,org.apache.felix.gogo.command@default:default,org.apache.felix.gogo.runtime@default:default,org.apache.felix.gogo.shell@default:default,org.apache.felix.scr@default:default,org.apache.httpcomponents.httpclient.win@default:default,org.apache.httpcomponents.httpclient@default:default,org.apache.httpcomponents.httpcore@default:default,org.apache.jasper.glassfish@default:default,org.apache.log4j@default:default,org.apache.lucene.analyzers-common@default:default,org.apache.lucene.analyzers-smartcn@default:default,org.apache.lucene.core@default:default,org.apache.lucene.misc@default:default,org.apache.lucene.queryparser@default:default,org.apache.ws.commons.util@default:default,org.apache.xerces@default:default,org.apache.xml.resolver@default:default,org.apache.xml.serializer@default:default,org.apache.xmlrpc@default:default,org.apiguardian@default:default,org.eclipse.acceleo.annotations@default:default,org.eclipse.acceleo.query@default:default,org.eclipse.acceleo.ui.interpreter@default:default,org.eclipse.amalgam.discovery.core@default:default,org.eclipse.amalgam.discovery.modeling@default:default,org.eclipse.amalgam.discovery.ui@default:default,org.eclipse.amalgam.explorer.contextual.core.ui@default:default,org.eclipse.amalgam.explorer.contextual.core@default:default,org.eclipse.amalgam.explorer.contextual.sirius.ui@default:default,org.eclipse.amalgam.explorer.contextual.sirius@default:default,org.eclipse.amalgam.explorer.contextual.ui@default:default,org.eclipse.ant.core@default:default,org.eclipse.ant.launching@default:default,org.eclipse.ant.ui@default:default,org.eclipse.collections*7.1.1@default:default,org.eclipse.collections*9.0.0.v20170920-0536@default:default,org.eclipse.collections.api@default:default,org.eclipse.compare.core@default:default,org.eclipse.compare.win32@default:default,org.eclipse.compare@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.beans@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.externaltools@default:default,org.eclipse.core.filebuffers@default:default,org.eclipse.core.filesystem.win32.x86_64@default:false,org.eclipse.core.filesystem@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.net.win32.x86_64@default:false,org.eclipse.core.net@default:default,org.eclipse.core.resources.win32.x86_64@default:false,org.eclipse.core.resources@default:default,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.cvs@default:default,org.eclipse.debug.core@default:default,org.eclipse.debug.ui@default:default,org.eclipse.draw2d.doc.isv@default:default,org.eclipse.draw2d@default:default,org.eclipse.e4.core.commands@default:default,org.eclipse.e4.core.contexts@default:default,org.eclipse.e4.core.di.annotations@default:default,org.eclipse.e4.core.di.extensions.supplier@default:default,org.eclipse.e4.core.di.extensions@default:default,org.eclipse.e4.core.di@default:default,org.eclipse.e4.core.services@default:default,org.eclipse.e4.emf.xpath@default:default,org.eclipse.e4.tools.compat@default:default,org.eclipse.e4.tools.emf.editor3x@default:default,org.eclipse.e4.tools.emf.ui@default:default,org.eclipse.e4.tools.jdt.templates@default:default,org.eclipse.e4.tools.services@default:default,org.eclipse.e4.tools@default:default,org.eclipse.e4.ui.bindings@default:default,org.eclipse.e4.ui.css.core@default:default,org.eclipse.e4.ui.css.swt.theme@default:default,org.eclipse.e4.ui.css.swt@default:default,org.eclipse.e4.ui.di@default:default,org.eclipse.e4.ui.dialogs@default:default,org.eclipse.e4.ui.model.workbench@default:default,org.eclipse.e4.ui.services@default:default,org.eclipse.e4.ui.widgets@default:default,org.eclipse.e4.ui.workbench.addons.swt@default:default,org.eclipse.e4.ui.workbench.renderers.swt@default:default,org.eclipse.e4.ui.workbench.swt@default:default,org.eclipse.e4.ui.workbench3@default:default,org.eclipse.e4.ui.workbench@default:default,org.eclipse.ecf.filetransfer@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.ecf.provider.filetransfer.httpclient4.ssl@default:false,org.eclipse.ecf.provider.filetransfer.httpclient4@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.eclipse.ecf.provider.filetransfer@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.ecf@default:default,org.eclipse.eef.common.ui@default:default,org.eclipse.eef.common@default:default,org.eclipse.eef.core.ext.widgets.reference@default:default,org.eclipse.eef.core@default:default,org.eclipse.eef.ext.widgets.reference@default:default,org.eclipse.eef.ide.ui.ext.widgets.reference@default:default,org.eclipse.eef.ide.ui.properties@default:default,org.eclipse.eef.ide.ui@default:default,org.eclipse.eef.ide@default:default,org.eclipse.eef.properties.ui.legacy@default:default,org.eclipse.eef.properties.ui@default:default,org.eclipse.eef@default:default,org.eclipse.egit.core@default:default,org.eclipse.egit.doc@default:default,org.eclipse.egit.ui@default:default,org.eclipse.egit@default:default,org.eclipse.emf.ant@default:default,org.eclipse.emf.cdo.admin@default:default,org.eclipse.emf.cdo.common.db@default:default,org.eclipse.emf.cdo.common@default:default,org.eclipse.emf.cdo.compare@default:default,org.eclipse.emf.cdo.doc@default:default,org.eclipse.emf.cdo.edit@default:default,org.eclipse.emf.cdo.examples.installer@default:default,org.eclipse.emf.cdo.explorer.ui@default:default,org.eclipse.emf.cdo.explorer@default:default,org.eclipse.emf.cdo.expressions.edit@default:default,org.eclipse.emf.cdo.expressions.editor@default:default,org.eclipse.emf.cdo.expressions@default:default,org.eclipse.emf.cdo.migrator@default:default,org.eclipse.emf.cdo.net4j@default:default,org.eclipse.emf.cdo.security.edit@default:default,org.eclipse.emf.cdo.security.editor@default:default,org.eclipse.emf.cdo.security.ui@default:default,org.eclipse.emf.cdo.security@default:default,org.eclipse.emf.cdo.server.admin@default:default,org.eclipse.emf.cdo.server.db@default:default,org.eclipse.emf.cdo.server.net4j@default:default,org.eclipse.emf.cdo.server.ocl@default:default,org.eclipse.emf.cdo.server.product@default:default,org.eclipse.emf.cdo.server.security@default:default,org.eclipse.emf.cdo.server@default:default,org.eclipse.emf.cdo.transfer.repository@default:default,org.eclipse.emf.cdo.transfer.ui@default:default,org.eclipse.emf.cdo.transfer.workspace.ui@default:default,org.eclipse.emf.cdo.transfer.workspace@default:default,org.eclipse.emf.cdo.transfer@default:default,org.eclipse.emf.cdo.ui.admin@default:default,org.eclipse.emf.cdo.ui.compare@default:default,org.eclipse.emf.cdo.ui.shared@default:default,org.eclipse.emf.cdo.ui.team@default:default,org.eclipse.emf.cdo.ui@default:default,org.eclipse.emf.cdo.workspace@default:default,org.eclipse.emf.cdo@default:default,org.eclipse.emf.cheatsheets@default:default,org.eclipse.emf.codegen.ecore.ui@default:default,org.eclipse.emf.codegen.ecore@default:default,org.eclipse.emf.codegen.ui@default:default,org.eclipse.emf.codegen@default:default,org.eclipse.emf.common.ui@default:default,org.eclipse.emf.common@default:default,org.eclipse.emf.compare.diagram.edit@default:default,org.eclipse.emf.compare.diagram.ide.ui.sirius@default:default,org.eclipse.emf.compare.diagram.ide.ui@default:default,org.eclipse.emf.compare.diagram.sirius@default:default,org.eclipse.emf.compare.diagram@default:default,org.eclipse.emf.compare.doc@default:default,org.eclipse.emf.compare.edit@default:default,org.eclipse.emf.compare.egit.ui@default:default,org.eclipse.emf.compare.egit@default:default,org.eclipse.emf.compare.ide.ui@default:default,org.eclipse.emf.compare.ide@default:default,org.eclipse.emf.compare.rcp.ui@default:default,org.eclipse.emf.compare.rcp@default:default,org.eclipse.emf.compare@default:default,org.eclipse.emf.converter@default:default,org.eclipse.emf.databinding.edit@default:default,org.eclipse.emf.databinding@default:default,org.eclipse.emf.doc@default:default,org.eclipse.emf.ecore.change.edit@default:default,org.eclipse.emf.ecore.change@default:default,org.eclipse.emf.ecore.edit@default:default,org.eclipse.emf.ecore.editor@default:default,org.eclipse.emf.ecore.xmi@default:default,org.eclipse.emf.ecore@default:default,org.eclipse.emf.ecoretools.design.ui@default:default,org.eclipse.emf.ecoretools.design@default:default,org.eclipse.emf.ecoretools.doc@default:default,org.eclipse.emf.ecoretools.explorer.contextual@default:default,org.eclipse.emf.ecoretools.ui@default:default,org.eclipse.emf.ecoretools@default:default,org.eclipse.emf.ecp.application.e3@default:default,org.eclipse.emf.ecp.application.e4@default:default,org.eclipse.emf.ecp.cdo.core@default:default,org.eclipse.emf.ecp.cdo.ui@default:default,org.eclipse.emf.ecp.common.ui@default:default,org.eclipse.emf.ecp.common@default:default,org.eclipse.emf.ecp.core.emffilter@default:default,org.eclipse.emf.ecp.core@default:default,org.eclipse.emf.ecp.edit.swt@default:default,org.eclipse.emf.ecp.edit@default:default,org.eclipse.emf.ecp.editor.e3@default:default,org.eclipse.emf.ecp.emf2web.json@default:default,org.eclipse.emf.ecp.emf2web.ui.json@default:default,org.eclipse.emf.ecp.emf2web.ui@default:default,org.eclipse.emf.ecp.emf2web@default:default,org.eclipse.emf.ecp.emfstore.core@default:default,org.eclipse.emf.ecp.emfstore.ui.e3@default:default,org.eclipse.emf.ecp.emfstore.ui.e4@default:default,org.eclipse.emf.ecp.emfstore.ui.search@default:default,org.eclipse.emf.ecp.emfstore.ui@default:default,org.eclipse.emf.ecp.explorereditorbridge@default:default,org.eclipse.emf.ecp.ide.editor.view.templatebridge@default:default,org.eclipse.emf.ecp.ide.editor.view@default:default,org.eclipse.emf.ecp.ide.editor.viewmodel@default:default,org.eclipse.emf.ecp.ide.util@default:default,org.eclipse.emf.ecp.ide.view.service@default:default,org.eclipse.emf.ecp.makeithappen.wizards@default:default,org.eclipse.emf.ecp.ui.e3@default:default,org.eclipse.emf.ecp.ui.e4@default:default,org.eclipse.emf.ecp.ui.rcp@default:default,org.eclipse.emf.ecp.ui.view.editor.controls@default:default,org.eclipse.emf.ecp.ui.view.linewrapper@default:default,org.eclipse.emf.ecp.ui.view.swt@default:default,org.eclipse.emf.ecp.ui.view@default:default,org.eclipse.emf.ecp.ui@default:default,org.eclipse.emf.ecp.validation.connector@default:default,org.eclipse.emf.ecp.validation@default:default,org.eclipse.emf.ecp.view.categorization.model.edit@default:default,org.eclipse.emf.ecp.view.categorization.model@default:default,org.eclipse.emf.ecp.view.categorization.swt@default:default,org.eclipse.emf.ecp.view.compoundcontrol.model.edit@default:default,org.eclipse.emf.ecp.view.compoundcontrol.model@default:default,org.eclipse.emf.ecp.view.compoundcontrol.swt@default:default,org.eclipse.emf.ecp.view.compoundcontrol.tooling@default:default,org.eclipse.emf.ecp.view.context.locale@default:default,org.eclipse.emf.ecp.view.context@default:default,org.eclipse.emf.ecp.view.control.multireference@default:default,org.eclipse.emf.ecp.view.core.swt@default:default,org.eclipse.emf.ecp.view.custom.model.edit@default:default,org.eclipse.emf.ecp.view.custom.model@default:default,org.eclipse.emf.ecp.view.custom.ui.swt@default:default,org.eclipse.emf.ecp.view.edapt@default:default,org.eclipse.emf.ecp.view.group.model.edit@default:default,org.eclipse.emf.ecp.view.group.model@default:default,org.eclipse.emf.ecp.view.group.swt.collapsable@default:default,org.eclipse.emf.ecp.view.group.swt.embedded@default:default,org.eclipse.emf.ecp.view.group.ui.swt@default:default,org.eclipse.emf.ecp.view.horizontal.model.edit@default:default,org.eclipse.emf.ecp.view.horizontal.model@default:default,org.eclipse.emf.ecp.view.horizontal.ui.swt@default:default,org.eclipse.emf.ecp.view.indexdmr.model@default:default,org.eclipse.emf.ecp.view.label.model.edit@default:default,org.eclipse.emf.ecp.view.label.model@default:default,org.eclipse.emf.ecp.view.label.ui.swt@default:default,org.eclipse.emf.ecp.view.mappingdmr.model@default:default,org.eclipse.emf.ecp.view.migrator@default:default,org.eclipse.emf.ecp.view.model.common@default:default,org.eclipse.emf.ecp.view.model.edapt@default:default,org.eclipse.emf.ecp.view.model.edit@default:default,org.eclipse.emf.ecp.view.model.editor@default:default,org.eclipse.emf.ecp.view.model.preview.common@default:default,org.eclipse.emf.ecp.view.model.preview.e3@default:default,org.eclipse.emf.ecp.view.model.project.installer@default:default,org.eclipse.emf.ecp.view.model.provider.generator@default:default,org.eclipse.emf.ecp.view.model.provider.xmi@default:default,org.eclipse.emf.ecp.view.model@default:default,org.eclipse.emf.ecp.view.rule.model.edit@default:default,org.eclipse.emf.ecp.view.rule.model@default:default,org.eclipse.emf.ecp.view.rule@default:default,org.eclipse.emf.ecp.view.stack.model.edit@default:default,org.eclipse.emf.ecp.view.stack.model@default:default,org.eclipse.emf.ecp.view.stack.ui.swt@default:default,org.eclipse.emf.ecp.view.stack.viewmodel@default:default,org.eclipse.emf.ecp.view.swt.layout@default:default,org.eclipse.emf.ecp.view.table.columnservice@default:default,org.eclipse.emf.ecp.view.table.edapt@default:default,org.eclipse.emf.ecp.view.table.model.edit@default:default,org.eclipse.emf.ecp.view.table.model@default:default,org.eclipse.emf.ecp.view.table.ui.swt@default:default,org.eclipse.emf.ecp.view.table.validation@default:default,org.eclipse.emf.ecp.view.template.model.edit@default:default,org.eclipse.emf.ecp.view.template.model@default:default,org.eclipse.emf.ecp.view.template.service@default:default,org.eclipse.emf.ecp.view.template.tooling@default:default,org.eclipse.emf.ecp.view.treemasterdetail.model.edit@default:default,org.eclipse.emf.ecp.view.treemasterdetail.model@default:default,org.eclipse.emf.ecp.view.treemasterdetail.ui.swt@default:default,org.eclipse.emf.ecp.view.treemasterdetail.validation@default:default,org.eclipse.emf.ecp.view.unset@default:default,org.eclipse.emf.ecp.view.util.swt@default:default,org.eclipse.emf.ecp.view.validation@default:default,org.eclipse.emf.ecp.view.vertical.model.edit@default:default,org.eclipse.emf.ecp.view.vertical.model@default:default,org.eclipse.emf.ecp.view.vertical.ui.swt@default:default,org.eclipse.emf.ecp.view.viewproxy.model.edit@default:default,org.eclipse.emf.ecp.view.viewproxy.model@default:default,org.eclipse.emf.ecp.view.workspace.migrator@default:default,org.eclipse.emf.ecp.workspace.core@default:default,org.eclipse.emf.ecp.workspace.ui@default:default,org.eclipse.emf.edapt.common@default:default,org.eclipse.emf.edapt.declaration@default:default,org.eclipse.emf.edapt.history@default:default,org.eclipse.emf.edapt.migration@default:default,org.eclipse.emf.edit.ui@default:default,org.eclipse.emf.edit@default:default,org.eclipse.emf.emfstore.client.model.edit@default:default,org.eclipse.emf.emfstore.client.ui.rcp@default:false,org.eclipse.emf.emfstore.client.ui@default:default,org.eclipse.emf.emfstore.client@default:default,org.eclipse.emf.emfstore.common.model.edit@default:default,org.eclipse.emf.emfstore.common.model@default:default,org.eclipse.emf.emfstore.common@default:default,org.eclipse.emf.emfstore.example.installer@default:default,org.eclipse.emf.emfstore.examplemodel.edit@default:default,org.eclipse.emf.emfstore.examplemodel@default:default,org.eclipse.emf.emfstore.migration@default:default,org.eclipse.emf.emfstore.server.model.edit@default:default,org.eclipse.emf.emfstore.server.model@default:default,org.eclipse.emf.emfstore.server@default:default,org.eclipse.emf.example.installer@default:default,org.eclipse.emf.exporter@default:default,org.eclipse.emf.importer.ecore@default:default,org.eclipse.emf.importer.java@default:default,org.eclipse.emf.importer.rose@default:default,org.eclipse.emf.importer@default:default,org.eclipse.emf.mapping.ecore.editor@default:default,org.eclipse.emf.mapping.ecore2ecore.editor@default:default,org.eclipse.emf.mapping.ecore2ecore@default:default,org.eclipse.emf.mapping.ecore2xml.ui@default:default,org.eclipse.emf.mapping.ecore2xml@default:default,org.eclipse.emf.mapping.ecore@default:default,org.eclipse.emf.mapping.ui@default:default,org.eclipse.emf.mapping.xsd2ecore.editor@default:default,org.eclipse.emf.mapping.xsd2ecore@default:default,org.eclipse.emf.mapping@default:default,org.eclipse.emf.mwe.core@default:default,org.eclipse.emf.mwe.utils@default:default,org.eclipse.emf.mwe2.language.ui@default:default,org.eclipse.emf.mwe2.language@default:default,org.eclipse.emf.mwe2.launch.ui@default:default,org.eclipse.emf.mwe2.launch@default:default,org.eclipse.emf.mwe2.lib@default:default,org.eclipse.emf.mwe2.runtime@default:default,org.eclipse.emf.parsley.cdo.common@default:default,org.eclipse.emf.parsley.cdo@default:default,org.eclipse.emf.parsley.common@default:default,org.eclipse.emf.parsley.doc@default:default,org.eclipse.emf.parsley.dsl.additional.builder@default:default,org.eclipse.emf.parsley.dsl.ide@default:default,org.eclipse.emf.parsley.dsl.ui@default:default,org.eclipse.emf.parsley.dsl@default:default,org.eclipse.emf.parsley.editors.common@default:default,org.eclipse.emf.parsley.editors@default:default,org.eclipse.emf.parsley.generator.common@default:default,org.eclipse.emf.parsley.junit4@default:default,org.eclipse.emf.parsley.runtime.common@default:default,org.eclipse.emf.parsley.runtime@default:default,org.eclipse.emf.parsley.ui.examples@default:default,org.eclipse.emf.parsley.views.common@default:default,org.eclipse.emf.parsley.views@default:default,org.eclipse.emf.parsley.wizards@default:default,org.eclipse.emf.parsley@default:default,org.eclipse.emf.query.doc@default:default,org.eclipse.emf.query.examples@default:default,org.eclipse.emf.query.ocl@default:default,org.eclipse.emf.query@default:default,org.eclipse.emf.transaction.doc@default:default,org.eclipse.emf.transaction.examples@default:default,org.eclipse.emf.transaction.ui@default:default,org.eclipse.emf.transaction@default:default,org.eclipse.emf.validation.doc@default:default,org.eclipse.emf.validation.examples@default:default,org.eclipse.emf.validation.ocl@default:default,org.eclipse.emf.validation.ui.ide@default:default,org.eclipse.emf.validation.ui@default:default,org.eclipse.emf.validation@default:default,org.eclipse.emf.workspace.doc@default:default,org.eclipse.emf.workspace.ui@default:default,org.eclipse.emf.workspace@default:default,org.eclipse.emf@default:default,org.eclipse.emfforms.common.validation@default:default,org.eclipse.emfforms.common@default:default,org.eclipse.emfforms.core.bazaar@default:default,org.eclipse.emfforms.core.services.databinding.featurepath@default:default,org.eclipse.emfforms.core.services.databinding.index@default:default,org.eclipse.emfforms.core.services.databinding.mapping@default:default,org.eclipse.emfforms.core.services.domainexpander.default@default:default,org.eclipse.emfforms.core.services.domainexpander.index@default:default,org.eclipse.emfforms.core.services.domainexpander.mapping@default:default,org.eclipse.emfforms.core.services.domainexpander.table@default:default,org.eclipse.emfforms.core.services.editsupport@default:default,org.eclipse.emfforms.core.services.emf@default:default,org.eclipse.emfforms.core.services.emfspecificservice@default:default,org.eclipse.emfforms.core.services.legacy@default:default,org.eclipse.emfforms.core.services.locale.default@default:default,org.eclipse.emfforms.core.services.mappingprovider.default@default:default,org.eclipse.emfforms.core.services.mappingprovider.table@default:default,org.eclipse.emfforms.core.services.structuralchange.default@default:default,org.eclipse.emfforms.core.services.structuralchange.index@default:default,org.eclipse.emfforms.core.services.structuralchange.mapping@default:default,org.eclipse.emfforms.core.services.structuralchange.table@default:default,org.eclipse.emfforms.core.services.structuralchange@default:default,org.eclipse.emfforms.core.services@default:default,org.eclipse.emfforms.editor.ecore@default:default,org.eclipse.emfforms.editor.genmodel@default:default,org.eclipse.emfforms.editor@default:default,org.eclipse.emfforms.localization@default:default,org.eclipse.emfforms.setup.base@default:default,org.eclipse.emfforms.swt.control.multiattribute@default:default,org.eclipse.emfforms.swt.core.di.extension@default:default,org.eclipse.emfforms.swt.core.di@default:default,org.eclipse.emfforms.swt.core.plugin@default:default,org.eclipse.emfforms.swt.core@default:default,org.eclipse.emfforms.swt.table@default:default,org.eclipse.emfforms.swt.treemasterdetail.decorator.validation.default@default:default,org.eclipse.emfforms.swt.treemasterdetail@default:default,org.eclipse.emfforms.view.model.localization@default:default,org.eclipse.epp.logging.aeri.core@default:default,org.eclipse.epp.logging.aeri.ide@default:default,org.eclipse.epp.mpc.core.win32@default:default,org.eclipse.epp.mpc.core@default:default,org.eclipse.epp.mpc.help.ui@default:default,org.eclipse.epp.mpc.ui@default:default,org.eclipse.epp.package.common@default:default,org.eclipse.epp.package.modeling@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.bidi@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.concurrent@default:default,org.eclipse.equinox.console@default:default,org.eclipse.equinox.ds@1:true,org.eclipse.equinox.event@default:default,org.eclipse.equinox.frameworkadmin.equinox@default:default,org.eclipse.equinox.frameworkadmin@default:default,org.eclipse.equinox.http.jetty@default:default,org.eclipse.equinox.http.registry@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.equinox.jsp.jasper.registry@default:default,org.eclipse.equinox.jsp.jasper@default:default,org.eclipse.equinox.launcher.win32.win32.x86_64@default:false,org.eclipse.equinox.launcher@default:default,org.eclipse.equinox.p2.artifact.repository@default:default,org.eclipse.equinox.p2.console@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.p2.director.app@default:default,org.eclipse.equinox.p2.director@default:default,org.eclipse.equinox.p2.directorywatcher@default:default,org.eclipse.equinox.p2.discovery.compatibility@default:default,org.eclipse.equinox.p2.discovery@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.p2.extensionlocation@default:default,org.eclipse.equinox.p2.garbagecollector@default:default,org.eclipse.equinox.p2.jarprocessor@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.p2.operations@default:default,org.eclipse.equinox.p2.publisher.eclipse@default:default,org.eclipse.equinox.p2.publisher@default:default,org.eclipse.equinox.p2.reconciler.dropins@default:default,org.eclipse.equinox.p2.repository.tools@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.p2.touchpoint.eclipse@default:default,org.eclipse.equinox.p2.touchpoint.natives@default:default,org.eclipse.equinox.p2.transport.ecf@default:default,org.eclipse.equinox.p2.ui.discovery@default:default,org.eclipse.equinox.p2.ui.importexport@default:default,org.eclipse.equinox.p2.ui.sdk.scheduler@default:default,org.eclipse.equinox.p2.ui.sdk@default:default,org.eclipse.equinox.p2.ui@default:default,org.eclipse.equinox.p2.updatechecker@default:default,org.eclipse.equinox.p2.updatesite@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security.ui@default:default,org.eclipse.equinox.security.win32.x86_64@default:false,org.eclipse.equinox.security@default:default,org.eclipse.equinox.simpleconfigurator.manipulator@default:default,org.eclipse.equinox.simpleconfigurator@1:true,org.eclipse.equinox.util@default:default,org.eclipse.fx.osgi@default:false,org.eclipse.gef.common@default:default,org.eclipse.gef.doc.isv@default:default,org.eclipse.gef.examples.ui.pde@default:default,org.eclipse.gef.fx.swt@default:default,org.eclipse.gef.fx@default:default,org.eclipse.gef.geometry.convert.fx@default:default,org.eclipse.gef.geometry@default:default,org.eclipse.gef.graph@default:default,org.eclipse.gef.layout@default:default,org.eclipse.gef.mvc.fx@default:default,org.eclipse.gef.zest.fx.jface@default:default,org.eclipse.gef.zest.fx@default:default,org.eclipse.gef@default:default,org.eclipse.gmf.examples.runtime.diagram.geoshapes@default:default,org.eclipse.gmf.examples.runtime.diagram.logic.model.edit@default:default,org.eclipse.gmf.examples.runtime.diagram.logic.model.editor@default:default,org.eclipse.gmf.examples.runtime.diagram.logic.model@default:default,org.eclipse.gmf.examples.runtime.diagram.logic@default:default,org.eclipse.gmf.examples.runtime.ui.pde@default:default,org.eclipse.gmf.examples.runtime@default:default,org.eclipse.gmf.runtime.common.core@default:default,org.eclipse.gmf.runtime.common.ui.action.ide@default:default,org.eclipse.gmf.runtime.common.ui.action@default:default,org.eclipse.gmf.runtime.common.ui.printing.win32@default:false,org.eclipse.gmf.runtime.common.ui.printing@default:default,org.eclipse.gmf.runtime.common.ui.services.action@default:default,org.eclipse.gmf.runtime.common.ui.services.dnd.ide@default:default,org.eclipse.gmf.runtime.common.ui.services.dnd@default:default,org.eclipse.gmf.runtime.common.ui.services.properties@default:default,org.eclipse.gmf.runtime.common.ui.services@default:default,org.eclipse.gmf.runtime.common.ui@default:default,org.eclipse.gmf.runtime.diagram.core@default:default,org.eclipse.gmf.runtime.diagram.ui.actions@default:default,org.eclipse.gmf.runtime.diagram.ui.dnd@default:default,org.eclipse.gmf.runtime.diagram.ui.geoshapes@default:default,org.eclipse.gmf.runtime.diagram.ui.printing.render@default:default,org.eclipse.gmf.runtime.diagram.ui.printing@default:default,org.eclipse.gmf.runtime.diagram.ui.properties@default:default,org.eclipse.gmf.runtime.diagram.ui.providers.ide@default:default,org.eclipse.gmf.runtime.diagram.ui.providers@default:default,org.eclipse.gmf.runtime.diagram.ui.render@default:default,org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide@default:default,org.eclipse.gmf.runtime.diagram.ui.resources.editor@default:default,org.eclipse.gmf.runtime.diagram.ui@default:default,org.eclipse.gmf.runtime.draw2d.ui.render.awt@default:default,org.eclipse.gmf.runtime.draw2d.ui.render@default:default,org.eclipse.gmf.runtime.draw2d.ui@default:default,org.eclipse.gmf.runtime.emf.clipboard.core@default:default,org.eclipse.gmf.runtime.emf.commands.core@default:default,org.eclipse.gmf.runtime.emf.core@default:default,org.eclipse.gmf.runtime.emf.type.core@default:default,org.eclipse.gmf.runtime.emf.type.ui@default:default,org.eclipse.gmf.runtime.emf.ui.properties@default:default,org.eclipse.gmf.runtime.emf.ui@default:default,org.eclipse.gmf.runtime.gef.ui@default:default,org.eclipse.gmf.runtime.notation.edit@default:default,org.eclipse.gmf.runtime.notation.providers@default:default,org.eclipse.gmf.runtime.notation.sdk@default:default,org.eclipse.gmf.runtime.notation@default:default,org.eclipse.gmf.runtime.sdk@default:default,org.eclipse.gmf@default:default,org.eclipse.help.base@default:default,org.eclipse.help.ui@default:default,org.eclipse.help.webapp@default:default,org.eclipse.help@default:default,org.eclipse.jdt.annotation*1.1.150.v20180322-1206@default:default,org.eclipse.jdt.annotation*2.1.150.v20180322-1206@default:default,org.eclipse.jdt.apt.core@default:default,org.eclipse.jdt.apt.pluggable.core@default:default,org.eclipse.jdt.apt.ui@default:default,org.eclipse.jdt.compiler.apt@default:false,org.eclipse.jdt.compiler.tool@default:false,org.eclipse.jdt.core.manipulation@default:default,org.eclipse.jdt.core@default:default,org.eclipse.jdt.debug.ui@default:default,org.eclipse.jdt.debug@default:default,org.eclipse.jdt.doc.isv@default:default,org.eclipse.jdt.doc.user@default:default,org.eclipse.jdt.junit.core@default:default,org.eclipse.jdt.junit.runtime@default:default,org.eclipse.jdt.junit4.runtime@default:default,org.eclipse.jdt.junit5.runtime@default:default,org.eclipse.jdt.junit@default:default,org.eclipse.jdt.launching@default:default,org.eclipse.jdt.ui@default:default,org.eclipse.jdt@default:default,org.eclipse.jetty.continuation@default:default,org.eclipse.jetty.http@default:default,org.eclipse.jetty.io@default:default,org.eclipse.jetty.security@default:default,org.eclipse.jetty.server@default:default,org.eclipse.jetty.servlet@default:default,org.eclipse.jetty.util@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.jface.text@default:default,org.eclipse.jface@default:default,org.eclipse.jgit.archive@default:default,org.eclipse.jgit@default:default,org.eclipse.jsch.core@default:default,org.eclipse.jsch.ui@default:default,org.eclipse.ltk.core.refactoring@default:default,org.eclipse.ltk.ui.refactoring@default:default,org.eclipse.mylyn.bugzilla.core@default:default,org.eclipse.mylyn.bugzilla.ide@default:default,org.eclipse.mylyn.bugzilla.ui@default:default,org.eclipse.mylyn.commons.core@default:default,org.eclipse.mylyn.commons.identity.core@default:default,org.eclipse.mylyn.commons.net@default:default,org.eclipse.mylyn.commons.notifications.core@default:default,org.eclipse.mylyn.commons.notifications.feed@default:default,org.eclipse.mylyn.commons.notifications.ui@default:default,org.eclipse.mylyn.commons.repositories.core@default:default,org.eclipse.mylyn.commons.repositories.ui@default:default,org.eclipse.mylyn.commons.screenshots@default:default,org.eclipse.mylyn.commons.ui@default:default,org.eclipse.mylyn.commons.workbench@default:default,org.eclipse.mylyn.commons.xmlrpc@default:default,org.eclipse.mylyn.context.core@default:default,org.eclipse.mylyn.context.tasks.ui@default:default,org.eclipse.mylyn.context.ui@default:default,org.eclipse.mylyn.debug.ui@default:default,org.eclipse.mylyn.discovery.core@default:default,org.eclipse.mylyn.discovery.ui@default:default,org.eclipse.mylyn.help.ui@default:default,org.eclipse.mylyn.ide.ant@default:default,org.eclipse.mylyn.ide.ui@default:default,org.eclipse.mylyn.java.tasks@default:default,org.eclipse.mylyn.java.ui@default:default,org.eclipse.mylyn.monitor.core@default:default,org.eclipse.mylyn.monitor.ui@default:default,org.eclipse.mylyn.pde.ui@default:default,org.eclipse.mylyn.resources.ui@default:default,org.eclipse.mylyn.tasks.bugs@default:default,org.eclipse.mylyn.tasks.core@default:default,org.eclipse.mylyn.tasks.index.core@default:default,org.eclipse.mylyn.tasks.index.ui@default:default,org.eclipse.mylyn.tasks.search@default:default,org.eclipse.mylyn.tasks.ui@default:default,org.eclipse.mylyn.team.ui@default:default,org.eclipse.mylyn.wikitext.ant@default:default,org.eclipse.mylyn.wikitext.asciidoc.ui@default:default,org.eclipse.mylyn.wikitext.asciidoc@default:default,org.eclipse.mylyn.wikitext.confluence.ui@default:default,org.eclipse.mylyn.wikitext.confluence@default:default,org.eclipse.mylyn.wikitext.context.ui@default:default,org.eclipse.mylyn.wikitext.help.ui@default:default,org.eclipse.mylyn.wikitext.html@default:default,org.eclipse.mylyn.wikitext.markdown.ui@default:default,org.eclipse.mylyn.wikitext.markdown@default:default,org.eclipse.mylyn.wikitext.mediawiki.ui@default:default,org.eclipse.mylyn.wikitext.mediawiki@default:default,org.eclipse.mylyn.wikitext.osgi@default:default,org.eclipse.mylyn.wikitext.tasks.ui@default:default,org.eclipse.mylyn.wikitext.textile.ui@default:default,org.eclipse.mylyn.wikitext.textile@default:default,org.eclipse.mylyn.wikitext.tracwiki.ui@default:default,org.eclipse.mylyn.wikitext.tracwiki@default:default,org.eclipse.mylyn.wikitext.twiki.ui@default:default,org.eclipse.mylyn.wikitext.twiki@default:default,org.eclipse.mylyn.wikitext.ui@default:default,org.eclipse.mylyn.wikitext@default:default,org.eclipse.nebula.widgets.tablecombo@default:default,org.eclipse.net4j.db.h2@default:default,org.eclipse.net4j.db.jdbc@default:default,org.eclipse.net4j.db@default:default,org.eclipse.net4j.debug@default:default,org.eclipse.net4j.examples.installer@default:default,org.eclipse.net4j.http.common@default:default,org.eclipse.net4j.http.server@default:default,org.eclipse.net4j.http@default:default,org.eclipse.net4j.jvm@default:default,org.eclipse.net4j.tcp@default:default,org.eclipse.net4j.ui.shared@default:default,org.eclipse.net4j.ui@default:default,org.eclipse.net4j.util.ui@default:default,org.eclipse.net4j.util@default:default,org.eclipse.net4j@default:default,org.eclipse.ocl.common.ui@default:default,org.eclipse.ocl.common@default:default,org.eclipse.ocl.doc@default:default,org.eclipse.ocl.ecore.edit@default:default,org.eclipse.ocl.ecore@default:default,org.eclipse.ocl.edit@default:default,org.eclipse.ocl.ui@default:default,org.eclipse.ocl.uml.edit@default:default,org.eclipse.ocl.uml.ui@default:default,org.eclipse.ocl.uml@default:default,org.eclipse.ocl@default:default,org.eclipse.oomph.base.edit@default:default,org.eclipse.oomph.base@default:default,org.eclipse.oomph.extractor.lib@default:default,org.eclipse.oomph.jreinfo.ui@default:default,org.eclipse.oomph.jreinfo.win32.x86_64@default:false,org.eclipse.oomph.jreinfo@default:default,org.eclipse.oomph.p2.core@default:default,org.eclipse.oomph.p2.doc@default:default,org.eclipse.oomph.p2.edit@default:default,org.eclipse.oomph.p2.ui@default:default,org.eclipse.oomph.p2@default:default,org.eclipse.oomph.predicates.edit@default:default,org.eclipse.oomph.predicates@default:default,org.eclipse.oomph.preferences@default:default,org.eclipse.oomph.resources.edit@default:default,org.eclipse.oomph.resources@default:default,org.eclipse.oomph.setup.core@default:default,org.eclipse.oomph.setup.doc@default:default,org.eclipse.oomph.setup.edit@default:default,org.eclipse.oomph.setup.editor@default:default,org.eclipse.oomph.setup.p2.edit@default:default,org.eclipse.oomph.setup.p2@default:default,org.eclipse.oomph.setup.sync@default:default,org.eclipse.oomph.setup.ui.questionnaire@default:default,org.eclipse.oomph.setup.ui@default:default,org.eclipse.oomph.setup@default:default,org.eclipse.oomph.ui@default:default,org.eclipse.oomph.util@default:default,org.eclipse.oomph.workingsets.edit@default:default,org.eclipse.oomph.workingsets.editor@default:default,org.eclipse.oomph.workingsets@default:default,org.eclipse.osgi.compatibility.state@default:false,org.eclipse.osgi.services@default:default,org.eclipse.osgi.util@default:default,org.eclipse.osgi@-1:true,org.eclipse.pde.api.tools.annotations@default:default,org.eclipse.pde.api.tools.ui@default:default,org.eclipse.pde.api.tools@default:default,org.eclipse.pde.build@default:default,org.eclipse.pde.core@default:default,org.eclipse.pde.doc.user@default:default,org.eclipse.pde.ds.annotations@default:default,org.eclipse.pde.ds.core@default:default,org.eclipse.pde.ds.lib@default:default,org.eclipse.pde.ds.ui@default:default,org.eclipse.pde.ds1_2.lib@default:default,org.eclipse.pde.genericeditor.extension@default:default,org.eclipse.pde.junit.runtime@default:default,org.eclipse.pde.launching@default:default,org.eclipse.pde.runtime@default:default,org.eclipse.pde.ua.core@default:default,org.eclipse.pde.ua.ui@default:default,org.eclipse.pde.ui.templates@default:default,org.eclipse.pde.ui@default:default,org.eclipse.pde@default:default,org.eclipse.platform.doc.isv@default:default,org.eclipse.platform.doc.user@default:default,org.eclipse.platform@default:default,org.eclipse.rcp@default:default,org.eclipse.sdk@default:default,org.eclipse.search@default:default,org.eclipse.sirius.common.acceleo.aql@default:default,org.eclipse.sirius.common.interpreter@default:default,org.eclipse.sirius.common.ui.ext@default:default,org.eclipse.sirius.common.ui@default:default,org.eclipse.sirius.common@default:default,org.eclipse.sirius.diagram.formatdata@default:default,org.eclipse.sirius.diagram.layoutdata@default:default,org.eclipse.sirius.diagram.sequence.edit@default:default,org.eclipse.sirius.diagram.sequence.ui@default:default,org.eclipse.sirius.diagram.sequence@default:default,org.eclipse.sirius.diagram.ui.ext@default:default,org.eclipse.sirius.diagram.ui@default:default,org.eclipse.sirius.diagram@default:default,org.eclipse.sirius.ecore.extender@default:default,org.eclipse.sirius.editor.properties.ext.widgets.reference@default:default,org.eclipse.sirius.editor.properties@default:default,org.eclipse.sirius.editor@default:default,org.eclipse.sirius.ext.base@default:default,org.eclipse.sirius.ext.draw2d@default:default,org.eclipse.sirius.ext.e3.ui@default:default,org.eclipse.sirius.ext.e3@default:default,org.eclipse.sirius.ext.emf.edit@default:default,org.eclipse.sirius.ext.emf.tx@default:default,org.eclipse.sirius.ext.emf.ui@default:default,org.eclipse.sirius.ext.emf@default:default,org.eclipse.sirius.ext.gef@default:default,org.eclipse.sirius.ext.gmf.notation@default:default,org.eclipse.sirius.ext.gmf.runtime@default:default,org.eclipse.sirius.ext.jface@default:default,org.eclipse.sirius.ext.swt@default:default,org.eclipse.sirius.interpreter@default:default,org.eclipse.sirius.properties.core@default:default,org.eclipse.sirius.properties.defaultrules@default:default,org.eclipse.sirius.properties.edit@default:default,org.eclipse.sirius.properties.ext.widgets.reference.edit@default:default,org.eclipse.sirius.properties.ext.widgets.reference@default:default,org.eclipse.sirius.properties@default:default,org.eclipse.sirius.synchronizer@default:default,org.eclipse.sirius.table.ui.ext@default:default,org.eclipse.sirius.table.ui@default:default,org.eclipse.sirius.table@default:default,org.eclipse.sirius.tree.ui.ext@default:default,org.eclipse.sirius.tree.ui@default:default,org.eclipse.sirius.tree@default:default,org.eclipse.sirius.ui.editor@default:default,org.eclipse.sirius.ui.ext@default:default,org.eclipse.sirius.ui.properties.ext.widgets.reference@default:default,org.eclipse.sirius.ui.properties@default:default,org.eclipse.sirius.ui@default:default,org.eclipse.sirius@default:default,org.eclipse.swt.win32.win32.x86_64@default:false,org.eclipse.swt@default:default,org.eclipse.team.core@default:default,org.eclipse.team.cvs.core@default:default,org.eclipse.team.cvs.ssh2@default:default,org.eclipse.team.cvs.ui@default:default,org.eclipse.team.genericeditor.diff.extension@default:default,org.eclipse.team.ui@default:default,org.eclipse.text@default:default,org.eclipse.tools.layout.spy@default:default,org.eclipse.ui.browser@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.ui.console@default:default,org.eclipse.ui.editors@default:default,org.eclipse.ui.externaltools@default:default,org.eclipse.ui.forms@default:default,org.eclipse.ui.genericeditor@default:default,org.eclipse.ui.ide.application@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ui.intro.quicklinks@default:default,org.eclipse.ui.intro.universal@default:default,org.eclipse.ui.intro@default:default,org.eclipse.ui.monitoring@default:default,org.eclipse.ui.navigator.resources@default:default,org.eclipse.ui.navigator@default:default,org.eclipse.ui.net@default:default,org.eclipse.ui.themes@default:default,org.eclipse.ui.trace@default:default,org.eclipse.ui.views.log@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.eclipse.ui.views@default:default,org.eclipse.ui.win32@default:false,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.ui@default:default,org.eclipse.uml2.ant@default:default,org.eclipse.uml2.codegen.ecore.ui@default:default,org.eclipse.uml2.codegen.ecore@default:default,org.eclipse.uml2.common.edit@default:default,org.eclipse.uml2.common@default:default,org.eclipse.uml2.doc@default:default,org.eclipse.uml2.examples.uml.ui@default:default,org.eclipse.uml2.examples@default:default,org.eclipse.uml2.types@default:default,org.eclipse.uml2.uml.ecore.exporter@default:default,org.eclipse.uml2.uml.ecore.importer@default:default,org.eclipse.uml2.uml.edit@default:default,org.eclipse.uml2.uml.editor@default:default,org.eclipse.uml2.uml.profile.standard@default:default,org.eclipse.uml2.uml.resources@default:default,org.eclipse.uml2.uml.validation@default:default,org.eclipse.uml2.uml@default:default,org.eclipse.uml2@default:default,org.eclipse.update.configurator@3:true,org.eclipse.userstorage.oauth@default:default,org.eclipse.userstorage.ui@default:default,org.eclipse.userstorage@default:default,org.eclipse.viatra.addon.databinding.runtime.validation@default:false,org.eclipse.viatra.addon.databinding.runtime@default:default,org.eclipse.viatra.addon.querybasedfeatures.runtime.validation@default:false,org.eclipse.viatra.addon.querybasedfeatures.runtime@default:default,org.eclipse.viatra.addon.querybasedfeatures.tooling@default:default,org.eclipse.viatra.addon.validation.core@default:default,org.eclipse.viatra.addon.validation.runtime.ui@default:default,org.eclipse.viatra.addon.validation.runtime.validation@default:false,org.eclipse.viatra.addon.validation.runtime@default:default,org.eclipse.viatra.addon.validation.tooling@default:default,org.eclipse.viatra.addon.viewers.runtime.validation@default:false,org.eclipse.viatra.addon.viewers.runtime.zest@default:default,org.eclipse.viatra.addon.viewers.runtime@default:default,org.eclipse.viatra.addon.viewers.tooling.ui.zest@default:default,org.eclipse.viatra.addon.viewers.tooling.ui@default:default,org.eclipse.viatra.documentation.help@default:default,org.eclipse.viatra.integration.zest@default:default,org.eclipse.viatra.query.patternlanguage.emf.ide@default:default,org.eclipse.viatra.query.patternlanguage.emf.ui@default:default,org.eclipse.viatra.query.runtime.base.itc@default:default,org.eclipse.viatra.query.runtime.base@default:default,org.eclipse.viatra.query.runtime.localsearch@default:default,org.eclipse.viatra.query.runtime.matchers@default:default,org.eclipse.viatra.query.runtime.rete.recipes@default:default,org.eclipse.viatra.query.runtime.rete@default:default,org.eclipse.viatra.query.testing.core@default:default,org.eclipse.viatra.query.testing.snapshot@default:default,org.eclipse.viatra.query.testing.ui@default:default,org.eclipse.viatra.query.tooling.core@default:default,org.eclipse.viatra.query.tooling.generator.model.ui@default:default,org.eclipse.viatra.query.tooling.generator.model@default:default,org.eclipse.viatra.query.tooling.migrator@default:default,org.eclipse.viatra.query.tooling.ui.browser@default:default,org.eclipse.viatra.query.tooling.ui@default:default,org.eclipse.viatra.transformation.evm.transactions@default:default,org.eclipse.viatra.transformation.evm@default:default,org.eclipse.viatra.transformation.runtime.emf@default:default,org.eclipse.viatra.transformation.ui@default:default,org.eclipse.viatra.transformation.views@default:default,org.eclipse.xpand@default:default,org.eclipse.xsd.cheatsheets@default:default,org.eclipse.xsd.doc@default:default,org.eclipse.xsd.ecore.converter@default:default,org.eclipse.xsd.ecore.exporter@default:default,org.eclipse.xsd.ecore.importer@default:default,org.eclipse.xsd.edit@default:default,org.eclipse.xsd.editor@default:default,org.eclipse.xsd.example.installer@default:default,org.eclipse.xsd.mapping.editor@default:default,org.eclipse.xsd.mapping@default:default,org.eclipse.xsd@default:default,org.eclipse.xtend.core@default:default,org.eclipse.xtend.doc@default:default,org.eclipse.xtend.examples@default:default,org.eclipse.xtend.ide.common@default:default,org.eclipse.xtend.ide@default:default,org.eclipse.xtend.lib.macro@default:default,org.eclipse.xtend.lib@default:default,org.eclipse.xtend.m2e@default:default,org.eclipse.xtend.standalone@default:default,org.eclipse.xtend.typesystem.emf@default:default,org.eclipse.xtend@default:default,org.eclipse.xtext.activities@default:default,org.eclipse.xtext.builder.standalone@default:default,org.eclipse.xtext.builder@default:default,org.eclipse.xtext.common.types.edit@default:default,org.eclipse.xtext.common.types.shared.jdt38@default:false,org.eclipse.xtext.common.types.shared@default:default,org.eclipse.xtext.common.types.ui@default:default,org.eclipse.xtext.common.types@default:default,org.eclipse.xtext.doc@default:default,org.eclipse.xtext.ecore@default:default,org.eclipse.xtext.generator@default:default,org.eclipse.xtext.ide@default:default,org.eclipse.xtext.idea.generator@default:default,org.eclipse.xtext.java@default:default,org.eclipse.xtext.junit4@default:default,org.eclipse.xtext.logging@default:false,org.eclipse.xtext.m2e@default:default,org.eclipse.xtext.purexbase.ide@default:default,org.eclipse.xtext.purexbase.ui@default:default,org.eclipse.xtext.purexbase@default:default,org.eclipse.xtext.smap@default:default,org.eclipse.xtext.testing@default:default,org.eclipse.xtext.ui.codetemplates.ui@default:default,org.eclipse.xtext.ui.codetemplates@default:default,org.eclipse.xtext.ui.ecore@default:default,org.eclipse.xtext.ui.shared@default:default,org.eclipse.xtext.ui.testing@default:default,org.eclipse.xtext.ui@default:default,org.eclipse.xtext.util@default:default,org.eclipse.xtext.xbase.ide@default:default,org.eclipse.xtext.xbase.junit@default:default,org.eclipse.xtext.xbase.lib@default:default,org.eclipse.xtext.xbase.testing@default:default,org.eclipse.xtext.xbase.ui.testing@default:default,org.eclipse.xtext.xbase.ui@default:default,org.eclipse.xtext.xbase@default:default,org.eclipse.xtext.xtext.generator@default:default,org.eclipse.xtext.xtext.ide@default:default,org.eclipse.xtext.xtext.ui.examples@default:default,org.eclipse.xtext.xtext.ui.graph@default:default,org.eclipse.xtext.xtext.ui@default:default,org.eclipse.xtext.xtext.wizard@default:default,org.eclipse.xtext@default:default,org.h2@default:default,org.hamcrest.core@default:default,org.jsoup@default:default,org.junit.jupiter.api@default:default,org.junit.jupiter.engine@default:default,org.junit.jupiter.migrationsupport@default:default,org.junit.jupiter.params@default:default,org.junit.platform.commons@default:default,org.junit.platform.engine@default:default,org.junit.platform.launcher@default:default,org.junit.platform.runner@default:default,org.junit.platform.suite.api@default:default,org.junit.vintage.engine@default:default,org.junit@default:default,org.objectweb.asm*5.2.0.v20170126-0011@default:default,org.objectweb.asm*6.0.0.v20180116-1719@default:default,org.objectweb.asm.tree@default:default,org.opentest4j@default:default,org.sat4j.core@default:default,org.sat4j.pb@default:default,org.slf4j.api@default:default,org.slf4j.impl.log4j12@default:false,org.tukaani.xz@default:default,org.w3c.css.sac@default:default,org.w3c.dom.events@default:default,org.w3c.dom.smil@default:default,org.w3c.dom.svg@default:default"/> | ||
29 | <stringAttribute key="selected_workspace_plugins" value="com.eclipsesource.j2v8.win32_x86_64@default:default,hu.bme.mit.inf.dlsreasoner.alloy.reasoner@default:default,hu.bme.mit.inf.dslreasoner.alloy.language.ui@default:default,hu.bme.mit.inf.dslreasoner.alloy.language@default:default,hu.bme.mit.inf.dslreasoner.application.ide@default:default,hu.bme.mit.inf.dslreasoner.application.ui@default:default,hu.bme.mit.inf.dslreasoner.application@default:default,hu.bme.mit.inf.dslreasoner.ecore2logic@default:default,hu.bme.mit.inf.dslreasoner.logic.model.validation@default:default,hu.bme.mit.inf.dslreasoner.logic.model@default:default,hu.bme.mit.inf.dslreasoner.logic2ecore@default:default,hu.bme.mit.inf.dslreasoner.smt.language.ui@default:default,hu.bme.mit.inf.dslreasoner.smt.language@default:default,hu.bme.mit.inf.dslreasoner.smt.reasoner@default:default,hu.bme.mit.inf.dslreasoner.viatra2logic@default:default,hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatraquery@default:default,hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage@default:default,hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner@default:default,hu.bme.mit.inf.dslreasoner.visualisation@default:default"/> | ||
30 | <booleanAttribute key="show_selected_only" value="false"/> | ||
31 | <booleanAttribute key="tracing" value="false"/> | ||
32 | <booleanAttribute key="useCustomFeatures" value="false"/> | ||
33 | <booleanAttribute key="useDefaultConfig" value="true"/> | ||
34 | <booleanAttribute key="useDefaultConfigArea" value="true"/> | ||
35 | <booleanAttribute key="useProduct" value="true"/> | ||
36 | <booleanAttribute key="usefeatures" value="false"/> | ||
37 | </launchConfiguration> | ||
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/META-INF/MANIFEST.MF b/Domains/Examples/ModelGenExampleFAM_plugin/META-INF/MANIFEST.MF index f1f5d18c..077e646b 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/META-INF/MANIFEST.MF +++ b/Domains/Examples/ModelGenExampleFAM_plugin/META-INF/MANIFEST.MF | |||
@@ -7,16 +7,16 @@ Bundle-ClassPath: . | |||
7 | Bundle-Vendor: %providerName | 7 | Bundle-Vendor: %providerName |
8 | Bundle-Localization: plugin | 8 | Bundle-Localization: plugin |
9 | Export-Package: functionalarchitecture, | 9 | Export-Package: functionalarchitecture, |
10 | functionalarchitecture.impl, | 10 | functionalarchitecture.impl, |
11 | functionalarchitecture.util, | 11 | functionalarchitecture.util, |
12 | hu.bme.mit.inf.dslreasoner.domains.transima.fam | 12 | hu.bme.mit.inf.dslreasoner.domains.transima.fam |
13 | Require-Bundle: ModelGenExampleFAM_plugin, | 13 | Require-Bundle: ModelGenExampleFAM_plugin, |
14 | org.eclipse.viatra.addon.querybasedfeatures.runtime, | 14 | org.eclipse.viatra.addon.querybasedfeatures.runtime, |
15 | org.eclipse.viatra.query.runtime, | 15 | org.eclipse.viatra.query.runtime, |
16 | org.apache.log4j;bundle-version="1.2.15", | 16 | org.apache.log4j;bundle-version="1.2.15", |
17 | com.google.guava;bundle-version="15.0.0", | 17 | com.google.guava;bundle-version="15.0.0", |
18 | org.eclipse.core.runtime, | 18 | org.eclipse.core.runtime, |
19 | org.eclipse.emf.ecore;visibility:=reexport | 19 | org.eclipse.emf.ecore;visibility:=reexport |
20 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | 20 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 |
21 | Bundle-ActivationPolicy: lazy | 21 | Bundle-ActivationPolicy: lazy |
22 | Automatic-Module-Name: ModelGenExampleFAM_plugin | 22 | Automatic-Module-Name: ModelGenExampleFAM_plugin |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/Function.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/Function.java index 5b484066..0a4e6361 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/Function.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/Function.java | |||
@@ -51,11 +51,23 @@ public interface Function extends FunctionalElement { | |||
51 | * <!-- end-user-doc --> | 51 | * <!-- end-user-doc --> |
52 | * @return the value of the '<em>Type</em>' attribute. | 52 | * @return the value of the '<em>Type</em>' attribute. |
53 | * @see functionalarchitecture.FunctionType | 53 | * @see functionalarchitecture.FunctionType |
54 | * @see #setType(FunctionType) | ||
54 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunction_Type() | 55 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunction_Type() |
55 | * @model required="true" transient="true" changeable="false" volatile="true" derived="true" | 56 | * @model required="true" transient="true" volatile="true" |
56 | * annotation="org.eclipse.viatra.query.querybasedfeature patternFQN='hu.bme.mit.inf.dslreasoner.domains.transima.fam.type'" | 57 | * annotation="org.eclipse.viatra.query.querybasedfeature patternFQN='hu.bme.mit.inf.dslreasoner.domains.transima.fam.type'" |
57 | * @generated | 58 | * @generated |
58 | */ | 59 | */ |
59 | FunctionType getType(); | 60 | FunctionType getType(); |
60 | 61 | ||
62 | /** | ||
63 | * Sets the value of the '{@link functionalarchitecture.Function#getType <em>Type</em>}' attribute. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @param value the new value of the '<em>Type</em>' attribute. | ||
67 | * @see functionalarchitecture.FunctionType | ||
68 | * @see #getType() | ||
69 | * @generated | ||
70 | */ | ||
71 | void setType(FunctionType value); | ||
72 | |||
61 | } // Function | 73 | } // Function |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalData.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalData.java index 39639f99..23b7b9a0 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalData.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalData.java | |||
@@ -15,6 +15,7 @@ import org.eclipse.emf.ecore.EObject; | |||
15 | * <ul> | 15 | * <ul> |
16 | * <li>{@link functionalarchitecture.FunctionalData#getTerminator <em>Terminator</em>}</li> | 16 | * <li>{@link functionalarchitecture.FunctionalData#getTerminator <em>Terminator</em>}</li> |
17 | * <li>{@link functionalarchitecture.FunctionalData#getInterface <em>Interface</em>}</li> | 17 | * <li>{@link functionalarchitecture.FunctionalData#getInterface <em>Interface</em>}</li> |
18 | * <li>{@link functionalarchitecture.FunctionalData#getValue <em>Value</em>}</li> | ||
18 | * </ul> | 19 | * </ul> |
19 | * | 20 | * |
20 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalData() | 21 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalData() |
@@ -60,13 +61,13 @@ public interface FunctionalData extends EObject { | |||
60 | * </p> | 61 | * </p> |
61 | * <!-- end-user-doc --> | 62 | * <!-- end-user-doc --> |
62 | * @return the value of the '<em>Interface</em>' container reference. | 63 | * @return the value of the '<em>Interface</em>' container reference. |
63 | * @see #setInterface(FunctionalInterface) | 64 | * @see #setInterface(functionalarchitecture.FunctionalInterface) |
64 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalData_Interface() | 65 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalData_Interface() |
65 | * @see functionalarchitecture.FunctionalInterface#getData | 66 | * @see functionalarchitecture.FunctionalInterface#getData |
66 | * @model opposite="data" transient="false" | 67 | * @model opposite="data" transient="false" |
67 | * @generated | 68 | * @generated |
68 | */ | 69 | */ |
69 | FunctionalInterface getInterface(); | 70 | functionalarchitecture.FunctionalInterface getInterface(); |
70 | 71 | ||
71 | /** | 72 | /** |
72 | * Sets the value of the '{@link functionalarchitecture.FunctionalData#getInterface <em>Interface</em>}' container reference. | 73 | * Sets the value of the '{@link functionalarchitecture.FunctionalData#getInterface <em>Interface</em>}' container reference. |
@@ -76,6 +77,32 @@ public interface FunctionalData extends EObject { | |||
76 | * @see #getInterface() | 77 | * @see #getInterface() |
77 | * @generated | 78 | * @generated |
78 | */ | 79 | */ |
79 | void setInterface(FunctionalInterface value); | 80 | void setInterface(functionalarchitecture.FunctionalInterface value); |
81 | |||
82 | /** | ||
83 | * Returns the value of the '<em><b>Value</b></em>' attribute. | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <p> | ||
86 | * If the meaning of the '<em>Value</em>' attribute isn't clear, | ||
87 | * there really should be more of a description here... | ||
88 | * </p> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @return the value of the '<em>Value</em>' attribute. | ||
91 | * @see #setValue(int) | ||
92 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalData_Value() | ||
93 | * @model required="true" | ||
94 | * @generated | ||
95 | */ | ||
96 | int getValue(); | ||
97 | |||
98 | /** | ||
99 | * Sets the value of the '{@link functionalarchitecture.FunctionalData#getValue <em>Value</em>}' attribute. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @param value the new value of the '<em>Value</em>' attribute. | ||
103 | * @see #getValue() | ||
104 | * @generated | ||
105 | */ | ||
106 | void setValue(int value); | ||
80 | 107 | ||
81 | } // FunctionalData | 108 | } // FunctionalData |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalElement.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalElement.java index f5a2ff19..1fb9b9b8 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalElement.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalElement.java | |||
@@ -33,13 +33,13 @@ public interface FunctionalElement extends EObject { | |||
33 | * </p> | 33 | * </p> |
34 | * <!-- end-user-doc --> | 34 | * <!-- end-user-doc --> |
35 | * @return the value of the '<em>Interface</em>' containment reference. | 35 | * @return the value of the '<em>Interface</em>' containment reference. |
36 | * @see #setInterface(FunctionalInterface) | 36 | * @see #setInterface(functionalarchitecture.FunctionalInterface) |
37 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalElement_Interface() | 37 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalElement_Interface() |
38 | * @see functionalarchitecture.FunctionalInterface#getElement | 38 | * @see functionalarchitecture.FunctionalInterface#getElement |
39 | * @model opposite="element" containment="true" | 39 | * @model opposite="element" containment="true" |
40 | * @generated | 40 | * @generated |
41 | */ | 41 | */ |
42 | FunctionalInterface getInterface(); | 42 | functionalarchitecture.FunctionalInterface getInterface(); |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * Sets the value of the '{@link functionalarchitecture.FunctionalElement#getInterface <em>Interface</em>}' containment reference. | 45 | * Sets the value of the '{@link functionalarchitecture.FunctionalElement#getInterface <em>Interface</em>}' containment reference. |
@@ -49,7 +49,7 @@ public interface FunctionalElement extends EObject { | |||
49 | * @see #getInterface() | 49 | * @see #getInterface() |
50 | * @generated | 50 | * @generated |
51 | */ | 51 | */ |
52 | void setInterface(FunctionalInterface value); | 52 | void setInterface(functionalarchitecture.FunctionalInterface value); |
53 | 53 | ||
54 | /** | 54 | /** |
55 | * Returns the value of the '<em><b>Model</b></em>' reference. | 55 | * Returns the value of the '<em><b>Model</b></em>' reference. |
@@ -62,7 +62,7 @@ public interface FunctionalElement extends EObject { | |||
62 | * @return the value of the '<em>Model</em>' reference. | 62 | * @return the value of the '<em>Model</em>' reference. |
63 | * @see #setModel(FunctionalArchitectureModel) | 63 | * @see #setModel(FunctionalArchitectureModel) |
64 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalElement_Model() | 64 | * @see functionalarchitecture.FunctionalarchitecturePackage#getFunctionalElement_Model() |
65 | * @model required="true" transient="true" volatile="true" derived="true" | 65 | * @model required="true" transient="true" volatile="true" |
66 | * annotation="org.eclipse.viatra.query.querybasedfeature patternFQN='hu.bme.mit.inf.dslreasoner.domains.transima.fam.model'" | 66 | * annotation="org.eclipse.viatra.query.querybasedfeature patternFQN='hu.bme.mit.inf.dslreasoner.domains.transima.fam.model'" |
67 | * @generated | 67 | * @generated |
68 | */ | 68 | */ |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalarchitecturePackage.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalarchitecturePackage.java index ac0d910e..dee2cc59 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalarchitecturePackage.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/FunctionalarchitecturePackage.java | |||
@@ -381,13 +381,22 @@ public interface FunctionalarchitecturePackage extends EPackage { | |||
381 | int FUNCTIONAL_DATA__INTERFACE = 1; | 381 | int FUNCTIONAL_DATA__INTERFACE = 1; |
382 | 382 | ||
383 | /** | 383 | /** |
384 | * The feature id for the '<em><b>Value</b></em>' attribute. | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | * @ordered | ||
389 | */ | ||
390 | int FUNCTIONAL_DATA__VALUE = 2; | ||
391 | |||
392 | /** | ||
384 | * The number of structural features of the '<em>Functional Data</em>' class. | 393 | * The number of structural features of the '<em>Functional Data</em>' class. |
385 | * <!-- begin-user-doc --> | 394 | * <!-- begin-user-doc --> |
386 | * <!-- end-user-doc --> | 395 | * <!-- end-user-doc --> |
387 | * @generated | 396 | * @generated |
388 | * @ordered | 397 | * @ordered |
389 | */ | 398 | */ |
390 | int FUNCTIONAL_DATA_FEATURE_COUNT = 2; | 399 | int FUNCTIONAL_DATA_FEATURE_COUNT = 3; |
391 | 400 | ||
392 | /** | 401 | /** |
393 | * The number of operations of the '<em>Functional Data</em>' class. | 402 | * The number of operations of the '<em>Functional Data</em>' class. |
@@ -427,6 +436,15 @@ public interface FunctionalarchitecturePackage extends EPackage { | |||
427 | int FUNCTIONAL_INPUT__INTERFACE = FUNCTIONAL_DATA__INTERFACE; | 436 | int FUNCTIONAL_INPUT__INTERFACE = FUNCTIONAL_DATA__INTERFACE; |
428 | 437 | ||
429 | /** | 438 | /** |
439 | * The feature id for the '<em><b>Value</b></em>' attribute. | ||
440 | * <!-- begin-user-doc --> | ||
441 | * <!-- end-user-doc --> | ||
442 | * @generated | ||
443 | * @ordered | ||
444 | */ | ||
445 | int FUNCTIONAL_INPUT__VALUE = FUNCTIONAL_DATA__VALUE; | ||
446 | |||
447 | /** | ||
430 | * The feature id for the '<em><b>Incoming Links</b></em>' reference list. | 448 | * The feature id for the '<em><b>Incoming Links</b></em>' reference list. |
431 | * <!-- begin-user-doc --> | 449 | * <!-- begin-user-doc --> |
432 | * <!-- end-user-doc --> | 450 | * <!-- end-user-doc --> |
@@ -482,6 +500,15 @@ public interface FunctionalarchitecturePackage extends EPackage { | |||
482 | int FUNCTIONAL_OUTPUT__INTERFACE = FUNCTIONAL_DATA__INTERFACE; | 500 | int FUNCTIONAL_OUTPUT__INTERFACE = FUNCTIONAL_DATA__INTERFACE; |
483 | 501 | ||
484 | /** | 502 | /** |
503 | * The feature id for the '<em><b>Value</b></em>' attribute. | ||
504 | * <!-- begin-user-doc --> | ||
505 | * <!-- end-user-doc --> | ||
506 | * @generated | ||
507 | * @ordered | ||
508 | */ | ||
509 | int FUNCTIONAL_OUTPUT__VALUE = FUNCTIONAL_DATA__VALUE; | ||
510 | |||
511 | /** | ||
485 | * The feature id for the '<em><b>Outgoing Links</b></em>' containment reference list. | 512 | * The feature id for the '<em><b>Outgoing Links</b></em>' containment reference list. |
486 | * <!-- begin-user-doc --> | 513 | * <!-- begin-user-doc --> |
487 | * <!-- end-user-doc --> | 514 | * <!-- end-user-doc --> |
@@ -775,6 +802,17 @@ public interface FunctionalarchitecturePackage extends EPackage { | |||
775 | EReference getFunctionalData_Interface(); | 802 | EReference getFunctionalData_Interface(); |
776 | 803 | ||
777 | /** | 804 | /** |
805 | * Returns the meta object for the attribute '{@link functionalarchitecture.FunctionalData#getValue <em>Value</em>}'. | ||
806 | * <!-- begin-user-doc --> | ||
807 | * <!-- end-user-doc --> | ||
808 | * @return the meta object for the attribute '<em>Value</em>'. | ||
809 | * @see functionalarchitecture.FunctionalData#getValue() | ||
810 | * @see #getFunctionalData() | ||
811 | * @generated | ||
812 | */ | ||
813 | EAttribute getFunctionalData_Value(); | ||
814 | |||
815 | /** | ||
778 | * Returns the meta object for enum '{@link functionalarchitecture.FunctionType <em>Function Type</em>}'. | 816 | * Returns the meta object for enum '{@link functionalarchitecture.FunctionType <em>Function Type</em>}'. |
779 | * <!-- begin-user-doc --> | 817 | * <!-- begin-user-doc --> |
780 | * <!-- end-user-doc --> | 818 | * <!-- end-user-doc --> |
@@ -1018,6 +1056,14 @@ public interface FunctionalarchitecturePackage extends EPackage { | |||
1018 | EReference FUNCTIONAL_DATA__INTERFACE = eINSTANCE.getFunctionalData_Interface(); | 1056 | EReference FUNCTIONAL_DATA__INTERFACE = eINSTANCE.getFunctionalData_Interface(); |
1019 | 1057 | ||
1020 | /** | 1058 | /** |
1059 | * The meta object literal for the '<em><b>Value</b></em>' attribute feature. | ||
1060 | * <!-- begin-user-doc --> | ||
1061 | * <!-- end-user-doc --> | ||
1062 | * @generated | ||
1063 | */ | ||
1064 | EAttribute FUNCTIONAL_DATA__VALUE = eINSTANCE.getFunctionalData_Value(); | ||
1065 | |||
1066 | /** | ||
1021 | * The meta object literal for the '{@link functionalarchitecture.FunctionType <em>Function Type</em>}' enum. | 1067 | * The meta object literal for the '{@link functionalarchitecture.FunctionType <em>Function Type</em>}' enum. |
1022 | * <!-- begin-user-doc --> | 1068 | * <!-- begin-user-doc --> |
1023 | * <!-- end-user-doc --> | 1069 | * <!-- end-user-doc --> |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java index 46736c8c..2262094e 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java | |||
@@ -100,6 +100,15 @@ public class FunctionImpl extends FunctionalElementImpl implements Function { | |||
100 | * <!-- end-user-doc --> | 100 | * <!-- end-user-doc --> |
101 | * @generated | 101 | * @generated |
102 | */ | 102 | */ |
103 | public void setType(FunctionType newType) { | ||
104 | TYPE__ESETTING_DELEGATE.dynamicSet(this, null, 0, newType); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
103 | @SuppressWarnings("unchecked") | 112 | @SuppressWarnings("unchecked") |
104 | @Override | 113 | @Override |
105 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 114 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
@@ -153,6 +162,9 @@ public class FunctionImpl extends FunctionalElementImpl implements Function { | |||
153 | getSubElements().clear(); | 162 | getSubElements().clear(); |
154 | getSubElements().addAll((Collection<? extends FunctionalElement>)newValue); | 163 | getSubElements().addAll((Collection<? extends FunctionalElement>)newValue); |
155 | return; | 164 | return; |
165 | case FunctionalarchitecturePackage.FUNCTION__TYPE: | ||
166 | setType((FunctionType)newValue); | ||
167 | return; | ||
156 | } | 168 | } |
157 | super.eSet(featureID, newValue); | 169 | super.eSet(featureID, newValue); |
158 | } | 170 | } |
@@ -168,6 +180,9 @@ public class FunctionImpl extends FunctionalElementImpl implements Function { | |||
168 | case FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS: | 180 | case FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS: |
169 | getSubElements().clear(); | 181 | getSubElements().clear(); |
170 | return; | 182 | return; |
183 | case FunctionalarchitecturePackage.FUNCTION__TYPE: | ||
184 | TYPE__ESETTING_DELEGATE.dynamicUnset(this, null, 0); | ||
185 | return; | ||
171 | } | 186 | } |
172 | super.eUnset(featureID); | 187 | super.eUnset(featureID); |
173 | } | 188 | } |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java index 10937e8d..ecab54af 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java | |||
@@ -4,7 +4,6 @@ package functionalarchitecture.impl; | |||
4 | 4 | ||
5 | import functionalarchitecture.FAMTerminator; | 5 | import functionalarchitecture.FAMTerminator; |
6 | import functionalarchitecture.FunctionalData; | 6 | import functionalarchitecture.FunctionalData; |
7 | import functionalarchitecture.FunctionalInterface; | ||
8 | import functionalarchitecture.FunctionalarchitecturePackage; | 7 | import functionalarchitecture.FunctionalarchitecturePackage; |
9 | 8 | ||
10 | import org.eclipse.emf.common.notify.Notification; | 9 | import org.eclipse.emf.common.notify.Notification; |
@@ -28,6 +27,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil; | |||
28 | * <ul> | 27 | * <ul> |
29 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getTerminator <em>Terminator</em>}</li> | 28 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getTerminator <em>Terminator</em>}</li> |
30 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getInterface <em>Interface</em>}</li> | 29 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getInterface <em>Interface</em>}</li> |
30 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getValue <em>Value</em>}</li> | ||
31 | * </ul> | 31 | * </ul> |
32 | * | 32 | * |
33 | * @generated | 33 | * @generated |
@@ -44,6 +44,25 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
44 | protected FAMTerminator terminator; | 44 | protected FAMTerminator terminator; |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getValue() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final int VALUE_EDEFAULT = 0; | ||
55 | /** | ||
56 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getValue() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected int value = VALUE_EDEFAULT; | ||
64 | |||
65 | /** | ||
47 | * <!-- begin-user-doc --> | 66 | * <!-- begin-user-doc --> |
48 | * <!-- end-user-doc --> | 67 | * <!-- end-user-doc --> |
49 | * @generated | 68 | * @generated |
@@ -110,9 +129,9 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
110 | * <!-- end-user-doc --> | 129 | * <!-- end-user-doc --> |
111 | * @generated | 130 | * @generated |
112 | */ | 131 | */ |
113 | public FunctionalInterface getInterface() { | 132 | public functionalarchitecture.FunctionalInterface getInterface() { |
114 | if (eContainerFeatureID() != FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE) return null; | 133 | if (eContainerFeatureID() != FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE) return null; |
115 | return (FunctionalInterface)eInternalContainer(); | 134 | return (functionalarchitecture.FunctionalInterface)eInternalContainer(); |
116 | } | 135 | } |
117 | 136 | ||
118 | /** | 137 | /** |
@@ -120,7 +139,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
120 | * <!-- end-user-doc --> | 139 | * <!-- end-user-doc --> |
121 | * @generated | 140 | * @generated |
122 | */ | 141 | */ |
123 | public NotificationChain basicSetInterface(FunctionalInterface newInterface, NotificationChain msgs) { | 142 | public NotificationChain basicSetInterface(functionalarchitecture.FunctionalInterface newInterface, NotificationChain msgs) { |
124 | msgs = eBasicSetContainer((InternalEObject)newInterface, FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE, msgs); | 143 | msgs = eBasicSetContainer((InternalEObject)newInterface, FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE, msgs); |
125 | return msgs; | 144 | return msgs; |
126 | } | 145 | } |
@@ -130,7 +149,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
130 | * <!-- end-user-doc --> | 149 | * <!-- end-user-doc --> |
131 | * @generated | 150 | * @generated |
132 | */ | 151 | */ |
133 | public void setInterface(FunctionalInterface newInterface) { | 152 | public void setInterface(functionalarchitecture.FunctionalInterface newInterface) { |
134 | if (newInterface != eInternalContainer() || (eContainerFeatureID() != FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE && newInterface != null)) { | 153 | if (newInterface != eInternalContainer() || (eContainerFeatureID() != FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE && newInterface != null)) { |
135 | if (EcoreUtil.isAncestor(this, newInterface)) | 154 | if (EcoreUtil.isAncestor(this, newInterface)) |
136 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | 155 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); |
@@ -138,7 +157,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
138 | if (eInternalContainer() != null) | 157 | if (eInternalContainer() != null) |
139 | msgs = eBasicRemoveFromContainer(msgs); | 158 | msgs = eBasicRemoveFromContainer(msgs); |
140 | if (newInterface != null) | 159 | if (newInterface != null) |
141 | msgs = ((InternalEObject)newInterface).eInverseAdd(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__DATA, FunctionalInterface.class, msgs); | 160 | msgs = ((InternalEObject)newInterface).eInverseAdd(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__DATA, functionalarchitecture.FunctionalInterface.class, msgs); |
142 | msgs = basicSetInterface(newInterface, msgs); | 161 | msgs = basicSetInterface(newInterface, msgs); |
143 | if (msgs != null) msgs.dispatch(); | 162 | if (msgs != null) msgs.dispatch(); |
144 | } | 163 | } |
@@ -151,6 +170,27 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
151 | * <!-- end-user-doc --> | 170 | * <!-- end-user-doc --> |
152 | * @generated | 171 | * @generated |
153 | */ | 172 | */ |
173 | public int getValue() { | ||
174 | return value; | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | public void setValue(int newValue) { | ||
183 | int oldValue = value; | ||
184 | value = newValue; | ||
185 | if (eNotificationRequired()) | ||
186 | eNotify(new ENotificationImpl(this, Notification.SET, FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE, oldValue, value)); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
154 | @Override | 194 | @Override |
155 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 195 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
156 | switch (featureID) { | 196 | switch (featureID) { |
@@ -161,7 +201,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
161 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 201 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
162 | if (eInternalContainer() != null) | 202 | if (eInternalContainer() != null) |
163 | msgs = eBasicRemoveFromContainer(msgs); | 203 | msgs = eBasicRemoveFromContainer(msgs); |
164 | return basicSetInterface((FunctionalInterface)otherEnd, msgs); | 204 | return basicSetInterface((functionalarchitecture.FunctionalInterface)otherEnd, msgs); |
165 | } | 205 | } |
166 | return super.eInverseAdd(otherEnd, featureID, msgs); | 206 | return super.eInverseAdd(otherEnd, featureID, msgs); |
167 | } | 207 | } |
@@ -191,7 +231,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
191 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | 231 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { |
192 | switch (eContainerFeatureID()) { | 232 | switch (eContainerFeatureID()) { |
193 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 233 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
194 | return eInternalContainer().eInverseRemove(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__DATA, FunctionalInterface.class, msgs); | 234 | return eInternalContainer().eInverseRemove(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__DATA, functionalarchitecture.FunctionalInterface.class, msgs); |
195 | } | 235 | } |
196 | return super.eBasicRemoveFromContainerFeature(msgs); | 236 | return super.eBasicRemoveFromContainerFeature(msgs); |
197 | } | 237 | } |
@@ -208,6 +248,8 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
208 | return getTerminator(); | 248 | return getTerminator(); |
209 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 249 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
210 | return getInterface(); | 250 | return getInterface(); |
251 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE: | ||
252 | return getValue(); | ||
211 | } | 253 | } |
212 | return super.eGet(featureID, resolve, coreType); | 254 | return super.eGet(featureID, resolve, coreType); |
213 | } | 255 | } |
@@ -224,7 +266,10 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
224 | setTerminator((FAMTerminator)newValue); | 266 | setTerminator((FAMTerminator)newValue); |
225 | return; | 267 | return; |
226 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 268 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
227 | setInterface((FunctionalInterface)newValue); | 269 | setInterface((functionalarchitecture.FunctionalInterface)newValue); |
270 | return; | ||
271 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE: | ||
272 | setValue((Integer)newValue); | ||
228 | return; | 273 | return; |
229 | } | 274 | } |
230 | super.eSet(featureID, newValue); | 275 | super.eSet(featureID, newValue); |
@@ -242,7 +287,10 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
242 | setTerminator((FAMTerminator)null); | 287 | setTerminator((FAMTerminator)null); |
243 | return; | 288 | return; |
244 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 289 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
245 | setInterface((FunctionalInterface)null); | 290 | setInterface((functionalarchitecture.FunctionalInterface)null); |
291 | return; | ||
292 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE: | ||
293 | setValue(VALUE_EDEFAULT); | ||
246 | return; | 294 | return; |
247 | } | 295 | } |
248 | super.eUnset(featureID); | 296 | super.eUnset(featureID); |
@@ -260,8 +308,26 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
260 | return terminator != null; | 308 | return terminator != null; |
261 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 309 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
262 | return getInterface() != null; | 310 | return getInterface() != null; |
311 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE: | ||
312 | return value != VALUE_EDEFAULT; | ||
263 | } | 313 | } |
264 | return super.eIsSet(featureID); | 314 | return super.eIsSet(featureID); |
265 | } | 315 | } |
266 | 316 | ||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @Override | ||
323 | public String toString() { | ||
324 | if (eIsProxy()) return super.toString(); | ||
325 | |||
326 | StringBuilder result = new StringBuilder(super.toString()); | ||
327 | result.append(" (value: "); | ||
328 | result.append(value); | ||
329 | result.append(')'); | ||
330 | return result.toString(); | ||
331 | } | ||
332 | |||
267 | } //FunctionalDataImpl | 333 | } //FunctionalDataImpl |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalElementImpl.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalElementImpl.java index 809e9ed5..090ccd32 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalElementImpl.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalElementImpl.java | |||
@@ -5,7 +5,6 @@ package functionalarchitecture.impl; | |||
5 | import functionalarchitecture.Function; | 5 | import functionalarchitecture.Function; |
6 | import functionalarchitecture.FunctionalArchitectureModel; | 6 | import functionalarchitecture.FunctionalArchitectureModel; |
7 | import functionalarchitecture.FunctionalElement; | 7 | import functionalarchitecture.FunctionalElement; |
8 | import functionalarchitecture.FunctionalInterface; | ||
9 | import functionalarchitecture.FunctionalarchitecturePackage; | 8 | import functionalarchitecture.FunctionalarchitecturePackage; |
10 | 9 | ||
11 | import org.eclipse.emf.common.notify.Notification; | 10 | import org.eclipse.emf.common.notify.Notification; |
@@ -44,7 +43,7 @@ public abstract class FunctionalElementImpl extends MinimalEObjectImpl.Container | |||
44 | * @generated | 43 | * @generated |
45 | * @ordered | 44 | * @ordered |
46 | */ | 45 | */ |
47 | protected FunctionalInterface interface_; | 46 | protected functionalarchitecture.FunctionalInterface interface_; |
48 | 47 | ||
49 | /** | 48 | /** |
50 | * The cached setting delegate for the '{@link #getModel() <em>Model</em>}' reference. | 49 | * The cached setting delegate for the '{@link #getModel() <em>Model</em>}' reference. |
@@ -80,7 +79,7 @@ public abstract class FunctionalElementImpl extends MinimalEObjectImpl.Container | |||
80 | * <!-- end-user-doc --> | 79 | * <!-- end-user-doc --> |
81 | * @generated | 80 | * @generated |
82 | */ | 81 | */ |
83 | public FunctionalInterface getInterface() { | 82 | public functionalarchitecture.FunctionalInterface getInterface() { |
84 | return interface_; | 83 | return interface_; |
85 | } | 84 | } |
86 | 85 | ||
@@ -89,8 +88,8 @@ public abstract class FunctionalElementImpl extends MinimalEObjectImpl.Container | |||
89 | * <!-- end-user-doc --> | 88 | * <!-- end-user-doc --> |
90 | * @generated | 89 | * @generated |
91 | */ | 90 | */ |
92 | public NotificationChain basicSetInterface(FunctionalInterface newInterface, NotificationChain msgs) { | 91 | public NotificationChain basicSetInterface(functionalarchitecture.FunctionalInterface newInterface, NotificationChain msgs) { |
93 | FunctionalInterface oldInterface = interface_; | 92 | functionalarchitecture.FunctionalInterface oldInterface = interface_; |
94 | interface_ = newInterface; | 93 | interface_ = newInterface; |
95 | if (eNotificationRequired()) { | 94 | if (eNotificationRequired()) { |
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE, oldInterface, newInterface); | 95 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE, oldInterface, newInterface); |
@@ -104,13 +103,13 @@ public abstract class FunctionalElementImpl extends MinimalEObjectImpl.Container | |||
104 | * <!-- end-user-doc --> | 103 | * <!-- end-user-doc --> |
105 | * @generated | 104 | * @generated |
106 | */ | 105 | */ |
107 | public void setInterface(FunctionalInterface newInterface) { | 106 | public void setInterface(functionalarchitecture.FunctionalInterface newInterface) { |
108 | if (newInterface != interface_) { | 107 | if (newInterface != interface_) { |
109 | NotificationChain msgs = null; | 108 | NotificationChain msgs = null; |
110 | if (interface_ != null) | 109 | if (interface_ != null) |
111 | msgs = ((InternalEObject)interface_).eInverseRemove(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__ELEMENT, FunctionalInterface.class, msgs); | 110 | msgs = ((InternalEObject)interface_).eInverseRemove(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__ELEMENT, functionalarchitecture.FunctionalInterface.class, msgs); |
112 | if (newInterface != null) | 111 | if (newInterface != null) |
113 | msgs = ((InternalEObject)newInterface).eInverseAdd(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__ELEMENT, FunctionalInterface.class, msgs); | 112 | msgs = ((InternalEObject)newInterface).eInverseAdd(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__ELEMENT, functionalarchitecture.FunctionalInterface.class, msgs); |
114 | msgs = basicSetInterface(newInterface, msgs); | 113 | msgs = basicSetInterface(newInterface, msgs); |
115 | if (msgs != null) msgs.dispatch(); | 114 | if (msgs != null) msgs.dispatch(); |
116 | } | 115 | } |
@@ -197,7 +196,7 @@ public abstract class FunctionalElementImpl extends MinimalEObjectImpl.Container | |||
197 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE: | 196 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE: |
198 | if (interface_ != null) | 197 | if (interface_ != null) |
199 | msgs = ((InternalEObject)interface_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE, null, msgs); | 198 | msgs = ((InternalEObject)interface_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE, null, msgs); |
200 | return basicSetInterface((FunctionalInterface)otherEnd, msgs); | 199 | return basicSetInterface((functionalarchitecture.FunctionalInterface)otherEnd, msgs); |
201 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__PARENT: | 200 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__PARENT: |
202 | if (eInternalContainer() != null) | 201 | if (eInternalContainer() != null) |
203 | msgs = eBasicRemoveFromContainer(msgs); | 202 | msgs = eBasicRemoveFromContainer(msgs); |
@@ -264,7 +263,7 @@ public abstract class FunctionalElementImpl extends MinimalEObjectImpl.Container | |||
264 | public void eSet(int featureID, Object newValue) { | 263 | public void eSet(int featureID, Object newValue) { |
265 | switch (featureID) { | 264 | switch (featureID) { |
266 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE: | 265 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE: |
267 | setInterface((FunctionalInterface)newValue); | 266 | setInterface((functionalarchitecture.FunctionalInterface)newValue); |
268 | return; | 267 | return; |
269 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__MODEL: | 268 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__MODEL: |
270 | setModel((FunctionalArchitectureModel)newValue); | 269 | setModel((FunctionalArchitectureModel)newValue); |
@@ -285,7 +284,7 @@ public abstract class FunctionalElementImpl extends MinimalEObjectImpl.Container | |||
285 | public void eUnset(int featureID) { | 284 | public void eUnset(int featureID) { |
286 | switch (featureID) { | 285 | switch (featureID) { |
287 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE: | 286 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__INTERFACE: |
288 | setInterface((FunctionalInterface)null); | 287 | setInterface((functionalarchitecture.FunctionalInterface)null); |
289 | return; | 288 | return; |
290 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__MODEL: | 289 | case FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__MODEL: |
291 | setModel((FunctionalArchitectureModel)null); | 290 | setModel((FunctionalArchitectureModel)null); |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalInterfaceImpl.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalInterfaceImpl.java index 20151886..be8f8700 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalInterfaceImpl.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalInterfaceImpl.java | |||
@@ -4,7 +4,6 @@ package functionalarchitecture.impl; | |||
4 | 4 | ||
5 | import functionalarchitecture.FunctionalData; | 5 | import functionalarchitecture.FunctionalData; |
6 | import functionalarchitecture.FunctionalElement; | 6 | import functionalarchitecture.FunctionalElement; |
7 | import functionalarchitecture.FunctionalInterface; | ||
8 | import functionalarchitecture.FunctionalarchitecturePackage; | 7 | import functionalarchitecture.FunctionalarchitecturePackage; |
9 | 8 | ||
10 | import java.util.Collection; | 9 | import java.util.Collection; |
@@ -38,7 +37,7 @@ import org.eclipse.emf.ecore.util.InternalEList; | |||
38 | * | 37 | * |
39 | * @generated | 38 | * @generated |
40 | */ | 39 | */ |
41 | public class FunctionalInterfaceImpl extends MinimalEObjectImpl.Container implements FunctionalInterface { | 40 | public class FunctionalInterfaceImpl extends MinimalEObjectImpl.Container implements functionalarchitecture.FunctionalInterface { |
42 | /** | 41 | /** |
43 | * The cached value of the '{@link #getData() <em>Data</em>}' containment reference list. | 42 | * The cached value of the '{@link #getData() <em>Data</em>}' containment reference list. |
44 | * <!-- begin-user-doc --> | 43 | * <!-- begin-user-doc --> |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalarchitectureFactoryImpl.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalarchitectureFactoryImpl.java index 56ecfa25..726f7a32 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalarchitectureFactoryImpl.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalarchitectureFactoryImpl.java | |||
@@ -2,9 +2,15 @@ | |||
2 | */ | 2 | */ |
3 | package functionalarchitecture.impl; | 3 | package functionalarchitecture.impl; |
4 | 4 | ||
5 | import functionalarchitecture.*; | 5 | import functionalarchitecture.FAMTerminator; |
6 | import functionalarchitecture.FunctionalInterface; | 6 | import functionalarchitecture.Function; |
7 | 7 | import functionalarchitecture.FunctionType; | |
8 | import functionalarchitecture.FunctionalArchitectureModel; | ||
9 | import functionalarchitecture.FunctionalInput; | ||
10 | import functionalarchitecture.FunctionalOutput; | ||
11 | import functionalarchitecture.FunctionalarchitectureFactory; | ||
12 | import functionalarchitecture.FunctionalarchitecturePackage; | ||
13 | import functionalarchitecture.InformationLink; | ||
8 | import org.eclipse.emf.ecore.EClass; | 14 | import org.eclipse.emf.ecore.EClass; |
9 | import org.eclipse.emf.ecore.EDataType; | 15 | import org.eclipse.emf.ecore.EDataType; |
10 | import org.eclipse.emf.ecore.EObject; | 16 | import org.eclipse.emf.ecore.EObject; |
@@ -145,7 +151,7 @@ public class FunctionalarchitectureFactoryImpl extends EFactoryImpl implements F | |||
145 | * <!-- end-user-doc --> | 151 | * <!-- end-user-doc --> |
146 | * @generated | 152 | * @generated |
147 | */ | 153 | */ |
148 | public FunctionalInterface createFunctionalInterface() { | 154 | public functionalarchitecture.FunctionalInterface createFunctionalInterface() { |
149 | FunctionalInterfaceImpl functionalInterface = new FunctionalInterfaceImpl(); | 155 | FunctionalInterfaceImpl functionalInterface = new FunctionalInterfaceImpl(); |
150 | return functionalInterface; | 156 | return functionalInterface; |
151 | } | 157 | } |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalarchitecturePackageImpl.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalarchitecturePackageImpl.java index 22c15533..110f3d6c 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalarchitecturePackageImpl.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalarchitecturePackageImpl.java | |||
@@ -9,7 +9,6 @@ import functionalarchitecture.FunctionalArchitectureModel; | |||
9 | import functionalarchitecture.FunctionalData; | 9 | import functionalarchitecture.FunctionalData; |
10 | import functionalarchitecture.FunctionalElement; | 10 | import functionalarchitecture.FunctionalElement; |
11 | import functionalarchitecture.FunctionalInput; | 11 | import functionalarchitecture.FunctionalInput; |
12 | import functionalarchitecture.FunctionalInterface; | ||
13 | import functionalarchitecture.FunctionalOutput; | 12 | import functionalarchitecture.FunctionalOutput; |
14 | import functionalarchitecture.FunctionalarchitectureFactory; | 13 | import functionalarchitecture.FunctionalarchitectureFactory; |
15 | import functionalarchitecture.FunctionalarchitecturePackage; | 14 | import functionalarchitecture.FunctionalarchitecturePackage; |
@@ -128,7 +127,7 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
128 | 127 | ||
129 | /** | 128 | /** |
130 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | 129 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
131 | * | 130 | * |
132 | * <p>This method is used to initialize {@link FunctionalarchitecturePackage#eINSTANCE} when that field is accessed. | 131 | * <p>This method is used to initialize {@link FunctionalarchitecturePackage#eINSTANCE} when that field is accessed. |
133 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | 132 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
134 | * <!-- begin-user-doc --> | 133 | * <!-- begin-user-doc --> |
@@ -142,7 +141,8 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
142 | if (isInited) return (FunctionalarchitecturePackage)EPackage.Registry.INSTANCE.getEPackage(FunctionalarchitecturePackage.eNS_URI); | 141 | if (isInited) return (FunctionalarchitecturePackage)EPackage.Registry.INSTANCE.getEPackage(FunctionalarchitecturePackage.eNS_URI); |
143 | 142 | ||
144 | // Obtain or create and register package | 143 | // Obtain or create and register package |
145 | FunctionalarchitecturePackageImpl theFunctionalarchitecturePackage = (FunctionalarchitecturePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FunctionalarchitecturePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FunctionalarchitecturePackageImpl()); | 144 | Object registeredFunctionalarchitecturePackage = EPackage.Registry.INSTANCE.get(eNS_URI); |
145 | FunctionalarchitecturePackageImpl theFunctionalarchitecturePackage = registeredFunctionalarchitecturePackage instanceof FunctionalarchitecturePackageImpl ? (FunctionalarchitecturePackageImpl)registeredFunctionalarchitecturePackage : new FunctionalarchitecturePackageImpl(); | ||
146 | 146 | ||
147 | isInited = true; | 147 | isInited = true; |
148 | 148 | ||
@@ -155,7 +155,6 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
155 | // Mark meta-data to indicate it can't be changed | 155 | // Mark meta-data to indicate it can't be changed |
156 | theFunctionalarchitecturePackage.freeze(); | 156 | theFunctionalarchitecturePackage.freeze(); |
157 | 157 | ||
158 | |||
159 | // Update the registry and return the package | 158 | // Update the registry and return the package |
160 | EPackage.Registry.INSTANCE.put(FunctionalarchitecturePackage.eNS_URI, theFunctionalarchitecturePackage); | 159 | EPackage.Registry.INSTANCE.put(FunctionalarchitecturePackage.eNS_URI, theFunctionalarchitecturePackage); |
161 | return theFunctionalarchitecturePackage; | 160 | return theFunctionalarchitecturePackage; |
@@ -382,6 +381,15 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
382 | * <!-- end-user-doc --> | 381 | * <!-- end-user-doc --> |
383 | * @generated | 382 | * @generated |
384 | */ | 383 | */ |
384 | public EAttribute getFunctionalData_Value() { | ||
385 | return (EAttribute)functionalDataEClass.getEStructuralFeatures().get(2); | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * <!-- begin-user-doc --> | ||
390 | * <!-- end-user-doc --> | ||
391 | * @generated | ||
392 | */ | ||
385 | public EEnum getFunctionType() { | 393 | public EEnum getFunctionType() { |
386 | return functionTypeEEnum; | 394 | return functionTypeEEnum; |
387 | } | 395 | } |
@@ -446,6 +454,7 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
446 | functionalDataEClass = createEClass(FUNCTIONAL_DATA); | 454 | functionalDataEClass = createEClass(FUNCTIONAL_DATA); |
447 | createEReference(functionalDataEClass, FUNCTIONAL_DATA__TERMINATOR); | 455 | createEReference(functionalDataEClass, FUNCTIONAL_DATA__TERMINATOR); |
448 | createEReference(functionalDataEClass, FUNCTIONAL_DATA__INTERFACE); | 456 | createEReference(functionalDataEClass, FUNCTIONAL_DATA__INTERFACE); |
457 | createEAttribute(functionalDataEClass, FUNCTIONAL_DATA__VALUE); | ||
449 | 458 | ||
450 | // Create enums | 459 | // Create enums |
451 | functionTypeEEnum = createEEnum(FUNCTION_TYPE); | 460 | functionTypeEEnum = createEEnum(FUNCTION_TYPE); |
@@ -486,7 +495,7 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
486 | // Initialize classes, features, and operations; add parameters | 495 | // Initialize classes, features, and operations; add parameters |
487 | initEClass(functionalElementEClass, FunctionalElement.class, "FunctionalElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 496 | initEClass(functionalElementEClass, FunctionalElement.class, "FunctionalElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
488 | initEReference(getFunctionalElement_Interface(), this.getFunctionalInterface(), this.getFunctionalInterface_Element(), "interface", null, 0, 1, FunctionalElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 497 | initEReference(getFunctionalElement_Interface(), this.getFunctionalInterface(), this.getFunctionalInterface_Element(), "interface", null, 0, 1, FunctionalElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
489 | initEReference(getFunctionalElement_Model(), this.getFunctionalArchitectureModel(), null, "model", null, 1, 1, FunctionalElement.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | 498 | initEReference(getFunctionalElement_Model(), this.getFunctionalArchitectureModel(), null, "model", null, 1, 1, FunctionalElement.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
490 | initEReference(getFunctionalElement_Parent(), this.getFunction(), this.getFunction_SubElements(), "parent", null, 0, 1, FunctionalElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 499 | initEReference(getFunctionalElement_Parent(), this.getFunction(), this.getFunction_SubElements(), "parent", null, 0, 1, FunctionalElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
491 | 500 | ||
492 | initEClass(functionalArchitectureModelEClass, FunctionalArchitectureModel.class, "FunctionalArchitectureModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 501 | initEClass(functionalArchitectureModelEClass, FunctionalArchitectureModel.class, "FunctionalArchitectureModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -494,7 +503,7 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
494 | 503 | ||
495 | initEClass(functionEClass, Function.class, "Function", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 504 | initEClass(functionEClass, Function.class, "Function", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
496 | initEReference(getFunction_SubElements(), this.getFunctionalElement(), this.getFunctionalElement_Parent(), "subElements", null, 0, -1, Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 505 | initEReference(getFunction_SubElements(), this.getFunctionalElement(), this.getFunctionalElement_Parent(), "subElements", null, 0, -1, Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
497 | initEAttribute(getFunction_Type(), this.getFunctionType(), "type", null, 1, 1, Function.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | 506 | initEAttribute(getFunction_Type(), this.getFunctionType(), "type", null, 1, 1, Function.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
498 | 507 | ||
499 | initEClass(famTerminatorEClass, FAMTerminator.class, "FAMTerminator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 508 | initEClass(famTerminatorEClass, FAMTerminator.class, "FAMTerminator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
500 | initEReference(getFAMTerminator_Data(), this.getFunctionalData(), this.getFunctionalData_Terminator(), "data", null, 0, 1, FAMTerminator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 509 | initEReference(getFAMTerminator_Data(), this.getFunctionalData(), this.getFunctionalData_Terminator(), "data", null, 0, 1, FAMTerminator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
@@ -503,9 +512,9 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
503 | initEReference(getInformationLink_From(), this.getFunctionalOutput(), this.getFunctionalOutput_OutgoingLinks(), "from", null, 0, 1, InformationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 512 | initEReference(getInformationLink_From(), this.getFunctionalOutput(), this.getFunctionalOutput_OutgoingLinks(), "from", null, 0, 1, InformationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
504 | initEReference(getInformationLink_To(), this.getFunctionalInput(), this.getFunctionalInput_IncomingLinks(), "to", null, 1, 1, InformationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 513 | initEReference(getInformationLink_To(), this.getFunctionalInput(), this.getFunctionalInput_IncomingLinks(), "to", null, 1, 1, InformationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
505 | 514 | ||
506 | initEClass(functionalInterfaceEClass, FunctionalInterface.class, "FunctionalInterface", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 515 | initEClass(functionalInterfaceEClass, functionalarchitecture.FunctionalInterface.class, "FunctionalInterface", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
507 | initEReference(getFunctionalInterface_Data(), this.getFunctionalData(), this.getFunctionalData_Interface(), "data", null, 0, -1, FunctionalInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 516 | initEReference(getFunctionalInterface_Data(), this.getFunctionalData(), this.getFunctionalData_Interface(), "data", null, 0, -1, functionalarchitecture.FunctionalInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
508 | initEReference(getFunctionalInterface_Element(), this.getFunctionalElement(), this.getFunctionalElement_Interface(), "element", null, 0, 1, FunctionalInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 517 | initEReference(getFunctionalInterface_Element(), this.getFunctionalElement(), this.getFunctionalElement_Interface(), "element", null, 0, 1, functionalarchitecture.FunctionalInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
509 | 518 | ||
510 | initEClass(functionalInputEClass, FunctionalInput.class, "FunctionalInput", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 519 | initEClass(functionalInputEClass, FunctionalInput.class, "FunctionalInput", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
511 | initEReference(getFunctionalInput_IncomingLinks(), this.getInformationLink(), this.getInformationLink_To(), "IncomingLinks", null, 0, -1, FunctionalInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 520 | initEReference(getFunctionalInput_IncomingLinks(), this.getInformationLink(), this.getInformationLink_To(), "IncomingLinks", null, 0, -1, FunctionalInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
@@ -516,6 +525,7 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
516 | initEClass(functionalDataEClass, FunctionalData.class, "FunctionalData", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 525 | initEClass(functionalDataEClass, FunctionalData.class, "FunctionalData", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
517 | initEReference(getFunctionalData_Terminator(), this.getFAMTerminator(), this.getFAMTerminator_Data(), "terminator", null, 0, 1, FunctionalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 526 | initEReference(getFunctionalData_Terminator(), this.getFAMTerminator(), this.getFAMTerminator_Data(), "terminator", null, 0, 1, FunctionalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
518 | initEReference(getFunctionalData_Interface(), this.getFunctionalInterface(), this.getFunctionalInterface_Data(), "interface", null, 0, 1, FunctionalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 527 | initEReference(getFunctionalData_Interface(), this.getFunctionalInterface(), this.getFunctionalInterface_Data(), "interface", null, 0, 1, FunctionalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
528 | initEAttribute(getFunctionalData_Value(), ecorePackage.getEInt(), "value", null, 1, 1, FunctionalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
519 | 529 | ||
520 | // Initialize enums and add enum literals | 530 | // Initialize enums and add enum literals |
521 | initEEnum(functionTypeEEnum, FunctionType.class, "FunctionType"); | 531 | initEEnum(functionTypeEEnum, FunctionType.class, "FunctionType"); |
@@ -540,12 +550,12 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
540 | * @generated | 550 | * @generated |
541 | */ | 551 | */ |
542 | protected void createEcoreAnnotations() { | 552 | protected void createEcoreAnnotations() { |
543 | String source = "http://www.eclipse.org/emf/2002/Ecore"; | 553 | String source = "http://www.eclipse.org/emf/2002/Ecore"; |
544 | addAnnotation | 554 | addAnnotation |
545 | (this, | 555 | (this, |
546 | source, | 556 | source, |
547 | new String[] { | 557 | new String[] { |
548 | "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" | 558 | "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" |
549 | }); | 559 | }); |
550 | } | 560 | } |
551 | 561 | ||
@@ -556,18 +566,18 @@ public class FunctionalarchitecturePackageImpl extends EPackageImpl implements F | |||
556 | * @generated | 566 | * @generated |
557 | */ | 567 | */ |
558 | protected void createOrgAnnotations() { | 568 | protected void createOrgAnnotations() { |
559 | String source = "org.eclipse.viatra.query.querybasedfeature"; | 569 | String source = "org.eclipse.viatra.query.querybasedfeature"; |
560 | addAnnotation | 570 | addAnnotation |
561 | (getFunctionalElement_Model(), | 571 | (getFunctionalElement_Model(), |
562 | source, | 572 | source, |
563 | new String[] { | 573 | new String[] { |
564 | "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.transima.fam.model" | 574 | "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.transima.fam.model" |
565 | }); | 575 | }); |
566 | addAnnotation | 576 | addAnnotation |
567 | (getFunction_Type(), | 577 | (getFunction_Type(), |
568 | source, | 578 | source, |
569 | new String[] { | 579 | new String[] { |
570 | "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.transima.fam.type" | 580 | "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.transima.fam.type" |
571 | }); | 581 | }); |
572 | } | 582 | } |
573 | 583 | ||
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/util/FunctionalarchitectureAdapterFactory.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/util/FunctionalarchitectureAdapterFactory.java index f990a7a4..9846bd62 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/util/FunctionalarchitectureAdapterFactory.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/util/FunctionalarchitectureAdapterFactory.java | |||
@@ -2,9 +2,15 @@ | |||
2 | */ | 2 | */ |
3 | package functionalarchitecture.util; | 3 | package functionalarchitecture.util; |
4 | 4 | ||
5 | import functionalarchitecture.*; | 5 | import functionalarchitecture.FAMTerminator; |
6 | import functionalarchitecture.FunctionalInterface; | 6 | import functionalarchitecture.Function; |
7 | 7 | import functionalarchitecture.FunctionalArchitectureModel; | |
8 | import functionalarchitecture.FunctionalData; | ||
9 | import functionalarchitecture.FunctionalElement; | ||
10 | import functionalarchitecture.FunctionalInput; | ||
11 | import functionalarchitecture.FunctionalOutput; | ||
12 | import functionalarchitecture.FunctionalarchitecturePackage; | ||
13 | import functionalarchitecture.InformationLink; | ||
8 | import org.eclipse.emf.common.notify.Adapter; | 14 | import org.eclipse.emf.common.notify.Adapter; |
9 | import org.eclipse.emf.common.notify.Notifier; | 15 | import org.eclipse.emf.common.notify.Notifier; |
10 | 16 | ||
@@ -89,7 +95,7 @@ public class FunctionalarchitectureAdapterFactory extends AdapterFactoryImpl { | |||
89 | return createInformationLinkAdapter(); | 95 | return createInformationLinkAdapter(); |
90 | } | 96 | } |
91 | @Override | 97 | @Override |
92 | public Adapter caseFunctionalInterface(FunctionalInterface object) { | 98 | public Adapter caseFunctionalInterface(functionalarchitecture.FunctionalInterface object) { |
93 | return createFunctionalInterfaceAdapter(); | 99 | return createFunctionalInterfaceAdapter(); |
94 | } | 100 | } |
95 | @Override | 101 | @Override |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/util/FunctionalarchitectureSwitch.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/util/FunctionalarchitectureSwitch.java index b481a978..a1bbb480 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/util/FunctionalarchitectureSwitch.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/util/FunctionalarchitectureSwitch.java | |||
@@ -2,9 +2,15 @@ | |||
2 | */ | 2 | */ |
3 | package functionalarchitecture.util; | 3 | package functionalarchitecture.util; |
4 | 4 | ||
5 | import functionalarchitecture.*; | 5 | import functionalarchitecture.FAMTerminator; |
6 | import functionalarchitecture.FunctionalInterface; | 6 | import functionalarchitecture.Function; |
7 | 7 | import functionalarchitecture.FunctionalArchitectureModel; | |
8 | import functionalarchitecture.FunctionalData; | ||
9 | import functionalarchitecture.FunctionalElement; | ||
10 | import functionalarchitecture.FunctionalInput; | ||
11 | import functionalarchitecture.FunctionalOutput; | ||
12 | import functionalarchitecture.FunctionalarchitecturePackage; | ||
13 | import functionalarchitecture.InformationLink; | ||
8 | import org.eclipse.emf.ecore.EObject; | 14 | import org.eclipse.emf.ecore.EObject; |
9 | import org.eclipse.emf.ecore.EPackage; | 15 | import org.eclipse.emf.ecore.EPackage; |
10 | 16 | ||
@@ -99,7 +105,7 @@ public class FunctionalarchitectureSwitch<T> extends Switch<T> { | |||
99 | return result; | 105 | return result; |
100 | } | 106 | } |
101 | case FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE: { | 107 | case FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE: { |
102 | FunctionalInterface functionalInterface = (FunctionalInterface)theEObject; | 108 | functionalarchitecture.FunctionalInterface functionalInterface = (functionalarchitecture.FunctionalInterface)theEObject; |
103 | T result = caseFunctionalInterface(functionalInterface); | 109 | T result = caseFunctionalInterface(functionalInterface); |
104 | if (result == null) result = defaultCase(theEObject); | 110 | if (result == null) result = defaultCase(theEObject); |
105 | return result; | 111 | return result; |
@@ -214,7 +220,7 @@ public class FunctionalarchitectureSwitch<T> extends Switch<T> { | |||
214 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | 220 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
215 | * @generated | 221 | * @generated |
216 | */ | 222 | */ |
217 | public T caseFunctionalInterface(FunctionalInterface object) { | 223 | public T caseFunctionalInterface(functionalarchitecture.FunctionalInterface object) { |
218 | return null; | 224 | return null; |
219 | } | 225 | } |
220 | 226 | ||
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/model/FamMetamodel.ecore b/Domains/Examples/ModelGenExampleFAM_plugin/model/FamMetamodel.ecore index 3fab9a1d..720a9373 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/model/FamMetamodel.ecore +++ b/Domains/Examples/ModelGenExampleFAM_plugin/model/FamMetamodel.ecore | |||
@@ -60,6 +60,7 @@ | |||
60 | containment="true" eOpposite="#//FAMTerminator/data"/> | 60 | containment="true" eOpposite="#//FAMTerminator/data"/> |
61 | <eStructuralFeatures xsi:type="ecore:EReference" name="interface" eType="#//FunctionalInterface" | 61 | <eStructuralFeatures xsi:type="ecore:EReference" name="interface" eType="#//FunctionalInterface" |
62 | eOpposite="#//FunctionalInterface/data"/> | 62 | eOpposite="#//FunctionalInterface/data"/> |
63 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> | ||
63 | </eClassifiers> | 64 | </eClassifiers> |
64 | <eClassifiers xsi:type="ecore:EEnum" name="FunctionType"> | 65 | <eClassifiers xsi:type="ecore:EEnum" name="FunctionType"> |
65 | <eLiterals name="Root"/> | 66 | <eLiterals name="Root"/> |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/model/FamMetamodel.genmodel b/Domains/Examples/ModelGenExampleFAM_plugin/model/FamMetamodel.genmodel index 9d89c145..bd428811 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/model/FamMetamodel.genmodel +++ b/Domains/Examples/ModelGenExampleFAM_plugin/model/FamMetamodel.genmodel | |||
@@ -43,6 +43,7 @@ | |||
43 | <genClasses image="false" ecoreClass="FamMetamodel.ecore#//FunctionalData"> | 43 | <genClasses image="false" ecoreClass="FamMetamodel.ecore#//FunctionalData"> |
44 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FamMetamodel.ecore#//FunctionalData/terminator"/> | 44 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FamMetamodel.ecore#//FunctionalData/terminator"/> |
45 | <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference FamMetamodel.ecore#//FunctionalData/interface"/> | 45 | <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference FamMetamodel.ecore#//FunctionalData/interface"/> |
46 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FamMetamodel.ecore#//FunctionalData/value"/> | ||
46 | </genClasses> | 47 | </genClasses> |
47 | </genPackages> | 48 | </genPackages> |
48 | </genmodel:GenModel> | 49 | </genmodel:GenModel> |
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/plugin.xml b/Domains/Examples/ModelGenExampleFAM_plugin/plugin.xml index 07fd662c..3874e9f7 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/plugin.xml +++ b/Domains/Examples/ModelGenExampleFAM_plugin/plugin.xml | |||
@@ -1,8 +1,11 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?><plugin> | 1 | <?xml version="1.0" encoding="UTF-8"?><plugin> |
2 | <extension point="org.eclipse.emf.ecore.generated_package"> | 2 | <extension point="org.eclipse.emf.ecore.generated_package"> |
3 | <!-- @generated FamMetamodel --> | 3 | <!-- @generated FamMetamodel --> |
4 | <package class="functionalarchitecture.FunctionalarchitecturePackage" genModel="model/FamMetamodel.genmodel" uri="http://www.inf.mit.bme.hu/viatrasolver/example/fam"/> | 4 | <package |
5 | </extension> | 5 | uri="http://www.inf.mit.bme.hu/viatrasolver/example/fam" |
6 | class="functionalarchitecture.FunctionalarchitecturePackage" | ||
7 | genModel="model/FamMetamodel.genmodel"/> | ||
8 | </extension> | ||
6 | <extension id="hu.bme.mit.inf.dslreasoner.domains.transima.fam.FamPatterns" point="org.eclipse.viatra.query.runtime.queryspecification"> | 9 | <extension id="hu.bme.mit.inf.dslreasoner.domains.transima.fam.FamPatterns" point="org.eclipse.viatra.query.runtime.queryspecification"> |
7 | <group group="org.eclipse.viatra.query.runtime.extensibility.SingletonExtensionFactory:hu.bme.mit.inf.dslreasoner.domains.transima.fam.FamPatterns" id="hu.bme.mit.inf.dslreasoner.domains.transima.fam.FamPatterns"> | 10 | <group group="org.eclipse.viatra.query.runtime.extensibility.SingletonExtensionFactory:hu.bme.mit.inf.dslreasoner.domains.transima.fam.FamPatterns" id="hu.bme.mit.inf.dslreasoner.domains.transima.fam.FamPatterns"> |
8 | <query-specification fqn="hu.bme.mit.inf.dslreasoner.domains.transima.fam.terminatorAndInformation"/> | 11 | <query-specification fqn="hu.bme.mit.inf.dslreasoner.domains.transima.fam.terminatorAndInformation"/> |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/model/yakindu_simplified.ecore b/Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/model/yakindu_simplified.ecore index 5999c4c7..51b0ca5b 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/model/yakindu_simplified.ecore +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/model/yakindu_simplified.ecore | |||
@@ -37,9 +37,4 @@ | |||
37 | <eLiterals name="History"/> | 37 | <eLiterals name="History"/> |
38 | <eLiterals name="DeepHistory"/> | 38 | <eLiterals name="DeepHistory"/> |
39 | </eClassifiers> | 39 | </eClassifiers> |
40 | <eClassifiers xsi:type="ecore:EEnum" name="EntryType"> | ||
41 | <eLiterals name="Normal"/> | ||
42 | <eLiterals name="History" value="1"/> | ||
43 | <eLiterals name="DeepHistory" value="2"/> | ||
44 | </eClassifiers> | ||
45 | </ecore:EPackage> | 40 | </ecore:EPackage> |
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcC.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcC.xtendbin new file mode 100644 index 00000000..0c2cbb6e --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcC.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcEDA.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcEDA.xtendbin new file mode 100644 index 00000000..056bbf88 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcEDA.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMPC.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMPC.xtendbin new file mode 100644 index 00000000..40092f54 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMPC.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric.xtendbin new file mode 100644 index 00000000..ae757bb6 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric2.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric2.xtendbin new file mode 100644 index 00000000..ed2b817f --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric2.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNA.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNA.xtendbin new file mode 100644 index 00000000..6d0da896 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNA.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDA.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDA.xtendbin new file mode 100644 index 00000000..a50e372c --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDA.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDC.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDC.xtendbin new file mode 100644 index 00000000..8d56931d --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDC.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRCNT.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRCNT.xtendbin new file mode 100644 index 00000000..0641ed7b --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRCNT.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRNUM.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRNUM.xtendbin new file mode 100644 index 00000000..99dd130b --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRNUM.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRTOT.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRTOT.xtendbin new file mode 100644 index 00000000..d397ff4c --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRTOT.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.gitignore b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.gitignore new file mode 100644 index 00000000..f2c394d6 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.gitignore | |||
@@ -0,0 +1,20 @@ | |||
1 | /.CalculationsNA.java._trace | ||
2 | /.CalcNA.java._trace | ||
3 | /.CalcMPC.java._trace | ||
4 | /.CalcMetric.java._trace | ||
5 | /.CalcNDA.java._trace | ||
6 | /.CalcNDC.java._trace | ||
7 | /.CalcEDA.java._trace | ||
8 | /.CalcC.java._trace | ||
9 | /.CalcSQR.java._trace | ||
10 | /.CalcSQRtot.java._trace | ||
11 | /.CalcSQRMAX.java._trace | ||
12 | /.CalcSQRTOT.java._trace | ||
13 | /.CalcSQROSZ.java._trace | ||
14 | /.CalcSQROSZ2.java._trace | ||
15 | /.CalcSQROCOOL.java._trace | ||
16 | /.CalcSQRCNT.java._trace | ||
17 | /.CalcSQRNUM.java._trace | ||
18 | /.SQROSZ.java._trace | ||
19 | /.CalcSQRCC.java._trace | ||
20 | /.CalcMetric2.java._trace | ||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/CalcSQRMAX.xtend_ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/CalcSQRMAX.xtend_ new file mode 100644 index 00000000..071abe38 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/CalcSQRMAX.xtend_ | |||
@@ -0,0 +1,87 @@ | |||
1 | package ca.mcgill.ecse.dslreasoner.realistic.metrics.calculations | ||
2 | |||
3 | import ca.mcgill.ecse.dslreasoner.realistic.metrics.examples.Util | ||
4 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.neighbourhood.PartialInterpretation2ImmutableTypeLattice | ||
5 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialInterpretation | ||
6 | import java.util.HashMap | ||
7 | import java.util.Map | ||
8 | import java.util.Set | ||
9 | import org.eclipse.emf.ecore.EObject | ||
10 | |||
11 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* | ||
12 | |||
13 | class CalcSQRMAX extends CalcMetric{ | ||
14 | |||
15 | // /////////////////// | ||
16 | // SQRMAX(v) = # squares containing v / (# neighbours of v * max # of neeighbours of any neighbour of v) | ||
17 | // /////////////////// | ||
18 | static val neighbourhoodComputer = new PartialInterpretation2ImmutableTypeLattice | ||
19 | |||
20 | override calcFromModel(EObject model) { | ||
21 | val nodes = model.eResource.allContents.toList | ||
22 | |||
23 | // fill HashSet | ||
24 | var Map<EObject, Set<EObject>> node2Neighbours = new HashMap | ||
25 | Util.fillWithNodes(nodes, node2Neighbours) | ||
26 | |||
27 | // iterate over nodes and add connected nodes | ||
28 | Util.getNeighboursList(nodes, node2Neighbours) | ||
29 | |||
30 | // Measurements | ||
31 | var totalC = 0.0 | ||
32 | var max2ndNeighbours = 0.0 | ||
33 | var num1stNeighbours = 0.0 | ||
34 | for (node : nodes) { | ||
35 | val neighbours = node.lookup(node2Neighbours) | ||
36 | num1stNeighbours = neighbours.size | ||
37 | max2ndNeighbours = 0 | ||
38 | var numSquares = 0.0 | ||
39 | for (neighbour1 : neighbours) { | ||
40 | for (neighbour2 : neighbours) { | ||
41 | if (neighbour1 != neighbour2) { | ||
42 | val neighsOfNeigh = neighbour1.lookup(node2Neighbours) | ||
43 | if (max2ndNeighbours < neighsOfNeigh.size) { | ||
44 | max2ndNeighbours = neighsOfNeigh.size | ||
45 | } | ||
46 | for (neighOfNeigh1 : neighsOfNeigh) { | ||
47 | if (neighOfNeigh1 != node && neighOfNeigh1.lookup(node2Neighbours).contains(neighbour2)) { | ||
48 | // print(neighbour1) | ||
49 | // print(" ") | ||
50 | // print(neighbour2) | ||
51 | // print(" ") | ||
52 | // print(neighOfNeigh1) | ||
53 | // println() | ||
54 | numSquares++ | ||
55 | } | ||
56 | } | ||
57 | |||
58 | } | ||
59 | } | ||
60 | } | ||
61 | // println(node) | ||
62 | val num2ndNeighbours = num1stNeighbours * max2ndNeighbours | ||
63 | |||
64 | // print("(" + numSquares + "x" + num2ndNeighbours) | ||
65 | var sqr = 0.0 | ||
66 | if (num2ndNeighbours != 0) { | ||
67 | sqr = numSquares / num2ndNeighbours | ||
68 | } | ||
69 | |||
70 | // println("=" + sqr + ")") | ||
71 | totalC += sqr | ||
72 | } | ||
73 | val numNodes = nodes.length | ||
74 | val avgC = totalC / numNodes | ||
75 | |||
76 | return avgC | ||
77 | } | ||
78 | |||
79 | override calcFromNHLattice(PartialInterpretation pm) { | ||
80 | return 0.0 | ||
81 | // return getCfromNHLattice(pm, 2, v) | ||
82 | } | ||
83 | |||
84 | override calcFromNHLattice(PartialInterpretation pm, Integer depth) { | ||
85 | return 0.0 | ||
86 | } | ||
87 | } \ No newline at end of file | ||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/CalcSQROSZ2.xtend_ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/CalcSQROSZ2.xtend_ new file mode 100644 index 00000000..e999d62f --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/CalcSQROSZ2.xtend_ | |||
@@ -0,0 +1,69 @@ | |||
1 | package ca.mcgill.ecse.dslreasoner.realistic.metrics.calculations | ||
2 | |||
3 | import ca.mcgill.ecse.dslreasoner.realistic.metrics.examples.Util | ||
4 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.neighbourhood.PartialInterpretation2ImmutableTypeLattice | ||
5 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialInterpretation | ||
6 | import java.util.HashMap | ||
7 | import java.util.Map | ||
8 | import java.util.Set | ||
9 | import org.eclipse.emf.ecore.EObject | ||
10 | |||
11 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* | ||
12 | |||
13 | class CalcSQROSZ2 extends CalcMetric { | ||
14 | |||
15 | // /////////////////// | ||
16 | // SQROSZ2(v) = # depth-4 paths that lead to v / total # depth-4 paths | ||
17 | // /////////////////// | ||
18 | static val neighbourhoodComputer = new PartialInterpretation2ImmutableTypeLattice | ||
19 | |||
20 | override calcFromModel(EObject model) { | ||
21 | val nodes = model.eResource.allContents.toList | ||
22 | |||
23 | // fill HashSet | ||
24 | var Map<EObject, Set<EObject>> node2Neighbours = new HashMap | ||
25 | Util.fillWithNodes(nodes, node2Neighbours) | ||
26 | |||
27 | // iterate over nodes and add connected nodes | ||
28 | Util.getNeighboursList(nodes, node2Neighbours) | ||
29 | |||
30 | // Measurements | ||
31 | var totalSQR = 0.0 | ||
32 | var totalDenom = 0.0 | ||
33 | var num4thNeighbours = 0.0 | ||
34 | for (node : nodes) { | ||
35 | val neighbours = node.lookup(node2Neighbours) | ||
36 | |||
37 | for (neighbour1 : neighbours) { | ||
38 | val neighbours1 = neighbour1.lookup(node2Neighbours) | ||
39 | |||
40 | for (neighbour2 : neighbours1) { | ||
41 | val neighbours2 = neighbour2.lookup(node2Neighbours) | ||
42 | |||
43 | for (neighbour3 : neighbours2) { | ||
44 | val neighbours3 = neighbour3.lookup(node2Neighbours) | ||
45 | num4thNeighbours = neighbours3.size | ||
46 | |||
47 | if (neighbours3.contains(node)) { | ||
48 | totalSQR += 1 | ||
49 | } | ||
50 | totalDenom += num4thNeighbours | ||
51 | } | ||
52 | } | ||
53 | } | ||
54 | |||
55 | } | ||
56 | val avgSQR = totalSQR / totalDenom | ||
57 | |||
58 | return avgSQR | ||
59 | } | ||
60 | |||
61 | override calcFromNHLattice(PartialInterpretation pm) { | ||
62 | return 0.0 | ||
63 | // return getCfromNHLattice(pm, 2, v) | ||
64 | } | ||
65 | |||
66 | override calcFromNHLattice(PartialInterpretation pm, Integer depth) { | ||
67 | return 0.0 | ||
68 | } | ||
69 | } \ No newline at end of file | ||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.FixModelURIs.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.FixModelURIs.xtendbin new file mode 100644 index 00000000..ed4f8ad0 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.FixModelURIs.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.MetricsCalculationUsingShapes.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.MetricsCalculationUsingShapes.xtendbin new file mode 100644 index 00000000..c06ce100 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.MetricsCalculationUsingShapes.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.Util.xtendbin b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.Util.xtendbin new file mode 100644 index 00000000..992d5b16 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/bin/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.Util.xtendbin | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcC.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcC.java._trace new file mode 100644 index 00000000..5ab4c0fb --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcC.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcEDA.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcEDA.java._trace new file mode 100644 index 00000000..605b2480 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcEDA.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMPC.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMPC.java._trace new file mode 100644 index 00000000..16ded94b --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMPC.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric.java._trace new file mode 100644 index 00000000..bd23cb35 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric2.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric2.java._trace new file mode 100644 index 00000000..71d80e38 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcMetric2.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNA.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNA.java._trace new file mode 100644 index 00000000..b423786d --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNA.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDA.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDA.java._trace new file mode 100644 index 00000000..cce23aec --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDA.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDC.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDC.java._trace new file mode 100644 index 00000000..e46f9600 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcNDC.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRCNT.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRCNT.java._trace new file mode 100644 index 00000000..9ce2edb2 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRCNT.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRNUM.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRNUM.java._trace new file mode 100644 index 00000000..cdfcef6e --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRNUM.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRTOT.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRTOT.java._trace new file mode 100644 index 00000000..0c8cc5d0 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/calculations/.CalcSQRTOT.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.FixModelURIs.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.FixModelURIs.java._trace new file mode 100644 index 00000000..edd88562 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.FixModelURIs.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.MetricsCalculationUsingShapes.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.MetricsCalculationUsingShapes.java._trace new file mode 100644 index 00000000..fc92b1d3 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.MetricsCalculationUsingShapes.java._trace | |||
Binary files differ | |||
diff --git a/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.Util.java._trace b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.Util.java._trace new file mode 100644 index 00000000..306c1361 --- /dev/null +++ b/Metrics/ca.mcgill.ecse.dslreasoner.realistic.metrics/xtend-gen/ca/mcgill/ecse/dslreasoner/realistic/metrics/examples/.Util.java._trace | |||
Binary files differ | |||
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.visualisation/META-INF/MANIFEST.MF b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.visualisation/META-INF/MANIFEST.MF index 2abc6d50..fea5cc00 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.visualisation/META-INF/MANIFEST.MF +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.visualisation/META-INF/MANIFEST.MF | |||
@@ -28,7 +28,7 @@ Require-Bundle: com.google.guava, | |||
28 | org.apache.xerces;bundle-version="2.9.0", | 28 | org.apache.xerces;bundle-version="2.9.0", |
29 | org.w3c.dom.svg;bundle-version="1.1.0", | 29 | org.w3c.dom.svg;bundle-version="1.1.0", |
30 | org.w3c.css.sac;bundle-version="1.3.1", | 30 | org.w3c.css.sac;bundle-version="1.3.1", |
31 | org.eclipse.m2e.maven.runtime.slf4j.simple;bundle-version="1.10.0" | 31 | org.eclipse.m2e.maven.runtime.slf4j.simple |
32 | Import-Package: com.eclipsesource.v8;version="4.6.0", | 32 | Import-Package: com.eclipsesource.v8;version="4.6.0", |
33 | com.eclipsesource.v8.debug;version="4.6.0", | 33 | com.eclipsesource.v8.debug;version="4.6.0", |
34 | com.eclipsesource.v8.utils;version="4.6.0", | 34 | com.eclipsesource.v8.utils;version="4.6.0", |
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ide/xtend-gen/ca/mcgill/ecse/dslreasoner/ide/.VampireLanguageIdeModule.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ide/xtend-gen/ca/mcgill/ecse/dslreasoner/ide/.VampireLanguageIdeModule.xtendbin index 9ecc00be..313b9c2d 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ide/xtend-gen/ca/mcgill/ecse/dslreasoner/ide/.VampireLanguageIdeModule.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ide/xtend-gen/ca/mcgill/ecse/dslreasoner/ide/.VampireLanguageIdeModule.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ide/xtend-gen/ca/mcgill/ecse/dslreasoner/ide/.VampireLanguageIdeSetup.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ide/xtend-gen/ca/mcgill/ecse/dslreasoner/ide/.VampireLanguageIdeSetup.xtendbin index c144df13..97ee1913 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ide/xtend-gen/ca/mcgill/ecse/dslreasoner/ide/.VampireLanguageIdeSetup.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ide/xtend-gen/ca/mcgill/ecse/dslreasoner/ide/.VampireLanguageIdeSetup.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/.VampireLanguageUiModule.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/.VampireLanguageUiModule.xtendbin index 979c3c20..3424dc60 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/.VampireLanguageUiModule.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/.VampireLanguageUiModule.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/contentassist/.VampireLanguageProposalProvider.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/contentassist/.VampireLanguageProposalProvider.xtendbin index 804df64e..3b0345ce 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/contentassist/.VampireLanguageProposalProvider.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/contentassist/.VampireLanguageProposalProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/labeling/.VampireLanguageDescriptionLabelProvider.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/labeling/.VampireLanguageDescriptionLabelProvider.xtendbin index 50db435b..3a05d228 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/labeling/.VampireLanguageDescriptionLabelProvider.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/labeling/.VampireLanguageDescriptionLabelProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/labeling/.VampireLanguageLabelProvider.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/labeling/.VampireLanguageLabelProvider.xtendbin index 904ac639..418ee88d 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/labeling/.VampireLanguageLabelProvider.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/labeling/.VampireLanguageLabelProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/outline/.VampireLanguageOutlineTreeProvider.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/outline/.VampireLanguageOutlineTreeProvider.xtendbin index 082ca9ff..b4a32db5 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/outline/.VampireLanguageOutlineTreeProvider.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/outline/.VampireLanguageOutlineTreeProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/quickfix/.VampireLanguageQuickfixProvider.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/quickfix/.VampireLanguageQuickfixProvider.xtendbin index 5b68084b..89284901 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/quickfix/.VampireLanguageQuickfixProvider.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language.ui/xtend-gen/ca/mcgill/ecse/dslreasoner/ui/quickfix/.VampireLanguageQuickfixProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/.VampireLanguageRuntimeModule.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/.VampireLanguageRuntimeModule.xtendbin index 7a054d7e..633cd134 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/.VampireLanguageRuntimeModule.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/.VampireLanguageRuntimeModule.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/.VampireLanguageStandaloneSetup.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/.VampireLanguageStandaloneSetup.xtendbin index fa4872a5..75f7c519 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/.VampireLanguageStandaloneSetup.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/.VampireLanguageStandaloneSetup.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/formatting2/.VampireLanguageFormatter.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/formatting2/.VampireLanguageFormatter.xtendbin index 7cf878e2..b9ec3204 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/formatting2/.VampireLanguageFormatter.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/formatting2/.VampireLanguageFormatter.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/generator/.VampireLanguageGenerator.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/generator/.VampireLanguageGenerator.xtendbin index 38132416..3052ed33 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/generator/.VampireLanguageGenerator.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/generator/.VampireLanguageGenerator.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/scoping/.VampireLanguageScopeProvider.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/scoping/.VampireLanguageScopeProvider.xtendbin index 2b223516..67b4ffcc 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/scoping/.VampireLanguageScopeProvider.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/scoping/.VampireLanguageScopeProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/validation/.VampireLanguageValidator.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/validation/.VampireLanguageValidator.xtendbin index 5cda3bdc..297a4f85 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/validation/.VampireLanguageValidator.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/xtend-gen/ca/mcgill/ecse/dslreasoner/validation/.VampireLanguageValidator.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/.VampireAnalyzerConfiguration.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/.VampireAnalyzerConfiguration.xtendbin index ec7ce5bf..d21e62df 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/.VampireAnalyzerConfiguration.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/.VampireAnalyzerConfiguration.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/.VampireSolver.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/.VampireSolver.xtendbin index 4d0599ac..6fa1ad33 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/.VampireSolver.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/.VampireSolver.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper.xtendbin index 885e7af1..16598303 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapperTrace.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapperTrace.xtendbin index 0793f3cb..760c5e1f 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapperTrace.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapperTrace.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ConstantMapper.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ConstantMapper.xtendbin index 7fa7b29d..db66ddba 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ConstantMapper.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ConstantMapper.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ContainmentMapper.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ContainmentMapper.xtendbin index 9e37d9b8..d6fe4078 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ContainmentMapper.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ContainmentMapper.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_RelationMapper.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_RelationMapper.xtendbin index 2cca61d2..81468f27 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_RelationMapper.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_RelationMapper.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ScopeMapper.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ScopeMapper.xtendbin index 20c757c7..d6924639 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ScopeMapper.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_ScopeMapper.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_Support.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_Support.xtendbin index 580ed0d8..9541df30 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_Support.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_Support.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_TypeMapper.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_TypeMapper.xtendbin index 108846a5..bb87d246 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_TypeMapper.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Logic2VampireLanguageMapper_TypeMapper.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Vampire2LogicMapper.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Vampire2LogicMapper.xtendbin index 9a04f61e..61879add 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Vampire2LogicMapper.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.Vampire2LogicMapper.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireHandler.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireHandler.xtendbin index 1d3166e7..1d6d6da8 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireHandler.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireHandler.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireModelInterpretation_TypeInterpretation.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireModelInterpretation_TypeInterpretation.xtendbin index 002097ed..3a055e01 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireModelInterpretation_TypeInterpretation.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireModelInterpretation_TypeInterpretation.xtendbin | |||
Binary files differ | |||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireModelInterpretation_TypeInterpretation_FilteredTypes.xtendbin b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireModelInterpretation_TypeInterpretation_FilteredTypes.xtendbin index 769807cc..e7c2bd91 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireModelInterpretation_TypeInterpretation_FilteredTypes.xtendbin +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.reasoner/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/reasoner/builder/.VampireModelInterpretation_TypeInterpretation_FilteredTypes.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/configs/fam.vsconfig b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/configs/fam.vsconfig index e56cf30c..ca40f487 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/configs/fam.vsconfig +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/configs/fam.vsconfig | |||
@@ -1,10 +1,10 @@ | |||
1 | import epackage "FamMetamodel" | 1 | import epackage "FamMetamodel" |
2 | import viatra "ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.FamPatterns" | 2 | //import viatra "ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.FamPatterns" |
3 | 3 | ||
4 | generate { | 4 | generate { |
5 | metamodel = { package fam } | 5 | metamodel = { package fam } |
6 | constraints = { package ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries} | 6 | // constraints = { package ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries} |
7 | partial-model = { "platform:/resource/ca.mcgill.ecse.dslreasoner.standalone.test/instanceModels/famInstance.xmi"} | 7 | // partial-model = { "platform:/resource/ca.mcgill.ecse.dslreasoner.standalone.test/instanceModels/famInstance.xmi"} |
8 | solver = ViatraSolver | 8 | solver = ViatraSolver |
9 | scope = { | 9 | scope = { |
10 | #node = 10 | 10 | #node = 10 |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/errors.txt b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/errors.txt index 28b10066..d66c8df1 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/errors.txt +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/errors.txt | |||
@@ -445,4 +445,109 @@ Error occured (UnsupportedOperationException): Can not transform pattern "ca.mcg | |||
445 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:339) | 445 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:339) |
446 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:111) | 446 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:111) |
447 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) | 447 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) |
448 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:56) \ No newline at end of file | 448 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)Error occured (NoSuchElementException): Cannot find entry with FQN ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model |
449 | org.eclipse.viatra.query.runtime.registry.impl.GlobalRegistryView.getEntry(GlobalRegistryView.java:56) | ||
450 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.findQuerySpecification(QueryBasedFeatureSettingDelegateFactory.java:152) | ||
451 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.createSettingDelegate(QueryBasedFeatureSettingDelegateFactory.java:113) | ||
452 | org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:854) | ||
453 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionalElementImpl.<init>(FunctionalElementImpl.java:57) | ||
454 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionImpl.<init>(FunctionImpl.java:64) | ||
455 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.createFunction(famFactoryImpl.java:125) | ||
456 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.create(famFactoryImpl.java:68) | ||
457 | hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore.transformInterpretation(Logic2Ecore.java:75) | ||
458 | hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor.executeGenerationTask(GenerationTaskExecutor.java:359) | ||
459 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor._execute(ScriptExecutor.java:129) | ||
460 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:338) | ||
461 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:110) | ||
462 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) | ||
463 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)Error occured (NoSuchElementException): Cannot find entry with FQN ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model | ||
464 | org.eclipse.viatra.query.runtime.registry.impl.GlobalRegistryView.getEntry(GlobalRegistryView.java:56) | ||
465 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.findQuerySpecification(QueryBasedFeatureSettingDelegateFactory.java:152) | ||
466 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.createSettingDelegate(QueryBasedFeatureSettingDelegateFactory.java:113) | ||
467 | org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:854) | ||
468 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionalElementImpl.<init>(FunctionalElementImpl.java:57) | ||
469 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionImpl.<init>(FunctionImpl.java:64) | ||
470 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.createFunction(famFactoryImpl.java:125) | ||
471 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.create(famFactoryImpl.java:68) | ||
472 | hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore.transformInterpretation(Logic2Ecore.java:75) | ||
473 | hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor.executeGenerationTask(GenerationTaskExecutor.java:359) | ||
474 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor._execute(ScriptExecutor.java:129) | ||
475 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:338) | ||
476 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:110) | ||
477 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) | ||
478 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)Error occured (NoSuchElementException): Cannot find entry with FQN ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model | ||
479 | org.eclipse.viatra.query.runtime.registry.impl.GlobalRegistryView.getEntry(GlobalRegistryView.java:56) | ||
480 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.findQuerySpecification(QueryBasedFeatureSettingDelegateFactory.java:152) | ||
481 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.createSettingDelegate(QueryBasedFeatureSettingDelegateFactory.java:113) | ||
482 | org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:854) | ||
483 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionalElementImpl.<init>(FunctionalElementImpl.java:57) | ||
484 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionImpl.<init>(FunctionImpl.java:64) | ||
485 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.createFunction(famFactoryImpl.java:125) | ||
486 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.create(famFactoryImpl.java:68) | ||
487 | hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore.transformInterpretation(Logic2Ecore.java:75) | ||
488 | hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor.executeGenerationTask(GenerationTaskExecutor.java:359) | ||
489 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor._execute(ScriptExecutor.java:129) | ||
490 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:338) | ||
491 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:110) | ||
492 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) | ||
493 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)Error occured (NoSuchElementException): Cannot find entry with FQN ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model | ||
494 | org.eclipse.viatra.query.runtime.registry.impl.GlobalRegistryView.getEntry(GlobalRegistryView.java:56) | ||
495 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.findQuerySpecification(QueryBasedFeatureSettingDelegateFactory.java:152) | ||
496 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.createSettingDelegate(QueryBasedFeatureSettingDelegateFactory.java:113) | ||
497 | org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:854) | ||
498 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionalElementImpl.<init>(FunctionalElementImpl.java:57) | ||
499 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionImpl.<init>(FunctionImpl.java:64) | ||
500 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.createFunction(famFactoryImpl.java:125) | ||
501 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.create(famFactoryImpl.java:68) | ||
502 | hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore.transformInterpretation(Logic2Ecore.java:75) | ||
503 | hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor.executeGenerationTask(GenerationTaskExecutor.java:359) | ||
504 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor._execute(ScriptExecutor.java:129) | ||
505 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:338) | ||
506 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:110) | ||
507 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) | ||
508 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)Error occured (NoSuchElementException): Cannot find entry with FQN ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model | ||
509 | org.eclipse.viatra.query.runtime.registry.impl.GlobalRegistryView.getEntry(GlobalRegistryView.java:56) | ||
510 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.findQuerySpecification(QueryBasedFeatureSettingDelegateFactory.java:152) | ||
511 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.createSettingDelegate(QueryBasedFeatureSettingDelegateFactory.java:113) | ||
512 | org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:854) | ||
513 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionalElementImpl.<init>(FunctionalElementImpl.java:57) | ||
514 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionImpl.<init>(FunctionImpl.java:64) | ||
515 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.createFunction(famFactoryImpl.java:125) | ||
516 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.create(famFactoryImpl.java:68) | ||
517 | hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore.transformInterpretation(Logic2Ecore.java:75) | ||
518 | hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor.executeGenerationTask(GenerationTaskExecutor.java:359) | ||
519 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor._execute(ScriptExecutor.java:129) | ||
520 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:338) | ||
521 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:110) | ||
522 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) | ||
523 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)Error occured (NoSuchElementException): Cannot find entry with FQN ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model | ||
524 | org.eclipse.viatra.query.runtime.registry.impl.GlobalRegistryView.getEntry(GlobalRegistryView.java:56) | ||
525 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.findQuerySpecification(QueryBasedFeatureSettingDelegateFactory.java:152) | ||
526 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.createSettingDelegate(QueryBasedFeatureSettingDelegateFactory.java:113) | ||
527 | org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:854) | ||
528 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionalElementImpl.<init>(FunctionalElementImpl.java:57) | ||
529 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionImpl.<init>(FunctionImpl.java:64) | ||
530 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.createFunction(famFactoryImpl.java:125) | ||
531 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.create(famFactoryImpl.java:68) | ||
532 | hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore.transformInterpretation(Logic2Ecore.java:75) | ||
533 | hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor.executeGenerationTask(GenerationTaskExecutor.java:359) | ||
534 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor._execute(ScriptExecutor.java:129) | ||
535 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:338) | ||
536 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:110) | ||
537 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) | ||
538 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)Error occured (NoSuchElementException): Cannot find entry with FQN ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.model | ||
539 | org.eclipse.viatra.query.runtime.registry.impl.GlobalRegistryView.getEntry(GlobalRegistryView.java:56) | ||
540 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.findQuerySpecification(QueryBasedFeatureSettingDelegateFactory.java:152) | ||
541 | org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeatureSettingDelegateFactory.createSettingDelegate(QueryBasedFeatureSettingDelegateFactory.java:113) | ||
542 | org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:854) | ||
543 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionalElementImpl.<init>(FunctionalElementImpl.java:57) | ||
544 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.FunctionImpl.<init>(FunctionImpl.java:64) | ||
545 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.createFunction(famFactoryImpl.java:125) | ||
546 | ca.mcgill.ecse.dslreasoner.standalone.test.fam.impl.famFactoryImpl.create(famFactoryImpl.java:68) | ||
547 | hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore.transformInterpretation(Logic2Ecore.java:75) | ||
548 | hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor.executeGenerationTask(GenerationTaskExecutor.java:359) | ||
549 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor._execute(ScriptExecutor.java:129) | ||
550 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.execute(ScriptExecutor.java:338) | ||
551 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor.executeScript(ScriptExecutor.java:110) | ||
552 | hu.bme.mit.inf.dslreasoner.application.execution.ScriptExecutor$1.run(ScriptExecutor.java:73) | ||
553 | org.eclipse.core.internal.jobs.Worker.run(Worker.java:60) \ No newline at end of file | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/generated3valued.vql_deactivated b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/generated3valued.vql_deactivated index b3223685..4ca1b4b0 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/generated3valued.vql_deactivated +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/generated3valued.vql_deactivated | |||
@@ -55028,3 +55028,17614 @@ pattern refineRelation_type_attribute_Function( | |||
55028 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | 55028 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); |
55029 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | 55029 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); |
55030 | } | 55030 | } |
55031 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
55032 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
55033 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
55034 | |||
55035 | ////////// | ||
55036 | // 0. Util | ||
55037 | ////////// | ||
55038 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55039 | PartialInterpretation.problem(interpretation,problem); | ||
55040 | } | ||
55041 | |||
55042 | ///////////////////////// | ||
55043 | // 0.1 Existence | ||
55044 | ///////////////////////// | ||
55045 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55046 | find interpretation(problem,interpretation); | ||
55047 | LogicProblem.elements(problem,element); | ||
55048 | } or { | ||
55049 | find interpretation(problem,interpretation); | ||
55050 | PartialInterpretation.newElements(interpretation,element); | ||
55051 | } | ||
55052 | |||
55053 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55054 | find mustExist(problem,interpretation,element); | ||
55055 | } or { | ||
55056 | find interpretation(problem,interpretation); | ||
55057 | neg find elementCloseWorld(element); | ||
55058 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55059 | } | ||
55060 | |||
55061 | private pattern elementCloseWorld(element:DefinedElement) { | ||
55062 | PartialInterpretation.openWorldElements(i,element); | ||
55063 | PartialInterpretation.maxNewElements(i,0); | ||
55064 | } or { | ||
55065 | Scope.targetTypeInterpretation(scope,interpretation); | ||
55066 | PartialTypeInterpratation.elements(interpretation,element); | ||
55067 | Scope.maxNewElements(scope,0); | ||
55068 | } | ||
55069 | |||
55070 | //////////////////////// | ||
55071 | // 0.2 Equivalence | ||
55072 | //////////////////////// | ||
55073 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
55074 | find mayExist(problem,interpretation,a); | ||
55075 | find mayExist(problem,interpretation,b); | ||
55076 | a == b; | ||
55077 | } | ||
55078 | |||
55079 | //////////////////////// | ||
55080 | // 0.3 Required Patterns by TypeIndexer | ||
55081 | //////////////////////// | ||
55082 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
55083 | find interpretation(problem,interpretation); | ||
55084 | LogicProblem.types(problem,type); | ||
55085 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
55086 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55087 | } | ||
55088 | |||
55089 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
55090 | find interpretation(problem,interpretation); | ||
55091 | LogicProblem.types(problem,type); | ||
55092 | TypeDefinition.elements(type,element); | ||
55093 | } or { | ||
55094 | find interpretation(problem,interpretation); | ||
55095 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
55096 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
55097 | } | ||
55098 | |||
55099 | private pattern isPrimitive(element: PrimitiveElement) { | ||
55100 | PrimitiveElement(element); | ||
55101 | } | ||
55102 | |||
55103 | ////////// | ||
55104 | // 1. Problem-Specific Base Indexers | ||
55105 | ////////// | ||
55106 | // 1.1 Type Indexers | ||
55107 | ////////// | ||
55108 | // 1.1.1 primitive Type Indexers | ||
55109 | ////////// | ||
55110 | |||
55111 | ////////// | ||
55112 | // 1.1.2 domain-specific Type Indexers | ||
55113 | ////////// | ||
55114 | /** | ||
55115 | * An element must be an instance of type "FunctionalElement class". | ||
55116 | */ | ||
55117 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55118 | Type.name(type,"FunctionalElement class"); | ||
55119 | find directInstanceOf(problem,interpretation,element,type); | ||
55120 | } | ||
55121 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55122 | find interpretation(problem,interpretation); | ||
55123 | PartialInterpretation.scopes(interpretation,scope); | ||
55124 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55125 | Scope.maxNewElements(scope,0); | ||
55126 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55127 | Type.name(type,"FunctionalElement class"); | ||
55128 | } | ||
55129 | |||
55130 | /** | ||
55131 | * An element may be an instance of type "FunctionalElement class". | ||
55132 | */ | ||
55133 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55134 | { | ||
55135 | find interpretation(problem,interpretation); | ||
55136 | PartialInterpretation.newElements(interpretation,element); | ||
55137 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55138 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55139 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55140 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
55141 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55142 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55143 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
55144 | neg find isPrimitive(element); | ||
55145 | } or { | ||
55146 | find interpretation(problem,interpretation); | ||
55147 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55148 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55149 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55150 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55151 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
55152 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55153 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55154 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
55155 | neg find isPrimitive(element); | ||
55156 | } or | ||
55157 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
55158 | /** | ||
55159 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
55160 | */ | ||
55161 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55162 | Type.name(type,"FunctionalArchitectureModel class"); | ||
55163 | find directInstanceOf(problem,interpretation,element,type); | ||
55164 | } | ||
55165 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55166 | find interpretation(problem,interpretation); | ||
55167 | PartialInterpretation.scopes(interpretation,scope); | ||
55168 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55169 | Scope.maxNewElements(scope,0); | ||
55170 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55171 | Type.name(type,"FunctionalArchitectureModel class"); | ||
55172 | } | ||
55173 | |||
55174 | /** | ||
55175 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
55176 | */ | ||
55177 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55178 | { | ||
55179 | find interpretation(problem,interpretation); | ||
55180 | PartialInterpretation.newElements(interpretation,element); | ||
55181 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55182 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55183 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55184 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55185 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55186 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
55187 | neg find isPrimitive(element); | ||
55188 | } or { | ||
55189 | find interpretation(problem,interpretation); | ||
55190 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55191 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55192 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55193 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55194 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55195 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55196 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
55197 | neg find isPrimitive(element); | ||
55198 | } or | ||
55199 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
55200 | /** | ||
55201 | * An element must be an instance of type "Function class". | ||
55202 | */ | ||
55203 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55204 | Type.name(type,"Function class"); | ||
55205 | find directInstanceOf(problem,interpretation,element,type); | ||
55206 | } | ||
55207 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55208 | find interpretation(problem,interpretation); | ||
55209 | PartialInterpretation.scopes(interpretation,scope); | ||
55210 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55211 | Scope.maxNewElements(scope,0); | ||
55212 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55213 | Type.name(type,"Function class"); | ||
55214 | } | ||
55215 | |||
55216 | /** | ||
55217 | * An element may be an instance of type "Function class". | ||
55218 | */ | ||
55219 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55220 | { | ||
55221 | find interpretation(problem,interpretation); | ||
55222 | PartialInterpretation.newElements(interpretation,element); | ||
55223 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55224 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55225 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55226 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55227 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55228 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
55229 | neg find isPrimitive(element); | ||
55230 | } or { | ||
55231 | find interpretation(problem,interpretation); | ||
55232 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55233 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55234 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55235 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55236 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55237 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55238 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
55239 | neg find isPrimitive(element); | ||
55240 | } or | ||
55241 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
55242 | /** | ||
55243 | * An element must be an instance of type "FAMTerminator class". | ||
55244 | */ | ||
55245 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55246 | Type.name(type,"FAMTerminator class"); | ||
55247 | find directInstanceOf(problem,interpretation,element,type); | ||
55248 | } | ||
55249 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55250 | find interpretation(problem,interpretation); | ||
55251 | PartialInterpretation.scopes(interpretation,scope); | ||
55252 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55253 | Scope.maxNewElements(scope,0); | ||
55254 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55255 | Type.name(type,"FAMTerminator class"); | ||
55256 | } | ||
55257 | |||
55258 | /** | ||
55259 | * An element may be an instance of type "FAMTerminator class". | ||
55260 | */ | ||
55261 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55262 | { | ||
55263 | find interpretation(problem,interpretation); | ||
55264 | PartialInterpretation.newElements(interpretation,element); | ||
55265 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55266 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55267 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55268 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55269 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55270 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
55271 | neg find isPrimitive(element); | ||
55272 | } or { | ||
55273 | find interpretation(problem,interpretation); | ||
55274 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55275 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55276 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55277 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55278 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55279 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55280 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
55281 | neg find isPrimitive(element); | ||
55282 | } or | ||
55283 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
55284 | /** | ||
55285 | * An element must be an instance of type "InformationLink class". | ||
55286 | */ | ||
55287 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55288 | Type.name(type,"InformationLink class"); | ||
55289 | find directInstanceOf(problem,interpretation,element,type); | ||
55290 | } | ||
55291 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55292 | find interpretation(problem,interpretation); | ||
55293 | PartialInterpretation.scopes(interpretation,scope); | ||
55294 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55295 | Scope.maxNewElements(scope,0); | ||
55296 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55297 | Type.name(type,"InformationLink class"); | ||
55298 | } | ||
55299 | |||
55300 | /** | ||
55301 | * An element may be an instance of type "InformationLink class". | ||
55302 | */ | ||
55303 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55304 | { | ||
55305 | find interpretation(problem,interpretation); | ||
55306 | PartialInterpretation.newElements(interpretation,element); | ||
55307 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55308 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55309 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55310 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55311 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55312 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
55313 | neg find isPrimitive(element); | ||
55314 | } or { | ||
55315 | find interpretation(problem,interpretation); | ||
55316 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55317 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55318 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55319 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55320 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55321 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55322 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
55323 | neg find isPrimitive(element); | ||
55324 | } or | ||
55325 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
55326 | /** | ||
55327 | * An element must be an instance of type "FunctionalInterface class". | ||
55328 | */ | ||
55329 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55330 | Type.name(type,"FunctionalInterface class"); | ||
55331 | find directInstanceOf(problem,interpretation,element,type); | ||
55332 | } | ||
55333 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55334 | find interpretation(problem,interpretation); | ||
55335 | PartialInterpretation.scopes(interpretation,scope); | ||
55336 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55337 | Scope.maxNewElements(scope,0); | ||
55338 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55339 | Type.name(type,"FunctionalInterface class"); | ||
55340 | } | ||
55341 | |||
55342 | /** | ||
55343 | * An element may be an instance of type "FunctionalInterface class". | ||
55344 | */ | ||
55345 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55346 | { | ||
55347 | find interpretation(problem,interpretation); | ||
55348 | PartialInterpretation.newElements(interpretation,element); | ||
55349 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55350 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55351 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55352 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55353 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55354 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
55355 | neg find isPrimitive(element); | ||
55356 | } or { | ||
55357 | find interpretation(problem,interpretation); | ||
55358 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55359 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
55360 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55361 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55362 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55363 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55364 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
55365 | neg find isPrimitive(element); | ||
55366 | } or | ||
55367 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
55368 | /** | ||
55369 | * An element must be an instance of type "FunctionalInput class". | ||
55370 | */ | ||
55371 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55372 | Type.name(type,"FunctionalInput class"); | ||
55373 | find directInstanceOf(problem,interpretation,element,type); | ||
55374 | } | ||
55375 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55376 | find interpretation(problem,interpretation); | ||
55377 | PartialInterpretation.scopes(interpretation,scope); | ||
55378 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55379 | Scope.maxNewElements(scope,0); | ||
55380 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55381 | Type.name(type,"FunctionalInput class"); | ||
55382 | } | ||
55383 | |||
55384 | /** | ||
55385 | * An element may be an instance of type "FunctionalInput class". | ||
55386 | */ | ||
55387 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55388 | { | ||
55389 | find interpretation(problem,interpretation); | ||
55390 | PartialInterpretation.newElements(interpretation,element); | ||
55391 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55392 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
55393 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55394 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55395 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55396 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55397 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
55398 | neg find isPrimitive(element); | ||
55399 | } or { | ||
55400 | find interpretation(problem,interpretation); | ||
55401 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55402 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55403 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
55404 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55405 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55406 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55407 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55408 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
55409 | neg find isPrimitive(element); | ||
55410 | } or | ||
55411 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
55412 | /** | ||
55413 | * An element must be an instance of type "FunctionalOutput class". | ||
55414 | */ | ||
55415 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55416 | Type.name(type,"FunctionalOutput class"); | ||
55417 | find directInstanceOf(problem,interpretation,element,type); | ||
55418 | } | ||
55419 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55420 | find interpretation(problem,interpretation); | ||
55421 | PartialInterpretation.scopes(interpretation,scope); | ||
55422 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55423 | Scope.maxNewElements(scope,0); | ||
55424 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55425 | Type.name(type,"FunctionalOutput class"); | ||
55426 | } | ||
55427 | |||
55428 | /** | ||
55429 | * An element may be an instance of type "FunctionalOutput class". | ||
55430 | */ | ||
55431 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55432 | { | ||
55433 | find interpretation(problem,interpretation); | ||
55434 | PartialInterpretation.newElements(interpretation,element); | ||
55435 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55436 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55437 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55438 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55439 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55440 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
55441 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
55442 | neg find isPrimitive(element); | ||
55443 | } or { | ||
55444 | find interpretation(problem,interpretation); | ||
55445 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55446 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55447 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55448 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55449 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55450 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55451 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
55452 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
55453 | neg find isPrimitive(element); | ||
55454 | } or | ||
55455 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
55456 | /** | ||
55457 | * An element must be an instance of type "FunctionalData class". | ||
55458 | */ | ||
55459 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55460 | Type.name(type,"FunctionalData class"); | ||
55461 | find directInstanceOf(problem,interpretation,element,type); | ||
55462 | } | ||
55463 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55464 | find interpretation(problem,interpretation); | ||
55465 | PartialInterpretation.scopes(interpretation,scope); | ||
55466 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55467 | Scope.maxNewElements(scope,0); | ||
55468 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55469 | Type.name(type,"FunctionalData class"); | ||
55470 | } | ||
55471 | |||
55472 | /** | ||
55473 | * An element may be an instance of type "FunctionalData class". | ||
55474 | */ | ||
55475 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55476 | { | ||
55477 | find interpretation(problem,interpretation); | ||
55478 | PartialInterpretation.newElements(interpretation,element); | ||
55479 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55480 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55481 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
55482 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55483 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55484 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55485 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
55486 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
55487 | neg find isPrimitive(element); | ||
55488 | } or { | ||
55489 | find interpretation(problem,interpretation); | ||
55490 | PartialInterpretation.openWorldElements(interpretation,element); | ||
55491 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
55492 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
55493 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
55494 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
55495 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
55496 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
55497 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
55498 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
55499 | neg find isPrimitive(element); | ||
55500 | } or | ||
55501 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
55502 | /** | ||
55503 | * An element must be an instance of type "FunctionType enum". | ||
55504 | */ | ||
55505 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
55506 | Type.name(type,"FunctionType enum"); | ||
55507 | find directInstanceOf(problem,interpretation,element,type); | ||
55508 | } | ||
55509 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
55510 | find interpretation(problem,interpretation); | ||
55511 | PartialInterpretation.scopes(interpretation,scope); | ||
55512 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
55513 | Scope.maxNewElements(scope,0); | ||
55514 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
55515 | Type.name(type,"FunctionType enum"); | ||
55516 | } | ||
55517 | |||
55518 | /** | ||
55519 | * An element may be an instance of type "FunctionType enum". | ||
55520 | */ | ||
55521 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
55522 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
55523 | |||
55524 | ////////// | ||
55525 | // 1.2 Relation Declaration Indexers | ||
55526 | ////////// | ||
55527 | /** | ||
55528 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
55529 | */ | ||
55530 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
55531 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55532 | source: DefinedElement, target:DefinedElement) | ||
55533 | { | ||
55534 | find interpretation(problem,interpretation); | ||
55535 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55536 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
55537 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55538 | BinaryElementRelationLink.param1(link,source); | ||
55539 | BinaryElementRelationLink.param2(link,target); | ||
55540 | } | ||
55541 | /** | ||
55542 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
55543 | */ | ||
55544 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
55545 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55546 | source: DefinedElement, target:DefinedElement) | ||
55547 | { | ||
55548 | find interpretation(problem,interpretation); | ||
55549 | // The two endpoint of the link have to exist | ||
55550 | find mayExist(problem, interpretation, source); | ||
55551 | find mayExist(problem, interpretation, target); | ||
55552 | // Type consistency | ||
55553 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
55554 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
55555 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
55556 | // the upper bound of the multiplicity should be considered. | ||
55557 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
55558 | check(numberOfExistingReferences < 1); | ||
55559 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
55560 | // the upper bound of the opposite reference multiplicity should be considered. | ||
55561 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
55562 | check(numberOfExistingOppositeReferences < 1); | ||
55563 | // The reference is containment, then a new reference cannot be create if: | ||
55564 | // 1. Multiple parents | ||
55565 | neg find mustContains4(problem,interpretation,_,target); | ||
55566 | // 2. Circle in the containment hierarchy | ||
55567 | neg find mustTransitiveContains(source,target); | ||
55568 | } or { | ||
55569 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
55570 | } | ||
55571 | /** | ||
55572 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
55573 | */ | ||
55574 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
55575 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55576 | source: DefinedElement, target:DefinedElement) | ||
55577 | { | ||
55578 | find interpretation(problem,interpretation); | ||
55579 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55580 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
55581 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55582 | BinaryElementRelationLink.param1(link,source); | ||
55583 | BinaryElementRelationLink.param2(link,target); | ||
55584 | } | ||
55585 | /** | ||
55586 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
55587 | */ | ||
55588 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
55589 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55590 | source: DefinedElement, target:DefinedElement) | ||
55591 | { | ||
55592 | find interpretation(problem,interpretation); | ||
55593 | // The two endpoint of the link have to exist | ||
55594 | find mayExist(problem, interpretation, source); | ||
55595 | find mayExist(problem, interpretation, target); | ||
55596 | // Type consistency | ||
55597 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
55598 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
55599 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
55600 | // the upper bound of the multiplicity should be considered. | ||
55601 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
55602 | check(numberOfExistingReferences < 1); | ||
55603 | } or { | ||
55604 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
55605 | } | ||
55606 | /** | ||
55607 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
55608 | */ | ||
55609 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
55610 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55611 | source: DefinedElement, target:DefinedElement) | ||
55612 | { | ||
55613 | find interpretation(problem,interpretation); | ||
55614 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55615 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
55616 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55617 | BinaryElementRelationLink.param1(link,source); | ||
55618 | BinaryElementRelationLink.param2(link,target); | ||
55619 | } | ||
55620 | /** | ||
55621 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
55622 | */ | ||
55623 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
55624 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55625 | source: DefinedElement, target:DefinedElement) | ||
55626 | { | ||
55627 | find interpretation(problem,interpretation); | ||
55628 | // The two endpoint of the link have to exist | ||
55629 | find mayExist(problem, interpretation, source); | ||
55630 | find mayExist(problem, interpretation, target); | ||
55631 | // Type consistency | ||
55632 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
55633 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
55634 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
55635 | // the upper bound of the multiplicity should be considered. | ||
55636 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
55637 | check(numberOfExistingReferences < 1); | ||
55638 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
55639 | // 1. Multiple parents | ||
55640 | neg find mustContains4(problem,interpretation,source,_); | ||
55641 | // 2. Circle in the containment hierarchy | ||
55642 | neg find mustTransitiveContains(source,target); | ||
55643 | } or { | ||
55644 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
55645 | } | ||
55646 | /** | ||
55647 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
55648 | */ | ||
55649 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
55650 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55651 | source: DefinedElement, target:DefinedElement) | ||
55652 | { | ||
55653 | find interpretation(problem,interpretation); | ||
55654 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55655 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
55656 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55657 | BinaryElementRelationLink.param1(link,source); | ||
55658 | BinaryElementRelationLink.param2(link,target); | ||
55659 | } | ||
55660 | /** | ||
55661 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
55662 | */ | ||
55663 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
55664 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55665 | source: DefinedElement, target:DefinedElement) | ||
55666 | { | ||
55667 | find interpretation(problem,interpretation); | ||
55668 | // The two endpoint of the link have to exist | ||
55669 | find mayExist(problem, interpretation, source); | ||
55670 | find mayExist(problem, interpretation, target); | ||
55671 | // Type consistency | ||
55672 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
55673 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
55674 | // The reference is containment, then a new reference cannot be create if: | ||
55675 | // 1. Multiple parents | ||
55676 | neg find mustContains4(problem,interpretation,_,target); | ||
55677 | // 2. Circle in the containment hierarchy | ||
55678 | neg find mustTransitiveContains(source,target); | ||
55679 | } or { | ||
55680 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
55681 | } | ||
55682 | /** | ||
55683 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
55684 | */ | ||
55685 | private pattern mustInRelationsubElements_reference_Function( | ||
55686 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55687 | source: DefinedElement, target:DefinedElement) | ||
55688 | { | ||
55689 | find interpretation(problem,interpretation); | ||
55690 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55691 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
55692 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55693 | BinaryElementRelationLink.param1(link,source); | ||
55694 | BinaryElementRelationLink.param2(link,target); | ||
55695 | } | ||
55696 | /** | ||
55697 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
55698 | */ | ||
55699 | private pattern mayInRelationsubElements_reference_Function( | ||
55700 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55701 | source: DefinedElement, target:DefinedElement) | ||
55702 | { | ||
55703 | find interpretation(problem,interpretation); | ||
55704 | // The two endpoint of the link have to exist | ||
55705 | find mayExist(problem, interpretation, source); | ||
55706 | find mayExist(problem, interpretation, target); | ||
55707 | // Type consistency | ||
55708 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
55709 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
55710 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
55711 | // the upper bound of the opposite reference multiplicity should be considered. | ||
55712 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
55713 | check(numberOfExistingOppositeReferences < 1); | ||
55714 | // The reference is containment, then a new reference cannot be create if: | ||
55715 | // 1. Multiple parents | ||
55716 | neg find mustContains4(problem,interpretation,_,target); | ||
55717 | // 2. Circle in the containment hierarchy | ||
55718 | neg find mustTransitiveContains(source,target); | ||
55719 | } or { | ||
55720 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
55721 | } | ||
55722 | /** | ||
55723 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
55724 | */ | ||
55725 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
55726 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55727 | source: DefinedElement, target:DefinedElement) | ||
55728 | { | ||
55729 | find interpretation(problem,interpretation); | ||
55730 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55731 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
55732 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55733 | BinaryElementRelationLink.param1(link,source); | ||
55734 | BinaryElementRelationLink.param2(link,target); | ||
55735 | } | ||
55736 | /** | ||
55737 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
55738 | */ | ||
55739 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
55740 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55741 | source: DefinedElement, target:DefinedElement) | ||
55742 | { | ||
55743 | find interpretation(problem,interpretation); | ||
55744 | // The two endpoint of the link have to exist | ||
55745 | find mayExist(problem, interpretation, source); | ||
55746 | find mayExist(problem, interpretation, target); | ||
55747 | // Type consistency | ||
55748 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
55749 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
55750 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
55751 | // the upper bound of the multiplicity should be considered. | ||
55752 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
55753 | check(numberOfExistingReferences < 1); | ||
55754 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
55755 | // the upper bound of the opposite reference multiplicity should be considered. | ||
55756 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
55757 | check(numberOfExistingOppositeReferences < 1); | ||
55758 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
55759 | // 1. Multiple parents | ||
55760 | neg find mustContains4(problem,interpretation,source,_); | ||
55761 | // 2. Circle in the containment hierarchy | ||
55762 | neg find mustTransitiveContains(source,target); | ||
55763 | } or { | ||
55764 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
55765 | } | ||
55766 | /** | ||
55767 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
55768 | */ | ||
55769 | private pattern mustInRelationfrom_reference_InformationLink( | ||
55770 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55771 | source: DefinedElement, target:DefinedElement) | ||
55772 | { | ||
55773 | find interpretation(problem,interpretation); | ||
55774 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55775 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
55776 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55777 | BinaryElementRelationLink.param1(link,source); | ||
55778 | BinaryElementRelationLink.param2(link,target); | ||
55779 | } | ||
55780 | /** | ||
55781 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
55782 | */ | ||
55783 | private pattern mayInRelationfrom_reference_InformationLink( | ||
55784 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55785 | source: DefinedElement, target:DefinedElement) | ||
55786 | { | ||
55787 | find interpretation(problem,interpretation); | ||
55788 | // The two endpoint of the link have to exist | ||
55789 | find mayExist(problem, interpretation, source); | ||
55790 | find mayExist(problem, interpretation, target); | ||
55791 | // Type consistency | ||
55792 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
55793 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
55794 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
55795 | // the upper bound of the multiplicity should be considered. | ||
55796 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
55797 | check(numberOfExistingReferences < 1); | ||
55798 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
55799 | // 1. Multiple parents | ||
55800 | neg find mustContains4(problem,interpretation,source,_); | ||
55801 | // 2. Circle in the containment hierarchy | ||
55802 | neg find mustTransitiveContains(source,target); | ||
55803 | } or { | ||
55804 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
55805 | } | ||
55806 | /** | ||
55807 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
55808 | */ | ||
55809 | private pattern mustInRelationto_reference_InformationLink( | ||
55810 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55811 | source: DefinedElement, target:DefinedElement) | ||
55812 | { | ||
55813 | find interpretation(problem,interpretation); | ||
55814 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55815 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
55816 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55817 | BinaryElementRelationLink.param1(link,source); | ||
55818 | BinaryElementRelationLink.param2(link,target); | ||
55819 | } | ||
55820 | /** | ||
55821 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
55822 | */ | ||
55823 | private pattern mayInRelationto_reference_InformationLink( | ||
55824 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55825 | source: DefinedElement, target:DefinedElement) | ||
55826 | { | ||
55827 | find interpretation(problem,interpretation); | ||
55828 | // The two endpoint of the link have to exist | ||
55829 | find mayExist(problem, interpretation, source); | ||
55830 | find mayExist(problem, interpretation, target); | ||
55831 | // Type consistency | ||
55832 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
55833 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
55834 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
55835 | // the upper bound of the multiplicity should be considered. | ||
55836 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
55837 | check(numberOfExistingReferences < 1); | ||
55838 | } or { | ||
55839 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
55840 | } | ||
55841 | /** | ||
55842 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
55843 | */ | ||
55844 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
55845 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55846 | source: DefinedElement, target:DefinedElement) | ||
55847 | { | ||
55848 | find interpretation(problem,interpretation); | ||
55849 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55850 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
55851 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55852 | BinaryElementRelationLink.param1(link,source); | ||
55853 | BinaryElementRelationLink.param2(link,target); | ||
55854 | } | ||
55855 | /** | ||
55856 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
55857 | */ | ||
55858 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
55859 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55860 | source: DefinedElement, target:DefinedElement) | ||
55861 | { | ||
55862 | find interpretation(problem,interpretation); | ||
55863 | // The two endpoint of the link have to exist | ||
55864 | find mayExist(problem, interpretation, source); | ||
55865 | find mayExist(problem, interpretation, target); | ||
55866 | // Type consistency | ||
55867 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
55868 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
55869 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
55870 | // the upper bound of the opposite reference multiplicity should be considered. | ||
55871 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
55872 | check(numberOfExistingOppositeReferences < 1); | ||
55873 | // The reference is containment, then a new reference cannot be create if: | ||
55874 | // 1. Multiple parents | ||
55875 | neg find mustContains4(problem,interpretation,_,target); | ||
55876 | // 2. Circle in the containment hierarchy | ||
55877 | neg find mustTransitiveContains(source,target); | ||
55878 | } or { | ||
55879 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
55880 | } | ||
55881 | /** | ||
55882 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
55883 | */ | ||
55884 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
55885 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55886 | source: DefinedElement, target:DefinedElement) | ||
55887 | { | ||
55888 | find interpretation(problem,interpretation); | ||
55889 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55890 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
55891 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55892 | BinaryElementRelationLink.param1(link,source); | ||
55893 | BinaryElementRelationLink.param2(link,target); | ||
55894 | } | ||
55895 | /** | ||
55896 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
55897 | */ | ||
55898 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
55899 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55900 | source: DefinedElement, target:DefinedElement) | ||
55901 | { | ||
55902 | find interpretation(problem,interpretation); | ||
55903 | // The two endpoint of the link have to exist | ||
55904 | find mayExist(problem, interpretation, source); | ||
55905 | find mayExist(problem, interpretation, target); | ||
55906 | // Type consistency | ||
55907 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
55908 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
55909 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
55910 | // the upper bound of the multiplicity should be considered. | ||
55911 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
55912 | check(numberOfExistingReferences < 1); | ||
55913 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
55914 | // the upper bound of the opposite reference multiplicity should be considered. | ||
55915 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
55916 | check(numberOfExistingOppositeReferences < 1); | ||
55917 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
55918 | // 1. Multiple parents | ||
55919 | neg find mustContains4(problem,interpretation,source,_); | ||
55920 | // 2. Circle in the containment hierarchy | ||
55921 | neg find mustTransitiveContains(source,target); | ||
55922 | } or { | ||
55923 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
55924 | } | ||
55925 | /** | ||
55926 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
55927 | */ | ||
55928 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
55929 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55930 | source: DefinedElement, target:DefinedElement) | ||
55931 | { | ||
55932 | find interpretation(problem,interpretation); | ||
55933 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55934 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
55935 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55936 | BinaryElementRelationLink.param1(link,source); | ||
55937 | BinaryElementRelationLink.param2(link,target); | ||
55938 | } | ||
55939 | /** | ||
55940 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
55941 | */ | ||
55942 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
55943 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55944 | source: DefinedElement, target:DefinedElement) | ||
55945 | { | ||
55946 | find interpretation(problem,interpretation); | ||
55947 | // The two endpoint of the link have to exist | ||
55948 | find mayExist(problem, interpretation, source); | ||
55949 | find mayExist(problem, interpretation, target); | ||
55950 | // Type consistency | ||
55951 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
55952 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
55953 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
55954 | // the upper bound of the opposite reference multiplicity should be considered. | ||
55955 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
55956 | check(numberOfExistingOppositeReferences < 1); | ||
55957 | } or { | ||
55958 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
55959 | } | ||
55960 | /** | ||
55961 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
55962 | */ | ||
55963 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
55964 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55965 | source: DefinedElement, target:DefinedElement) | ||
55966 | { | ||
55967 | find interpretation(problem,interpretation); | ||
55968 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
55969 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
55970 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
55971 | BinaryElementRelationLink.param1(link,source); | ||
55972 | BinaryElementRelationLink.param2(link,target); | ||
55973 | } | ||
55974 | /** | ||
55975 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
55976 | */ | ||
55977 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
55978 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
55979 | source: DefinedElement, target:DefinedElement) | ||
55980 | { | ||
55981 | find interpretation(problem,interpretation); | ||
55982 | // The two endpoint of the link have to exist | ||
55983 | find mayExist(problem, interpretation, source); | ||
55984 | find mayExist(problem, interpretation, target); | ||
55985 | // Type consistency | ||
55986 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
55987 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
55988 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
55989 | // the upper bound of the opposite reference multiplicity should be considered. | ||
55990 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
55991 | check(numberOfExistingOppositeReferences < 1); | ||
55992 | // The reference is containment, then a new reference cannot be create if: | ||
55993 | // 1. Multiple parents | ||
55994 | neg find mustContains4(problem,interpretation,_,target); | ||
55995 | // 2. Circle in the containment hierarchy | ||
55996 | neg find mustTransitiveContains(source,target); | ||
55997 | } or { | ||
55998 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
55999 | } | ||
56000 | /** | ||
56001 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
56002 | */ | ||
56003 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
56004 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56005 | source: DefinedElement, target:DefinedElement) | ||
56006 | { | ||
56007 | find interpretation(problem,interpretation); | ||
56008 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56009 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
56010 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
56011 | BinaryElementRelationLink.param1(link,source); | ||
56012 | BinaryElementRelationLink.param2(link,target); | ||
56013 | } | ||
56014 | /** | ||
56015 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
56016 | */ | ||
56017 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
56018 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56019 | source: DefinedElement, target:DefinedElement) | ||
56020 | { | ||
56021 | find interpretation(problem,interpretation); | ||
56022 | // The two endpoint of the link have to exist | ||
56023 | find mayExist(problem, interpretation, source); | ||
56024 | find mayExist(problem, interpretation, target); | ||
56025 | // Type consistency | ||
56026 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
56027 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
56028 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
56029 | // the upper bound of the multiplicity should be considered. | ||
56030 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
56031 | check(numberOfExistingReferences < 1); | ||
56032 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
56033 | // the upper bound of the opposite reference multiplicity should be considered. | ||
56034 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
56035 | check(numberOfExistingOppositeReferences < 1); | ||
56036 | // The reference is containment, then a new reference cannot be create if: | ||
56037 | // 1. Multiple parents | ||
56038 | neg find mustContains4(problem,interpretation,_,target); | ||
56039 | // 2. Circle in the containment hierarchy | ||
56040 | neg find mustTransitiveContains(source,target); | ||
56041 | } or { | ||
56042 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
56043 | } | ||
56044 | /** | ||
56045 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
56046 | */ | ||
56047 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
56048 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56049 | source: DefinedElement, target:DefinedElement) | ||
56050 | { | ||
56051 | find interpretation(problem,interpretation); | ||
56052 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56053 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
56054 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
56055 | BinaryElementRelationLink.param1(link,source); | ||
56056 | BinaryElementRelationLink.param2(link,target); | ||
56057 | } | ||
56058 | /** | ||
56059 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
56060 | */ | ||
56061 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
56062 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56063 | source: DefinedElement, target:DefinedElement) | ||
56064 | { | ||
56065 | find interpretation(problem,interpretation); | ||
56066 | // The two endpoint of the link have to exist | ||
56067 | find mayExist(problem, interpretation, source); | ||
56068 | find mayExist(problem, interpretation, target); | ||
56069 | // Type consistency | ||
56070 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
56071 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
56072 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
56073 | // the upper bound of the multiplicity should be considered. | ||
56074 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
56075 | check(numberOfExistingReferences < 1); | ||
56076 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
56077 | // 1. Multiple parents | ||
56078 | neg find mustContains4(problem,interpretation,source,_); | ||
56079 | // 2. Circle in the containment hierarchy | ||
56080 | neg find mustTransitiveContains(source,target); | ||
56081 | } or { | ||
56082 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
56083 | } | ||
56084 | /** | ||
56085 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
56086 | */ | ||
56087 | private pattern mustInRelationtype_attribute_Function( | ||
56088 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56089 | source: DefinedElement, target:DefinedElement) | ||
56090 | { | ||
56091 | find interpretation(problem,interpretation); | ||
56092 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56093 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
56094 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
56095 | BinaryElementRelationLink.param1(link,source); | ||
56096 | BinaryElementRelationLink.param2(link,target); | ||
56097 | } | ||
56098 | /** | ||
56099 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
56100 | */ | ||
56101 | private pattern mayInRelationtype_attribute_Function( | ||
56102 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56103 | source: DefinedElement, target:DefinedElement) | ||
56104 | { | ||
56105 | find interpretation(problem,interpretation); | ||
56106 | // The two endpoint of the link have to exist | ||
56107 | find mayExist(problem, interpretation, source); | ||
56108 | find mayExist(problem, interpretation, target); | ||
56109 | // Type consistency | ||
56110 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
56111 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
56112 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
56113 | // the upper bound of the multiplicity should be considered. | ||
56114 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
56115 | check(numberOfExistingReferences < 1); | ||
56116 | } or { | ||
56117 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
56118 | } | ||
56119 | |||
56120 | ////////// | ||
56121 | // 1.3 Relation Definition Indexers | ||
56122 | ////////// | ||
56123 | |||
56124 | ////////// | ||
56125 | // 1.4 Containment Indexer | ||
56126 | ////////// | ||
56127 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
56128 | find mustContains4(_,_,source,target); | ||
56129 | } | ||
56130 | |||
56131 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
56132 | source: DefinedElement, target: DefinedElement) | ||
56133 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
56134 | |||
56135 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
56136 | |||
56137 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
56138 | |||
56139 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
56140 | |||
56141 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
56142 | |||
56143 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
56144 | |||
56145 | private pattern mustTransitiveContains(source,target) { | ||
56146 | find mustContains2+(source,target); | ||
56147 | } | ||
56148 | |||
56149 | ////////// | ||
56150 | // 2. Invalidation Indexers | ||
56151 | ////////// | ||
56152 | // 2.1 Invalidated by WF Queries | ||
56153 | ////////// | ||
56154 | |||
56155 | ////////// | ||
56156 | // 3. Unfinishedness Indexers | ||
56157 | ////////// | ||
56158 | // 3.1 Unfinishedness Measured by Multiplicity | ||
56159 | ////////// | ||
56160 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
56161 | find interpretation(problem,interpretation); | ||
56162 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56163 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
56164 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
56165 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
56166 | check(numberOfExistingReferences < 1); | ||
56167 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
56168 | } | ||
56169 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
56170 | find interpretation(problem,interpretation); | ||
56171 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56172 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
56173 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
56174 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
56175 | check(numberOfExistingReferences < 1); | ||
56176 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
56177 | } | ||
56178 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
56179 | find interpretation(problem,interpretation); | ||
56180 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56181 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
56182 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
56183 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
56184 | check(numberOfExistingReferences < 1); | ||
56185 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
56186 | } | ||
56187 | |||
56188 | ////////// | ||
56189 | // 3.2 Unfinishedness Measured by WF Queries | ||
56190 | ////////// | ||
56191 | |||
56192 | ////////// | ||
56193 | // 4. Refinement Indexers | ||
56194 | ////////// | ||
56195 | // 4.1 Object constructors | ||
56196 | ////////// | ||
56197 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
56198 | { | ||
56199 | find interpretation(problem,interpretation); | ||
56200 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
56201 | find mustExist(problem, interpretation, root); | ||
56202 | }or{ | ||
56203 | find interpretation(problem,interpretation); | ||
56204 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
56205 | find mustExist(problem, interpretation, root); | ||
56206 | }or{ | ||
56207 | find interpretation(problem,interpretation); | ||
56208 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
56209 | find mustExist(problem, interpretation, root); | ||
56210 | }or{ | ||
56211 | find interpretation(problem,interpretation); | ||
56212 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
56213 | find mustExist(problem, interpretation, root); | ||
56214 | }or{ | ||
56215 | find interpretation(problem,interpretation); | ||
56216 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
56217 | find mustExist(problem, interpretation, root); | ||
56218 | }or{ | ||
56219 | find interpretation(problem,interpretation); | ||
56220 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
56221 | find mustExist(problem, interpretation, root); | ||
56222 | }or{ | ||
56223 | find interpretation(problem,interpretation); | ||
56224 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
56225 | find mustExist(problem, interpretation, root); | ||
56226 | }or{ | ||
56227 | find interpretation(problem,interpretation); | ||
56228 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
56229 | find mustExist(problem, interpretation, root); | ||
56230 | }or{ | ||
56231 | find interpretation(problem,interpretation); | ||
56232 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
56233 | find mustExist(problem, interpretation, root); | ||
56234 | } | ||
56235 | pattern createObject_FunctionalArchitectureModel_class( | ||
56236 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56237 | typeInterpretation:PartialComplexTypeInterpretation) | ||
56238 | { | ||
56239 | find interpretation(problem,interpretation); | ||
56240 | neg find hasElementInContainment(problem,interpretation); | ||
56241 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56242 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class"); | ||
56243 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,newObject); | ||
56244 | find mayExist(problem, interpretation, newObject); | ||
56245 | neg find mustExist(problem, interpretation, newObject); | ||
56246 | } | ||
56247 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
56248 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56249 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
56250 | container:DefinedElement) | ||
56251 | { | ||
56252 | find interpretation(problem,interpretation); | ||
56253 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56254 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
56255 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
56256 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
56257 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
56258 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
56259 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
56260 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
56261 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
56262 | find mustExist(problem, interpretation, container); | ||
56263 | neg find mustExist(problem, interpretation, newObject); | ||
56264 | } | ||
56265 | pattern createObject_FunctionalInterface_class( | ||
56266 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56267 | typeInterpretation:PartialComplexTypeInterpretation) | ||
56268 | { | ||
56269 | find interpretation(problem,interpretation); | ||
56270 | neg find hasElementInContainment(problem,interpretation); | ||
56271 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56272 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
56273 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
56274 | find mayExist(problem, interpretation, newObject); | ||
56275 | neg find mustExist(problem, interpretation, newObject); | ||
56276 | } | ||
56277 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
56278 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56279 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
56280 | container:DefinedElement) | ||
56281 | { | ||
56282 | find interpretation(problem,interpretation); | ||
56283 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56284 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
56285 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
56286 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
56287 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
56288 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
56289 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
56290 | find mustExist(problem, interpretation, container); | ||
56291 | neg find mustExist(problem, interpretation, newObject); | ||
56292 | } | ||
56293 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
56294 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56295 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
56296 | container:DefinedElement) | ||
56297 | { | ||
56298 | find interpretation(problem,interpretation); | ||
56299 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56300 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
56301 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
56302 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
56303 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
56304 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
56305 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
56306 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
56307 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
56308 | find mustExist(problem, interpretation, container); | ||
56309 | neg find mustExist(problem, interpretation, newObject); | ||
56310 | } | ||
56311 | pattern createObject_Function_class( | ||
56312 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56313 | typeInterpretation:PartialComplexTypeInterpretation) | ||
56314 | { | ||
56315 | find interpretation(problem,interpretation); | ||
56316 | neg find hasElementInContainment(problem,interpretation); | ||
56317 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56318 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
56319 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
56320 | find mayExist(problem, interpretation, newObject); | ||
56321 | neg find mustExist(problem, interpretation, newObject); | ||
56322 | } | ||
56323 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
56324 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56325 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
56326 | container:DefinedElement) | ||
56327 | { | ||
56328 | find interpretation(problem,interpretation); | ||
56329 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56330 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
56331 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
56332 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
56333 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
56334 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
56335 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
56336 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
56337 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
56338 | find mustExist(problem, interpretation, container); | ||
56339 | neg find mustExist(problem, interpretation, newObject); | ||
56340 | } | ||
56341 | pattern createObject_FunctionalOutput_class( | ||
56342 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56343 | typeInterpretation:PartialComplexTypeInterpretation) | ||
56344 | { | ||
56345 | find interpretation(problem,interpretation); | ||
56346 | neg find hasElementInContainment(problem,interpretation); | ||
56347 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56348 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
56349 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
56350 | find mayExist(problem, interpretation, newObject); | ||
56351 | neg find mustExist(problem, interpretation, newObject); | ||
56352 | } | ||
56353 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
56354 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56355 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
56356 | container:DefinedElement) | ||
56357 | { | ||
56358 | find interpretation(problem,interpretation); | ||
56359 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56360 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
56361 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
56362 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
56363 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
56364 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
56365 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
56366 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
56367 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
56368 | find mustExist(problem, interpretation, container); | ||
56369 | neg find mustExist(problem, interpretation, newObject); | ||
56370 | } | ||
56371 | pattern createObject_InformationLink_class( | ||
56372 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56373 | typeInterpretation:PartialComplexTypeInterpretation) | ||
56374 | { | ||
56375 | find interpretation(problem,interpretation); | ||
56376 | neg find hasElementInContainment(problem,interpretation); | ||
56377 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56378 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
56379 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
56380 | find mayExist(problem, interpretation, newObject); | ||
56381 | neg find mustExist(problem, interpretation, newObject); | ||
56382 | } | ||
56383 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
56384 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56385 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
56386 | container:DefinedElement) | ||
56387 | { | ||
56388 | find interpretation(problem,interpretation); | ||
56389 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56390 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
56391 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
56392 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
56393 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
56394 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
56395 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
56396 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
56397 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
56398 | find mustExist(problem, interpretation, container); | ||
56399 | neg find mustExist(problem, interpretation, newObject); | ||
56400 | } | ||
56401 | pattern createObject_FAMTerminator_class( | ||
56402 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56403 | typeInterpretation:PartialComplexTypeInterpretation) | ||
56404 | { | ||
56405 | find interpretation(problem,interpretation); | ||
56406 | neg find hasElementInContainment(problem,interpretation); | ||
56407 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56408 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
56409 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
56410 | find mayExist(problem, interpretation, newObject); | ||
56411 | neg find mustExist(problem, interpretation, newObject); | ||
56412 | } | ||
56413 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
56414 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56415 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
56416 | container:DefinedElement) | ||
56417 | { | ||
56418 | find interpretation(problem,interpretation); | ||
56419 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56420 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
56421 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
56422 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
56423 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
56424 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
56425 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
56426 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
56427 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
56428 | find mustExist(problem, interpretation, container); | ||
56429 | neg find mustExist(problem, interpretation, newObject); | ||
56430 | } | ||
56431 | pattern createObject_FunctionalInput_class( | ||
56432 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56433 | typeInterpretation:PartialComplexTypeInterpretation) | ||
56434 | { | ||
56435 | find interpretation(problem,interpretation); | ||
56436 | neg find hasElementInContainment(problem,interpretation); | ||
56437 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56438 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
56439 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
56440 | find mayExist(problem, interpretation, newObject); | ||
56441 | neg find mustExist(problem, interpretation, newObject); | ||
56442 | } | ||
56443 | |||
56444 | ////////// | ||
56445 | // 4.2 Type refinement | ||
56446 | ////////// | ||
56447 | pattern refineTypeTo_FunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
56448 | find interpretation(problem,interpretation); | ||
56449 | PartialInterpretation.newElements(interpretation,element); | ||
56450 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56451 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56452 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56453 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56454 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56455 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56456 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56457 | } | ||
56458 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
56459 | find interpretation(problem,interpretation); | ||
56460 | PartialInterpretation.newElements(interpretation,element); | ||
56461 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56462 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56463 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56464 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56465 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56466 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56467 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56468 | } | ||
56469 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
56470 | find interpretation(problem,interpretation); | ||
56471 | PartialInterpretation.newElements(interpretation,element); | ||
56472 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
56473 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56474 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56475 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
56476 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56477 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56478 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56479 | } | ||
56480 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
56481 | find interpretation(problem,interpretation); | ||
56482 | PartialInterpretation.newElements(interpretation,element); | ||
56483 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
56484 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56485 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56486 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
56487 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56488 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56489 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56490 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
56491 | } | ||
56492 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
56493 | find interpretation(problem,interpretation); | ||
56494 | PartialInterpretation.newElements(interpretation,element); | ||
56495 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
56496 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56497 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56498 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56499 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56500 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56501 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56502 | } | ||
56503 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
56504 | find interpretation(problem,interpretation); | ||
56505 | PartialInterpretation.newElements(interpretation,element); | ||
56506 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56507 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56508 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56509 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56510 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56511 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56512 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56513 | } | ||
56514 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
56515 | find interpretation(problem,interpretation); | ||
56516 | PartialInterpretation.newElements(interpretation,element); | ||
56517 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
56518 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56519 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
56520 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56521 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56522 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56523 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56524 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
56525 | } | ||
56526 | |||
56527 | ////////// | ||
56528 | // 4.3 Relation refinement | ||
56529 | ////////// | ||
56530 | pattern refineRelation_model_reference_FunctionalElement( | ||
56531 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56532 | relationIterpretation:PartialRelationInterpretation, | ||
56533 | from: DefinedElement, to: DefinedElement) | ||
56534 | { | ||
56535 | find interpretation(problem,interpretation); | ||
56536 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56537 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
56538 | find mustExist(problem, interpretation, from); | ||
56539 | find mustExist(problem, interpretation, to); | ||
56540 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
56541 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
56542 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
56543 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
56544 | } | ||
56545 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
56546 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56547 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
56548 | from: DefinedElement, to: DefinedElement) | ||
56549 | { | ||
56550 | find interpretation(problem,interpretation); | ||
56551 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56552 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
56553 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
56554 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
56555 | find mustExist(problem, interpretation, from); | ||
56556 | find mustExist(problem, interpretation, to); | ||
56557 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
56558 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
56559 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
56560 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
56561 | } | ||
56562 | pattern refineRelation_type_attribute_Function( | ||
56563 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
56564 | relationIterpretation:PartialRelationInterpretation, | ||
56565 | from: DefinedElement, to: DefinedElement) | ||
56566 | { | ||
56567 | find interpretation(problem,interpretation); | ||
56568 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
56569 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
56570 | find mustExist(problem, interpretation, from); | ||
56571 | find mustExist(problem, interpretation, to); | ||
56572 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
56573 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
56574 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
56575 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
56576 | } | ||
56577 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
56578 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
56579 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
56580 | |||
56581 | ////////// | ||
56582 | // 0. Util | ||
56583 | ////////// | ||
56584 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56585 | PartialInterpretation.problem(interpretation,problem); | ||
56586 | } | ||
56587 | |||
56588 | ///////////////////////// | ||
56589 | // 0.1 Existence | ||
56590 | ///////////////////////// | ||
56591 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56592 | find interpretation(problem,interpretation); | ||
56593 | LogicProblem.elements(problem,element); | ||
56594 | } or { | ||
56595 | find interpretation(problem,interpretation); | ||
56596 | PartialInterpretation.newElements(interpretation,element); | ||
56597 | } | ||
56598 | |||
56599 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56600 | find mustExist(problem,interpretation,element); | ||
56601 | } or { | ||
56602 | find interpretation(problem,interpretation); | ||
56603 | neg find elementCloseWorld(element); | ||
56604 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56605 | } | ||
56606 | |||
56607 | private pattern elementCloseWorld(element:DefinedElement) { | ||
56608 | PartialInterpretation.openWorldElements(i,element); | ||
56609 | PartialInterpretation.maxNewElements(i,0); | ||
56610 | } or { | ||
56611 | Scope.targetTypeInterpretation(scope,interpretation); | ||
56612 | PartialTypeInterpratation.elements(interpretation,element); | ||
56613 | Scope.maxNewElements(scope,0); | ||
56614 | } | ||
56615 | |||
56616 | //////////////////////// | ||
56617 | // 0.2 Equivalence | ||
56618 | //////////////////////// | ||
56619 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
56620 | find mayExist(problem,interpretation,a); | ||
56621 | find mayExist(problem,interpretation,b); | ||
56622 | a == b; | ||
56623 | } | ||
56624 | |||
56625 | //////////////////////// | ||
56626 | // 0.3 Required Patterns by TypeIndexer | ||
56627 | //////////////////////// | ||
56628 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
56629 | find interpretation(problem,interpretation); | ||
56630 | LogicProblem.types(problem,type); | ||
56631 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
56632 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56633 | } | ||
56634 | |||
56635 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
56636 | find interpretation(problem,interpretation); | ||
56637 | LogicProblem.types(problem,type); | ||
56638 | TypeDefinition.elements(type,element); | ||
56639 | } or { | ||
56640 | find interpretation(problem,interpretation); | ||
56641 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
56642 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
56643 | } | ||
56644 | |||
56645 | private pattern isPrimitive(element: PrimitiveElement) { | ||
56646 | PrimitiveElement(element); | ||
56647 | } | ||
56648 | |||
56649 | ////////// | ||
56650 | // 1. Problem-Specific Base Indexers | ||
56651 | ////////// | ||
56652 | // 1.1 Type Indexers | ||
56653 | ////////// | ||
56654 | // 1.1.1 primitive Type Indexers | ||
56655 | ////////// | ||
56656 | |||
56657 | ////////// | ||
56658 | // 1.1.2 domain-specific Type Indexers | ||
56659 | ////////// | ||
56660 | /** | ||
56661 | * An element must be an instance of type "FunctionalElement class". | ||
56662 | */ | ||
56663 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56664 | Type.name(type,"FunctionalElement class"); | ||
56665 | find directInstanceOf(problem,interpretation,element,type); | ||
56666 | } | ||
56667 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56668 | find interpretation(problem,interpretation); | ||
56669 | PartialInterpretation.scopes(interpretation,scope); | ||
56670 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
56671 | Scope.maxNewElements(scope,0); | ||
56672 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56673 | Type.name(type,"FunctionalElement class"); | ||
56674 | } | ||
56675 | |||
56676 | /** | ||
56677 | * An element may be an instance of type "FunctionalElement class". | ||
56678 | */ | ||
56679 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
56680 | { | ||
56681 | find interpretation(problem,interpretation); | ||
56682 | PartialInterpretation.newElements(interpretation,element); | ||
56683 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56684 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56685 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56686 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56687 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
56688 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56689 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
56690 | neg find isPrimitive(element); | ||
56691 | } or { | ||
56692 | find interpretation(problem,interpretation); | ||
56693 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56694 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56695 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56696 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56697 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56698 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
56699 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56700 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
56701 | neg find isPrimitive(element); | ||
56702 | } or | ||
56703 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
56704 | /** | ||
56705 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
56706 | */ | ||
56707 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56708 | Type.name(type,"FunctionalArchitectureModel class"); | ||
56709 | find directInstanceOf(problem,interpretation,element,type); | ||
56710 | } | ||
56711 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56712 | find interpretation(problem,interpretation); | ||
56713 | PartialInterpretation.scopes(interpretation,scope); | ||
56714 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
56715 | Scope.maxNewElements(scope,0); | ||
56716 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56717 | Type.name(type,"FunctionalArchitectureModel class"); | ||
56718 | } | ||
56719 | |||
56720 | /** | ||
56721 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
56722 | */ | ||
56723 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
56724 | { | ||
56725 | find interpretation(problem,interpretation); | ||
56726 | PartialInterpretation.newElements(interpretation,element); | ||
56727 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56728 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56729 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56730 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56731 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56732 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
56733 | neg find isPrimitive(element); | ||
56734 | } or { | ||
56735 | find interpretation(problem,interpretation); | ||
56736 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56737 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56738 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56739 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56740 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56741 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56742 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
56743 | neg find isPrimitive(element); | ||
56744 | } or | ||
56745 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
56746 | /** | ||
56747 | * An element must be an instance of type "Function class". | ||
56748 | */ | ||
56749 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56750 | Type.name(type,"Function class"); | ||
56751 | find directInstanceOf(problem,interpretation,element,type); | ||
56752 | } | ||
56753 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56754 | find interpretation(problem,interpretation); | ||
56755 | PartialInterpretation.scopes(interpretation,scope); | ||
56756 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
56757 | Scope.maxNewElements(scope,0); | ||
56758 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56759 | Type.name(type,"Function class"); | ||
56760 | } | ||
56761 | |||
56762 | /** | ||
56763 | * An element may be an instance of type "Function class". | ||
56764 | */ | ||
56765 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
56766 | { | ||
56767 | find interpretation(problem,interpretation); | ||
56768 | PartialInterpretation.newElements(interpretation,element); | ||
56769 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56770 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56771 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56772 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56773 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56774 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
56775 | neg find isPrimitive(element); | ||
56776 | } or { | ||
56777 | find interpretation(problem,interpretation); | ||
56778 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56779 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56780 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56781 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56782 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56783 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56784 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
56785 | neg find isPrimitive(element); | ||
56786 | } or | ||
56787 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
56788 | /** | ||
56789 | * An element must be an instance of type "FAMTerminator class". | ||
56790 | */ | ||
56791 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56792 | Type.name(type,"FAMTerminator class"); | ||
56793 | find directInstanceOf(problem,interpretation,element,type); | ||
56794 | } | ||
56795 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56796 | find interpretation(problem,interpretation); | ||
56797 | PartialInterpretation.scopes(interpretation,scope); | ||
56798 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
56799 | Scope.maxNewElements(scope,0); | ||
56800 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56801 | Type.name(type,"FAMTerminator class"); | ||
56802 | } | ||
56803 | |||
56804 | /** | ||
56805 | * An element may be an instance of type "FAMTerminator class". | ||
56806 | */ | ||
56807 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
56808 | { | ||
56809 | find interpretation(problem,interpretation); | ||
56810 | PartialInterpretation.newElements(interpretation,element); | ||
56811 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56812 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56813 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56814 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56815 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56816 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
56817 | neg find isPrimitive(element); | ||
56818 | } or { | ||
56819 | find interpretation(problem,interpretation); | ||
56820 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56821 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56822 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56823 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56824 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56825 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56826 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
56827 | neg find isPrimitive(element); | ||
56828 | } or | ||
56829 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
56830 | /** | ||
56831 | * An element must be an instance of type "InformationLink class". | ||
56832 | */ | ||
56833 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56834 | Type.name(type,"InformationLink class"); | ||
56835 | find directInstanceOf(problem,interpretation,element,type); | ||
56836 | } | ||
56837 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56838 | find interpretation(problem,interpretation); | ||
56839 | PartialInterpretation.scopes(interpretation,scope); | ||
56840 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
56841 | Scope.maxNewElements(scope,0); | ||
56842 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56843 | Type.name(type,"InformationLink class"); | ||
56844 | } | ||
56845 | |||
56846 | /** | ||
56847 | * An element may be an instance of type "InformationLink class". | ||
56848 | */ | ||
56849 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
56850 | { | ||
56851 | find interpretation(problem,interpretation); | ||
56852 | PartialInterpretation.newElements(interpretation,element); | ||
56853 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56854 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56855 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56856 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56857 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56858 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
56859 | neg find isPrimitive(element); | ||
56860 | } or { | ||
56861 | find interpretation(problem,interpretation); | ||
56862 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56863 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56864 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56865 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56866 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56867 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56868 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
56869 | neg find isPrimitive(element); | ||
56870 | } or | ||
56871 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
56872 | /** | ||
56873 | * An element must be an instance of type "FunctionalInterface class". | ||
56874 | */ | ||
56875 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56876 | Type.name(type,"FunctionalInterface class"); | ||
56877 | find directInstanceOf(problem,interpretation,element,type); | ||
56878 | } | ||
56879 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56880 | find interpretation(problem,interpretation); | ||
56881 | PartialInterpretation.scopes(interpretation,scope); | ||
56882 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
56883 | Scope.maxNewElements(scope,0); | ||
56884 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56885 | Type.name(type,"FunctionalInterface class"); | ||
56886 | } | ||
56887 | |||
56888 | /** | ||
56889 | * An element may be an instance of type "FunctionalInterface class". | ||
56890 | */ | ||
56891 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
56892 | { | ||
56893 | find interpretation(problem,interpretation); | ||
56894 | PartialInterpretation.newElements(interpretation,element); | ||
56895 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56896 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56897 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56898 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56899 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56900 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
56901 | neg find isPrimitive(element); | ||
56902 | } or { | ||
56903 | find interpretation(problem,interpretation); | ||
56904 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56905 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
56906 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56907 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56908 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56909 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56910 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
56911 | neg find isPrimitive(element); | ||
56912 | } or | ||
56913 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
56914 | /** | ||
56915 | * An element must be an instance of type "FunctionalInput class". | ||
56916 | */ | ||
56917 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56918 | Type.name(type,"FunctionalInput class"); | ||
56919 | find directInstanceOf(problem,interpretation,element,type); | ||
56920 | } | ||
56921 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56922 | find interpretation(problem,interpretation); | ||
56923 | PartialInterpretation.scopes(interpretation,scope); | ||
56924 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
56925 | Scope.maxNewElements(scope,0); | ||
56926 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56927 | Type.name(type,"FunctionalInput class"); | ||
56928 | } | ||
56929 | |||
56930 | /** | ||
56931 | * An element may be an instance of type "FunctionalInput class". | ||
56932 | */ | ||
56933 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
56934 | { | ||
56935 | find interpretation(problem,interpretation); | ||
56936 | PartialInterpretation.newElements(interpretation,element); | ||
56937 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56938 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56939 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
56940 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56941 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56942 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56943 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
56944 | neg find isPrimitive(element); | ||
56945 | } or { | ||
56946 | find interpretation(problem,interpretation); | ||
56947 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56948 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56949 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56950 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
56951 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56952 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56953 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56954 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
56955 | neg find isPrimitive(element); | ||
56956 | } or | ||
56957 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
56958 | /** | ||
56959 | * An element must be an instance of type "FunctionalOutput class". | ||
56960 | */ | ||
56961 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
56962 | Type.name(type,"FunctionalOutput class"); | ||
56963 | find directInstanceOf(problem,interpretation,element,type); | ||
56964 | } | ||
56965 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
56966 | find interpretation(problem,interpretation); | ||
56967 | PartialInterpretation.scopes(interpretation,scope); | ||
56968 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
56969 | Scope.maxNewElements(scope,0); | ||
56970 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
56971 | Type.name(type,"FunctionalOutput class"); | ||
56972 | } | ||
56973 | |||
56974 | /** | ||
56975 | * An element may be an instance of type "FunctionalOutput class". | ||
56976 | */ | ||
56977 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
56978 | { | ||
56979 | find interpretation(problem,interpretation); | ||
56980 | PartialInterpretation.newElements(interpretation,element); | ||
56981 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56982 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56983 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56984 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56985 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
56986 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56987 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
56988 | neg find isPrimitive(element); | ||
56989 | } or { | ||
56990 | find interpretation(problem,interpretation); | ||
56991 | PartialInterpretation.openWorldElements(interpretation,element); | ||
56992 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
56993 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
56994 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
56995 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
56996 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
56997 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
56998 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
56999 | neg find isPrimitive(element); | ||
57000 | } or | ||
57001 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
57002 | /** | ||
57003 | * An element must be an instance of type "FunctionalData class". | ||
57004 | */ | ||
57005 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
57006 | Type.name(type,"FunctionalData class"); | ||
57007 | find directInstanceOf(problem,interpretation,element,type); | ||
57008 | } | ||
57009 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
57010 | find interpretation(problem,interpretation); | ||
57011 | PartialInterpretation.scopes(interpretation,scope); | ||
57012 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
57013 | Scope.maxNewElements(scope,0); | ||
57014 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
57015 | Type.name(type,"FunctionalData class"); | ||
57016 | } | ||
57017 | |||
57018 | /** | ||
57019 | * An element may be an instance of type "FunctionalData class". | ||
57020 | */ | ||
57021 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
57022 | { | ||
57023 | find interpretation(problem,interpretation); | ||
57024 | PartialInterpretation.newElements(interpretation,element); | ||
57025 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
57026 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
57027 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
57028 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
57029 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
57030 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
57031 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
57032 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
57033 | neg find isPrimitive(element); | ||
57034 | } or { | ||
57035 | find interpretation(problem,interpretation); | ||
57036 | PartialInterpretation.openWorldElements(interpretation,element); | ||
57037 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
57038 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
57039 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
57040 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
57041 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
57042 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
57043 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
57044 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
57045 | neg find isPrimitive(element); | ||
57046 | } or | ||
57047 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
57048 | /** | ||
57049 | * An element must be an instance of type "FunctionType enum". | ||
57050 | */ | ||
57051 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
57052 | Type.name(type,"FunctionType enum"); | ||
57053 | find directInstanceOf(problem,interpretation,element,type); | ||
57054 | } | ||
57055 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
57056 | find interpretation(problem,interpretation); | ||
57057 | PartialInterpretation.scopes(interpretation,scope); | ||
57058 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
57059 | Scope.maxNewElements(scope,0); | ||
57060 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
57061 | Type.name(type,"FunctionType enum"); | ||
57062 | } | ||
57063 | |||
57064 | /** | ||
57065 | * An element may be an instance of type "FunctionType enum". | ||
57066 | */ | ||
57067 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
57068 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
57069 | |||
57070 | ////////// | ||
57071 | // 1.2 Relation Declaration Indexers | ||
57072 | ////////// | ||
57073 | /** | ||
57074 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
57075 | */ | ||
57076 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
57077 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57078 | source: DefinedElement, target:DefinedElement) | ||
57079 | { | ||
57080 | find interpretation(problem,interpretation); | ||
57081 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57082 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
57083 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57084 | BinaryElementRelationLink.param1(link,source); | ||
57085 | BinaryElementRelationLink.param2(link,target); | ||
57086 | } | ||
57087 | /** | ||
57088 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
57089 | */ | ||
57090 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
57091 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57092 | source: DefinedElement, target:DefinedElement) | ||
57093 | { | ||
57094 | find interpretation(problem,interpretation); | ||
57095 | // The two endpoint of the link have to exist | ||
57096 | find mayExist(problem, interpretation, source); | ||
57097 | find mayExist(problem, interpretation, target); | ||
57098 | // Type consistency | ||
57099 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
57100 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
57101 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57102 | // the upper bound of the multiplicity should be considered. | ||
57103 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
57104 | check(numberOfExistingReferences < 1); | ||
57105 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
57106 | // the upper bound of the opposite reference multiplicity should be considered. | ||
57107 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
57108 | check(numberOfExistingOppositeReferences < 1); | ||
57109 | // The reference is containment, then a new reference cannot be create if: | ||
57110 | // 1. Multiple parents | ||
57111 | neg find mustContains4(problem,interpretation,_,target); | ||
57112 | // 2. Circle in the containment hierarchy | ||
57113 | neg find mustTransitiveContains(source,target); | ||
57114 | } or { | ||
57115 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
57116 | } | ||
57117 | /** | ||
57118 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
57119 | */ | ||
57120 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
57121 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57122 | source: DefinedElement, target:DefinedElement) | ||
57123 | { | ||
57124 | find interpretation(problem,interpretation); | ||
57125 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57126 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
57127 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57128 | BinaryElementRelationLink.param1(link,source); | ||
57129 | BinaryElementRelationLink.param2(link,target); | ||
57130 | } | ||
57131 | /** | ||
57132 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
57133 | */ | ||
57134 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
57135 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57136 | source: DefinedElement, target:DefinedElement) | ||
57137 | { | ||
57138 | find interpretation(problem,interpretation); | ||
57139 | // The two endpoint of the link have to exist | ||
57140 | find mayExist(problem, interpretation, source); | ||
57141 | find mayExist(problem, interpretation, target); | ||
57142 | // Type consistency | ||
57143 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
57144 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
57145 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57146 | // the upper bound of the multiplicity should be considered. | ||
57147 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
57148 | check(numberOfExistingReferences < 1); | ||
57149 | } or { | ||
57150 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
57151 | } | ||
57152 | /** | ||
57153 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
57154 | */ | ||
57155 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
57156 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57157 | source: DefinedElement, target:DefinedElement) | ||
57158 | { | ||
57159 | find interpretation(problem,interpretation); | ||
57160 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57161 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
57162 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57163 | BinaryElementRelationLink.param1(link,source); | ||
57164 | BinaryElementRelationLink.param2(link,target); | ||
57165 | } | ||
57166 | /** | ||
57167 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
57168 | */ | ||
57169 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
57170 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57171 | source: DefinedElement, target:DefinedElement) | ||
57172 | { | ||
57173 | find interpretation(problem,interpretation); | ||
57174 | // The two endpoint of the link have to exist | ||
57175 | find mayExist(problem, interpretation, source); | ||
57176 | find mayExist(problem, interpretation, target); | ||
57177 | // Type consistency | ||
57178 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
57179 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
57180 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57181 | // the upper bound of the multiplicity should be considered. | ||
57182 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
57183 | check(numberOfExistingReferences < 1); | ||
57184 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
57185 | // 1. Multiple parents | ||
57186 | neg find mustContains4(problem,interpretation,source,_); | ||
57187 | // 2. Circle in the containment hierarchy | ||
57188 | neg find mustTransitiveContains(source,target); | ||
57189 | } or { | ||
57190 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
57191 | } | ||
57192 | /** | ||
57193 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
57194 | */ | ||
57195 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
57196 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57197 | source: DefinedElement, target:DefinedElement) | ||
57198 | { | ||
57199 | find interpretation(problem,interpretation); | ||
57200 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57201 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
57202 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57203 | BinaryElementRelationLink.param1(link,source); | ||
57204 | BinaryElementRelationLink.param2(link,target); | ||
57205 | } | ||
57206 | /** | ||
57207 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
57208 | */ | ||
57209 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
57210 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57211 | source: DefinedElement, target:DefinedElement) | ||
57212 | { | ||
57213 | find interpretation(problem,interpretation); | ||
57214 | // The two endpoint of the link have to exist | ||
57215 | find mayExist(problem, interpretation, source); | ||
57216 | find mayExist(problem, interpretation, target); | ||
57217 | // Type consistency | ||
57218 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
57219 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
57220 | // The reference is containment, then a new reference cannot be create if: | ||
57221 | // 1. Multiple parents | ||
57222 | neg find mustContains4(problem,interpretation,_,target); | ||
57223 | // 2. Circle in the containment hierarchy | ||
57224 | neg find mustTransitiveContains(source,target); | ||
57225 | } or { | ||
57226 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
57227 | } | ||
57228 | /** | ||
57229 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
57230 | */ | ||
57231 | private pattern mustInRelationsubElements_reference_Function( | ||
57232 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57233 | source: DefinedElement, target:DefinedElement) | ||
57234 | { | ||
57235 | find interpretation(problem,interpretation); | ||
57236 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57237 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
57238 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57239 | BinaryElementRelationLink.param1(link,source); | ||
57240 | BinaryElementRelationLink.param2(link,target); | ||
57241 | } | ||
57242 | /** | ||
57243 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
57244 | */ | ||
57245 | private pattern mayInRelationsubElements_reference_Function( | ||
57246 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57247 | source: DefinedElement, target:DefinedElement) | ||
57248 | { | ||
57249 | find interpretation(problem,interpretation); | ||
57250 | // The two endpoint of the link have to exist | ||
57251 | find mayExist(problem, interpretation, source); | ||
57252 | find mayExist(problem, interpretation, target); | ||
57253 | // Type consistency | ||
57254 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
57255 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
57256 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
57257 | // the upper bound of the opposite reference multiplicity should be considered. | ||
57258 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
57259 | check(numberOfExistingOppositeReferences < 1); | ||
57260 | // The reference is containment, then a new reference cannot be create if: | ||
57261 | // 1. Multiple parents | ||
57262 | neg find mustContains4(problem,interpretation,_,target); | ||
57263 | // 2. Circle in the containment hierarchy | ||
57264 | neg find mustTransitiveContains(source,target); | ||
57265 | } or { | ||
57266 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
57267 | } | ||
57268 | /** | ||
57269 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
57270 | */ | ||
57271 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
57272 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57273 | source: DefinedElement, target:DefinedElement) | ||
57274 | { | ||
57275 | find interpretation(problem,interpretation); | ||
57276 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57277 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
57278 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57279 | BinaryElementRelationLink.param1(link,source); | ||
57280 | BinaryElementRelationLink.param2(link,target); | ||
57281 | } | ||
57282 | /** | ||
57283 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
57284 | */ | ||
57285 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
57286 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57287 | source: DefinedElement, target:DefinedElement) | ||
57288 | { | ||
57289 | find interpretation(problem,interpretation); | ||
57290 | // The two endpoint of the link have to exist | ||
57291 | find mayExist(problem, interpretation, source); | ||
57292 | find mayExist(problem, interpretation, target); | ||
57293 | // Type consistency | ||
57294 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
57295 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
57296 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57297 | // the upper bound of the multiplicity should be considered. | ||
57298 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
57299 | check(numberOfExistingReferences < 1); | ||
57300 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
57301 | // the upper bound of the opposite reference multiplicity should be considered. | ||
57302 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
57303 | check(numberOfExistingOppositeReferences < 1); | ||
57304 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
57305 | // 1. Multiple parents | ||
57306 | neg find mustContains4(problem,interpretation,source,_); | ||
57307 | // 2. Circle in the containment hierarchy | ||
57308 | neg find mustTransitiveContains(source,target); | ||
57309 | } or { | ||
57310 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
57311 | } | ||
57312 | /** | ||
57313 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
57314 | */ | ||
57315 | private pattern mustInRelationfrom_reference_InformationLink( | ||
57316 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57317 | source: DefinedElement, target:DefinedElement) | ||
57318 | { | ||
57319 | find interpretation(problem,interpretation); | ||
57320 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57321 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
57322 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57323 | BinaryElementRelationLink.param1(link,source); | ||
57324 | BinaryElementRelationLink.param2(link,target); | ||
57325 | } | ||
57326 | /** | ||
57327 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
57328 | */ | ||
57329 | private pattern mayInRelationfrom_reference_InformationLink( | ||
57330 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57331 | source: DefinedElement, target:DefinedElement) | ||
57332 | { | ||
57333 | find interpretation(problem,interpretation); | ||
57334 | // The two endpoint of the link have to exist | ||
57335 | find mayExist(problem, interpretation, source); | ||
57336 | find mayExist(problem, interpretation, target); | ||
57337 | // Type consistency | ||
57338 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
57339 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
57340 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57341 | // the upper bound of the multiplicity should be considered. | ||
57342 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
57343 | check(numberOfExistingReferences < 1); | ||
57344 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
57345 | // 1. Multiple parents | ||
57346 | neg find mustContains4(problem,interpretation,source,_); | ||
57347 | // 2. Circle in the containment hierarchy | ||
57348 | neg find mustTransitiveContains(source,target); | ||
57349 | } or { | ||
57350 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
57351 | } | ||
57352 | /** | ||
57353 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
57354 | */ | ||
57355 | private pattern mustInRelationto_reference_InformationLink( | ||
57356 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57357 | source: DefinedElement, target:DefinedElement) | ||
57358 | { | ||
57359 | find interpretation(problem,interpretation); | ||
57360 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57361 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
57362 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57363 | BinaryElementRelationLink.param1(link,source); | ||
57364 | BinaryElementRelationLink.param2(link,target); | ||
57365 | } | ||
57366 | /** | ||
57367 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
57368 | */ | ||
57369 | private pattern mayInRelationto_reference_InformationLink( | ||
57370 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57371 | source: DefinedElement, target:DefinedElement) | ||
57372 | { | ||
57373 | find interpretation(problem,interpretation); | ||
57374 | // The two endpoint of the link have to exist | ||
57375 | find mayExist(problem, interpretation, source); | ||
57376 | find mayExist(problem, interpretation, target); | ||
57377 | // Type consistency | ||
57378 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
57379 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
57380 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57381 | // the upper bound of the multiplicity should be considered. | ||
57382 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
57383 | check(numberOfExistingReferences < 1); | ||
57384 | } or { | ||
57385 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
57386 | } | ||
57387 | /** | ||
57388 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
57389 | */ | ||
57390 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
57391 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57392 | source: DefinedElement, target:DefinedElement) | ||
57393 | { | ||
57394 | find interpretation(problem,interpretation); | ||
57395 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57396 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
57397 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57398 | BinaryElementRelationLink.param1(link,source); | ||
57399 | BinaryElementRelationLink.param2(link,target); | ||
57400 | } | ||
57401 | /** | ||
57402 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
57403 | */ | ||
57404 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
57405 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57406 | source: DefinedElement, target:DefinedElement) | ||
57407 | { | ||
57408 | find interpretation(problem,interpretation); | ||
57409 | // The two endpoint of the link have to exist | ||
57410 | find mayExist(problem, interpretation, source); | ||
57411 | find mayExist(problem, interpretation, target); | ||
57412 | // Type consistency | ||
57413 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
57414 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
57415 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
57416 | // the upper bound of the opposite reference multiplicity should be considered. | ||
57417 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
57418 | check(numberOfExistingOppositeReferences < 1); | ||
57419 | // The reference is containment, then a new reference cannot be create if: | ||
57420 | // 1. Multiple parents | ||
57421 | neg find mustContains4(problem,interpretation,_,target); | ||
57422 | // 2. Circle in the containment hierarchy | ||
57423 | neg find mustTransitiveContains(source,target); | ||
57424 | } or { | ||
57425 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
57426 | } | ||
57427 | /** | ||
57428 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
57429 | */ | ||
57430 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
57431 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57432 | source: DefinedElement, target:DefinedElement) | ||
57433 | { | ||
57434 | find interpretation(problem,interpretation); | ||
57435 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57436 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
57437 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57438 | BinaryElementRelationLink.param1(link,source); | ||
57439 | BinaryElementRelationLink.param2(link,target); | ||
57440 | } | ||
57441 | /** | ||
57442 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
57443 | */ | ||
57444 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
57445 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57446 | source: DefinedElement, target:DefinedElement) | ||
57447 | { | ||
57448 | find interpretation(problem,interpretation); | ||
57449 | // The two endpoint of the link have to exist | ||
57450 | find mayExist(problem, interpretation, source); | ||
57451 | find mayExist(problem, interpretation, target); | ||
57452 | // Type consistency | ||
57453 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
57454 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
57455 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57456 | // the upper bound of the multiplicity should be considered. | ||
57457 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
57458 | check(numberOfExistingReferences < 1); | ||
57459 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
57460 | // the upper bound of the opposite reference multiplicity should be considered. | ||
57461 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
57462 | check(numberOfExistingOppositeReferences < 1); | ||
57463 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
57464 | // 1. Multiple parents | ||
57465 | neg find mustContains4(problem,interpretation,source,_); | ||
57466 | // 2. Circle in the containment hierarchy | ||
57467 | neg find mustTransitiveContains(source,target); | ||
57468 | } or { | ||
57469 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
57470 | } | ||
57471 | /** | ||
57472 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
57473 | */ | ||
57474 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
57475 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57476 | source: DefinedElement, target:DefinedElement) | ||
57477 | { | ||
57478 | find interpretation(problem,interpretation); | ||
57479 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57480 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
57481 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57482 | BinaryElementRelationLink.param1(link,source); | ||
57483 | BinaryElementRelationLink.param2(link,target); | ||
57484 | } | ||
57485 | /** | ||
57486 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
57487 | */ | ||
57488 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
57489 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57490 | source: DefinedElement, target:DefinedElement) | ||
57491 | { | ||
57492 | find interpretation(problem,interpretation); | ||
57493 | // The two endpoint of the link have to exist | ||
57494 | find mayExist(problem, interpretation, source); | ||
57495 | find mayExist(problem, interpretation, target); | ||
57496 | // Type consistency | ||
57497 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
57498 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
57499 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
57500 | // the upper bound of the opposite reference multiplicity should be considered. | ||
57501 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
57502 | check(numberOfExistingOppositeReferences < 1); | ||
57503 | } or { | ||
57504 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
57505 | } | ||
57506 | /** | ||
57507 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
57508 | */ | ||
57509 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
57510 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57511 | source: DefinedElement, target:DefinedElement) | ||
57512 | { | ||
57513 | find interpretation(problem,interpretation); | ||
57514 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57515 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
57516 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57517 | BinaryElementRelationLink.param1(link,source); | ||
57518 | BinaryElementRelationLink.param2(link,target); | ||
57519 | } | ||
57520 | /** | ||
57521 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
57522 | */ | ||
57523 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
57524 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57525 | source: DefinedElement, target:DefinedElement) | ||
57526 | { | ||
57527 | find interpretation(problem,interpretation); | ||
57528 | // The two endpoint of the link have to exist | ||
57529 | find mayExist(problem, interpretation, source); | ||
57530 | find mayExist(problem, interpretation, target); | ||
57531 | // Type consistency | ||
57532 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
57533 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
57534 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
57535 | // the upper bound of the opposite reference multiplicity should be considered. | ||
57536 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
57537 | check(numberOfExistingOppositeReferences < 1); | ||
57538 | // The reference is containment, then a new reference cannot be create if: | ||
57539 | // 1. Multiple parents | ||
57540 | neg find mustContains4(problem,interpretation,_,target); | ||
57541 | // 2. Circle in the containment hierarchy | ||
57542 | neg find mustTransitiveContains(source,target); | ||
57543 | } or { | ||
57544 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
57545 | } | ||
57546 | /** | ||
57547 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
57548 | */ | ||
57549 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
57550 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57551 | source: DefinedElement, target:DefinedElement) | ||
57552 | { | ||
57553 | find interpretation(problem,interpretation); | ||
57554 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57555 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
57556 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57557 | BinaryElementRelationLink.param1(link,source); | ||
57558 | BinaryElementRelationLink.param2(link,target); | ||
57559 | } | ||
57560 | /** | ||
57561 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
57562 | */ | ||
57563 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
57564 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57565 | source: DefinedElement, target:DefinedElement) | ||
57566 | { | ||
57567 | find interpretation(problem,interpretation); | ||
57568 | // The two endpoint of the link have to exist | ||
57569 | find mayExist(problem, interpretation, source); | ||
57570 | find mayExist(problem, interpretation, target); | ||
57571 | // Type consistency | ||
57572 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
57573 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
57574 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57575 | // the upper bound of the multiplicity should be considered. | ||
57576 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
57577 | check(numberOfExistingReferences < 1); | ||
57578 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
57579 | // the upper bound of the opposite reference multiplicity should be considered. | ||
57580 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
57581 | check(numberOfExistingOppositeReferences < 1); | ||
57582 | // The reference is containment, then a new reference cannot be create if: | ||
57583 | // 1. Multiple parents | ||
57584 | neg find mustContains4(problem,interpretation,_,target); | ||
57585 | // 2. Circle in the containment hierarchy | ||
57586 | neg find mustTransitiveContains(source,target); | ||
57587 | } or { | ||
57588 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
57589 | } | ||
57590 | /** | ||
57591 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
57592 | */ | ||
57593 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
57594 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57595 | source: DefinedElement, target:DefinedElement) | ||
57596 | { | ||
57597 | find interpretation(problem,interpretation); | ||
57598 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57599 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
57600 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57601 | BinaryElementRelationLink.param1(link,source); | ||
57602 | BinaryElementRelationLink.param2(link,target); | ||
57603 | } | ||
57604 | /** | ||
57605 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
57606 | */ | ||
57607 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
57608 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57609 | source: DefinedElement, target:DefinedElement) | ||
57610 | { | ||
57611 | find interpretation(problem,interpretation); | ||
57612 | // The two endpoint of the link have to exist | ||
57613 | find mayExist(problem, interpretation, source); | ||
57614 | find mayExist(problem, interpretation, target); | ||
57615 | // Type consistency | ||
57616 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
57617 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
57618 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57619 | // the upper bound of the multiplicity should be considered. | ||
57620 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
57621 | check(numberOfExistingReferences < 1); | ||
57622 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
57623 | // 1. Multiple parents | ||
57624 | neg find mustContains4(problem,interpretation,source,_); | ||
57625 | // 2. Circle in the containment hierarchy | ||
57626 | neg find mustTransitiveContains(source,target); | ||
57627 | } or { | ||
57628 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
57629 | } | ||
57630 | /** | ||
57631 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
57632 | */ | ||
57633 | private pattern mustInRelationtype_attribute_Function( | ||
57634 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57635 | source: DefinedElement, target:DefinedElement) | ||
57636 | { | ||
57637 | find interpretation(problem,interpretation); | ||
57638 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57639 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
57640 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
57641 | BinaryElementRelationLink.param1(link,source); | ||
57642 | BinaryElementRelationLink.param2(link,target); | ||
57643 | } | ||
57644 | /** | ||
57645 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
57646 | */ | ||
57647 | private pattern mayInRelationtype_attribute_Function( | ||
57648 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57649 | source: DefinedElement, target:DefinedElement) | ||
57650 | { | ||
57651 | find interpretation(problem,interpretation); | ||
57652 | // The two endpoint of the link have to exist | ||
57653 | find mayExist(problem, interpretation, source); | ||
57654 | find mayExist(problem, interpretation, target); | ||
57655 | // Type consistency | ||
57656 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
57657 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
57658 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
57659 | // the upper bound of the multiplicity should be considered. | ||
57660 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
57661 | check(numberOfExistingReferences < 1); | ||
57662 | } or { | ||
57663 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
57664 | } | ||
57665 | |||
57666 | ////////// | ||
57667 | // 1.3 Relation Definition Indexers | ||
57668 | ////////// | ||
57669 | |||
57670 | ////////// | ||
57671 | // 1.4 Containment Indexer | ||
57672 | ////////// | ||
57673 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
57674 | find mustContains4(_,_,source,target); | ||
57675 | } | ||
57676 | |||
57677 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
57678 | source: DefinedElement, target: DefinedElement) | ||
57679 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
57680 | |||
57681 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
57682 | |||
57683 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
57684 | |||
57685 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
57686 | |||
57687 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
57688 | |||
57689 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
57690 | |||
57691 | private pattern mustTransitiveContains(source,target) { | ||
57692 | find mustContains2+(source,target); | ||
57693 | } | ||
57694 | |||
57695 | ////////// | ||
57696 | // 2. Invalidation Indexers | ||
57697 | ////////// | ||
57698 | // 2.1 Invalidated by WF Queries | ||
57699 | ////////// | ||
57700 | |||
57701 | ////////// | ||
57702 | // 3. Unfinishedness Indexers | ||
57703 | ////////// | ||
57704 | // 3.1 Unfinishedness Measured by Multiplicity | ||
57705 | ////////// | ||
57706 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
57707 | find interpretation(problem,interpretation); | ||
57708 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57709 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
57710 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
57711 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
57712 | check(numberOfExistingReferences < 1); | ||
57713 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
57714 | } | ||
57715 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
57716 | find interpretation(problem,interpretation); | ||
57717 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57718 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
57719 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
57720 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
57721 | check(numberOfExistingReferences < 1); | ||
57722 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
57723 | } | ||
57724 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
57725 | find interpretation(problem,interpretation); | ||
57726 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
57727 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
57728 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
57729 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
57730 | check(numberOfExistingReferences < 1); | ||
57731 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
57732 | } | ||
57733 | |||
57734 | ////////// | ||
57735 | // 3.2 Unfinishedness Measured by WF Queries | ||
57736 | ////////// | ||
57737 | |||
57738 | ////////// | ||
57739 | // 4. Refinement Indexers | ||
57740 | ////////// | ||
57741 | // 4.1 Object constructors | ||
57742 | ////////// | ||
57743 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
57744 | { | ||
57745 | find interpretation(problem,interpretation); | ||
57746 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
57747 | find mustExist(problem, interpretation, root); | ||
57748 | }or{ | ||
57749 | find interpretation(problem,interpretation); | ||
57750 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
57751 | find mustExist(problem, interpretation, root); | ||
57752 | }or{ | ||
57753 | find interpretation(problem,interpretation); | ||
57754 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
57755 | find mustExist(problem, interpretation, root); | ||
57756 | }or{ | ||
57757 | find interpretation(problem,interpretation); | ||
57758 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
57759 | find mustExist(problem, interpretation, root); | ||
57760 | }or{ | ||
57761 | find interpretation(problem,interpretation); | ||
57762 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
57763 | find mustExist(problem, interpretation, root); | ||
57764 | }or{ | ||
57765 | find interpretation(problem,interpretation); | ||
57766 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
57767 | find mustExist(problem, interpretation, root); | ||
57768 | }or{ | ||
57769 | find interpretation(problem,interpretation); | ||
57770 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
57771 | find mustExist(problem, interpretation, root); | ||
57772 | }or{ | ||
57773 | find interpretation(problem,interpretation); | ||
57774 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
57775 | find mustExist(problem, interpretation, root); | ||
57776 | }or{ | ||
57777 | find interpretation(problem,interpretation); | ||
57778 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
57779 | find mustExist(problem, interpretation, root); | ||
57780 | } | ||
57781 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
57782 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57783 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
57784 | container:DefinedElement) | ||
57785 | { | ||
57786 | find interpretation(problem,interpretation); | ||
57787 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57788 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
57789 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
57790 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
57791 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
57792 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
57793 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
57794 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
57795 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
57796 | find mustExist(problem, interpretation, container); | ||
57797 | neg find mustExist(problem, interpretation, newObject); | ||
57798 | } | ||
57799 | pattern createObject_FunctionalInterface_class( | ||
57800 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57801 | typeInterpretation:PartialComplexTypeInterpretation) | ||
57802 | { | ||
57803 | find interpretation(problem,interpretation); | ||
57804 | neg find hasElementInContainment(problem,interpretation); | ||
57805 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57806 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
57807 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
57808 | find mayExist(problem, interpretation, newObject); | ||
57809 | neg find mustExist(problem, interpretation, newObject); | ||
57810 | } | ||
57811 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
57812 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57813 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
57814 | container:DefinedElement) | ||
57815 | { | ||
57816 | find interpretation(problem,interpretation); | ||
57817 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57818 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
57819 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
57820 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
57821 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
57822 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
57823 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
57824 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
57825 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
57826 | find mustExist(problem, interpretation, container); | ||
57827 | neg find mustExist(problem, interpretation, newObject); | ||
57828 | } | ||
57829 | pattern createObject_InformationLink_class( | ||
57830 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57831 | typeInterpretation:PartialComplexTypeInterpretation) | ||
57832 | { | ||
57833 | find interpretation(problem,interpretation); | ||
57834 | neg find hasElementInContainment(problem,interpretation); | ||
57835 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57836 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
57837 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
57838 | find mayExist(problem, interpretation, newObject); | ||
57839 | neg find mustExist(problem, interpretation, newObject); | ||
57840 | } | ||
57841 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
57842 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57843 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
57844 | container:DefinedElement) | ||
57845 | { | ||
57846 | find interpretation(problem,interpretation); | ||
57847 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57848 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
57849 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
57850 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
57851 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
57852 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
57853 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
57854 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
57855 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
57856 | find mustExist(problem, interpretation, container); | ||
57857 | neg find mustExist(problem, interpretation, newObject); | ||
57858 | } | ||
57859 | pattern createObject_FunctionalOutput_class( | ||
57860 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57861 | typeInterpretation:PartialComplexTypeInterpretation) | ||
57862 | { | ||
57863 | find interpretation(problem,interpretation); | ||
57864 | neg find hasElementInContainment(problem,interpretation); | ||
57865 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57866 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
57867 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
57868 | find mayExist(problem, interpretation, newObject); | ||
57869 | neg find mustExist(problem, interpretation, newObject); | ||
57870 | } | ||
57871 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
57872 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57873 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
57874 | container:DefinedElement) | ||
57875 | { | ||
57876 | find interpretation(problem,interpretation); | ||
57877 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57878 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
57879 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
57880 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
57881 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
57882 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
57883 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
57884 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
57885 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
57886 | find mustExist(problem, interpretation, container); | ||
57887 | neg find mustExist(problem, interpretation, newObject); | ||
57888 | } | ||
57889 | pattern createObject_FAMTerminator_class( | ||
57890 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57891 | typeInterpretation:PartialComplexTypeInterpretation) | ||
57892 | { | ||
57893 | find interpretation(problem,interpretation); | ||
57894 | neg find hasElementInContainment(problem,interpretation); | ||
57895 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57896 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
57897 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
57898 | find mayExist(problem, interpretation, newObject); | ||
57899 | neg find mustExist(problem, interpretation, newObject); | ||
57900 | } | ||
57901 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
57902 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57903 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
57904 | container:DefinedElement) | ||
57905 | { | ||
57906 | find interpretation(problem,interpretation); | ||
57907 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57908 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
57909 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
57910 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
57911 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
57912 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
57913 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
57914 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
57915 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
57916 | find mustExist(problem, interpretation, container); | ||
57917 | neg find mustExist(problem, interpretation, newObject); | ||
57918 | } | ||
57919 | pattern createObject_FunctionalInput_class( | ||
57920 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57921 | typeInterpretation:PartialComplexTypeInterpretation) | ||
57922 | { | ||
57923 | find interpretation(problem,interpretation); | ||
57924 | neg find hasElementInContainment(problem,interpretation); | ||
57925 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57926 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
57927 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
57928 | find mayExist(problem, interpretation, newObject); | ||
57929 | neg find mustExist(problem, interpretation, newObject); | ||
57930 | } | ||
57931 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
57932 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57933 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
57934 | container:DefinedElement) | ||
57935 | { | ||
57936 | find interpretation(problem,interpretation); | ||
57937 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57938 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
57939 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
57940 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
57941 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
57942 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
57943 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
57944 | find mustExist(problem, interpretation, container); | ||
57945 | neg find mustExist(problem, interpretation, newObject); | ||
57946 | } | ||
57947 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
57948 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57949 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
57950 | container:DefinedElement) | ||
57951 | { | ||
57952 | find interpretation(problem,interpretation); | ||
57953 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57954 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
57955 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
57956 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
57957 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
57958 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
57959 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
57960 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
57961 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
57962 | find mustExist(problem, interpretation, container); | ||
57963 | neg find mustExist(problem, interpretation, newObject); | ||
57964 | } | ||
57965 | pattern createObject_Function_class( | ||
57966 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57967 | typeInterpretation:PartialComplexTypeInterpretation) | ||
57968 | { | ||
57969 | find interpretation(problem,interpretation); | ||
57970 | neg find hasElementInContainment(problem,interpretation); | ||
57971 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57972 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
57973 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
57974 | find mayExist(problem, interpretation, newObject); | ||
57975 | neg find mustExist(problem, interpretation, newObject); | ||
57976 | } | ||
57977 | pattern createObject_FunctionalArchitectureModel_class( | ||
57978 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
57979 | typeInterpretation:PartialComplexTypeInterpretation) | ||
57980 | { | ||
57981 | find interpretation(problem,interpretation); | ||
57982 | neg find hasElementInContainment(problem,interpretation); | ||
57983 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
57984 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class"); | ||
57985 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,newObject); | ||
57986 | find mayExist(problem, interpretation, newObject); | ||
57987 | neg find mustExist(problem, interpretation, newObject); | ||
57988 | } | ||
57989 | |||
57990 | ////////// | ||
57991 | // 4.2 Type refinement | ||
57992 | ////////// | ||
57993 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
57994 | find interpretation(problem,interpretation); | ||
57995 | PartialInterpretation.newElements(interpretation,element); | ||
57996 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
57997 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
57998 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
57999 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58000 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58001 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58002 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58003 | } | ||
58004 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
58005 | find interpretation(problem,interpretation); | ||
58006 | PartialInterpretation.newElements(interpretation,element); | ||
58007 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
58008 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58009 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58010 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58011 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58012 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58013 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58014 | } | ||
58015 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
58016 | find interpretation(problem,interpretation); | ||
58017 | PartialInterpretation.newElements(interpretation,element); | ||
58018 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
58019 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58020 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58021 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
58022 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58023 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58024 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
58025 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58026 | } | ||
58027 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
58028 | find interpretation(problem,interpretation); | ||
58029 | PartialInterpretation.newElements(interpretation,element); | ||
58030 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58031 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58032 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58033 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58034 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58035 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58036 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58037 | } | ||
58038 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
58039 | find interpretation(problem,interpretation); | ||
58040 | PartialInterpretation.newElements(interpretation,element); | ||
58041 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
58042 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58043 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58044 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
58045 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58046 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58047 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
58048 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58049 | } | ||
58050 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
58051 | find interpretation(problem,interpretation); | ||
58052 | PartialInterpretation.newElements(interpretation,element); | ||
58053 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
58054 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58055 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58056 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58057 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58058 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
58059 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58060 | } | ||
58061 | pattern refineTypeTo_FunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
58062 | find interpretation(problem,interpretation); | ||
58063 | PartialInterpretation.newElements(interpretation,element); | ||
58064 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58065 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58066 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58067 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58068 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58069 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58070 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58071 | } | ||
58072 | |||
58073 | ////////// | ||
58074 | // 4.3 Relation refinement | ||
58075 | ////////// | ||
58076 | pattern refineRelation_model_reference_FunctionalElement( | ||
58077 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58078 | relationIterpretation:PartialRelationInterpretation, | ||
58079 | from: DefinedElement, to: DefinedElement) | ||
58080 | { | ||
58081 | find interpretation(problem,interpretation); | ||
58082 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58083 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
58084 | find mustExist(problem, interpretation, from); | ||
58085 | find mustExist(problem, interpretation, to); | ||
58086 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
58087 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
58088 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
58089 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
58090 | } | ||
58091 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
58092 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58093 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
58094 | from: DefinedElement, to: DefinedElement) | ||
58095 | { | ||
58096 | find interpretation(problem,interpretation); | ||
58097 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58098 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
58099 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
58100 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
58101 | find mustExist(problem, interpretation, from); | ||
58102 | find mustExist(problem, interpretation, to); | ||
58103 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
58104 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
58105 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
58106 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
58107 | } | ||
58108 | pattern refineRelation_type_attribute_Function( | ||
58109 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58110 | relationIterpretation:PartialRelationInterpretation, | ||
58111 | from: DefinedElement, to: DefinedElement) | ||
58112 | { | ||
58113 | find interpretation(problem,interpretation); | ||
58114 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58115 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
58116 | find mustExist(problem, interpretation, from); | ||
58117 | find mustExist(problem, interpretation, to); | ||
58118 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
58119 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
58120 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
58121 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
58122 | } | ||
58123 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
58124 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
58125 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
58126 | |||
58127 | ////////// | ||
58128 | // 0. Util | ||
58129 | ////////// | ||
58130 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58131 | PartialInterpretation.problem(interpretation,problem); | ||
58132 | } | ||
58133 | |||
58134 | ///////////////////////// | ||
58135 | // 0.1 Existence | ||
58136 | ///////////////////////// | ||
58137 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58138 | find interpretation(problem,interpretation); | ||
58139 | LogicProblem.elements(problem,element); | ||
58140 | } or { | ||
58141 | find interpretation(problem,interpretation); | ||
58142 | PartialInterpretation.newElements(interpretation,element); | ||
58143 | } | ||
58144 | |||
58145 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58146 | find mustExist(problem,interpretation,element); | ||
58147 | } or { | ||
58148 | find interpretation(problem,interpretation); | ||
58149 | neg find elementCloseWorld(element); | ||
58150 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58151 | } | ||
58152 | |||
58153 | private pattern elementCloseWorld(element:DefinedElement) { | ||
58154 | PartialInterpretation.openWorldElements(i,element); | ||
58155 | PartialInterpretation.maxNewElements(i,0); | ||
58156 | } or { | ||
58157 | Scope.targetTypeInterpretation(scope,interpretation); | ||
58158 | PartialTypeInterpratation.elements(interpretation,element); | ||
58159 | Scope.maxNewElements(scope,0); | ||
58160 | } | ||
58161 | |||
58162 | //////////////////////// | ||
58163 | // 0.2 Equivalence | ||
58164 | //////////////////////// | ||
58165 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
58166 | find mayExist(problem,interpretation,a); | ||
58167 | find mayExist(problem,interpretation,b); | ||
58168 | a == b; | ||
58169 | } | ||
58170 | |||
58171 | //////////////////////// | ||
58172 | // 0.3 Required Patterns by TypeIndexer | ||
58173 | //////////////////////// | ||
58174 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
58175 | find interpretation(problem,interpretation); | ||
58176 | LogicProblem.types(problem,type); | ||
58177 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
58178 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58179 | } | ||
58180 | |||
58181 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
58182 | find interpretation(problem,interpretation); | ||
58183 | LogicProblem.types(problem,type); | ||
58184 | TypeDefinition.elements(type,element); | ||
58185 | } or { | ||
58186 | find interpretation(problem,interpretation); | ||
58187 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
58188 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
58189 | } | ||
58190 | |||
58191 | private pattern isPrimitive(element: PrimitiveElement) { | ||
58192 | PrimitiveElement(element); | ||
58193 | } | ||
58194 | |||
58195 | ////////// | ||
58196 | // 1. Problem-Specific Base Indexers | ||
58197 | ////////// | ||
58198 | // 1.1 Type Indexers | ||
58199 | ////////// | ||
58200 | // 1.1.1 primitive Type Indexers | ||
58201 | ////////// | ||
58202 | |||
58203 | ////////// | ||
58204 | // 1.1.2 domain-specific Type Indexers | ||
58205 | ////////// | ||
58206 | /** | ||
58207 | * An element must be an instance of type "FunctionalElement class". | ||
58208 | */ | ||
58209 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58210 | Type.name(type,"FunctionalElement class"); | ||
58211 | find directInstanceOf(problem,interpretation,element,type); | ||
58212 | } | ||
58213 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58214 | find interpretation(problem,interpretation); | ||
58215 | PartialInterpretation.scopes(interpretation,scope); | ||
58216 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58217 | Scope.maxNewElements(scope,0); | ||
58218 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58219 | Type.name(type,"FunctionalElement class"); | ||
58220 | } | ||
58221 | |||
58222 | /** | ||
58223 | * An element may be an instance of type "FunctionalElement class". | ||
58224 | */ | ||
58225 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58226 | { | ||
58227 | find interpretation(problem,interpretation); | ||
58228 | PartialInterpretation.newElements(interpretation,element); | ||
58229 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58230 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58231 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
58232 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58233 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58234 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58235 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
58236 | neg find isPrimitive(element); | ||
58237 | } or { | ||
58238 | find interpretation(problem,interpretation); | ||
58239 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58240 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58241 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58242 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
58243 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58244 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58245 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58246 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
58247 | neg find isPrimitive(element); | ||
58248 | } or | ||
58249 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
58250 | /** | ||
58251 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
58252 | */ | ||
58253 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58254 | Type.name(type,"FunctionalArchitectureModel class"); | ||
58255 | find directInstanceOf(problem,interpretation,element,type); | ||
58256 | } | ||
58257 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58258 | find interpretation(problem,interpretation); | ||
58259 | PartialInterpretation.scopes(interpretation,scope); | ||
58260 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58261 | Scope.maxNewElements(scope,0); | ||
58262 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58263 | Type.name(type,"FunctionalArchitectureModel class"); | ||
58264 | } | ||
58265 | |||
58266 | /** | ||
58267 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
58268 | */ | ||
58269 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58270 | { | ||
58271 | find interpretation(problem,interpretation); | ||
58272 | PartialInterpretation.newElements(interpretation,element); | ||
58273 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58274 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58275 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
58276 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58277 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58278 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58279 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
58280 | neg find isPrimitive(element); | ||
58281 | } or { | ||
58282 | find interpretation(problem,interpretation); | ||
58283 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58284 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58285 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58286 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
58287 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58288 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58289 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58290 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
58291 | neg find isPrimitive(element); | ||
58292 | } or | ||
58293 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
58294 | /** | ||
58295 | * An element must be an instance of type "Function class". | ||
58296 | */ | ||
58297 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58298 | Type.name(type,"Function class"); | ||
58299 | find directInstanceOf(problem,interpretation,element,type); | ||
58300 | } | ||
58301 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58302 | find interpretation(problem,interpretation); | ||
58303 | PartialInterpretation.scopes(interpretation,scope); | ||
58304 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58305 | Scope.maxNewElements(scope,0); | ||
58306 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58307 | Type.name(type,"Function class"); | ||
58308 | } | ||
58309 | |||
58310 | /** | ||
58311 | * An element may be an instance of type "Function class". | ||
58312 | */ | ||
58313 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58314 | { | ||
58315 | find interpretation(problem,interpretation); | ||
58316 | PartialInterpretation.newElements(interpretation,element); | ||
58317 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58318 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58319 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58320 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58321 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58322 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
58323 | neg find isPrimitive(element); | ||
58324 | } or { | ||
58325 | find interpretation(problem,interpretation); | ||
58326 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58327 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58328 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58329 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58330 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58331 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58332 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
58333 | neg find isPrimitive(element); | ||
58334 | } or | ||
58335 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
58336 | /** | ||
58337 | * An element must be an instance of type "FAMTerminator class". | ||
58338 | */ | ||
58339 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58340 | Type.name(type,"FAMTerminator class"); | ||
58341 | find directInstanceOf(problem,interpretation,element,type); | ||
58342 | } | ||
58343 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58344 | find interpretation(problem,interpretation); | ||
58345 | PartialInterpretation.scopes(interpretation,scope); | ||
58346 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58347 | Scope.maxNewElements(scope,0); | ||
58348 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58349 | Type.name(type,"FAMTerminator class"); | ||
58350 | } | ||
58351 | |||
58352 | /** | ||
58353 | * An element may be an instance of type "FAMTerminator class". | ||
58354 | */ | ||
58355 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58356 | { | ||
58357 | find interpretation(problem,interpretation); | ||
58358 | PartialInterpretation.newElements(interpretation,element); | ||
58359 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58360 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58361 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58362 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58363 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58364 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
58365 | neg find isPrimitive(element); | ||
58366 | } or { | ||
58367 | find interpretation(problem,interpretation); | ||
58368 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58369 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58370 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58371 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58372 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58373 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58374 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
58375 | neg find isPrimitive(element); | ||
58376 | } or | ||
58377 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
58378 | /** | ||
58379 | * An element must be an instance of type "InformationLink class". | ||
58380 | */ | ||
58381 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58382 | Type.name(type,"InformationLink class"); | ||
58383 | find directInstanceOf(problem,interpretation,element,type); | ||
58384 | } | ||
58385 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58386 | find interpretation(problem,interpretation); | ||
58387 | PartialInterpretation.scopes(interpretation,scope); | ||
58388 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58389 | Scope.maxNewElements(scope,0); | ||
58390 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58391 | Type.name(type,"InformationLink class"); | ||
58392 | } | ||
58393 | |||
58394 | /** | ||
58395 | * An element may be an instance of type "InformationLink class". | ||
58396 | */ | ||
58397 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58398 | { | ||
58399 | find interpretation(problem,interpretation); | ||
58400 | PartialInterpretation.newElements(interpretation,element); | ||
58401 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58402 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58403 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58404 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58405 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58406 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
58407 | neg find isPrimitive(element); | ||
58408 | } or { | ||
58409 | find interpretation(problem,interpretation); | ||
58410 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58411 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58412 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58413 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58414 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58415 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58416 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
58417 | neg find isPrimitive(element); | ||
58418 | } or | ||
58419 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
58420 | /** | ||
58421 | * An element must be an instance of type "FunctionalInterface class". | ||
58422 | */ | ||
58423 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58424 | Type.name(type,"FunctionalInterface class"); | ||
58425 | find directInstanceOf(problem,interpretation,element,type); | ||
58426 | } | ||
58427 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58428 | find interpretation(problem,interpretation); | ||
58429 | PartialInterpretation.scopes(interpretation,scope); | ||
58430 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58431 | Scope.maxNewElements(scope,0); | ||
58432 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58433 | Type.name(type,"FunctionalInterface class"); | ||
58434 | } | ||
58435 | |||
58436 | /** | ||
58437 | * An element may be an instance of type "FunctionalInterface class". | ||
58438 | */ | ||
58439 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58440 | { | ||
58441 | find interpretation(problem,interpretation); | ||
58442 | PartialInterpretation.newElements(interpretation,element); | ||
58443 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58444 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58445 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58446 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58447 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58448 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
58449 | neg find isPrimitive(element); | ||
58450 | } or { | ||
58451 | find interpretation(problem,interpretation); | ||
58452 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58453 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58454 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58455 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58456 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58457 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58458 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
58459 | neg find isPrimitive(element); | ||
58460 | } or | ||
58461 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
58462 | /** | ||
58463 | * An element must be an instance of type "FunctionalInput class". | ||
58464 | */ | ||
58465 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58466 | Type.name(type,"FunctionalInput class"); | ||
58467 | find directInstanceOf(problem,interpretation,element,type); | ||
58468 | } | ||
58469 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58470 | find interpretation(problem,interpretation); | ||
58471 | PartialInterpretation.scopes(interpretation,scope); | ||
58472 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58473 | Scope.maxNewElements(scope,0); | ||
58474 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58475 | Type.name(type,"FunctionalInput class"); | ||
58476 | } | ||
58477 | |||
58478 | /** | ||
58479 | * An element may be an instance of type "FunctionalInput class". | ||
58480 | */ | ||
58481 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58482 | { | ||
58483 | find interpretation(problem,interpretation); | ||
58484 | PartialInterpretation.newElements(interpretation,element); | ||
58485 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58486 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58487 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58488 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
58489 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58490 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58491 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
58492 | neg find isPrimitive(element); | ||
58493 | } or { | ||
58494 | find interpretation(problem,interpretation); | ||
58495 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58496 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58497 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58498 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58499 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
58500 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58501 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58502 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
58503 | neg find isPrimitive(element); | ||
58504 | } or | ||
58505 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
58506 | /** | ||
58507 | * An element must be an instance of type "FunctionalOutput class". | ||
58508 | */ | ||
58509 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58510 | Type.name(type,"FunctionalOutput class"); | ||
58511 | find directInstanceOf(problem,interpretation,element,type); | ||
58512 | } | ||
58513 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58514 | find interpretation(problem,interpretation); | ||
58515 | PartialInterpretation.scopes(interpretation,scope); | ||
58516 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58517 | Scope.maxNewElements(scope,0); | ||
58518 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58519 | Type.name(type,"FunctionalOutput class"); | ||
58520 | } | ||
58521 | |||
58522 | /** | ||
58523 | * An element may be an instance of type "FunctionalOutput class". | ||
58524 | */ | ||
58525 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58526 | { | ||
58527 | find interpretation(problem,interpretation); | ||
58528 | PartialInterpretation.newElements(interpretation,element); | ||
58529 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58530 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58531 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58532 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58533 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58534 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
58535 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
58536 | neg find isPrimitive(element); | ||
58537 | } or { | ||
58538 | find interpretation(problem,interpretation); | ||
58539 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58540 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58541 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58542 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58543 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58544 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58545 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
58546 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
58547 | neg find isPrimitive(element); | ||
58548 | } or | ||
58549 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
58550 | /** | ||
58551 | * An element must be an instance of type "FunctionalData class". | ||
58552 | */ | ||
58553 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58554 | Type.name(type,"FunctionalData class"); | ||
58555 | find directInstanceOf(problem,interpretation,element,type); | ||
58556 | } | ||
58557 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58558 | find interpretation(problem,interpretation); | ||
58559 | PartialInterpretation.scopes(interpretation,scope); | ||
58560 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58561 | Scope.maxNewElements(scope,0); | ||
58562 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58563 | Type.name(type,"FunctionalData class"); | ||
58564 | } | ||
58565 | |||
58566 | /** | ||
58567 | * An element may be an instance of type "FunctionalData class". | ||
58568 | */ | ||
58569 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58570 | { | ||
58571 | find interpretation(problem,interpretation); | ||
58572 | PartialInterpretation.newElements(interpretation,element); | ||
58573 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58574 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58575 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58576 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
58577 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58578 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
58579 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58580 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
58581 | neg find isPrimitive(element); | ||
58582 | } or { | ||
58583 | find interpretation(problem,interpretation); | ||
58584 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58585 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58586 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58587 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
58588 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
58589 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58590 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
58591 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58592 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
58593 | neg find isPrimitive(element); | ||
58594 | } or | ||
58595 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
58596 | /** | ||
58597 | * An element must be an instance of type "FunctionType enum". | ||
58598 | */ | ||
58599 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58600 | Type.name(type,"FunctionType enum"); | ||
58601 | find directInstanceOf(problem,interpretation,element,type); | ||
58602 | } | ||
58603 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58604 | find interpretation(problem,interpretation); | ||
58605 | PartialInterpretation.scopes(interpretation,scope); | ||
58606 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58607 | Scope.maxNewElements(scope,0); | ||
58608 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58609 | Type.name(type,"FunctionType enum"); | ||
58610 | } | ||
58611 | |||
58612 | /** | ||
58613 | * An element may be an instance of type "FunctionType enum". | ||
58614 | */ | ||
58615 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58616 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
58617 | /** | ||
58618 | * An element must be an instance of type "FunctionalArchitectureModel class DefinedPart". | ||
58619 | */ | ||
58620 | private pattern mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58621 | Type.name(type,"FunctionalArchitectureModel class DefinedPart"); | ||
58622 | find directInstanceOf(problem,interpretation,element,type); | ||
58623 | } | ||
58624 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58625 | find interpretation(problem,interpretation); | ||
58626 | PartialInterpretation.scopes(interpretation,scope); | ||
58627 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58628 | Scope.maxNewElements(scope,0); | ||
58629 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58630 | Type.name(type,"FunctionalArchitectureModel class DefinedPart"); | ||
58631 | } | ||
58632 | |||
58633 | /** | ||
58634 | * An element may be an instance of type "FunctionalArchitectureModel class DefinedPart". | ||
58635 | */ | ||
58636 | private pattern mayInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58637 | { find mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem,interpretation,element); } | ||
58638 | /** | ||
58639 | * An element must be an instance of type "FunctionalArchitectureModel class UndefinedPart". | ||
58640 | */ | ||
58641 | private pattern mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
58642 | Type.name(type,"FunctionalArchitectureModel class UndefinedPart"); | ||
58643 | find directInstanceOf(problem,interpretation,element,type); | ||
58644 | } | ||
58645 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
58646 | find interpretation(problem,interpretation); | ||
58647 | PartialInterpretation.scopes(interpretation,scope); | ||
58648 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
58649 | Scope.maxNewElements(scope,0); | ||
58650 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
58651 | Type.name(type,"FunctionalArchitectureModel class UndefinedPart"); | ||
58652 | } | ||
58653 | |||
58654 | /** | ||
58655 | * An element may be an instance of type "FunctionalArchitectureModel class UndefinedPart". | ||
58656 | */ | ||
58657 | private pattern mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
58658 | { | ||
58659 | find interpretation(problem,interpretation); | ||
58660 | PartialInterpretation.newElements(interpretation,element); | ||
58661 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58662 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58663 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58664 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58665 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58666 | neg find scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem, interpretation); | ||
58667 | neg find isPrimitive(element); | ||
58668 | } or { | ||
58669 | find interpretation(problem,interpretation); | ||
58670 | PartialInterpretation.openWorldElements(interpretation,element); | ||
58671 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
58672 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
58673 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
58674 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
58675 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
58676 | neg find scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem, interpretation); | ||
58677 | neg find isPrimitive(element); | ||
58678 | } or | ||
58679 | { find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); } | ||
58680 | |||
58681 | ////////// | ||
58682 | // 1.2 Relation Declaration Indexers | ||
58683 | ////////// | ||
58684 | /** | ||
58685 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
58686 | */ | ||
58687 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
58688 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58689 | source: DefinedElement, target:DefinedElement) | ||
58690 | { | ||
58691 | find interpretation(problem,interpretation); | ||
58692 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58693 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
58694 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
58695 | BinaryElementRelationLink.param1(link,source); | ||
58696 | BinaryElementRelationLink.param2(link,target); | ||
58697 | } | ||
58698 | /** | ||
58699 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
58700 | */ | ||
58701 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
58702 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58703 | source: DefinedElement, target:DefinedElement) | ||
58704 | { | ||
58705 | find interpretation(problem,interpretation); | ||
58706 | // The two endpoint of the link have to exist | ||
58707 | find mayExist(problem, interpretation, source); | ||
58708 | find mayExist(problem, interpretation, target); | ||
58709 | // Type consistency | ||
58710 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
58711 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
58712 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
58713 | // the upper bound of the multiplicity should be considered. | ||
58714 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
58715 | check(numberOfExistingReferences < 1); | ||
58716 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
58717 | // the upper bound of the opposite reference multiplicity should be considered. | ||
58718 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
58719 | check(numberOfExistingOppositeReferences < 1); | ||
58720 | // The reference is containment, then a new reference cannot be create if: | ||
58721 | // 1. Multiple parents | ||
58722 | neg find mustContains4(problem,interpretation,_,target); | ||
58723 | // 2. Circle in the containment hierarchy | ||
58724 | neg find mustTransitiveContains(source,target); | ||
58725 | } or { | ||
58726 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
58727 | } | ||
58728 | /** | ||
58729 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
58730 | */ | ||
58731 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
58732 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58733 | source: DefinedElement, target:DefinedElement) | ||
58734 | { | ||
58735 | find interpretation(problem,interpretation); | ||
58736 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58737 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
58738 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
58739 | BinaryElementRelationLink.param1(link,source); | ||
58740 | BinaryElementRelationLink.param2(link,target); | ||
58741 | } | ||
58742 | /** | ||
58743 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
58744 | */ | ||
58745 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
58746 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58747 | source: DefinedElement, target:DefinedElement) | ||
58748 | { | ||
58749 | find interpretation(problem,interpretation); | ||
58750 | // The two endpoint of the link have to exist | ||
58751 | find mayExist(problem, interpretation, source); | ||
58752 | find mayExist(problem, interpretation, target); | ||
58753 | // Type consistency | ||
58754 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
58755 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
58756 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
58757 | // the upper bound of the multiplicity should be considered. | ||
58758 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
58759 | check(numberOfExistingReferences < 1); | ||
58760 | } or { | ||
58761 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
58762 | } | ||
58763 | /** | ||
58764 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
58765 | */ | ||
58766 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
58767 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58768 | source: DefinedElement, target:DefinedElement) | ||
58769 | { | ||
58770 | find interpretation(problem,interpretation); | ||
58771 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58772 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
58773 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
58774 | BinaryElementRelationLink.param1(link,source); | ||
58775 | BinaryElementRelationLink.param2(link,target); | ||
58776 | } | ||
58777 | /** | ||
58778 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
58779 | */ | ||
58780 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
58781 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58782 | source: DefinedElement, target:DefinedElement) | ||
58783 | { | ||
58784 | find interpretation(problem,interpretation); | ||
58785 | // The two endpoint of the link have to exist | ||
58786 | find mayExist(problem, interpretation, source); | ||
58787 | find mayExist(problem, interpretation, target); | ||
58788 | // Type consistency | ||
58789 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
58790 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
58791 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
58792 | // the upper bound of the multiplicity should be considered. | ||
58793 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
58794 | check(numberOfExistingReferences < 1); | ||
58795 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
58796 | // 1. Multiple parents | ||
58797 | neg find mustContains4(problem,interpretation,source,_); | ||
58798 | // 2. Circle in the containment hierarchy | ||
58799 | neg find mustTransitiveContains(source,target); | ||
58800 | } or { | ||
58801 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
58802 | } | ||
58803 | /** | ||
58804 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
58805 | */ | ||
58806 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
58807 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58808 | source: DefinedElement, target:DefinedElement) | ||
58809 | { | ||
58810 | find interpretation(problem,interpretation); | ||
58811 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58812 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
58813 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
58814 | BinaryElementRelationLink.param1(link,source); | ||
58815 | BinaryElementRelationLink.param2(link,target); | ||
58816 | } | ||
58817 | /** | ||
58818 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
58819 | */ | ||
58820 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
58821 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58822 | source: DefinedElement, target:DefinedElement) | ||
58823 | { | ||
58824 | find interpretation(problem,interpretation); | ||
58825 | // The two endpoint of the link have to exist | ||
58826 | find mayExist(problem, interpretation, source); | ||
58827 | find mayExist(problem, interpretation, target); | ||
58828 | // Type consistency | ||
58829 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
58830 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
58831 | // The reference is containment, then a new reference cannot be create if: | ||
58832 | // 1. Multiple parents | ||
58833 | neg find mustContains4(problem,interpretation,_,target); | ||
58834 | // 2. Circle in the containment hierarchy | ||
58835 | neg find mustTransitiveContains(source,target); | ||
58836 | } or { | ||
58837 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
58838 | } | ||
58839 | /** | ||
58840 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
58841 | */ | ||
58842 | private pattern mustInRelationsubElements_reference_Function( | ||
58843 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58844 | source: DefinedElement, target:DefinedElement) | ||
58845 | { | ||
58846 | find interpretation(problem,interpretation); | ||
58847 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58848 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
58849 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
58850 | BinaryElementRelationLink.param1(link,source); | ||
58851 | BinaryElementRelationLink.param2(link,target); | ||
58852 | } | ||
58853 | /** | ||
58854 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
58855 | */ | ||
58856 | private pattern mayInRelationsubElements_reference_Function( | ||
58857 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58858 | source: DefinedElement, target:DefinedElement) | ||
58859 | { | ||
58860 | find interpretation(problem,interpretation); | ||
58861 | // The two endpoint of the link have to exist | ||
58862 | find mayExist(problem, interpretation, source); | ||
58863 | find mayExist(problem, interpretation, target); | ||
58864 | // Type consistency | ||
58865 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
58866 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
58867 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
58868 | // the upper bound of the opposite reference multiplicity should be considered. | ||
58869 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
58870 | check(numberOfExistingOppositeReferences < 1); | ||
58871 | // The reference is containment, then a new reference cannot be create if: | ||
58872 | // 1. Multiple parents | ||
58873 | neg find mustContains4(problem,interpretation,_,target); | ||
58874 | // 2. Circle in the containment hierarchy | ||
58875 | neg find mustTransitiveContains(source,target); | ||
58876 | } or { | ||
58877 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
58878 | } | ||
58879 | /** | ||
58880 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
58881 | */ | ||
58882 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
58883 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58884 | source: DefinedElement, target:DefinedElement) | ||
58885 | { | ||
58886 | find interpretation(problem,interpretation); | ||
58887 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58888 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
58889 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
58890 | BinaryElementRelationLink.param1(link,source); | ||
58891 | BinaryElementRelationLink.param2(link,target); | ||
58892 | } | ||
58893 | /** | ||
58894 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
58895 | */ | ||
58896 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
58897 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58898 | source: DefinedElement, target:DefinedElement) | ||
58899 | { | ||
58900 | find interpretation(problem,interpretation); | ||
58901 | // The two endpoint of the link have to exist | ||
58902 | find mayExist(problem, interpretation, source); | ||
58903 | find mayExist(problem, interpretation, target); | ||
58904 | // Type consistency | ||
58905 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
58906 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
58907 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
58908 | // the upper bound of the multiplicity should be considered. | ||
58909 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
58910 | check(numberOfExistingReferences < 1); | ||
58911 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
58912 | // the upper bound of the opposite reference multiplicity should be considered. | ||
58913 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
58914 | check(numberOfExistingOppositeReferences < 1); | ||
58915 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
58916 | // 1. Multiple parents | ||
58917 | neg find mustContains4(problem,interpretation,source,_); | ||
58918 | // 2. Circle in the containment hierarchy | ||
58919 | neg find mustTransitiveContains(source,target); | ||
58920 | } or { | ||
58921 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
58922 | } | ||
58923 | /** | ||
58924 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
58925 | */ | ||
58926 | private pattern mustInRelationfrom_reference_InformationLink( | ||
58927 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58928 | source: DefinedElement, target:DefinedElement) | ||
58929 | { | ||
58930 | find interpretation(problem,interpretation); | ||
58931 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58932 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
58933 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
58934 | BinaryElementRelationLink.param1(link,source); | ||
58935 | BinaryElementRelationLink.param2(link,target); | ||
58936 | } | ||
58937 | /** | ||
58938 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
58939 | */ | ||
58940 | private pattern mayInRelationfrom_reference_InformationLink( | ||
58941 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58942 | source: DefinedElement, target:DefinedElement) | ||
58943 | { | ||
58944 | find interpretation(problem,interpretation); | ||
58945 | // The two endpoint of the link have to exist | ||
58946 | find mayExist(problem, interpretation, source); | ||
58947 | find mayExist(problem, interpretation, target); | ||
58948 | // Type consistency | ||
58949 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
58950 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
58951 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
58952 | // the upper bound of the multiplicity should be considered. | ||
58953 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
58954 | check(numberOfExistingReferences < 1); | ||
58955 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
58956 | // 1. Multiple parents | ||
58957 | neg find mustContains4(problem,interpretation,source,_); | ||
58958 | // 2. Circle in the containment hierarchy | ||
58959 | neg find mustTransitiveContains(source,target); | ||
58960 | } or { | ||
58961 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
58962 | } | ||
58963 | /** | ||
58964 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
58965 | */ | ||
58966 | private pattern mustInRelationto_reference_InformationLink( | ||
58967 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58968 | source: DefinedElement, target:DefinedElement) | ||
58969 | { | ||
58970 | find interpretation(problem,interpretation); | ||
58971 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
58972 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
58973 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
58974 | BinaryElementRelationLink.param1(link,source); | ||
58975 | BinaryElementRelationLink.param2(link,target); | ||
58976 | } | ||
58977 | /** | ||
58978 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
58979 | */ | ||
58980 | private pattern mayInRelationto_reference_InformationLink( | ||
58981 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
58982 | source: DefinedElement, target:DefinedElement) | ||
58983 | { | ||
58984 | find interpretation(problem,interpretation); | ||
58985 | // The two endpoint of the link have to exist | ||
58986 | find mayExist(problem, interpretation, source); | ||
58987 | find mayExist(problem, interpretation, target); | ||
58988 | // Type consistency | ||
58989 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
58990 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
58991 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
58992 | // the upper bound of the multiplicity should be considered. | ||
58993 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
58994 | check(numberOfExistingReferences < 1); | ||
58995 | } or { | ||
58996 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
58997 | } | ||
58998 | /** | ||
58999 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
59000 | */ | ||
59001 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
59002 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59003 | source: DefinedElement, target:DefinedElement) | ||
59004 | { | ||
59005 | find interpretation(problem,interpretation); | ||
59006 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59007 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
59008 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
59009 | BinaryElementRelationLink.param1(link,source); | ||
59010 | BinaryElementRelationLink.param2(link,target); | ||
59011 | } | ||
59012 | /** | ||
59013 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
59014 | */ | ||
59015 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
59016 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59017 | source: DefinedElement, target:DefinedElement) | ||
59018 | { | ||
59019 | find interpretation(problem,interpretation); | ||
59020 | // The two endpoint of the link have to exist | ||
59021 | find mayExist(problem, interpretation, source); | ||
59022 | find mayExist(problem, interpretation, target); | ||
59023 | // Type consistency | ||
59024 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
59025 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
59026 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
59027 | // the upper bound of the opposite reference multiplicity should be considered. | ||
59028 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
59029 | check(numberOfExistingOppositeReferences < 1); | ||
59030 | // The reference is containment, then a new reference cannot be create if: | ||
59031 | // 1. Multiple parents | ||
59032 | neg find mustContains4(problem,interpretation,_,target); | ||
59033 | // 2. Circle in the containment hierarchy | ||
59034 | neg find mustTransitiveContains(source,target); | ||
59035 | } or { | ||
59036 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
59037 | } | ||
59038 | /** | ||
59039 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
59040 | */ | ||
59041 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
59042 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59043 | source: DefinedElement, target:DefinedElement) | ||
59044 | { | ||
59045 | find interpretation(problem,interpretation); | ||
59046 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59047 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
59048 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
59049 | BinaryElementRelationLink.param1(link,source); | ||
59050 | BinaryElementRelationLink.param2(link,target); | ||
59051 | } | ||
59052 | /** | ||
59053 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
59054 | */ | ||
59055 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
59056 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59057 | source: DefinedElement, target:DefinedElement) | ||
59058 | { | ||
59059 | find interpretation(problem,interpretation); | ||
59060 | // The two endpoint of the link have to exist | ||
59061 | find mayExist(problem, interpretation, source); | ||
59062 | find mayExist(problem, interpretation, target); | ||
59063 | // Type consistency | ||
59064 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
59065 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
59066 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
59067 | // the upper bound of the multiplicity should be considered. | ||
59068 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
59069 | check(numberOfExistingReferences < 1); | ||
59070 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
59071 | // the upper bound of the opposite reference multiplicity should be considered. | ||
59072 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
59073 | check(numberOfExistingOppositeReferences < 1); | ||
59074 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
59075 | // 1. Multiple parents | ||
59076 | neg find mustContains4(problem,interpretation,source,_); | ||
59077 | // 2. Circle in the containment hierarchy | ||
59078 | neg find mustTransitiveContains(source,target); | ||
59079 | } or { | ||
59080 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
59081 | } | ||
59082 | /** | ||
59083 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
59084 | */ | ||
59085 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
59086 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59087 | source: DefinedElement, target:DefinedElement) | ||
59088 | { | ||
59089 | find interpretation(problem,interpretation); | ||
59090 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59091 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
59092 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
59093 | BinaryElementRelationLink.param1(link,source); | ||
59094 | BinaryElementRelationLink.param2(link,target); | ||
59095 | } | ||
59096 | /** | ||
59097 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
59098 | */ | ||
59099 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
59100 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59101 | source: DefinedElement, target:DefinedElement) | ||
59102 | { | ||
59103 | find interpretation(problem,interpretation); | ||
59104 | // The two endpoint of the link have to exist | ||
59105 | find mayExist(problem, interpretation, source); | ||
59106 | find mayExist(problem, interpretation, target); | ||
59107 | // Type consistency | ||
59108 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
59109 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
59110 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
59111 | // the upper bound of the opposite reference multiplicity should be considered. | ||
59112 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
59113 | check(numberOfExistingOppositeReferences < 1); | ||
59114 | } or { | ||
59115 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
59116 | } | ||
59117 | /** | ||
59118 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
59119 | */ | ||
59120 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
59121 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59122 | source: DefinedElement, target:DefinedElement) | ||
59123 | { | ||
59124 | find interpretation(problem,interpretation); | ||
59125 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59126 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
59127 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
59128 | BinaryElementRelationLink.param1(link,source); | ||
59129 | BinaryElementRelationLink.param2(link,target); | ||
59130 | } | ||
59131 | /** | ||
59132 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
59133 | */ | ||
59134 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
59135 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59136 | source: DefinedElement, target:DefinedElement) | ||
59137 | { | ||
59138 | find interpretation(problem,interpretation); | ||
59139 | // The two endpoint of the link have to exist | ||
59140 | find mayExist(problem, interpretation, source); | ||
59141 | find mayExist(problem, interpretation, target); | ||
59142 | // Type consistency | ||
59143 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
59144 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
59145 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
59146 | // the upper bound of the opposite reference multiplicity should be considered. | ||
59147 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
59148 | check(numberOfExistingOppositeReferences < 1); | ||
59149 | // The reference is containment, then a new reference cannot be create if: | ||
59150 | // 1. Multiple parents | ||
59151 | neg find mustContains4(problem,interpretation,_,target); | ||
59152 | // 2. Circle in the containment hierarchy | ||
59153 | neg find mustTransitiveContains(source,target); | ||
59154 | } or { | ||
59155 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
59156 | } | ||
59157 | /** | ||
59158 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
59159 | */ | ||
59160 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
59161 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59162 | source: DefinedElement, target:DefinedElement) | ||
59163 | { | ||
59164 | find interpretation(problem,interpretation); | ||
59165 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59166 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
59167 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
59168 | BinaryElementRelationLink.param1(link,source); | ||
59169 | BinaryElementRelationLink.param2(link,target); | ||
59170 | } | ||
59171 | /** | ||
59172 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
59173 | */ | ||
59174 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
59175 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59176 | source: DefinedElement, target:DefinedElement) | ||
59177 | { | ||
59178 | find interpretation(problem,interpretation); | ||
59179 | // The two endpoint of the link have to exist | ||
59180 | find mayExist(problem, interpretation, source); | ||
59181 | find mayExist(problem, interpretation, target); | ||
59182 | // Type consistency | ||
59183 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
59184 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
59185 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
59186 | // the upper bound of the multiplicity should be considered. | ||
59187 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
59188 | check(numberOfExistingReferences < 1); | ||
59189 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
59190 | // the upper bound of the opposite reference multiplicity should be considered. | ||
59191 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
59192 | check(numberOfExistingOppositeReferences < 1); | ||
59193 | // The reference is containment, then a new reference cannot be create if: | ||
59194 | // 1. Multiple parents | ||
59195 | neg find mustContains4(problem,interpretation,_,target); | ||
59196 | // 2. Circle in the containment hierarchy | ||
59197 | neg find mustTransitiveContains(source,target); | ||
59198 | } or { | ||
59199 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
59200 | } | ||
59201 | /** | ||
59202 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
59203 | */ | ||
59204 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
59205 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59206 | source: DefinedElement, target:DefinedElement) | ||
59207 | { | ||
59208 | find interpretation(problem,interpretation); | ||
59209 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59210 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
59211 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
59212 | BinaryElementRelationLink.param1(link,source); | ||
59213 | BinaryElementRelationLink.param2(link,target); | ||
59214 | } | ||
59215 | /** | ||
59216 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
59217 | */ | ||
59218 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
59219 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59220 | source: DefinedElement, target:DefinedElement) | ||
59221 | { | ||
59222 | find interpretation(problem,interpretation); | ||
59223 | // The two endpoint of the link have to exist | ||
59224 | find mayExist(problem, interpretation, source); | ||
59225 | find mayExist(problem, interpretation, target); | ||
59226 | // Type consistency | ||
59227 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
59228 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
59229 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
59230 | // the upper bound of the multiplicity should be considered. | ||
59231 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
59232 | check(numberOfExistingReferences < 1); | ||
59233 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
59234 | // 1. Multiple parents | ||
59235 | neg find mustContains4(problem,interpretation,source,_); | ||
59236 | // 2. Circle in the containment hierarchy | ||
59237 | neg find mustTransitiveContains(source,target); | ||
59238 | } or { | ||
59239 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
59240 | } | ||
59241 | /** | ||
59242 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
59243 | */ | ||
59244 | private pattern mustInRelationtype_attribute_Function( | ||
59245 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59246 | source: DefinedElement, target:DefinedElement) | ||
59247 | { | ||
59248 | find interpretation(problem,interpretation); | ||
59249 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59250 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
59251 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
59252 | BinaryElementRelationLink.param1(link,source); | ||
59253 | BinaryElementRelationLink.param2(link,target); | ||
59254 | } | ||
59255 | /** | ||
59256 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
59257 | */ | ||
59258 | private pattern mayInRelationtype_attribute_Function( | ||
59259 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59260 | source: DefinedElement, target:DefinedElement) | ||
59261 | { | ||
59262 | find interpretation(problem,interpretation); | ||
59263 | // The two endpoint of the link have to exist | ||
59264 | find mayExist(problem, interpretation, source); | ||
59265 | find mayExist(problem, interpretation, target); | ||
59266 | // Type consistency | ||
59267 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
59268 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
59269 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
59270 | // the upper bound of the multiplicity should be considered. | ||
59271 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
59272 | check(numberOfExistingReferences < 1); | ||
59273 | } or { | ||
59274 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
59275 | } | ||
59276 | |||
59277 | ////////// | ||
59278 | // 1.3 Relation Definition Indexers | ||
59279 | ////////// | ||
59280 | |||
59281 | ////////// | ||
59282 | // 1.4 Containment Indexer | ||
59283 | ////////// | ||
59284 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
59285 | find mustContains4(_,_,source,target); | ||
59286 | } | ||
59287 | |||
59288 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
59289 | source: DefinedElement, target: DefinedElement) | ||
59290 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
59291 | |||
59292 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
59293 | |||
59294 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
59295 | |||
59296 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
59297 | |||
59298 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
59299 | |||
59300 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
59301 | |||
59302 | private pattern mustTransitiveContains(source,target) { | ||
59303 | find mustContains2+(source,target); | ||
59304 | } | ||
59305 | |||
59306 | ////////// | ||
59307 | // 2. Invalidation Indexers | ||
59308 | ////////// | ||
59309 | // 2.1 Invalidated by WF Queries | ||
59310 | ////////// | ||
59311 | |||
59312 | ////////// | ||
59313 | // 3. Unfinishedness Indexers | ||
59314 | ////////// | ||
59315 | // 3.1 Unfinishedness Measured by Multiplicity | ||
59316 | ////////// | ||
59317 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
59318 | find interpretation(problem,interpretation); | ||
59319 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59320 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
59321 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
59322 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
59323 | check(numberOfExistingReferences < 1); | ||
59324 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
59325 | } | ||
59326 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
59327 | find interpretation(problem,interpretation); | ||
59328 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59329 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
59330 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
59331 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
59332 | check(numberOfExistingReferences < 1); | ||
59333 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
59334 | } | ||
59335 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
59336 | find interpretation(problem,interpretation); | ||
59337 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59338 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
59339 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
59340 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
59341 | check(numberOfExistingReferences < 1); | ||
59342 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
59343 | } | ||
59344 | |||
59345 | ////////// | ||
59346 | // 3.2 Unfinishedness Measured by WF Queries | ||
59347 | ////////// | ||
59348 | |||
59349 | ////////// | ||
59350 | // 4. Refinement Indexers | ||
59351 | ////////// | ||
59352 | // 4.1 Object constructors | ||
59353 | ////////// | ||
59354 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
59355 | { | ||
59356 | find interpretation(problem,interpretation); | ||
59357 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
59358 | find mustExist(problem, interpretation, root); | ||
59359 | }or{ | ||
59360 | find interpretation(problem,interpretation); | ||
59361 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
59362 | find mustExist(problem, interpretation, root); | ||
59363 | }or{ | ||
59364 | find interpretation(problem,interpretation); | ||
59365 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
59366 | find mustExist(problem, interpretation, root); | ||
59367 | }or{ | ||
59368 | find interpretation(problem,interpretation); | ||
59369 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
59370 | find mustExist(problem, interpretation, root); | ||
59371 | }or{ | ||
59372 | find interpretation(problem,interpretation); | ||
59373 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
59374 | find mustExist(problem, interpretation, root); | ||
59375 | }or{ | ||
59376 | find interpretation(problem,interpretation); | ||
59377 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
59378 | find mustExist(problem, interpretation, root); | ||
59379 | }or{ | ||
59380 | find interpretation(problem,interpretation); | ||
59381 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
59382 | find mustExist(problem, interpretation, root); | ||
59383 | }or{ | ||
59384 | find interpretation(problem,interpretation); | ||
59385 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
59386 | find mustExist(problem, interpretation, root); | ||
59387 | }or{ | ||
59388 | find interpretation(problem,interpretation); | ||
59389 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
59390 | find mustExist(problem, interpretation, root); | ||
59391 | }or{ | ||
59392 | find interpretation(problem,interpretation); | ||
59393 | find mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem,interpretation,root); | ||
59394 | find mustExist(problem, interpretation, root); | ||
59395 | }or{ | ||
59396 | find interpretation(problem,interpretation); | ||
59397 | find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,root); | ||
59398 | find mustExist(problem, interpretation, root); | ||
59399 | } | ||
59400 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
59401 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59402 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
59403 | container:DefinedElement) | ||
59404 | { | ||
59405 | find interpretation(problem,interpretation); | ||
59406 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59407 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
59408 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
59409 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
59410 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
59411 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
59412 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
59413 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
59414 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
59415 | find mustExist(problem, interpretation, container); | ||
59416 | neg find mustExist(problem, interpretation, newObject); | ||
59417 | } | ||
59418 | pattern createObject_FunctionalInterface_class( | ||
59419 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59420 | typeInterpretation:PartialComplexTypeInterpretation) | ||
59421 | { | ||
59422 | find interpretation(problem,interpretation); | ||
59423 | neg find hasElementInContainment(problem,interpretation); | ||
59424 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59425 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
59426 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
59427 | find mayExist(problem, interpretation, newObject); | ||
59428 | neg find mustExist(problem, interpretation, newObject); | ||
59429 | } | ||
59430 | pattern createObject_FunctionalArchitectureModel_class_UndefinedPart( | ||
59431 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59432 | typeInterpretation:PartialComplexTypeInterpretation) | ||
59433 | { | ||
59434 | find interpretation(problem,interpretation); | ||
59435 | neg find hasElementInContainment(problem,interpretation); | ||
59436 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59437 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class UndefinedPart"); | ||
59438 | find mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,newObject); | ||
59439 | find mayExist(problem, interpretation, newObject); | ||
59440 | neg find mustExist(problem, interpretation, newObject); | ||
59441 | } | ||
59442 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
59443 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59444 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
59445 | container:DefinedElement) | ||
59446 | { | ||
59447 | find interpretation(problem,interpretation); | ||
59448 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59449 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
59450 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
59451 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
59452 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
59453 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
59454 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
59455 | find mustExist(problem, interpretation, container); | ||
59456 | neg find mustExist(problem, interpretation, newObject); | ||
59457 | } | ||
59458 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
59459 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59460 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
59461 | container:DefinedElement) | ||
59462 | { | ||
59463 | find interpretation(problem,interpretation); | ||
59464 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59465 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
59466 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
59467 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
59468 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
59469 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
59470 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
59471 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
59472 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
59473 | find mustExist(problem, interpretation, container); | ||
59474 | neg find mustExist(problem, interpretation, newObject); | ||
59475 | } | ||
59476 | pattern createObject_Function_class( | ||
59477 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59478 | typeInterpretation:PartialComplexTypeInterpretation) | ||
59479 | { | ||
59480 | find interpretation(problem,interpretation); | ||
59481 | neg find hasElementInContainment(problem,interpretation); | ||
59482 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59483 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
59484 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
59485 | find mayExist(problem, interpretation, newObject); | ||
59486 | neg find mustExist(problem, interpretation, newObject); | ||
59487 | } | ||
59488 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
59489 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59490 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
59491 | container:DefinedElement) | ||
59492 | { | ||
59493 | find interpretation(problem,interpretation); | ||
59494 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59495 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
59496 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
59497 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
59498 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
59499 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
59500 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
59501 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
59502 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
59503 | find mustExist(problem, interpretation, container); | ||
59504 | neg find mustExist(problem, interpretation, newObject); | ||
59505 | } | ||
59506 | pattern createObject_InformationLink_class( | ||
59507 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59508 | typeInterpretation:PartialComplexTypeInterpretation) | ||
59509 | { | ||
59510 | find interpretation(problem,interpretation); | ||
59511 | neg find hasElementInContainment(problem,interpretation); | ||
59512 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59513 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
59514 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
59515 | find mayExist(problem, interpretation, newObject); | ||
59516 | neg find mustExist(problem, interpretation, newObject); | ||
59517 | } | ||
59518 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
59519 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59520 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
59521 | container:DefinedElement) | ||
59522 | { | ||
59523 | find interpretation(problem,interpretation); | ||
59524 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59525 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
59526 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
59527 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
59528 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
59529 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
59530 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
59531 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
59532 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
59533 | find mustExist(problem, interpretation, container); | ||
59534 | neg find mustExist(problem, interpretation, newObject); | ||
59535 | } | ||
59536 | pattern createObject_FunctionalOutput_class( | ||
59537 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59538 | typeInterpretation:PartialComplexTypeInterpretation) | ||
59539 | { | ||
59540 | find interpretation(problem,interpretation); | ||
59541 | neg find hasElementInContainment(problem,interpretation); | ||
59542 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59543 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
59544 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
59545 | find mayExist(problem, interpretation, newObject); | ||
59546 | neg find mustExist(problem, interpretation, newObject); | ||
59547 | } | ||
59548 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
59549 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59550 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
59551 | container:DefinedElement) | ||
59552 | { | ||
59553 | find interpretation(problem,interpretation); | ||
59554 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59555 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
59556 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
59557 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
59558 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
59559 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
59560 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
59561 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
59562 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
59563 | find mustExist(problem, interpretation, container); | ||
59564 | neg find mustExist(problem, interpretation, newObject); | ||
59565 | } | ||
59566 | pattern createObject_FunctionalInput_class( | ||
59567 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59568 | typeInterpretation:PartialComplexTypeInterpretation) | ||
59569 | { | ||
59570 | find interpretation(problem,interpretation); | ||
59571 | neg find hasElementInContainment(problem,interpretation); | ||
59572 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59573 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
59574 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
59575 | find mayExist(problem, interpretation, newObject); | ||
59576 | neg find mustExist(problem, interpretation, newObject); | ||
59577 | } | ||
59578 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
59579 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59580 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
59581 | container:DefinedElement) | ||
59582 | { | ||
59583 | find interpretation(problem,interpretation); | ||
59584 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59585 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
59586 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
59587 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
59588 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
59589 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
59590 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
59591 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
59592 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
59593 | find mustExist(problem, interpretation, container); | ||
59594 | neg find mustExist(problem, interpretation, newObject); | ||
59595 | } | ||
59596 | pattern createObject_FAMTerminator_class( | ||
59597 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59598 | typeInterpretation:PartialComplexTypeInterpretation) | ||
59599 | { | ||
59600 | find interpretation(problem,interpretation); | ||
59601 | neg find hasElementInContainment(problem,interpretation); | ||
59602 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59603 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
59604 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
59605 | find mayExist(problem, interpretation, newObject); | ||
59606 | neg find mustExist(problem, interpretation, newObject); | ||
59607 | } | ||
59608 | |||
59609 | ////////// | ||
59610 | // 4.2 Type refinement | ||
59611 | ////////// | ||
59612 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
59613 | find interpretation(problem,interpretation); | ||
59614 | PartialInterpretation.newElements(interpretation,element); | ||
59615 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59616 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59617 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59618 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59619 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59620 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59621 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59622 | } | ||
59623 | pattern refineTypeTo_FunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
59624 | find interpretation(problem,interpretation); | ||
59625 | PartialInterpretation.newElements(interpretation,element); | ||
59626 | find mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
59627 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59628 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59629 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
59630 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59631 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59632 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59633 | } | ||
59634 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
59635 | find interpretation(problem,interpretation); | ||
59636 | PartialInterpretation.newElements(interpretation,element); | ||
59637 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
59638 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59639 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59640 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
59641 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59642 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59643 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59644 | } | ||
59645 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
59646 | find interpretation(problem,interpretation); | ||
59647 | PartialInterpretation.newElements(interpretation,element); | ||
59648 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
59649 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59650 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59651 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59652 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59653 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59654 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59655 | } | ||
59656 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
59657 | find interpretation(problem,interpretation); | ||
59658 | PartialInterpretation.newElements(interpretation,element); | ||
59659 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
59660 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59661 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59662 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59663 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59664 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
59665 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59666 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
59667 | } | ||
59668 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
59669 | find interpretation(problem,interpretation); | ||
59670 | PartialInterpretation.newElements(interpretation,element); | ||
59671 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
59672 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59673 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59674 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59675 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
59676 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59677 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
59678 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59679 | } | ||
59680 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
59681 | find interpretation(problem,interpretation); | ||
59682 | PartialInterpretation.newElements(interpretation,element); | ||
59683 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59684 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59685 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59686 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59687 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59688 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59689 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59690 | } | ||
59691 | |||
59692 | ////////// | ||
59693 | // 4.3 Relation refinement | ||
59694 | ////////// | ||
59695 | pattern refineRelation_model_reference_FunctionalElement( | ||
59696 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59697 | relationIterpretation:PartialRelationInterpretation, | ||
59698 | from: DefinedElement, to: DefinedElement) | ||
59699 | { | ||
59700 | find interpretation(problem,interpretation); | ||
59701 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59702 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
59703 | find mustExist(problem, interpretation, from); | ||
59704 | find mustExist(problem, interpretation, to); | ||
59705 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
59706 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
59707 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
59708 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
59709 | } | ||
59710 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
59711 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59712 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
59713 | from: DefinedElement, to: DefinedElement) | ||
59714 | { | ||
59715 | find interpretation(problem,interpretation); | ||
59716 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59717 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
59718 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
59719 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
59720 | find mustExist(problem, interpretation, from); | ||
59721 | find mustExist(problem, interpretation, to); | ||
59722 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
59723 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
59724 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
59725 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
59726 | } | ||
59727 | pattern refineRelation_type_attribute_Function( | ||
59728 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
59729 | relationIterpretation:PartialRelationInterpretation, | ||
59730 | from: DefinedElement, to: DefinedElement) | ||
59731 | { | ||
59732 | find interpretation(problem,interpretation); | ||
59733 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
59734 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
59735 | find mustExist(problem, interpretation, from); | ||
59736 | find mustExist(problem, interpretation, to); | ||
59737 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
59738 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
59739 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
59740 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
59741 | } | ||
59742 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
59743 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
59744 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
59745 | |||
59746 | ////////// | ||
59747 | // 0. Util | ||
59748 | ////////// | ||
59749 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
59750 | PartialInterpretation.problem(interpretation,problem); | ||
59751 | } | ||
59752 | |||
59753 | ///////////////////////// | ||
59754 | // 0.1 Existence | ||
59755 | ///////////////////////// | ||
59756 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
59757 | find interpretation(problem,interpretation); | ||
59758 | LogicProblem.elements(problem,element); | ||
59759 | } or { | ||
59760 | find interpretation(problem,interpretation); | ||
59761 | PartialInterpretation.newElements(interpretation,element); | ||
59762 | } | ||
59763 | |||
59764 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
59765 | find mustExist(problem,interpretation,element); | ||
59766 | } or { | ||
59767 | find interpretation(problem,interpretation); | ||
59768 | neg find elementCloseWorld(element); | ||
59769 | PartialInterpretation.openWorldElements(interpretation,element); | ||
59770 | } | ||
59771 | |||
59772 | private pattern elementCloseWorld(element:DefinedElement) { | ||
59773 | PartialInterpretation.openWorldElements(i,element); | ||
59774 | PartialInterpretation.maxNewElements(i,0); | ||
59775 | } or { | ||
59776 | Scope.targetTypeInterpretation(scope,interpretation); | ||
59777 | PartialTypeInterpratation.elements(interpretation,element); | ||
59778 | Scope.maxNewElements(scope,0); | ||
59779 | } | ||
59780 | |||
59781 | //////////////////////// | ||
59782 | // 0.2 Equivalence | ||
59783 | //////////////////////// | ||
59784 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
59785 | find mayExist(problem,interpretation,a); | ||
59786 | find mayExist(problem,interpretation,b); | ||
59787 | a == b; | ||
59788 | } | ||
59789 | |||
59790 | //////////////////////// | ||
59791 | // 0.3 Required Patterns by TypeIndexer | ||
59792 | //////////////////////// | ||
59793 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
59794 | find interpretation(problem,interpretation); | ||
59795 | LogicProblem.types(problem,type); | ||
59796 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
59797 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
59798 | } | ||
59799 | |||
59800 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
59801 | find interpretation(problem,interpretation); | ||
59802 | LogicProblem.types(problem,type); | ||
59803 | TypeDefinition.elements(type,element); | ||
59804 | } or { | ||
59805 | find interpretation(problem,interpretation); | ||
59806 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
59807 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
59808 | } | ||
59809 | |||
59810 | private pattern isPrimitive(element: PrimitiveElement) { | ||
59811 | PrimitiveElement(element); | ||
59812 | } | ||
59813 | |||
59814 | ////////// | ||
59815 | // 1. Problem-Specific Base Indexers | ||
59816 | ////////// | ||
59817 | // 1.1 Type Indexers | ||
59818 | ////////// | ||
59819 | // 1.1.1 primitive Type Indexers | ||
59820 | ////////// | ||
59821 | |||
59822 | ////////// | ||
59823 | // 1.1.2 domain-specific Type Indexers | ||
59824 | ////////// | ||
59825 | /** | ||
59826 | * An element must be an instance of type "FunctionalElement class". | ||
59827 | */ | ||
59828 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
59829 | Type.name(type,"FunctionalElement class"); | ||
59830 | find directInstanceOf(problem,interpretation,element,type); | ||
59831 | } | ||
59832 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
59833 | find interpretation(problem,interpretation); | ||
59834 | PartialInterpretation.scopes(interpretation,scope); | ||
59835 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
59836 | Scope.maxNewElements(scope,0); | ||
59837 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
59838 | Type.name(type,"FunctionalElement class"); | ||
59839 | } | ||
59840 | |||
59841 | /** | ||
59842 | * An element may be an instance of type "FunctionalElement class". | ||
59843 | */ | ||
59844 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
59845 | { | ||
59846 | find interpretation(problem,interpretation); | ||
59847 | PartialInterpretation.newElements(interpretation,element); | ||
59848 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59849 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59850 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59851 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59852 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
59853 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59854 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
59855 | neg find isPrimitive(element); | ||
59856 | } or { | ||
59857 | find interpretation(problem,interpretation); | ||
59858 | PartialInterpretation.openWorldElements(interpretation,element); | ||
59859 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59860 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59861 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59862 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59863 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
59864 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59865 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
59866 | neg find isPrimitive(element); | ||
59867 | } or | ||
59868 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
59869 | /** | ||
59870 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
59871 | */ | ||
59872 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
59873 | Type.name(type,"FunctionalArchitectureModel class"); | ||
59874 | find directInstanceOf(problem,interpretation,element,type); | ||
59875 | } | ||
59876 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
59877 | find interpretation(problem,interpretation); | ||
59878 | PartialInterpretation.scopes(interpretation,scope); | ||
59879 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
59880 | Scope.maxNewElements(scope,0); | ||
59881 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
59882 | Type.name(type,"FunctionalArchitectureModel class"); | ||
59883 | } | ||
59884 | |||
59885 | /** | ||
59886 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
59887 | */ | ||
59888 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
59889 | { | ||
59890 | find interpretation(problem,interpretation); | ||
59891 | PartialInterpretation.newElements(interpretation,element); | ||
59892 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59893 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59894 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59895 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59896 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59897 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
59898 | neg find isPrimitive(element); | ||
59899 | } or { | ||
59900 | find interpretation(problem,interpretation); | ||
59901 | PartialInterpretation.openWorldElements(interpretation,element); | ||
59902 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59903 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59904 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59905 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59906 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59907 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
59908 | neg find isPrimitive(element); | ||
59909 | } or | ||
59910 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
59911 | /** | ||
59912 | * An element must be an instance of type "Function class". | ||
59913 | */ | ||
59914 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
59915 | Type.name(type,"Function class"); | ||
59916 | find directInstanceOf(problem,interpretation,element,type); | ||
59917 | } | ||
59918 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
59919 | find interpretation(problem,interpretation); | ||
59920 | PartialInterpretation.scopes(interpretation,scope); | ||
59921 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
59922 | Scope.maxNewElements(scope,0); | ||
59923 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
59924 | Type.name(type,"Function class"); | ||
59925 | } | ||
59926 | |||
59927 | /** | ||
59928 | * An element may be an instance of type "Function class". | ||
59929 | */ | ||
59930 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
59931 | { | ||
59932 | find interpretation(problem,interpretation); | ||
59933 | PartialInterpretation.newElements(interpretation,element); | ||
59934 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59935 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59936 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59937 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59938 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59939 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
59940 | neg find isPrimitive(element); | ||
59941 | } or { | ||
59942 | find interpretation(problem,interpretation); | ||
59943 | PartialInterpretation.openWorldElements(interpretation,element); | ||
59944 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
59945 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59946 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59947 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59948 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59949 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
59950 | neg find isPrimitive(element); | ||
59951 | } or | ||
59952 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
59953 | /** | ||
59954 | * An element must be an instance of type "FAMTerminator class". | ||
59955 | */ | ||
59956 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
59957 | Type.name(type,"FAMTerminator class"); | ||
59958 | find directInstanceOf(problem,interpretation,element,type); | ||
59959 | } | ||
59960 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
59961 | find interpretation(problem,interpretation); | ||
59962 | PartialInterpretation.scopes(interpretation,scope); | ||
59963 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
59964 | Scope.maxNewElements(scope,0); | ||
59965 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
59966 | Type.name(type,"FAMTerminator class"); | ||
59967 | } | ||
59968 | |||
59969 | /** | ||
59970 | * An element may be an instance of type "FAMTerminator class". | ||
59971 | */ | ||
59972 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
59973 | { | ||
59974 | find interpretation(problem,interpretation); | ||
59975 | PartialInterpretation.newElements(interpretation,element); | ||
59976 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59977 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59978 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59979 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59980 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59981 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
59982 | neg find isPrimitive(element); | ||
59983 | } or { | ||
59984 | find interpretation(problem,interpretation); | ||
59985 | PartialInterpretation.openWorldElements(interpretation,element); | ||
59986 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
59987 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
59988 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
59989 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
59990 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
59991 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
59992 | neg find isPrimitive(element); | ||
59993 | } or | ||
59994 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
59995 | /** | ||
59996 | * An element must be an instance of type "InformationLink class". | ||
59997 | */ | ||
59998 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
59999 | Type.name(type,"InformationLink class"); | ||
60000 | find directInstanceOf(problem,interpretation,element,type); | ||
60001 | } | ||
60002 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
60003 | find interpretation(problem,interpretation); | ||
60004 | PartialInterpretation.scopes(interpretation,scope); | ||
60005 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
60006 | Scope.maxNewElements(scope,0); | ||
60007 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
60008 | Type.name(type,"InformationLink class"); | ||
60009 | } | ||
60010 | |||
60011 | /** | ||
60012 | * An element may be an instance of type "InformationLink class". | ||
60013 | */ | ||
60014 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
60015 | { | ||
60016 | find interpretation(problem,interpretation); | ||
60017 | PartialInterpretation.newElements(interpretation,element); | ||
60018 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60019 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60020 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
60021 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60022 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
60023 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
60024 | neg find isPrimitive(element); | ||
60025 | } or { | ||
60026 | find interpretation(problem,interpretation); | ||
60027 | PartialInterpretation.openWorldElements(interpretation,element); | ||
60028 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60029 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60030 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
60031 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60032 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
60033 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
60034 | neg find isPrimitive(element); | ||
60035 | } or | ||
60036 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
60037 | /** | ||
60038 | * An element must be an instance of type "FunctionalInterface class". | ||
60039 | */ | ||
60040 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
60041 | Type.name(type,"FunctionalInterface class"); | ||
60042 | find directInstanceOf(problem,interpretation,element,type); | ||
60043 | } | ||
60044 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
60045 | find interpretation(problem,interpretation); | ||
60046 | PartialInterpretation.scopes(interpretation,scope); | ||
60047 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
60048 | Scope.maxNewElements(scope,0); | ||
60049 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
60050 | Type.name(type,"FunctionalInterface class"); | ||
60051 | } | ||
60052 | |||
60053 | /** | ||
60054 | * An element may be an instance of type "FunctionalInterface class". | ||
60055 | */ | ||
60056 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
60057 | { | ||
60058 | find interpretation(problem,interpretation); | ||
60059 | PartialInterpretation.newElements(interpretation,element); | ||
60060 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60061 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60062 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60063 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
60064 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
60065 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
60066 | neg find isPrimitive(element); | ||
60067 | } or { | ||
60068 | find interpretation(problem,interpretation); | ||
60069 | PartialInterpretation.openWorldElements(interpretation,element); | ||
60070 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60071 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60072 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60073 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
60074 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
60075 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
60076 | neg find isPrimitive(element); | ||
60077 | } or | ||
60078 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
60079 | /** | ||
60080 | * An element must be an instance of type "FunctionalInput class". | ||
60081 | */ | ||
60082 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
60083 | Type.name(type,"FunctionalInput class"); | ||
60084 | find directInstanceOf(problem,interpretation,element,type); | ||
60085 | } | ||
60086 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
60087 | find interpretation(problem,interpretation); | ||
60088 | PartialInterpretation.scopes(interpretation,scope); | ||
60089 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
60090 | Scope.maxNewElements(scope,0); | ||
60091 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
60092 | Type.name(type,"FunctionalInput class"); | ||
60093 | } | ||
60094 | |||
60095 | /** | ||
60096 | * An element may be an instance of type "FunctionalInput class". | ||
60097 | */ | ||
60098 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
60099 | { | ||
60100 | find interpretation(problem,interpretation); | ||
60101 | PartialInterpretation.newElements(interpretation,element); | ||
60102 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60103 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60104 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
60105 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
60106 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60107 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
60108 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
60109 | neg find isPrimitive(element); | ||
60110 | } or { | ||
60111 | find interpretation(problem,interpretation); | ||
60112 | PartialInterpretation.openWorldElements(interpretation,element); | ||
60113 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60114 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60115 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
60116 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
60117 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60118 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
60119 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
60120 | neg find isPrimitive(element); | ||
60121 | } or | ||
60122 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
60123 | /** | ||
60124 | * An element must be an instance of type "FunctionalOutput class". | ||
60125 | */ | ||
60126 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
60127 | Type.name(type,"FunctionalOutput class"); | ||
60128 | find directInstanceOf(problem,interpretation,element,type); | ||
60129 | } | ||
60130 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
60131 | find interpretation(problem,interpretation); | ||
60132 | PartialInterpretation.scopes(interpretation,scope); | ||
60133 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
60134 | Scope.maxNewElements(scope,0); | ||
60135 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
60136 | Type.name(type,"FunctionalOutput class"); | ||
60137 | } | ||
60138 | |||
60139 | /** | ||
60140 | * An element may be an instance of type "FunctionalOutput class". | ||
60141 | */ | ||
60142 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
60143 | { | ||
60144 | find interpretation(problem,interpretation); | ||
60145 | PartialInterpretation.newElements(interpretation,element); | ||
60146 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60147 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60148 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
60149 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
60150 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60151 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
60152 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
60153 | neg find isPrimitive(element); | ||
60154 | } or { | ||
60155 | find interpretation(problem,interpretation); | ||
60156 | PartialInterpretation.openWorldElements(interpretation,element); | ||
60157 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60158 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60159 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
60160 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
60161 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60162 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
60163 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
60164 | neg find isPrimitive(element); | ||
60165 | } or | ||
60166 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
60167 | /** | ||
60168 | * An element must be an instance of type "FunctionalData class". | ||
60169 | */ | ||
60170 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
60171 | Type.name(type,"FunctionalData class"); | ||
60172 | find directInstanceOf(problem,interpretation,element,type); | ||
60173 | } | ||
60174 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
60175 | find interpretation(problem,interpretation); | ||
60176 | PartialInterpretation.scopes(interpretation,scope); | ||
60177 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
60178 | Scope.maxNewElements(scope,0); | ||
60179 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
60180 | Type.name(type,"FunctionalData class"); | ||
60181 | } | ||
60182 | |||
60183 | /** | ||
60184 | * An element may be an instance of type "FunctionalData class". | ||
60185 | */ | ||
60186 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
60187 | { | ||
60188 | find interpretation(problem,interpretation); | ||
60189 | PartialInterpretation.newElements(interpretation,element); | ||
60190 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60191 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60192 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
60193 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
60194 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
60195 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60196 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
60197 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
60198 | neg find isPrimitive(element); | ||
60199 | } or { | ||
60200 | find interpretation(problem,interpretation); | ||
60201 | PartialInterpretation.openWorldElements(interpretation,element); | ||
60202 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
60203 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
60204 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
60205 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
60206 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
60207 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
60208 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
60209 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
60210 | neg find isPrimitive(element); | ||
60211 | } or | ||
60212 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
60213 | /** | ||
60214 | * An element must be an instance of type "FunctionType enum". | ||
60215 | */ | ||
60216 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
60217 | Type.name(type,"FunctionType enum"); | ||
60218 | find directInstanceOf(problem,interpretation,element,type); | ||
60219 | } | ||
60220 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
60221 | find interpretation(problem,interpretation); | ||
60222 | PartialInterpretation.scopes(interpretation,scope); | ||
60223 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
60224 | Scope.maxNewElements(scope,0); | ||
60225 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
60226 | Type.name(type,"FunctionType enum"); | ||
60227 | } | ||
60228 | |||
60229 | /** | ||
60230 | * An element may be an instance of type "FunctionType enum". | ||
60231 | */ | ||
60232 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
60233 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
60234 | |||
60235 | ////////// | ||
60236 | // 1.2 Relation Declaration Indexers | ||
60237 | ////////// | ||
60238 | /** | ||
60239 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
60240 | */ | ||
60241 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
60242 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60243 | source: DefinedElement, target:DefinedElement) | ||
60244 | { | ||
60245 | find interpretation(problem,interpretation); | ||
60246 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60247 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
60248 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60249 | BinaryElementRelationLink.param1(link,source); | ||
60250 | BinaryElementRelationLink.param2(link,target); | ||
60251 | } | ||
60252 | /** | ||
60253 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
60254 | */ | ||
60255 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
60256 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60257 | source: DefinedElement, target:DefinedElement) | ||
60258 | { | ||
60259 | find interpretation(problem,interpretation); | ||
60260 | // The two endpoint of the link have to exist | ||
60261 | find mayExist(problem, interpretation, source); | ||
60262 | find mayExist(problem, interpretation, target); | ||
60263 | // Type consistency | ||
60264 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
60265 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
60266 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60267 | // the upper bound of the multiplicity should be considered. | ||
60268 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
60269 | check(numberOfExistingReferences < 1); | ||
60270 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
60271 | // the upper bound of the opposite reference multiplicity should be considered. | ||
60272 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
60273 | check(numberOfExistingOppositeReferences < 1); | ||
60274 | // The reference is containment, then a new reference cannot be create if: | ||
60275 | // 1. Multiple parents | ||
60276 | neg find mustContains4(problem,interpretation,_,target); | ||
60277 | // 2. Circle in the containment hierarchy | ||
60278 | neg find mustTransitiveContains(source,target); | ||
60279 | } or { | ||
60280 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
60281 | } | ||
60282 | /** | ||
60283 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
60284 | */ | ||
60285 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
60286 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60287 | source: DefinedElement, target:DefinedElement) | ||
60288 | { | ||
60289 | find interpretation(problem,interpretation); | ||
60290 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60291 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
60292 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60293 | BinaryElementRelationLink.param1(link,source); | ||
60294 | BinaryElementRelationLink.param2(link,target); | ||
60295 | } | ||
60296 | /** | ||
60297 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
60298 | */ | ||
60299 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
60300 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60301 | source: DefinedElement, target:DefinedElement) | ||
60302 | { | ||
60303 | find interpretation(problem,interpretation); | ||
60304 | // The two endpoint of the link have to exist | ||
60305 | find mayExist(problem, interpretation, source); | ||
60306 | find mayExist(problem, interpretation, target); | ||
60307 | // Type consistency | ||
60308 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
60309 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
60310 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60311 | // the upper bound of the multiplicity should be considered. | ||
60312 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
60313 | check(numberOfExistingReferences < 1); | ||
60314 | } or { | ||
60315 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
60316 | } | ||
60317 | /** | ||
60318 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
60319 | */ | ||
60320 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
60321 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60322 | source: DefinedElement, target:DefinedElement) | ||
60323 | { | ||
60324 | find interpretation(problem,interpretation); | ||
60325 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60326 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
60327 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60328 | BinaryElementRelationLink.param1(link,source); | ||
60329 | BinaryElementRelationLink.param2(link,target); | ||
60330 | } | ||
60331 | /** | ||
60332 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
60333 | */ | ||
60334 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
60335 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60336 | source: DefinedElement, target:DefinedElement) | ||
60337 | { | ||
60338 | find interpretation(problem,interpretation); | ||
60339 | // The two endpoint of the link have to exist | ||
60340 | find mayExist(problem, interpretation, source); | ||
60341 | find mayExist(problem, interpretation, target); | ||
60342 | // Type consistency | ||
60343 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
60344 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
60345 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60346 | // the upper bound of the multiplicity should be considered. | ||
60347 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
60348 | check(numberOfExistingReferences < 1); | ||
60349 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
60350 | // 1. Multiple parents | ||
60351 | neg find mustContains4(problem,interpretation,source,_); | ||
60352 | // 2. Circle in the containment hierarchy | ||
60353 | neg find mustTransitiveContains(source,target); | ||
60354 | } or { | ||
60355 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
60356 | } | ||
60357 | /** | ||
60358 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
60359 | */ | ||
60360 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
60361 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60362 | source: DefinedElement, target:DefinedElement) | ||
60363 | { | ||
60364 | find interpretation(problem,interpretation); | ||
60365 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60366 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
60367 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60368 | BinaryElementRelationLink.param1(link,source); | ||
60369 | BinaryElementRelationLink.param2(link,target); | ||
60370 | } | ||
60371 | /** | ||
60372 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
60373 | */ | ||
60374 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
60375 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60376 | source: DefinedElement, target:DefinedElement) | ||
60377 | { | ||
60378 | find interpretation(problem,interpretation); | ||
60379 | // The two endpoint of the link have to exist | ||
60380 | find mayExist(problem, interpretation, source); | ||
60381 | find mayExist(problem, interpretation, target); | ||
60382 | // Type consistency | ||
60383 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
60384 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
60385 | // The reference is containment, then a new reference cannot be create if: | ||
60386 | // 1. Multiple parents | ||
60387 | neg find mustContains4(problem,interpretation,_,target); | ||
60388 | // 2. Circle in the containment hierarchy | ||
60389 | neg find mustTransitiveContains(source,target); | ||
60390 | } or { | ||
60391 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
60392 | } | ||
60393 | /** | ||
60394 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
60395 | */ | ||
60396 | private pattern mustInRelationsubElements_reference_Function( | ||
60397 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60398 | source: DefinedElement, target:DefinedElement) | ||
60399 | { | ||
60400 | find interpretation(problem,interpretation); | ||
60401 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60402 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
60403 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60404 | BinaryElementRelationLink.param1(link,source); | ||
60405 | BinaryElementRelationLink.param2(link,target); | ||
60406 | } | ||
60407 | /** | ||
60408 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
60409 | */ | ||
60410 | private pattern mayInRelationsubElements_reference_Function( | ||
60411 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60412 | source: DefinedElement, target:DefinedElement) | ||
60413 | { | ||
60414 | find interpretation(problem,interpretation); | ||
60415 | // The two endpoint of the link have to exist | ||
60416 | find mayExist(problem, interpretation, source); | ||
60417 | find mayExist(problem, interpretation, target); | ||
60418 | // Type consistency | ||
60419 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
60420 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
60421 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
60422 | // the upper bound of the opposite reference multiplicity should be considered. | ||
60423 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
60424 | check(numberOfExistingOppositeReferences < 1); | ||
60425 | // The reference is containment, then a new reference cannot be create if: | ||
60426 | // 1. Multiple parents | ||
60427 | neg find mustContains4(problem,interpretation,_,target); | ||
60428 | // 2. Circle in the containment hierarchy | ||
60429 | neg find mustTransitiveContains(source,target); | ||
60430 | } or { | ||
60431 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
60432 | } | ||
60433 | /** | ||
60434 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
60435 | */ | ||
60436 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
60437 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60438 | source: DefinedElement, target:DefinedElement) | ||
60439 | { | ||
60440 | find interpretation(problem,interpretation); | ||
60441 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60442 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
60443 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60444 | BinaryElementRelationLink.param1(link,source); | ||
60445 | BinaryElementRelationLink.param2(link,target); | ||
60446 | } | ||
60447 | /** | ||
60448 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
60449 | */ | ||
60450 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
60451 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60452 | source: DefinedElement, target:DefinedElement) | ||
60453 | { | ||
60454 | find interpretation(problem,interpretation); | ||
60455 | // The two endpoint of the link have to exist | ||
60456 | find mayExist(problem, interpretation, source); | ||
60457 | find mayExist(problem, interpretation, target); | ||
60458 | // Type consistency | ||
60459 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
60460 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
60461 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60462 | // the upper bound of the multiplicity should be considered. | ||
60463 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
60464 | check(numberOfExistingReferences < 1); | ||
60465 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
60466 | // the upper bound of the opposite reference multiplicity should be considered. | ||
60467 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
60468 | check(numberOfExistingOppositeReferences < 1); | ||
60469 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
60470 | // 1. Multiple parents | ||
60471 | neg find mustContains4(problem,interpretation,source,_); | ||
60472 | // 2. Circle in the containment hierarchy | ||
60473 | neg find mustTransitiveContains(source,target); | ||
60474 | } or { | ||
60475 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
60476 | } | ||
60477 | /** | ||
60478 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
60479 | */ | ||
60480 | private pattern mustInRelationfrom_reference_InformationLink( | ||
60481 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60482 | source: DefinedElement, target:DefinedElement) | ||
60483 | { | ||
60484 | find interpretation(problem,interpretation); | ||
60485 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60486 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
60487 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60488 | BinaryElementRelationLink.param1(link,source); | ||
60489 | BinaryElementRelationLink.param2(link,target); | ||
60490 | } | ||
60491 | /** | ||
60492 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
60493 | */ | ||
60494 | private pattern mayInRelationfrom_reference_InformationLink( | ||
60495 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60496 | source: DefinedElement, target:DefinedElement) | ||
60497 | { | ||
60498 | find interpretation(problem,interpretation); | ||
60499 | // The two endpoint of the link have to exist | ||
60500 | find mayExist(problem, interpretation, source); | ||
60501 | find mayExist(problem, interpretation, target); | ||
60502 | // Type consistency | ||
60503 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
60504 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
60505 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60506 | // the upper bound of the multiplicity should be considered. | ||
60507 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
60508 | check(numberOfExistingReferences < 1); | ||
60509 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
60510 | // 1. Multiple parents | ||
60511 | neg find mustContains4(problem,interpretation,source,_); | ||
60512 | // 2. Circle in the containment hierarchy | ||
60513 | neg find mustTransitiveContains(source,target); | ||
60514 | } or { | ||
60515 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
60516 | } | ||
60517 | /** | ||
60518 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
60519 | */ | ||
60520 | private pattern mustInRelationto_reference_InformationLink( | ||
60521 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60522 | source: DefinedElement, target:DefinedElement) | ||
60523 | { | ||
60524 | find interpretation(problem,interpretation); | ||
60525 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60526 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
60527 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60528 | BinaryElementRelationLink.param1(link,source); | ||
60529 | BinaryElementRelationLink.param2(link,target); | ||
60530 | } | ||
60531 | /** | ||
60532 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
60533 | */ | ||
60534 | private pattern mayInRelationto_reference_InformationLink( | ||
60535 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60536 | source: DefinedElement, target:DefinedElement) | ||
60537 | { | ||
60538 | find interpretation(problem,interpretation); | ||
60539 | // The two endpoint of the link have to exist | ||
60540 | find mayExist(problem, interpretation, source); | ||
60541 | find mayExist(problem, interpretation, target); | ||
60542 | // Type consistency | ||
60543 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
60544 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
60545 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60546 | // the upper bound of the multiplicity should be considered. | ||
60547 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
60548 | check(numberOfExistingReferences < 1); | ||
60549 | } or { | ||
60550 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
60551 | } | ||
60552 | /** | ||
60553 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
60554 | */ | ||
60555 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
60556 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60557 | source: DefinedElement, target:DefinedElement) | ||
60558 | { | ||
60559 | find interpretation(problem,interpretation); | ||
60560 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60561 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
60562 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60563 | BinaryElementRelationLink.param1(link,source); | ||
60564 | BinaryElementRelationLink.param2(link,target); | ||
60565 | } | ||
60566 | /** | ||
60567 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
60568 | */ | ||
60569 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
60570 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60571 | source: DefinedElement, target:DefinedElement) | ||
60572 | { | ||
60573 | find interpretation(problem,interpretation); | ||
60574 | // The two endpoint of the link have to exist | ||
60575 | find mayExist(problem, interpretation, source); | ||
60576 | find mayExist(problem, interpretation, target); | ||
60577 | // Type consistency | ||
60578 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
60579 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
60580 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
60581 | // the upper bound of the opposite reference multiplicity should be considered. | ||
60582 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
60583 | check(numberOfExistingOppositeReferences < 1); | ||
60584 | // The reference is containment, then a new reference cannot be create if: | ||
60585 | // 1. Multiple parents | ||
60586 | neg find mustContains4(problem,interpretation,_,target); | ||
60587 | // 2. Circle in the containment hierarchy | ||
60588 | neg find mustTransitiveContains(source,target); | ||
60589 | } or { | ||
60590 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
60591 | } | ||
60592 | /** | ||
60593 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
60594 | */ | ||
60595 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
60596 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60597 | source: DefinedElement, target:DefinedElement) | ||
60598 | { | ||
60599 | find interpretation(problem,interpretation); | ||
60600 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60601 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
60602 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60603 | BinaryElementRelationLink.param1(link,source); | ||
60604 | BinaryElementRelationLink.param2(link,target); | ||
60605 | } | ||
60606 | /** | ||
60607 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
60608 | */ | ||
60609 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
60610 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60611 | source: DefinedElement, target:DefinedElement) | ||
60612 | { | ||
60613 | find interpretation(problem,interpretation); | ||
60614 | // The two endpoint of the link have to exist | ||
60615 | find mayExist(problem, interpretation, source); | ||
60616 | find mayExist(problem, interpretation, target); | ||
60617 | // Type consistency | ||
60618 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
60619 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
60620 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60621 | // the upper bound of the multiplicity should be considered. | ||
60622 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
60623 | check(numberOfExistingReferences < 1); | ||
60624 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
60625 | // the upper bound of the opposite reference multiplicity should be considered. | ||
60626 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
60627 | check(numberOfExistingOppositeReferences < 1); | ||
60628 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
60629 | // 1. Multiple parents | ||
60630 | neg find mustContains4(problem,interpretation,source,_); | ||
60631 | // 2. Circle in the containment hierarchy | ||
60632 | neg find mustTransitiveContains(source,target); | ||
60633 | } or { | ||
60634 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
60635 | } | ||
60636 | /** | ||
60637 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
60638 | */ | ||
60639 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
60640 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60641 | source: DefinedElement, target:DefinedElement) | ||
60642 | { | ||
60643 | find interpretation(problem,interpretation); | ||
60644 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60645 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
60646 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60647 | BinaryElementRelationLink.param1(link,source); | ||
60648 | BinaryElementRelationLink.param2(link,target); | ||
60649 | } | ||
60650 | /** | ||
60651 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
60652 | */ | ||
60653 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
60654 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60655 | source: DefinedElement, target:DefinedElement) | ||
60656 | { | ||
60657 | find interpretation(problem,interpretation); | ||
60658 | // The two endpoint of the link have to exist | ||
60659 | find mayExist(problem, interpretation, source); | ||
60660 | find mayExist(problem, interpretation, target); | ||
60661 | // Type consistency | ||
60662 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
60663 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
60664 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
60665 | // the upper bound of the opposite reference multiplicity should be considered. | ||
60666 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
60667 | check(numberOfExistingOppositeReferences < 1); | ||
60668 | } or { | ||
60669 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
60670 | } | ||
60671 | /** | ||
60672 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
60673 | */ | ||
60674 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
60675 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60676 | source: DefinedElement, target:DefinedElement) | ||
60677 | { | ||
60678 | find interpretation(problem,interpretation); | ||
60679 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60680 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
60681 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60682 | BinaryElementRelationLink.param1(link,source); | ||
60683 | BinaryElementRelationLink.param2(link,target); | ||
60684 | } | ||
60685 | /** | ||
60686 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
60687 | */ | ||
60688 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
60689 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60690 | source: DefinedElement, target:DefinedElement) | ||
60691 | { | ||
60692 | find interpretation(problem,interpretation); | ||
60693 | // The two endpoint of the link have to exist | ||
60694 | find mayExist(problem, interpretation, source); | ||
60695 | find mayExist(problem, interpretation, target); | ||
60696 | // Type consistency | ||
60697 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
60698 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
60699 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
60700 | // the upper bound of the opposite reference multiplicity should be considered. | ||
60701 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
60702 | check(numberOfExistingOppositeReferences < 1); | ||
60703 | // The reference is containment, then a new reference cannot be create if: | ||
60704 | // 1. Multiple parents | ||
60705 | neg find mustContains4(problem,interpretation,_,target); | ||
60706 | // 2. Circle in the containment hierarchy | ||
60707 | neg find mustTransitiveContains(source,target); | ||
60708 | } or { | ||
60709 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
60710 | } | ||
60711 | /** | ||
60712 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
60713 | */ | ||
60714 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
60715 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60716 | source: DefinedElement, target:DefinedElement) | ||
60717 | { | ||
60718 | find interpretation(problem,interpretation); | ||
60719 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60720 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
60721 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60722 | BinaryElementRelationLink.param1(link,source); | ||
60723 | BinaryElementRelationLink.param2(link,target); | ||
60724 | } | ||
60725 | /** | ||
60726 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
60727 | */ | ||
60728 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
60729 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60730 | source: DefinedElement, target:DefinedElement) | ||
60731 | { | ||
60732 | find interpretation(problem,interpretation); | ||
60733 | // The two endpoint of the link have to exist | ||
60734 | find mayExist(problem, interpretation, source); | ||
60735 | find mayExist(problem, interpretation, target); | ||
60736 | // Type consistency | ||
60737 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
60738 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
60739 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60740 | // the upper bound of the multiplicity should be considered. | ||
60741 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
60742 | check(numberOfExistingReferences < 1); | ||
60743 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
60744 | // the upper bound of the opposite reference multiplicity should be considered. | ||
60745 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
60746 | check(numberOfExistingOppositeReferences < 1); | ||
60747 | // The reference is containment, then a new reference cannot be create if: | ||
60748 | // 1. Multiple parents | ||
60749 | neg find mustContains4(problem,interpretation,_,target); | ||
60750 | // 2. Circle in the containment hierarchy | ||
60751 | neg find mustTransitiveContains(source,target); | ||
60752 | } or { | ||
60753 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
60754 | } | ||
60755 | /** | ||
60756 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
60757 | */ | ||
60758 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
60759 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60760 | source: DefinedElement, target:DefinedElement) | ||
60761 | { | ||
60762 | find interpretation(problem,interpretation); | ||
60763 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60764 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
60765 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60766 | BinaryElementRelationLink.param1(link,source); | ||
60767 | BinaryElementRelationLink.param2(link,target); | ||
60768 | } | ||
60769 | /** | ||
60770 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
60771 | */ | ||
60772 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
60773 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60774 | source: DefinedElement, target:DefinedElement) | ||
60775 | { | ||
60776 | find interpretation(problem,interpretation); | ||
60777 | // The two endpoint of the link have to exist | ||
60778 | find mayExist(problem, interpretation, source); | ||
60779 | find mayExist(problem, interpretation, target); | ||
60780 | // Type consistency | ||
60781 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
60782 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
60783 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60784 | // the upper bound of the multiplicity should be considered. | ||
60785 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
60786 | check(numberOfExistingReferences < 1); | ||
60787 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
60788 | // 1. Multiple parents | ||
60789 | neg find mustContains4(problem,interpretation,source,_); | ||
60790 | // 2. Circle in the containment hierarchy | ||
60791 | neg find mustTransitiveContains(source,target); | ||
60792 | } or { | ||
60793 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
60794 | } | ||
60795 | /** | ||
60796 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
60797 | */ | ||
60798 | private pattern mustInRelationtype_attribute_Function( | ||
60799 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60800 | source: DefinedElement, target:DefinedElement) | ||
60801 | { | ||
60802 | find interpretation(problem,interpretation); | ||
60803 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60804 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
60805 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
60806 | BinaryElementRelationLink.param1(link,source); | ||
60807 | BinaryElementRelationLink.param2(link,target); | ||
60808 | } | ||
60809 | /** | ||
60810 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
60811 | */ | ||
60812 | private pattern mayInRelationtype_attribute_Function( | ||
60813 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60814 | source: DefinedElement, target:DefinedElement) | ||
60815 | { | ||
60816 | find interpretation(problem,interpretation); | ||
60817 | // The two endpoint of the link have to exist | ||
60818 | find mayExist(problem, interpretation, source); | ||
60819 | find mayExist(problem, interpretation, target); | ||
60820 | // Type consistency | ||
60821 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
60822 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
60823 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
60824 | // the upper bound of the multiplicity should be considered. | ||
60825 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
60826 | check(numberOfExistingReferences < 1); | ||
60827 | } or { | ||
60828 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
60829 | } | ||
60830 | |||
60831 | ////////// | ||
60832 | // 1.3 Relation Definition Indexers | ||
60833 | ////////// | ||
60834 | |||
60835 | ////////// | ||
60836 | // 1.4 Containment Indexer | ||
60837 | ////////// | ||
60838 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
60839 | find mustContains4(_,_,source,target); | ||
60840 | } | ||
60841 | |||
60842 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
60843 | source: DefinedElement, target: DefinedElement) | ||
60844 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
60845 | |||
60846 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
60847 | |||
60848 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
60849 | |||
60850 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
60851 | |||
60852 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
60853 | |||
60854 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
60855 | |||
60856 | private pattern mustTransitiveContains(source,target) { | ||
60857 | find mustContains2+(source,target); | ||
60858 | } | ||
60859 | |||
60860 | ////////// | ||
60861 | // 2. Invalidation Indexers | ||
60862 | ////////// | ||
60863 | // 2.1 Invalidated by WF Queries | ||
60864 | ////////// | ||
60865 | |||
60866 | ////////// | ||
60867 | // 3. Unfinishedness Indexers | ||
60868 | ////////// | ||
60869 | // 3.1 Unfinishedness Measured by Multiplicity | ||
60870 | ////////// | ||
60871 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
60872 | find interpretation(problem,interpretation); | ||
60873 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60874 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
60875 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
60876 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
60877 | check(numberOfExistingReferences < 1); | ||
60878 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
60879 | } | ||
60880 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
60881 | find interpretation(problem,interpretation); | ||
60882 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60883 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
60884 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
60885 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
60886 | check(numberOfExistingReferences < 1); | ||
60887 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
60888 | } | ||
60889 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
60890 | find interpretation(problem,interpretation); | ||
60891 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
60892 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
60893 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
60894 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
60895 | check(numberOfExistingReferences < 1); | ||
60896 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
60897 | } | ||
60898 | |||
60899 | ////////// | ||
60900 | // 3.2 Unfinishedness Measured by WF Queries | ||
60901 | ////////// | ||
60902 | |||
60903 | ////////// | ||
60904 | // 4. Refinement Indexers | ||
60905 | ////////// | ||
60906 | // 4.1 Object constructors | ||
60907 | ////////// | ||
60908 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
60909 | { | ||
60910 | find interpretation(problem,interpretation); | ||
60911 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
60912 | find mustExist(problem, interpretation, root); | ||
60913 | }or{ | ||
60914 | find interpretation(problem,interpretation); | ||
60915 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
60916 | find mustExist(problem, interpretation, root); | ||
60917 | }or{ | ||
60918 | find interpretation(problem,interpretation); | ||
60919 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
60920 | find mustExist(problem, interpretation, root); | ||
60921 | }or{ | ||
60922 | find interpretation(problem,interpretation); | ||
60923 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
60924 | find mustExist(problem, interpretation, root); | ||
60925 | }or{ | ||
60926 | find interpretation(problem,interpretation); | ||
60927 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
60928 | find mustExist(problem, interpretation, root); | ||
60929 | }or{ | ||
60930 | find interpretation(problem,interpretation); | ||
60931 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
60932 | find mustExist(problem, interpretation, root); | ||
60933 | }or{ | ||
60934 | find interpretation(problem,interpretation); | ||
60935 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
60936 | find mustExist(problem, interpretation, root); | ||
60937 | }or{ | ||
60938 | find interpretation(problem,interpretation); | ||
60939 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
60940 | find mustExist(problem, interpretation, root); | ||
60941 | }or{ | ||
60942 | find interpretation(problem,interpretation); | ||
60943 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
60944 | find mustExist(problem, interpretation, root); | ||
60945 | } | ||
60946 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
60947 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60948 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
60949 | container:DefinedElement) | ||
60950 | { | ||
60951 | find interpretation(problem,interpretation); | ||
60952 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
60953 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
60954 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
60955 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
60956 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
60957 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
60958 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
60959 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
60960 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
60961 | find mustExist(problem, interpretation, container); | ||
60962 | neg find mustExist(problem, interpretation, newObject); | ||
60963 | } | ||
60964 | pattern createObject_FAMTerminator_class( | ||
60965 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60966 | typeInterpretation:PartialComplexTypeInterpretation) | ||
60967 | { | ||
60968 | find interpretation(problem,interpretation); | ||
60969 | neg find hasElementInContainment(problem,interpretation); | ||
60970 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
60971 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
60972 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
60973 | find mayExist(problem, interpretation, newObject); | ||
60974 | neg find mustExist(problem, interpretation, newObject); | ||
60975 | } | ||
60976 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
60977 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60978 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
60979 | container:DefinedElement) | ||
60980 | { | ||
60981 | find interpretation(problem,interpretation); | ||
60982 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
60983 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
60984 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
60985 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
60986 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
60987 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
60988 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
60989 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
60990 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
60991 | find mustExist(problem, interpretation, container); | ||
60992 | neg find mustExist(problem, interpretation, newObject); | ||
60993 | } | ||
60994 | pattern createObject_FunctionalOutput_class( | ||
60995 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
60996 | typeInterpretation:PartialComplexTypeInterpretation) | ||
60997 | { | ||
60998 | find interpretation(problem,interpretation); | ||
60999 | neg find hasElementInContainment(problem,interpretation); | ||
61000 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61001 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
61002 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
61003 | find mayExist(problem, interpretation, newObject); | ||
61004 | neg find mustExist(problem, interpretation, newObject); | ||
61005 | } | ||
61006 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
61007 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61008 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
61009 | container:DefinedElement) | ||
61010 | { | ||
61011 | find interpretation(problem,interpretation); | ||
61012 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61013 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
61014 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
61015 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
61016 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
61017 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
61018 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
61019 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
61020 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
61021 | find mustExist(problem, interpretation, container); | ||
61022 | neg find mustExist(problem, interpretation, newObject); | ||
61023 | } | ||
61024 | pattern createObject_FunctionalInput_class( | ||
61025 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61026 | typeInterpretation:PartialComplexTypeInterpretation) | ||
61027 | { | ||
61028 | find interpretation(problem,interpretation); | ||
61029 | neg find hasElementInContainment(problem,interpretation); | ||
61030 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61031 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
61032 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
61033 | find mayExist(problem, interpretation, newObject); | ||
61034 | neg find mustExist(problem, interpretation, newObject); | ||
61035 | } | ||
61036 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
61037 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61038 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
61039 | container:DefinedElement) | ||
61040 | { | ||
61041 | find interpretation(problem,interpretation); | ||
61042 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61043 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
61044 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
61045 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
61046 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
61047 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
61048 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
61049 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
61050 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
61051 | find mustExist(problem, interpretation, container); | ||
61052 | neg find mustExist(problem, interpretation, newObject); | ||
61053 | } | ||
61054 | pattern createObject_FunctionalInterface_class( | ||
61055 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61056 | typeInterpretation:PartialComplexTypeInterpretation) | ||
61057 | { | ||
61058 | find interpretation(problem,interpretation); | ||
61059 | neg find hasElementInContainment(problem,interpretation); | ||
61060 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61061 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
61062 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
61063 | find mayExist(problem, interpretation, newObject); | ||
61064 | neg find mustExist(problem, interpretation, newObject); | ||
61065 | } | ||
61066 | pattern createObject_FunctionalArchitectureModel_class( | ||
61067 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61068 | typeInterpretation:PartialComplexTypeInterpretation) | ||
61069 | { | ||
61070 | find interpretation(problem,interpretation); | ||
61071 | neg find hasElementInContainment(problem,interpretation); | ||
61072 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61073 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class"); | ||
61074 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,newObject); | ||
61075 | find mayExist(problem, interpretation, newObject); | ||
61076 | neg find mustExist(problem, interpretation, newObject); | ||
61077 | } | ||
61078 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
61079 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61080 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
61081 | container:DefinedElement) | ||
61082 | { | ||
61083 | find interpretation(problem,interpretation); | ||
61084 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61085 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
61086 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
61087 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
61088 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
61089 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
61090 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
61091 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
61092 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
61093 | find mustExist(problem, interpretation, container); | ||
61094 | neg find mustExist(problem, interpretation, newObject); | ||
61095 | } | ||
61096 | pattern createObject_InformationLink_class( | ||
61097 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61098 | typeInterpretation:PartialComplexTypeInterpretation) | ||
61099 | { | ||
61100 | find interpretation(problem,interpretation); | ||
61101 | neg find hasElementInContainment(problem,interpretation); | ||
61102 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61103 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
61104 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
61105 | find mayExist(problem, interpretation, newObject); | ||
61106 | neg find mustExist(problem, interpretation, newObject); | ||
61107 | } | ||
61108 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
61109 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61110 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
61111 | container:DefinedElement) | ||
61112 | { | ||
61113 | find interpretation(problem,interpretation); | ||
61114 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61115 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
61116 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
61117 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
61118 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
61119 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
61120 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
61121 | find mustExist(problem, interpretation, container); | ||
61122 | neg find mustExist(problem, interpretation, newObject); | ||
61123 | } | ||
61124 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
61125 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61126 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
61127 | container:DefinedElement) | ||
61128 | { | ||
61129 | find interpretation(problem,interpretation); | ||
61130 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61131 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
61132 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
61133 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
61134 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
61135 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
61136 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
61137 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
61138 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
61139 | find mustExist(problem, interpretation, container); | ||
61140 | neg find mustExist(problem, interpretation, newObject); | ||
61141 | } | ||
61142 | pattern createObject_Function_class( | ||
61143 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61144 | typeInterpretation:PartialComplexTypeInterpretation) | ||
61145 | { | ||
61146 | find interpretation(problem,interpretation); | ||
61147 | neg find hasElementInContainment(problem,interpretation); | ||
61148 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61149 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
61150 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
61151 | find mayExist(problem, interpretation, newObject); | ||
61152 | neg find mustExist(problem, interpretation, newObject); | ||
61153 | } | ||
61154 | |||
61155 | ////////// | ||
61156 | // 4.2 Type refinement | ||
61157 | ////////// | ||
61158 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
61159 | find interpretation(problem,interpretation); | ||
61160 | PartialInterpretation.newElements(interpretation,element); | ||
61161 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61162 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61163 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61164 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61165 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61166 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61167 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61168 | } | ||
61169 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
61170 | find interpretation(problem,interpretation); | ||
61171 | PartialInterpretation.newElements(interpretation,element); | ||
61172 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
61173 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61174 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61175 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
61176 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
61177 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61178 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61179 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61180 | } | ||
61181 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
61182 | find interpretation(problem,interpretation); | ||
61183 | PartialInterpretation.newElements(interpretation,element); | ||
61184 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
61185 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61186 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61187 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
61188 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
61189 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61190 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61191 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61192 | } | ||
61193 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
61194 | find interpretation(problem,interpretation); | ||
61195 | PartialInterpretation.newElements(interpretation,element); | ||
61196 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61197 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61198 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61199 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61200 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61201 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61202 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61203 | } | ||
61204 | pattern refineTypeTo_FunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
61205 | find interpretation(problem,interpretation); | ||
61206 | PartialInterpretation.newElements(interpretation,element); | ||
61207 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61208 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61209 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61210 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61211 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61212 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61213 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61214 | } | ||
61215 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
61216 | find interpretation(problem,interpretation); | ||
61217 | PartialInterpretation.newElements(interpretation,element); | ||
61218 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
61219 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61220 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61221 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61222 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61223 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61224 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61225 | } | ||
61226 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
61227 | find interpretation(problem,interpretation); | ||
61228 | PartialInterpretation.newElements(interpretation,element); | ||
61229 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
61230 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61231 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61232 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61233 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61234 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
61235 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61236 | } | ||
61237 | |||
61238 | ////////// | ||
61239 | // 4.3 Relation refinement | ||
61240 | ////////// | ||
61241 | pattern refineRelation_model_reference_FunctionalElement( | ||
61242 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61243 | relationIterpretation:PartialRelationInterpretation, | ||
61244 | from: DefinedElement, to: DefinedElement) | ||
61245 | { | ||
61246 | find interpretation(problem,interpretation); | ||
61247 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61248 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
61249 | find mustExist(problem, interpretation, from); | ||
61250 | find mustExist(problem, interpretation, to); | ||
61251 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
61252 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
61253 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
61254 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
61255 | } | ||
61256 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
61257 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61258 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
61259 | from: DefinedElement, to: DefinedElement) | ||
61260 | { | ||
61261 | find interpretation(problem,interpretation); | ||
61262 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61263 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
61264 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
61265 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
61266 | find mustExist(problem, interpretation, from); | ||
61267 | find mustExist(problem, interpretation, to); | ||
61268 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
61269 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
61270 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
61271 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
61272 | } | ||
61273 | pattern refineRelation_type_attribute_Function( | ||
61274 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61275 | relationIterpretation:PartialRelationInterpretation, | ||
61276 | from: DefinedElement, to: DefinedElement) | ||
61277 | { | ||
61278 | find interpretation(problem,interpretation); | ||
61279 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61280 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
61281 | find mustExist(problem, interpretation, from); | ||
61282 | find mustExist(problem, interpretation, to); | ||
61283 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
61284 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
61285 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
61286 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
61287 | } | ||
61288 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
61289 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
61290 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
61291 | |||
61292 | ////////// | ||
61293 | // 0. Util | ||
61294 | ////////// | ||
61295 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61296 | PartialInterpretation.problem(interpretation,problem); | ||
61297 | } | ||
61298 | |||
61299 | ///////////////////////// | ||
61300 | // 0.1 Existence | ||
61301 | ///////////////////////// | ||
61302 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61303 | find interpretation(problem,interpretation); | ||
61304 | LogicProblem.elements(problem,element); | ||
61305 | } or { | ||
61306 | find interpretation(problem,interpretation); | ||
61307 | PartialInterpretation.newElements(interpretation,element); | ||
61308 | } | ||
61309 | |||
61310 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61311 | find mustExist(problem,interpretation,element); | ||
61312 | } or { | ||
61313 | find interpretation(problem,interpretation); | ||
61314 | neg find elementCloseWorld(element); | ||
61315 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61316 | } | ||
61317 | |||
61318 | private pattern elementCloseWorld(element:DefinedElement) { | ||
61319 | PartialInterpretation.openWorldElements(i,element); | ||
61320 | PartialInterpretation.maxNewElements(i,0); | ||
61321 | } or { | ||
61322 | Scope.targetTypeInterpretation(scope,interpretation); | ||
61323 | PartialTypeInterpratation.elements(interpretation,element); | ||
61324 | Scope.maxNewElements(scope,0); | ||
61325 | } | ||
61326 | |||
61327 | //////////////////////// | ||
61328 | // 0.2 Equivalence | ||
61329 | //////////////////////// | ||
61330 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
61331 | find mayExist(problem,interpretation,a); | ||
61332 | find mayExist(problem,interpretation,b); | ||
61333 | a == b; | ||
61334 | } | ||
61335 | |||
61336 | //////////////////////// | ||
61337 | // 0.3 Required Patterns by TypeIndexer | ||
61338 | //////////////////////// | ||
61339 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
61340 | find interpretation(problem,interpretation); | ||
61341 | LogicProblem.types(problem,type); | ||
61342 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
61343 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61344 | } | ||
61345 | |||
61346 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
61347 | find interpretation(problem,interpretation); | ||
61348 | LogicProblem.types(problem,type); | ||
61349 | TypeDefinition.elements(type,element); | ||
61350 | } or { | ||
61351 | find interpretation(problem,interpretation); | ||
61352 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
61353 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
61354 | } | ||
61355 | |||
61356 | private pattern isPrimitive(element: PrimitiveElement) { | ||
61357 | PrimitiveElement(element); | ||
61358 | } | ||
61359 | |||
61360 | ////////// | ||
61361 | // 1. Problem-Specific Base Indexers | ||
61362 | ////////// | ||
61363 | // 1.1 Type Indexers | ||
61364 | ////////// | ||
61365 | // 1.1.1 primitive Type Indexers | ||
61366 | ////////// | ||
61367 | |||
61368 | ////////// | ||
61369 | // 1.1.2 domain-specific Type Indexers | ||
61370 | ////////// | ||
61371 | /** | ||
61372 | * An element must be an instance of type "FunctionalElement class". | ||
61373 | */ | ||
61374 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61375 | Type.name(type,"FunctionalElement class"); | ||
61376 | find directInstanceOf(problem,interpretation,element,type); | ||
61377 | } | ||
61378 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61379 | find interpretation(problem,interpretation); | ||
61380 | PartialInterpretation.scopes(interpretation,scope); | ||
61381 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61382 | Scope.maxNewElements(scope,0); | ||
61383 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61384 | Type.name(type,"FunctionalElement class"); | ||
61385 | } | ||
61386 | |||
61387 | /** | ||
61388 | * An element may be an instance of type "FunctionalElement class". | ||
61389 | */ | ||
61390 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61391 | { | ||
61392 | find interpretation(problem,interpretation); | ||
61393 | PartialInterpretation.newElements(interpretation,element); | ||
61394 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61395 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
61396 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61397 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61398 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61399 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61400 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
61401 | neg find isPrimitive(element); | ||
61402 | } or { | ||
61403 | find interpretation(problem,interpretation); | ||
61404 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61405 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61406 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
61407 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61408 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61409 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61410 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61411 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
61412 | neg find isPrimitive(element); | ||
61413 | } or | ||
61414 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
61415 | /** | ||
61416 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
61417 | */ | ||
61418 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61419 | Type.name(type,"FunctionalArchitectureModel class"); | ||
61420 | find directInstanceOf(problem,interpretation,element,type); | ||
61421 | } | ||
61422 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61423 | find interpretation(problem,interpretation); | ||
61424 | PartialInterpretation.scopes(interpretation,scope); | ||
61425 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61426 | Scope.maxNewElements(scope,0); | ||
61427 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61428 | Type.name(type,"FunctionalArchitectureModel class"); | ||
61429 | } | ||
61430 | |||
61431 | /** | ||
61432 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
61433 | */ | ||
61434 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61435 | { | ||
61436 | find interpretation(problem,interpretation); | ||
61437 | PartialInterpretation.newElements(interpretation,element); | ||
61438 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61439 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61440 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61441 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61442 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61443 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
61444 | neg find isPrimitive(element); | ||
61445 | } or { | ||
61446 | find interpretation(problem,interpretation); | ||
61447 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61448 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61449 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61450 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61451 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61452 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61453 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
61454 | neg find isPrimitive(element); | ||
61455 | } or | ||
61456 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
61457 | /** | ||
61458 | * An element must be an instance of type "Function class". | ||
61459 | */ | ||
61460 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61461 | Type.name(type,"Function class"); | ||
61462 | find directInstanceOf(problem,interpretation,element,type); | ||
61463 | } | ||
61464 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61465 | find interpretation(problem,interpretation); | ||
61466 | PartialInterpretation.scopes(interpretation,scope); | ||
61467 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61468 | Scope.maxNewElements(scope,0); | ||
61469 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61470 | Type.name(type,"Function class"); | ||
61471 | } | ||
61472 | |||
61473 | /** | ||
61474 | * An element may be an instance of type "Function class". | ||
61475 | */ | ||
61476 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61477 | { | ||
61478 | find interpretation(problem,interpretation); | ||
61479 | PartialInterpretation.newElements(interpretation,element); | ||
61480 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61481 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61482 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61483 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61484 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61485 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
61486 | neg find isPrimitive(element); | ||
61487 | } or { | ||
61488 | find interpretation(problem,interpretation); | ||
61489 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61490 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61491 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61492 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61493 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61494 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61495 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
61496 | neg find isPrimitive(element); | ||
61497 | } or | ||
61498 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
61499 | /** | ||
61500 | * An element must be an instance of type "FAMTerminator class". | ||
61501 | */ | ||
61502 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61503 | Type.name(type,"FAMTerminator class"); | ||
61504 | find directInstanceOf(problem,interpretation,element,type); | ||
61505 | } | ||
61506 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61507 | find interpretation(problem,interpretation); | ||
61508 | PartialInterpretation.scopes(interpretation,scope); | ||
61509 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61510 | Scope.maxNewElements(scope,0); | ||
61511 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61512 | Type.name(type,"FAMTerminator class"); | ||
61513 | } | ||
61514 | |||
61515 | /** | ||
61516 | * An element may be an instance of type "FAMTerminator class". | ||
61517 | */ | ||
61518 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61519 | { | ||
61520 | find interpretation(problem,interpretation); | ||
61521 | PartialInterpretation.newElements(interpretation,element); | ||
61522 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61523 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61524 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61525 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61526 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61527 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
61528 | neg find isPrimitive(element); | ||
61529 | } or { | ||
61530 | find interpretation(problem,interpretation); | ||
61531 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61532 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61533 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61534 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61535 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61536 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61537 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
61538 | neg find isPrimitive(element); | ||
61539 | } or | ||
61540 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
61541 | /** | ||
61542 | * An element must be an instance of type "InformationLink class". | ||
61543 | */ | ||
61544 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61545 | Type.name(type,"InformationLink class"); | ||
61546 | find directInstanceOf(problem,interpretation,element,type); | ||
61547 | } | ||
61548 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61549 | find interpretation(problem,interpretation); | ||
61550 | PartialInterpretation.scopes(interpretation,scope); | ||
61551 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61552 | Scope.maxNewElements(scope,0); | ||
61553 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61554 | Type.name(type,"InformationLink class"); | ||
61555 | } | ||
61556 | |||
61557 | /** | ||
61558 | * An element may be an instance of type "InformationLink class". | ||
61559 | */ | ||
61560 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61561 | { | ||
61562 | find interpretation(problem,interpretation); | ||
61563 | PartialInterpretation.newElements(interpretation,element); | ||
61564 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61565 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61566 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61567 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61568 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61569 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
61570 | neg find isPrimitive(element); | ||
61571 | } or { | ||
61572 | find interpretation(problem,interpretation); | ||
61573 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61574 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61575 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61576 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61577 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61578 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61579 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
61580 | neg find isPrimitive(element); | ||
61581 | } or | ||
61582 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
61583 | /** | ||
61584 | * An element must be an instance of type "FunctionalInterface class". | ||
61585 | */ | ||
61586 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61587 | Type.name(type,"FunctionalInterface class"); | ||
61588 | find directInstanceOf(problem,interpretation,element,type); | ||
61589 | } | ||
61590 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61591 | find interpretation(problem,interpretation); | ||
61592 | PartialInterpretation.scopes(interpretation,scope); | ||
61593 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61594 | Scope.maxNewElements(scope,0); | ||
61595 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61596 | Type.name(type,"FunctionalInterface class"); | ||
61597 | } | ||
61598 | |||
61599 | /** | ||
61600 | * An element may be an instance of type "FunctionalInterface class". | ||
61601 | */ | ||
61602 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61603 | { | ||
61604 | find interpretation(problem,interpretation); | ||
61605 | PartialInterpretation.newElements(interpretation,element); | ||
61606 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61607 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61608 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61609 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61610 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61611 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
61612 | neg find isPrimitive(element); | ||
61613 | } or { | ||
61614 | find interpretation(problem,interpretation); | ||
61615 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61616 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61617 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61618 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61619 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
61620 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61621 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
61622 | neg find isPrimitive(element); | ||
61623 | } or | ||
61624 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
61625 | /** | ||
61626 | * An element must be an instance of type "FunctionalInput class". | ||
61627 | */ | ||
61628 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61629 | Type.name(type,"FunctionalInput class"); | ||
61630 | find directInstanceOf(problem,interpretation,element,type); | ||
61631 | } | ||
61632 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61633 | find interpretation(problem,interpretation); | ||
61634 | PartialInterpretation.scopes(interpretation,scope); | ||
61635 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61636 | Scope.maxNewElements(scope,0); | ||
61637 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61638 | Type.name(type,"FunctionalInput class"); | ||
61639 | } | ||
61640 | |||
61641 | /** | ||
61642 | * An element may be an instance of type "FunctionalInput class". | ||
61643 | */ | ||
61644 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61645 | { | ||
61646 | find interpretation(problem,interpretation); | ||
61647 | PartialInterpretation.newElements(interpretation,element); | ||
61648 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61649 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61650 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61651 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61652 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
61653 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61654 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
61655 | neg find isPrimitive(element); | ||
61656 | } or { | ||
61657 | find interpretation(problem,interpretation); | ||
61658 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61659 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61660 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61661 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61662 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61663 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
61664 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61665 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
61666 | neg find isPrimitive(element); | ||
61667 | } or | ||
61668 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
61669 | /** | ||
61670 | * An element must be an instance of type "FunctionalOutput class". | ||
61671 | */ | ||
61672 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61673 | Type.name(type,"FunctionalOutput class"); | ||
61674 | find directInstanceOf(problem,interpretation,element,type); | ||
61675 | } | ||
61676 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61677 | find interpretation(problem,interpretation); | ||
61678 | PartialInterpretation.scopes(interpretation,scope); | ||
61679 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61680 | Scope.maxNewElements(scope,0); | ||
61681 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61682 | Type.name(type,"FunctionalOutput class"); | ||
61683 | } | ||
61684 | |||
61685 | /** | ||
61686 | * An element may be an instance of type "FunctionalOutput class". | ||
61687 | */ | ||
61688 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61689 | { | ||
61690 | find interpretation(problem,interpretation); | ||
61691 | PartialInterpretation.newElements(interpretation,element); | ||
61692 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61693 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61694 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61695 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61696 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
61697 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61698 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
61699 | neg find isPrimitive(element); | ||
61700 | } or { | ||
61701 | find interpretation(problem,interpretation); | ||
61702 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61703 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61704 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61705 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61706 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61707 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
61708 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61709 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
61710 | neg find isPrimitive(element); | ||
61711 | } or | ||
61712 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
61713 | /** | ||
61714 | * An element must be an instance of type "FunctionalData class". | ||
61715 | */ | ||
61716 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61717 | Type.name(type,"FunctionalData class"); | ||
61718 | find directInstanceOf(problem,interpretation,element,type); | ||
61719 | } | ||
61720 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61721 | find interpretation(problem,interpretation); | ||
61722 | PartialInterpretation.scopes(interpretation,scope); | ||
61723 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61724 | Scope.maxNewElements(scope,0); | ||
61725 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61726 | Type.name(type,"FunctionalData class"); | ||
61727 | } | ||
61728 | |||
61729 | /** | ||
61730 | * An element may be an instance of type "FunctionalData class". | ||
61731 | */ | ||
61732 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61733 | { | ||
61734 | find interpretation(problem,interpretation); | ||
61735 | PartialInterpretation.newElements(interpretation,element); | ||
61736 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61737 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61738 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61739 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61740 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
61741 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
61742 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61743 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
61744 | neg find isPrimitive(element); | ||
61745 | } or { | ||
61746 | find interpretation(problem,interpretation); | ||
61747 | PartialInterpretation.openWorldElements(interpretation,element); | ||
61748 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
61749 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
61750 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
61751 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
61752 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
61753 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
61754 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
61755 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
61756 | neg find isPrimitive(element); | ||
61757 | } or | ||
61758 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
61759 | /** | ||
61760 | * An element must be an instance of type "FunctionType enum". | ||
61761 | */ | ||
61762 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
61763 | Type.name(type,"FunctionType enum"); | ||
61764 | find directInstanceOf(problem,interpretation,element,type); | ||
61765 | } | ||
61766 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
61767 | find interpretation(problem,interpretation); | ||
61768 | PartialInterpretation.scopes(interpretation,scope); | ||
61769 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
61770 | Scope.maxNewElements(scope,0); | ||
61771 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
61772 | Type.name(type,"FunctionType enum"); | ||
61773 | } | ||
61774 | |||
61775 | /** | ||
61776 | * An element may be an instance of type "FunctionType enum". | ||
61777 | */ | ||
61778 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
61779 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
61780 | |||
61781 | ////////// | ||
61782 | // 1.2 Relation Declaration Indexers | ||
61783 | ////////// | ||
61784 | /** | ||
61785 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
61786 | */ | ||
61787 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
61788 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61789 | source: DefinedElement, target:DefinedElement) | ||
61790 | { | ||
61791 | find interpretation(problem,interpretation); | ||
61792 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61793 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
61794 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
61795 | BinaryElementRelationLink.param1(link,source); | ||
61796 | BinaryElementRelationLink.param2(link,target); | ||
61797 | } | ||
61798 | /** | ||
61799 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
61800 | */ | ||
61801 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
61802 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61803 | source: DefinedElement, target:DefinedElement) | ||
61804 | { | ||
61805 | find interpretation(problem,interpretation); | ||
61806 | // The two endpoint of the link have to exist | ||
61807 | find mayExist(problem, interpretation, source); | ||
61808 | find mayExist(problem, interpretation, target); | ||
61809 | // Type consistency | ||
61810 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
61811 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
61812 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
61813 | // the upper bound of the multiplicity should be considered. | ||
61814 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
61815 | check(numberOfExistingReferences < 1); | ||
61816 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
61817 | // the upper bound of the opposite reference multiplicity should be considered. | ||
61818 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
61819 | check(numberOfExistingOppositeReferences < 1); | ||
61820 | // The reference is containment, then a new reference cannot be create if: | ||
61821 | // 1. Multiple parents | ||
61822 | neg find mustContains4(problem,interpretation,_,target); | ||
61823 | // 2. Circle in the containment hierarchy | ||
61824 | neg find mustTransitiveContains(source,target); | ||
61825 | } or { | ||
61826 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
61827 | } | ||
61828 | /** | ||
61829 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
61830 | */ | ||
61831 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
61832 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61833 | source: DefinedElement, target:DefinedElement) | ||
61834 | { | ||
61835 | find interpretation(problem,interpretation); | ||
61836 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61837 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
61838 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
61839 | BinaryElementRelationLink.param1(link,source); | ||
61840 | BinaryElementRelationLink.param2(link,target); | ||
61841 | } | ||
61842 | /** | ||
61843 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
61844 | */ | ||
61845 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
61846 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61847 | source: DefinedElement, target:DefinedElement) | ||
61848 | { | ||
61849 | find interpretation(problem,interpretation); | ||
61850 | // The two endpoint of the link have to exist | ||
61851 | find mayExist(problem, interpretation, source); | ||
61852 | find mayExist(problem, interpretation, target); | ||
61853 | // Type consistency | ||
61854 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
61855 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
61856 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
61857 | // the upper bound of the multiplicity should be considered. | ||
61858 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
61859 | check(numberOfExistingReferences < 1); | ||
61860 | } or { | ||
61861 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
61862 | } | ||
61863 | /** | ||
61864 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
61865 | */ | ||
61866 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
61867 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61868 | source: DefinedElement, target:DefinedElement) | ||
61869 | { | ||
61870 | find interpretation(problem,interpretation); | ||
61871 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61872 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
61873 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
61874 | BinaryElementRelationLink.param1(link,source); | ||
61875 | BinaryElementRelationLink.param2(link,target); | ||
61876 | } | ||
61877 | /** | ||
61878 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
61879 | */ | ||
61880 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
61881 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61882 | source: DefinedElement, target:DefinedElement) | ||
61883 | { | ||
61884 | find interpretation(problem,interpretation); | ||
61885 | // The two endpoint of the link have to exist | ||
61886 | find mayExist(problem, interpretation, source); | ||
61887 | find mayExist(problem, interpretation, target); | ||
61888 | // Type consistency | ||
61889 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
61890 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
61891 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
61892 | // the upper bound of the multiplicity should be considered. | ||
61893 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
61894 | check(numberOfExistingReferences < 1); | ||
61895 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
61896 | // 1. Multiple parents | ||
61897 | neg find mustContains4(problem,interpretation,source,_); | ||
61898 | // 2. Circle in the containment hierarchy | ||
61899 | neg find mustTransitiveContains(source,target); | ||
61900 | } or { | ||
61901 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
61902 | } | ||
61903 | /** | ||
61904 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
61905 | */ | ||
61906 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
61907 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61908 | source: DefinedElement, target:DefinedElement) | ||
61909 | { | ||
61910 | find interpretation(problem,interpretation); | ||
61911 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61912 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
61913 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
61914 | BinaryElementRelationLink.param1(link,source); | ||
61915 | BinaryElementRelationLink.param2(link,target); | ||
61916 | } | ||
61917 | /** | ||
61918 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
61919 | */ | ||
61920 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
61921 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61922 | source: DefinedElement, target:DefinedElement) | ||
61923 | { | ||
61924 | find interpretation(problem,interpretation); | ||
61925 | // The two endpoint of the link have to exist | ||
61926 | find mayExist(problem, interpretation, source); | ||
61927 | find mayExist(problem, interpretation, target); | ||
61928 | // Type consistency | ||
61929 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
61930 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
61931 | // The reference is containment, then a new reference cannot be create if: | ||
61932 | // 1. Multiple parents | ||
61933 | neg find mustContains4(problem,interpretation,_,target); | ||
61934 | // 2. Circle in the containment hierarchy | ||
61935 | neg find mustTransitiveContains(source,target); | ||
61936 | } or { | ||
61937 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
61938 | } | ||
61939 | /** | ||
61940 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
61941 | */ | ||
61942 | private pattern mustInRelationsubElements_reference_Function( | ||
61943 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61944 | source: DefinedElement, target:DefinedElement) | ||
61945 | { | ||
61946 | find interpretation(problem,interpretation); | ||
61947 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61948 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
61949 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
61950 | BinaryElementRelationLink.param1(link,source); | ||
61951 | BinaryElementRelationLink.param2(link,target); | ||
61952 | } | ||
61953 | /** | ||
61954 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
61955 | */ | ||
61956 | private pattern mayInRelationsubElements_reference_Function( | ||
61957 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61958 | source: DefinedElement, target:DefinedElement) | ||
61959 | { | ||
61960 | find interpretation(problem,interpretation); | ||
61961 | // The two endpoint of the link have to exist | ||
61962 | find mayExist(problem, interpretation, source); | ||
61963 | find mayExist(problem, interpretation, target); | ||
61964 | // Type consistency | ||
61965 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
61966 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
61967 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
61968 | // the upper bound of the opposite reference multiplicity should be considered. | ||
61969 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
61970 | check(numberOfExistingOppositeReferences < 1); | ||
61971 | // The reference is containment, then a new reference cannot be create if: | ||
61972 | // 1. Multiple parents | ||
61973 | neg find mustContains4(problem,interpretation,_,target); | ||
61974 | // 2. Circle in the containment hierarchy | ||
61975 | neg find mustTransitiveContains(source,target); | ||
61976 | } or { | ||
61977 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
61978 | } | ||
61979 | /** | ||
61980 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
61981 | */ | ||
61982 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
61983 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61984 | source: DefinedElement, target:DefinedElement) | ||
61985 | { | ||
61986 | find interpretation(problem,interpretation); | ||
61987 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
61988 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
61989 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
61990 | BinaryElementRelationLink.param1(link,source); | ||
61991 | BinaryElementRelationLink.param2(link,target); | ||
61992 | } | ||
61993 | /** | ||
61994 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
61995 | */ | ||
61996 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
61997 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
61998 | source: DefinedElement, target:DefinedElement) | ||
61999 | { | ||
62000 | find interpretation(problem,interpretation); | ||
62001 | // The two endpoint of the link have to exist | ||
62002 | find mayExist(problem, interpretation, source); | ||
62003 | find mayExist(problem, interpretation, target); | ||
62004 | // Type consistency | ||
62005 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
62006 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
62007 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
62008 | // the upper bound of the multiplicity should be considered. | ||
62009 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
62010 | check(numberOfExistingReferences < 1); | ||
62011 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
62012 | // the upper bound of the opposite reference multiplicity should be considered. | ||
62013 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
62014 | check(numberOfExistingOppositeReferences < 1); | ||
62015 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
62016 | // 1. Multiple parents | ||
62017 | neg find mustContains4(problem,interpretation,source,_); | ||
62018 | // 2. Circle in the containment hierarchy | ||
62019 | neg find mustTransitiveContains(source,target); | ||
62020 | } or { | ||
62021 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
62022 | } | ||
62023 | /** | ||
62024 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
62025 | */ | ||
62026 | private pattern mustInRelationfrom_reference_InformationLink( | ||
62027 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62028 | source: DefinedElement, target:DefinedElement) | ||
62029 | { | ||
62030 | find interpretation(problem,interpretation); | ||
62031 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62032 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
62033 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62034 | BinaryElementRelationLink.param1(link,source); | ||
62035 | BinaryElementRelationLink.param2(link,target); | ||
62036 | } | ||
62037 | /** | ||
62038 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
62039 | */ | ||
62040 | private pattern mayInRelationfrom_reference_InformationLink( | ||
62041 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62042 | source: DefinedElement, target:DefinedElement) | ||
62043 | { | ||
62044 | find interpretation(problem,interpretation); | ||
62045 | // The two endpoint of the link have to exist | ||
62046 | find mayExist(problem, interpretation, source); | ||
62047 | find mayExist(problem, interpretation, target); | ||
62048 | // Type consistency | ||
62049 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
62050 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
62051 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
62052 | // the upper bound of the multiplicity should be considered. | ||
62053 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
62054 | check(numberOfExistingReferences < 1); | ||
62055 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
62056 | // 1. Multiple parents | ||
62057 | neg find mustContains4(problem,interpretation,source,_); | ||
62058 | // 2. Circle in the containment hierarchy | ||
62059 | neg find mustTransitiveContains(source,target); | ||
62060 | } or { | ||
62061 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
62062 | } | ||
62063 | /** | ||
62064 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
62065 | */ | ||
62066 | private pattern mustInRelationto_reference_InformationLink( | ||
62067 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62068 | source: DefinedElement, target:DefinedElement) | ||
62069 | { | ||
62070 | find interpretation(problem,interpretation); | ||
62071 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62072 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
62073 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62074 | BinaryElementRelationLink.param1(link,source); | ||
62075 | BinaryElementRelationLink.param2(link,target); | ||
62076 | } | ||
62077 | /** | ||
62078 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
62079 | */ | ||
62080 | private pattern mayInRelationto_reference_InformationLink( | ||
62081 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62082 | source: DefinedElement, target:DefinedElement) | ||
62083 | { | ||
62084 | find interpretation(problem,interpretation); | ||
62085 | // The two endpoint of the link have to exist | ||
62086 | find mayExist(problem, interpretation, source); | ||
62087 | find mayExist(problem, interpretation, target); | ||
62088 | // Type consistency | ||
62089 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
62090 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
62091 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
62092 | // the upper bound of the multiplicity should be considered. | ||
62093 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
62094 | check(numberOfExistingReferences < 1); | ||
62095 | } or { | ||
62096 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
62097 | } | ||
62098 | /** | ||
62099 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
62100 | */ | ||
62101 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
62102 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62103 | source: DefinedElement, target:DefinedElement) | ||
62104 | { | ||
62105 | find interpretation(problem,interpretation); | ||
62106 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62107 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
62108 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62109 | BinaryElementRelationLink.param1(link,source); | ||
62110 | BinaryElementRelationLink.param2(link,target); | ||
62111 | } | ||
62112 | /** | ||
62113 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
62114 | */ | ||
62115 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
62116 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62117 | source: DefinedElement, target:DefinedElement) | ||
62118 | { | ||
62119 | find interpretation(problem,interpretation); | ||
62120 | // The two endpoint of the link have to exist | ||
62121 | find mayExist(problem, interpretation, source); | ||
62122 | find mayExist(problem, interpretation, target); | ||
62123 | // Type consistency | ||
62124 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
62125 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
62126 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
62127 | // the upper bound of the opposite reference multiplicity should be considered. | ||
62128 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
62129 | check(numberOfExistingOppositeReferences < 1); | ||
62130 | // The reference is containment, then a new reference cannot be create if: | ||
62131 | // 1. Multiple parents | ||
62132 | neg find mustContains4(problem,interpretation,_,target); | ||
62133 | // 2. Circle in the containment hierarchy | ||
62134 | neg find mustTransitiveContains(source,target); | ||
62135 | } or { | ||
62136 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
62137 | } | ||
62138 | /** | ||
62139 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
62140 | */ | ||
62141 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
62142 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62143 | source: DefinedElement, target:DefinedElement) | ||
62144 | { | ||
62145 | find interpretation(problem,interpretation); | ||
62146 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62147 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
62148 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62149 | BinaryElementRelationLink.param1(link,source); | ||
62150 | BinaryElementRelationLink.param2(link,target); | ||
62151 | } | ||
62152 | /** | ||
62153 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
62154 | */ | ||
62155 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
62156 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62157 | source: DefinedElement, target:DefinedElement) | ||
62158 | { | ||
62159 | find interpretation(problem,interpretation); | ||
62160 | // The two endpoint of the link have to exist | ||
62161 | find mayExist(problem, interpretation, source); | ||
62162 | find mayExist(problem, interpretation, target); | ||
62163 | // Type consistency | ||
62164 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
62165 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
62166 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
62167 | // the upper bound of the multiplicity should be considered. | ||
62168 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
62169 | check(numberOfExistingReferences < 1); | ||
62170 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
62171 | // the upper bound of the opposite reference multiplicity should be considered. | ||
62172 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
62173 | check(numberOfExistingOppositeReferences < 1); | ||
62174 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
62175 | // 1. Multiple parents | ||
62176 | neg find mustContains4(problem,interpretation,source,_); | ||
62177 | // 2. Circle in the containment hierarchy | ||
62178 | neg find mustTransitiveContains(source,target); | ||
62179 | } or { | ||
62180 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
62181 | } | ||
62182 | /** | ||
62183 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
62184 | */ | ||
62185 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
62186 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62187 | source: DefinedElement, target:DefinedElement) | ||
62188 | { | ||
62189 | find interpretation(problem,interpretation); | ||
62190 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62191 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
62192 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62193 | BinaryElementRelationLink.param1(link,source); | ||
62194 | BinaryElementRelationLink.param2(link,target); | ||
62195 | } | ||
62196 | /** | ||
62197 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
62198 | */ | ||
62199 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
62200 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62201 | source: DefinedElement, target:DefinedElement) | ||
62202 | { | ||
62203 | find interpretation(problem,interpretation); | ||
62204 | // The two endpoint of the link have to exist | ||
62205 | find mayExist(problem, interpretation, source); | ||
62206 | find mayExist(problem, interpretation, target); | ||
62207 | // Type consistency | ||
62208 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
62209 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
62210 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
62211 | // the upper bound of the opposite reference multiplicity should be considered. | ||
62212 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
62213 | check(numberOfExistingOppositeReferences < 1); | ||
62214 | } or { | ||
62215 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
62216 | } | ||
62217 | /** | ||
62218 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
62219 | */ | ||
62220 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
62221 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62222 | source: DefinedElement, target:DefinedElement) | ||
62223 | { | ||
62224 | find interpretation(problem,interpretation); | ||
62225 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62226 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
62227 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62228 | BinaryElementRelationLink.param1(link,source); | ||
62229 | BinaryElementRelationLink.param2(link,target); | ||
62230 | } | ||
62231 | /** | ||
62232 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
62233 | */ | ||
62234 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
62235 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62236 | source: DefinedElement, target:DefinedElement) | ||
62237 | { | ||
62238 | find interpretation(problem,interpretation); | ||
62239 | // The two endpoint of the link have to exist | ||
62240 | find mayExist(problem, interpretation, source); | ||
62241 | find mayExist(problem, interpretation, target); | ||
62242 | // Type consistency | ||
62243 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
62244 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
62245 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
62246 | // the upper bound of the opposite reference multiplicity should be considered. | ||
62247 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
62248 | check(numberOfExistingOppositeReferences < 1); | ||
62249 | // The reference is containment, then a new reference cannot be create if: | ||
62250 | // 1. Multiple parents | ||
62251 | neg find mustContains4(problem,interpretation,_,target); | ||
62252 | // 2. Circle in the containment hierarchy | ||
62253 | neg find mustTransitiveContains(source,target); | ||
62254 | } or { | ||
62255 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
62256 | } | ||
62257 | /** | ||
62258 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
62259 | */ | ||
62260 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
62261 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62262 | source: DefinedElement, target:DefinedElement) | ||
62263 | { | ||
62264 | find interpretation(problem,interpretation); | ||
62265 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62266 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
62267 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62268 | BinaryElementRelationLink.param1(link,source); | ||
62269 | BinaryElementRelationLink.param2(link,target); | ||
62270 | } | ||
62271 | /** | ||
62272 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
62273 | */ | ||
62274 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
62275 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62276 | source: DefinedElement, target:DefinedElement) | ||
62277 | { | ||
62278 | find interpretation(problem,interpretation); | ||
62279 | // The two endpoint of the link have to exist | ||
62280 | find mayExist(problem, interpretation, source); | ||
62281 | find mayExist(problem, interpretation, target); | ||
62282 | // Type consistency | ||
62283 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
62284 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
62285 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
62286 | // the upper bound of the multiplicity should be considered. | ||
62287 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
62288 | check(numberOfExistingReferences < 1); | ||
62289 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
62290 | // the upper bound of the opposite reference multiplicity should be considered. | ||
62291 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
62292 | check(numberOfExistingOppositeReferences < 1); | ||
62293 | // The reference is containment, then a new reference cannot be create if: | ||
62294 | // 1. Multiple parents | ||
62295 | neg find mustContains4(problem,interpretation,_,target); | ||
62296 | // 2. Circle in the containment hierarchy | ||
62297 | neg find mustTransitiveContains(source,target); | ||
62298 | } or { | ||
62299 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
62300 | } | ||
62301 | /** | ||
62302 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
62303 | */ | ||
62304 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
62305 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62306 | source: DefinedElement, target:DefinedElement) | ||
62307 | { | ||
62308 | find interpretation(problem,interpretation); | ||
62309 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62310 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
62311 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62312 | BinaryElementRelationLink.param1(link,source); | ||
62313 | BinaryElementRelationLink.param2(link,target); | ||
62314 | } | ||
62315 | /** | ||
62316 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
62317 | */ | ||
62318 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
62319 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62320 | source: DefinedElement, target:DefinedElement) | ||
62321 | { | ||
62322 | find interpretation(problem,interpretation); | ||
62323 | // The two endpoint of the link have to exist | ||
62324 | find mayExist(problem, interpretation, source); | ||
62325 | find mayExist(problem, interpretation, target); | ||
62326 | // Type consistency | ||
62327 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
62328 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
62329 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
62330 | // the upper bound of the multiplicity should be considered. | ||
62331 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
62332 | check(numberOfExistingReferences < 1); | ||
62333 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
62334 | // 1. Multiple parents | ||
62335 | neg find mustContains4(problem,interpretation,source,_); | ||
62336 | // 2. Circle in the containment hierarchy | ||
62337 | neg find mustTransitiveContains(source,target); | ||
62338 | } or { | ||
62339 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
62340 | } | ||
62341 | /** | ||
62342 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
62343 | */ | ||
62344 | private pattern mustInRelationtype_attribute_Function( | ||
62345 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62346 | source: DefinedElement, target:DefinedElement) | ||
62347 | { | ||
62348 | find interpretation(problem,interpretation); | ||
62349 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62350 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
62351 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
62352 | BinaryElementRelationLink.param1(link,source); | ||
62353 | BinaryElementRelationLink.param2(link,target); | ||
62354 | } | ||
62355 | /** | ||
62356 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
62357 | */ | ||
62358 | private pattern mayInRelationtype_attribute_Function( | ||
62359 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62360 | source: DefinedElement, target:DefinedElement) | ||
62361 | { | ||
62362 | find interpretation(problem,interpretation); | ||
62363 | // The two endpoint of the link have to exist | ||
62364 | find mayExist(problem, interpretation, source); | ||
62365 | find mayExist(problem, interpretation, target); | ||
62366 | // Type consistency | ||
62367 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
62368 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
62369 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
62370 | // the upper bound of the multiplicity should be considered. | ||
62371 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
62372 | check(numberOfExistingReferences < 1); | ||
62373 | } or { | ||
62374 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
62375 | } | ||
62376 | |||
62377 | ////////// | ||
62378 | // 1.3 Relation Definition Indexers | ||
62379 | ////////// | ||
62380 | |||
62381 | ////////// | ||
62382 | // 1.4 Containment Indexer | ||
62383 | ////////// | ||
62384 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
62385 | find mustContains4(_,_,source,target); | ||
62386 | } | ||
62387 | |||
62388 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
62389 | source: DefinedElement, target: DefinedElement) | ||
62390 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
62391 | |||
62392 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
62393 | |||
62394 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
62395 | |||
62396 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
62397 | |||
62398 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
62399 | |||
62400 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
62401 | |||
62402 | private pattern mustTransitiveContains(source,target) { | ||
62403 | find mustContains2+(source,target); | ||
62404 | } | ||
62405 | |||
62406 | ////////// | ||
62407 | // 2. Invalidation Indexers | ||
62408 | ////////// | ||
62409 | // 2.1 Invalidated by WF Queries | ||
62410 | ////////// | ||
62411 | |||
62412 | ////////// | ||
62413 | // 3. Unfinishedness Indexers | ||
62414 | ////////// | ||
62415 | // 3.1 Unfinishedness Measured by Multiplicity | ||
62416 | ////////// | ||
62417 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
62418 | find interpretation(problem,interpretation); | ||
62419 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62420 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
62421 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
62422 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
62423 | check(numberOfExistingReferences < 1); | ||
62424 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
62425 | } | ||
62426 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
62427 | find interpretation(problem,interpretation); | ||
62428 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62429 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
62430 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
62431 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
62432 | check(numberOfExistingReferences < 1); | ||
62433 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
62434 | } | ||
62435 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
62436 | find interpretation(problem,interpretation); | ||
62437 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62438 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
62439 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
62440 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
62441 | check(numberOfExistingReferences < 1); | ||
62442 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
62443 | } | ||
62444 | |||
62445 | ////////// | ||
62446 | // 3.2 Unfinishedness Measured by WF Queries | ||
62447 | ////////// | ||
62448 | |||
62449 | ////////// | ||
62450 | // 4. Refinement Indexers | ||
62451 | ////////// | ||
62452 | // 4.1 Object constructors | ||
62453 | ////////// | ||
62454 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
62455 | { | ||
62456 | find interpretation(problem,interpretation); | ||
62457 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
62458 | find mustExist(problem, interpretation, root); | ||
62459 | }or{ | ||
62460 | find interpretation(problem,interpretation); | ||
62461 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
62462 | find mustExist(problem, interpretation, root); | ||
62463 | }or{ | ||
62464 | find interpretation(problem,interpretation); | ||
62465 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
62466 | find mustExist(problem, interpretation, root); | ||
62467 | }or{ | ||
62468 | find interpretation(problem,interpretation); | ||
62469 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
62470 | find mustExist(problem, interpretation, root); | ||
62471 | }or{ | ||
62472 | find interpretation(problem,interpretation); | ||
62473 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
62474 | find mustExist(problem, interpretation, root); | ||
62475 | }or{ | ||
62476 | find interpretation(problem,interpretation); | ||
62477 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
62478 | find mustExist(problem, interpretation, root); | ||
62479 | }or{ | ||
62480 | find interpretation(problem,interpretation); | ||
62481 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
62482 | find mustExist(problem, interpretation, root); | ||
62483 | }or{ | ||
62484 | find interpretation(problem,interpretation); | ||
62485 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
62486 | find mustExist(problem, interpretation, root); | ||
62487 | }or{ | ||
62488 | find interpretation(problem,interpretation); | ||
62489 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
62490 | find mustExist(problem, interpretation, root); | ||
62491 | } | ||
62492 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
62493 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62494 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
62495 | container:DefinedElement) | ||
62496 | { | ||
62497 | find interpretation(problem,interpretation); | ||
62498 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62499 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
62500 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
62501 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
62502 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
62503 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
62504 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
62505 | find mustExist(problem, interpretation, container); | ||
62506 | neg find mustExist(problem, interpretation, newObject); | ||
62507 | } | ||
62508 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
62509 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62510 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
62511 | container:DefinedElement) | ||
62512 | { | ||
62513 | find interpretation(problem,interpretation); | ||
62514 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62515 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
62516 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
62517 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
62518 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
62519 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
62520 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
62521 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
62522 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
62523 | find mustExist(problem, interpretation, container); | ||
62524 | neg find mustExist(problem, interpretation, newObject); | ||
62525 | } | ||
62526 | pattern createObject_Function_class( | ||
62527 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62528 | typeInterpretation:PartialComplexTypeInterpretation) | ||
62529 | { | ||
62530 | find interpretation(problem,interpretation); | ||
62531 | neg find hasElementInContainment(problem,interpretation); | ||
62532 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62533 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
62534 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
62535 | find mayExist(problem, interpretation, newObject); | ||
62536 | neg find mustExist(problem, interpretation, newObject); | ||
62537 | } | ||
62538 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
62539 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62540 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
62541 | container:DefinedElement) | ||
62542 | { | ||
62543 | find interpretation(problem,interpretation); | ||
62544 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62545 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
62546 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
62547 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
62548 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
62549 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
62550 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
62551 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
62552 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
62553 | find mustExist(problem, interpretation, container); | ||
62554 | neg find mustExist(problem, interpretation, newObject); | ||
62555 | } | ||
62556 | pattern createObject_FunctionalInterface_class( | ||
62557 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62558 | typeInterpretation:PartialComplexTypeInterpretation) | ||
62559 | { | ||
62560 | find interpretation(problem,interpretation); | ||
62561 | neg find hasElementInContainment(problem,interpretation); | ||
62562 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62563 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
62564 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
62565 | find mayExist(problem, interpretation, newObject); | ||
62566 | neg find mustExist(problem, interpretation, newObject); | ||
62567 | } | ||
62568 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
62569 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62570 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
62571 | container:DefinedElement) | ||
62572 | { | ||
62573 | find interpretation(problem,interpretation); | ||
62574 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62575 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
62576 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
62577 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
62578 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
62579 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
62580 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
62581 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
62582 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
62583 | find mustExist(problem, interpretation, container); | ||
62584 | neg find mustExist(problem, interpretation, newObject); | ||
62585 | } | ||
62586 | pattern createObject_InformationLink_class( | ||
62587 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62588 | typeInterpretation:PartialComplexTypeInterpretation) | ||
62589 | { | ||
62590 | find interpretation(problem,interpretation); | ||
62591 | neg find hasElementInContainment(problem,interpretation); | ||
62592 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62593 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
62594 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
62595 | find mayExist(problem, interpretation, newObject); | ||
62596 | neg find mustExist(problem, interpretation, newObject); | ||
62597 | } | ||
62598 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
62599 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62600 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
62601 | container:DefinedElement) | ||
62602 | { | ||
62603 | find interpretation(problem,interpretation); | ||
62604 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62605 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
62606 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
62607 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
62608 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
62609 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
62610 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
62611 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
62612 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
62613 | find mustExist(problem, interpretation, container); | ||
62614 | neg find mustExist(problem, interpretation, newObject); | ||
62615 | } | ||
62616 | pattern createObject_FAMTerminator_class( | ||
62617 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62618 | typeInterpretation:PartialComplexTypeInterpretation) | ||
62619 | { | ||
62620 | find interpretation(problem,interpretation); | ||
62621 | neg find hasElementInContainment(problem,interpretation); | ||
62622 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62623 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
62624 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
62625 | find mayExist(problem, interpretation, newObject); | ||
62626 | neg find mustExist(problem, interpretation, newObject); | ||
62627 | } | ||
62628 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
62629 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62630 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
62631 | container:DefinedElement) | ||
62632 | { | ||
62633 | find interpretation(problem,interpretation); | ||
62634 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62635 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
62636 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
62637 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
62638 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
62639 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
62640 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
62641 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
62642 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
62643 | find mustExist(problem, interpretation, container); | ||
62644 | neg find mustExist(problem, interpretation, newObject); | ||
62645 | } | ||
62646 | pattern createObject_FunctionalInput_class( | ||
62647 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62648 | typeInterpretation:PartialComplexTypeInterpretation) | ||
62649 | { | ||
62650 | find interpretation(problem,interpretation); | ||
62651 | neg find hasElementInContainment(problem,interpretation); | ||
62652 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62653 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
62654 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
62655 | find mayExist(problem, interpretation, newObject); | ||
62656 | neg find mustExist(problem, interpretation, newObject); | ||
62657 | } | ||
62658 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
62659 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62660 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
62661 | container:DefinedElement) | ||
62662 | { | ||
62663 | find interpretation(problem,interpretation); | ||
62664 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62665 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
62666 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
62667 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
62668 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
62669 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
62670 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
62671 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
62672 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
62673 | find mustExist(problem, interpretation, container); | ||
62674 | neg find mustExist(problem, interpretation, newObject); | ||
62675 | } | ||
62676 | pattern createObject_FunctionalOutput_class( | ||
62677 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62678 | typeInterpretation:PartialComplexTypeInterpretation) | ||
62679 | { | ||
62680 | find interpretation(problem,interpretation); | ||
62681 | neg find hasElementInContainment(problem,interpretation); | ||
62682 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62683 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
62684 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
62685 | find mayExist(problem, interpretation, newObject); | ||
62686 | neg find mustExist(problem, interpretation, newObject); | ||
62687 | } | ||
62688 | pattern createObject_FunctionalArchitectureModel_class( | ||
62689 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62690 | typeInterpretation:PartialComplexTypeInterpretation) | ||
62691 | { | ||
62692 | find interpretation(problem,interpretation); | ||
62693 | neg find hasElementInContainment(problem,interpretation); | ||
62694 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62695 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class"); | ||
62696 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,newObject); | ||
62697 | find mayExist(problem, interpretation, newObject); | ||
62698 | neg find mustExist(problem, interpretation, newObject); | ||
62699 | } | ||
62700 | |||
62701 | ////////// | ||
62702 | // 4.2 Type refinement | ||
62703 | ////////// | ||
62704 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
62705 | find interpretation(problem,interpretation); | ||
62706 | PartialInterpretation.newElements(interpretation,element); | ||
62707 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
62708 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
62709 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62710 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62711 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62712 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62713 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62714 | } | ||
62715 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
62716 | find interpretation(problem,interpretation); | ||
62717 | PartialInterpretation.newElements(interpretation,element); | ||
62718 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62719 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62720 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62721 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62722 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
62723 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62724 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62725 | } | ||
62726 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
62727 | find interpretation(problem,interpretation); | ||
62728 | PartialInterpretation.newElements(interpretation,element); | ||
62729 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
62730 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62731 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62732 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62733 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62734 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
62735 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62736 | } | ||
62737 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
62738 | find interpretation(problem,interpretation); | ||
62739 | PartialInterpretation.newElements(interpretation,element); | ||
62740 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62741 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62742 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62743 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62744 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
62745 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62746 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62747 | } | ||
62748 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
62749 | find interpretation(problem,interpretation); | ||
62750 | PartialInterpretation.newElements(interpretation,element); | ||
62751 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
62752 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62753 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62754 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62755 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
62756 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
62757 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
62758 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62759 | } | ||
62760 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
62761 | find interpretation(problem,interpretation); | ||
62762 | PartialInterpretation.newElements(interpretation,element); | ||
62763 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
62764 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62765 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62766 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62767 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
62768 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
62769 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
62770 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62771 | } | ||
62772 | pattern refineTypeTo_FunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
62773 | find interpretation(problem,interpretation); | ||
62774 | PartialInterpretation.newElements(interpretation,element); | ||
62775 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62776 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62777 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62778 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62779 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
62780 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62781 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62782 | } | ||
62783 | |||
62784 | ////////// | ||
62785 | // 4.3 Relation refinement | ||
62786 | ////////// | ||
62787 | pattern refineRelation_model_reference_FunctionalElement( | ||
62788 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62789 | relationIterpretation:PartialRelationInterpretation, | ||
62790 | from: DefinedElement, to: DefinedElement) | ||
62791 | { | ||
62792 | find interpretation(problem,interpretation); | ||
62793 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62794 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
62795 | find mustExist(problem, interpretation, from); | ||
62796 | find mustExist(problem, interpretation, to); | ||
62797 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
62798 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
62799 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
62800 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
62801 | } | ||
62802 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
62803 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62804 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
62805 | from: DefinedElement, to: DefinedElement) | ||
62806 | { | ||
62807 | find interpretation(problem,interpretation); | ||
62808 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62809 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
62810 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
62811 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
62812 | find mustExist(problem, interpretation, from); | ||
62813 | find mustExist(problem, interpretation, to); | ||
62814 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
62815 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
62816 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
62817 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
62818 | } | ||
62819 | pattern refineRelation_type_attribute_Function( | ||
62820 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
62821 | relationIterpretation:PartialRelationInterpretation, | ||
62822 | from: DefinedElement, to: DefinedElement) | ||
62823 | { | ||
62824 | find interpretation(problem,interpretation); | ||
62825 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
62826 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
62827 | find mustExist(problem, interpretation, from); | ||
62828 | find mustExist(problem, interpretation, to); | ||
62829 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
62830 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
62831 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
62832 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
62833 | } | ||
62834 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
62835 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
62836 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
62837 | |||
62838 | ////////// | ||
62839 | // 0. Util | ||
62840 | ////////// | ||
62841 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
62842 | PartialInterpretation.problem(interpretation,problem); | ||
62843 | } | ||
62844 | |||
62845 | ///////////////////////// | ||
62846 | // 0.1 Existence | ||
62847 | ///////////////////////// | ||
62848 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
62849 | find interpretation(problem,interpretation); | ||
62850 | LogicProblem.elements(problem,element); | ||
62851 | } or { | ||
62852 | find interpretation(problem,interpretation); | ||
62853 | PartialInterpretation.newElements(interpretation,element); | ||
62854 | } | ||
62855 | |||
62856 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
62857 | find mustExist(problem,interpretation,element); | ||
62858 | } or { | ||
62859 | find interpretation(problem,interpretation); | ||
62860 | neg find elementCloseWorld(element); | ||
62861 | PartialInterpretation.openWorldElements(interpretation,element); | ||
62862 | } | ||
62863 | |||
62864 | private pattern elementCloseWorld(element:DefinedElement) { | ||
62865 | PartialInterpretation.openWorldElements(i,element); | ||
62866 | PartialInterpretation.maxNewElements(i,0); | ||
62867 | } or { | ||
62868 | Scope.targetTypeInterpretation(scope,interpretation); | ||
62869 | PartialTypeInterpratation.elements(interpretation,element); | ||
62870 | Scope.maxNewElements(scope,0); | ||
62871 | } | ||
62872 | |||
62873 | //////////////////////// | ||
62874 | // 0.2 Equivalence | ||
62875 | //////////////////////// | ||
62876 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
62877 | find mayExist(problem,interpretation,a); | ||
62878 | find mayExist(problem,interpretation,b); | ||
62879 | a == b; | ||
62880 | } | ||
62881 | |||
62882 | //////////////////////// | ||
62883 | // 0.3 Required Patterns by TypeIndexer | ||
62884 | //////////////////////// | ||
62885 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
62886 | find interpretation(problem,interpretation); | ||
62887 | LogicProblem.types(problem,type); | ||
62888 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
62889 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
62890 | } | ||
62891 | |||
62892 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
62893 | find interpretation(problem,interpretation); | ||
62894 | LogicProblem.types(problem,type); | ||
62895 | TypeDefinition.elements(type,element); | ||
62896 | } or { | ||
62897 | find interpretation(problem,interpretation); | ||
62898 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
62899 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
62900 | } | ||
62901 | |||
62902 | private pattern isPrimitive(element: PrimitiveElement) { | ||
62903 | PrimitiveElement(element); | ||
62904 | } | ||
62905 | |||
62906 | ////////// | ||
62907 | // 1. Problem-Specific Base Indexers | ||
62908 | ////////// | ||
62909 | // 1.1 Type Indexers | ||
62910 | ////////// | ||
62911 | // 1.1.1 primitive Type Indexers | ||
62912 | ////////// | ||
62913 | |||
62914 | ////////// | ||
62915 | // 1.1.2 domain-specific Type Indexers | ||
62916 | ////////// | ||
62917 | /** | ||
62918 | * An element must be an instance of type "FunctionalElement class". | ||
62919 | */ | ||
62920 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
62921 | Type.name(type,"FunctionalElement class"); | ||
62922 | find directInstanceOf(problem,interpretation,element,type); | ||
62923 | } | ||
62924 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
62925 | find interpretation(problem,interpretation); | ||
62926 | PartialInterpretation.scopes(interpretation,scope); | ||
62927 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
62928 | Scope.maxNewElements(scope,0); | ||
62929 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
62930 | Type.name(type,"FunctionalElement class"); | ||
62931 | } | ||
62932 | |||
62933 | /** | ||
62934 | * An element may be an instance of type "FunctionalElement class". | ||
62935 | */ | ||
62936 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
62937 | { | ||
62938 | find interpretation(problem,interpretation); | ||
62939 | PartialInterpretation.newElements(interpretation,element); | ||
62940 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
62941 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62942 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62943 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62944 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62945 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62946 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
62947 | neg find isPrimitive(element); | ||
62948 | } or { | ||
62949 | find interpretation(problem,interpretation); | ||
62950 | PartialInterpretation.openWorldElements(interpretation,element); | ||
62951 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
62952 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62953 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62954 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
62955 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62956 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62957 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
62958 | neg find isPrimitive(element); | ||
62959 | } or | ||
62960 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
62961 | /** | ||
62962 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
62963 | */ | ||
62964 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
62965 | Type.name(type,"FunctionalArchitectureModel class"); | ||
62966 | find directInstanceOf(problem,interpretation,element,type); | ||
62967 | } | ||
62968 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
62969 | find interpretation(problem,interpretation); | ||
62970 | PartialInterpretation.scopes(interpretation,scope); | ||
62971 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
62972 | Scope.maxNewElements(scope,0); | ||
62973 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
62974 | Type.name(type,"FunctionalArchitectureModel class"); | ||
62975 | } | ||
62976 | |||
62977 | /** | ||
62978 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
62979 | */ | ||
62980 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
62981 | { | ||
62982 | find interpretation(problem,interpretation); | ||
62983 | PartialInterpretation.newElements(interpretation,element); | ||
62984 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62985 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62986 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
62987 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62988 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62989 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
62990 | neg find isPrimitive(element); | ||
62991 | } or { | ||
62992 | find interpretation(problem,interpretation); | ||
62993 | PartialInterpretation.openWorldElements(interpretation,element); | ||
62994 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
62995 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
62996 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
62997 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
62998 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
62999 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
63000 | neg find isPrimitive(element); | ||
63001 | } or | ||
63002 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
63003 | /** | ||
63004 | * An element must be an instance of type "Function class". | ||
63005 | */ | ||
63006 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
63007 | Type.name(type,"Function class"); | ||
63008 | find directInstanceOf(problem,interpretation,element,type); | ||
63009 | } | ||
63010 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
63011 | find interpretation(problem,interpretation); | ||
63012 | PartialInterpretation.scopes(interpretation,scope); | ||
63013 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
63014 | Scope.maxNewElements(scope,0); | ||
63015 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
63016 | Type.name(type,"Function class"); | ||
63017 | } | ||
63018 | |||
63019 | /** | ||
63020 | * An element may be an instance of type "Function class". | ||
63021 | */ | ||
63022 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
63023 | { | ||
63024 | find interpretation(problem,interpretation); | ||
63025 | PartialInterpretation.newElements(interpretation,element); | ||
63026 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63027 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63028 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63029 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63030 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
63031 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
63032 | neg find isPrimitive(element); | ||
63033 | } or { | ||
63034 | find interpretation(problem,interpretation); | ||
63035 | PartialInterpretation.openWorldElements(interpretation,element); | ||
63036 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63037 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63038 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63039 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63040 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
63041 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
63042 | neg find isPrimitive(element); | ||
63043 | } or | ||
63044 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
63045 | /** | ||
63046 | * An element must be an instance of type "FAMTerminator class". | ||
63047 | */ | ||
63048 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
63049 | Type.name(type,"FAMTerminator class"); | ||
63050 | find directInstanceOf(problem,interpretation,element,type); | ||
63051 | } | ||
63052 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
63053 | find interpretation(problem,interpretation); | ||
63054 | PartialInterpretation.scopes(interpretation,scope); | ||
63055 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
63056 | Scope.maxNewElements(scope,0); | ||
63057 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
63058 | Type.name(type,"FAMTerminator class"); | ||
63059 | } | ||
63060 | |||
63061 | /** | ||
63062 | * An element may be an instance of type "FAMTerminator class". | ||
63063 | */ | ||
63064 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
63065 | { | ||
63066 | find interpretation(problem,interpretation); | ||
63067 | PartialInterpretation.newElements(interpretation,element); | ||
63068 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63069 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63070 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63071 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63072 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
63073 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
63074 | neg find isPrimitive(element); | ||
63075 | } or { | ||
63076 | find interpretation(problem,interpretation); | ||
63077 | PartialInterpretation.openWorldElements(interpretation,element); | ||
63078 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63079 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63080 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63081 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63082 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
63083 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
63084 | neg find isPrimitive(element); | ||
63085 | } or | ||
63086 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
63087 | /** | ||
63088 | * An element must be an instance of type "InformationLink class". | ||
63089 | */ | ||
63090 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
63091 | Type.name(type,"InformationLink class"); | ||
63092 | find directInstanceOf(problem,interpretation,element,type); | ||
63093 | } | ||
63094 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
63095 | find interpretation(problem,interpretation); | ||
63096 | PartialInterpretation.scopes(interpretation,scope); | ||
63097 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
63098 | Scope.maxNewElements(scope,0); | ||
63099 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
63100 | Type.name(type,"InformationLink class"); | ||
63101 | } | ||
63102 | |||
63103 | /** | ||
63104 | * An element may be an instance of type "InformationLink class". | ||
63105 | */ | ||
63106 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
63107 | { | ||
63108 | find interpretation(problem,interpretation); | ||
63109 | PartialInterpretation.newElements(interpretation,element); | ||
63110 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63111 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63112 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63113 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63114 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
63115 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
63116 | neg find isPrimitive(element); | ||
63117 | } or { | ||
63118 | find interpretation(problem,interpretation); | ||
63119 | PartialInterpretation.openWorldElements(interpretation,element); | ||
63120 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63121 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63122 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63123 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63124 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
63125 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
63126 | neg find isPrimitive(element); | ||
63127 | } or | ||
63128 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
63129 | /** | ||
63130 | * An element must be an instance of type "FunctionalInterface class". | ||
63131 | */ | ||
63132 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
63133 | Type.name(type,"FunctionalInterface class"); | ||
63134 | find directInstanceOf(problem,interpretation,element,type); | ||
63135 | } | ||
63136 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
63137 | find interpretation(problem,interpretation); | ||
63138 | PartialInterpretation.scopes(interpretation,scope); | ||
63139 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
63140 | Scope.maxNewElements(scope,0); | ||
63141 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
63142 | Type.name(type,"FunctionalInterface class"); | ||
63143 | } | ||
63144 | |||
63145 | /** | ||
63146 | * An element may be an instance of type "FunctionalInterface class". | ||
63147 | */ | ||
63148 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
63149 | { | ||
63150 | find interpretation(problem,interpretation); | ||
63151 | PartialInterpretation.newElements(interpretation,element); | ||
63152 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63153 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63154 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63155 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63156 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
63157 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
63158 | neg find isPrimitive(element); | ||
63159 | } or { | ||
63160 | find interpretation(problem,interpretation); | ||
63161 | PartialInterpretation.openWorldElements(interpretation,element); | ||
63162 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63163 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63164 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63165 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63166 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
63167 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
63168 | neg find isPrimitive(element); | ||
63169 | } or | ||
63170 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
63171 | /** | ||
63172 | * An element must be an instance of type "FunctionalInput class". | ||
63173 | */ | ||
63174 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
63175 | Type.name(type,"FunctionalInput class"); | ||
63176 | find directInstanceOf(problem,interpretation,element,type); | ||
63177 | } | ||
63178 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
63179 | find interpretation(problem,interpretation); | ||
63180 | PartialInterpretation.scopes(interpretation,scope); | ||
63181 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
63182 | Scope.maxNewElements(scope,0); | ||
63183 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
63184 | Type.name(type,"FunctionalInput class"); | ||
63185 | } | ||
63186 | |||
63187 | /** | ||
63188 | * An element may be an instance of type "FunctionalInput class". | ||
63189 | */ | ||
63190 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
63191 | { | ||
63192 | find interpretation(problem,interpretation); | ||
63193 | PartialInterpretation.newElements(interpretation,element); | ||
63194 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63195 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63196 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63197 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
63198 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63199 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63200 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
63201 | neg find isPrimitive(element); | ||
63202 | } or { | ||
63203 | find interpretation(problem,interpretation); | ||
63204 | PartialInterpretation.openWorldElements(interpretation,element); | ||
63205 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63206 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63207 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63208 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
63209 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63210 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63211 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
63212 | neg find isPrimitive(element); | ||
63213 | } or | ||
63214 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
63215 | /** | ||
63216 | * An element must be an instance of type "FunctionalOutput class". | ||
63217 | */ | ||
63218 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
63219 | Type.name(type,"FunctionalOutput class"); | ||
63220 | find directInstanceOf(problem,interpretation,element,type); | ||
63221 | } | ||
63222 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
63223 | find interpretation(problem,interpretation); | ||
63224 | PartialInterpretation.scopes(interpretation,scope); | ||
63225 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
63226 | Scope.maxNewElements(scope,0); | ||
63227 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
63228 | Type.name(type,"FunctionalOutput class"); | ||
63229 | } | ||
63230 | |||
63231 | /** | ||
63232 | * An element may be an instance of type "FunctionalOutput class". | ||
63233 | */ | ||
63234 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
63235 | { | ||
63236 | find interpretation(problem,interpretation); | ||
63237 | PartialInterpretation.newElements(interpretation,element); | ||
63238 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63239 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63240 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
63241 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63242 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63243 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63244 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
63245 | neg find isPrimitive(element); | ||
63246 | } or { | ||
63247 | find interpretation(problem,interpretation); | ||
63248 | PartialInterpretation.openWorldElements(interpretation,element); | ||
63249 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63250 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63251 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
63252 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63253 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63254 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63255 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
63256 | neg find isPrimitive(element); | ||
63257 | } or | ||
63258 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
63259 | /** | ||
63260 | * An element must be an instance of type "FunctionalData class". | ||
63261 | */ | ||
63262 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
63263 | Type.name(type,"FunctionalData class"); | ||
63264 | find directInstanceOf(problem,interpretation,element,type); | ||
63265 | } | ||
63266 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
63267 | find interpretation(problem,interpretation); | ||
63268 | PartialInterpretation.scopes(interpretation,scope); | ||
63269 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
63270 | Scope.maxNewElements(scope,0); | ||
63271 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
63272 | Type.name(type,"FunctionalData class"); | ||
63273 | } | ||
63274 | |||
63275 | /** | ||
63276 | * An element may be an instance of type "FunctionalData class". | ||
63277 | */ | ||
63278 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
63279 | { | ||
63280 | find interpretation(problem,interpretation); | ||
63281 | PartialInterpretation.newElements(interpretation,element); | ||
63282 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63283 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63284 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
63285 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63286 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
63287 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63288 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63289 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
63290 | neg find isPrimitive(element); | ||
63291 | } or { | ||
63292 | find interpretation(problem,interpretation); | ||
63293 | PartialInterpretation.openWorldElements(interpretation,element); | ||
63294 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
63295 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
63296 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
63297 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
63298 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
63299 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
63300 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
63301 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
63302 | neg find isPrimitive(element); | ||
63303 | } or | ||
63304 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
63305 | /** | ||
63306 | * An element must be an instance of type "FunctionType enum". | ||
63307 | */ | ||
63308 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
63309 | Type.name(type,"FunctionType enum"); | ||
63310 | find directInstanceOf(problem,interpretation,element,type); | ||
63311 | } | ||
63312 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
63313 | find interpretation(problem,interpretation); | ||
63314 | PartialInterpretation.scopes(interpretation,scope); | ||
63315 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
63316 | Scope.maxNewElements(scope,0); | ||
63317 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
63318 | Type.name(type,"FunctionType enum"); | ||
63319 | } | ||
63320 | |||
63321 | /** | ||
63322 | * An element may be an instance of type "FunctionType enum". | ||
63323 | */ | ||
63324 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
63325 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
63326 | |||
63327 | ////////// | ||
63328 | // 1.2 Relation Declaration Indexers | ||
63329 | ////////// | ||
63330 | /** | ||
63331 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
63332 | */ | ||
63333 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
63334 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63335 | source: DefinedElement, target:DefinedElement) | ||
63336 | { | ||
63337 | find interpretation(problem,interpretation); | ||
63338 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63339 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
63340 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63341 | BinaryElementRelationLink.param1(link,source); | ||
63342 | BinaryElementRelationLink.param2(link,target); | ||
63343 | } | ||
63344 | /** | ||
63345 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
63346 | */ | ||
63347 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
63348 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63349 | source: DefinedElement, target:DefinedElement) | ||
63350 | { | ||
63351 | find interpretation(problem,interpretation); | ||
63352 | // The two endpoint of the link have to exist | ||
63353 | find mayExist(problem, interpretation, source); | ||
63354 | find mayExist(problem, interpretation, target); | ||
63355 | // Type consistency | ||
63356 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
63357 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
63358 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63359 | // the upper bound of the multiplicity should be considered. | ||
63360 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
63361 | check(numberOfExistingReferences < 1); | ||
63362 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
63363 | // the upper bound of the opposite reference multiplicity should be considered. | ||
63364 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
63365 | check(numberOfExistingOppositeReferences < 1); | ||
63366 | // The reference is containment, then a new reference cannot be create if: | ||
63367 | // 1. Multiple parents | ||
63368 | neg find mustContains4(problem,interpretation,_,target); | ||
63369 | // 2. Circle in the containment hierarchy | ||
63370 | neg find mustTransitiveContains(source,target); | ||
63371 | } or { | ||
63372 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
63373 | } | ||
63374 | /** | ||
63375 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
63376 | */ | ||
63377 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
63378 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63379 | source: DefinedElement, target:DefinedElement) | ||
63380 | { | ||
63381 | find interpretation(problem,interpretation); | ||
63382 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63383 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
63384 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63385 | BinaryElementRelationLink.param1(link,source); | ||
63386 | BinaryElementRelationLink.param2(link,target); | ||
63387 | } | ||
63388 | /** | ||
63389 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
63390 | */ | ||
63391 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
63392 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63393 | source: DefinedElement, target:DefinedElement) | ||
63394 | { | ||
63395 | find interpretation(problem,interpretation); | ||
63396 | // The two endpoint of the link have to exist | ||
63397 | find mayExist(problem, interpretation, source); | ||
63398 | find mayExist(problem, interpretation, target); | ||
63399 | // Type consistency | ||
63400 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
63401 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
63402 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63403 | // the upper bound of the multiplicity should be considered. | ||
63404 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
63405 | check(numberOfExistingReferences < 1); | ||
63406 | } or { | ||
63407 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
63408 | } | ||
63409 | /** | ||
63410 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
63411 | */ | ||
63412 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
63413 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63414 | source: DefinedElement, target:DefinedElement) | ||
63415 | { | ||
63416 | find interpretation(problem,interpretation); | ||
63417 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63418 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
63419 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63420 | BinaryElementRelationLink.param1(link,source); | ||
63421 | BinaryElementRelationLink.param2(link,target); | ||
63422 | } | ||
63423 | /** | ||
63424 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
63425 | */ | ||
63426 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
63427 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63428 | source: DefinedElement, target:DefinedElement) | ||
63429 | { | ||
63430 | find interpretation(problem,interpretation); | ||
63431 | // The two endpoint of the link have to exist | ||
63432 | find mayExist(problem, interpretation, source); | ||
63433 | find mayExist(problem, interpretation, target); | ||
63434 | // Type consistency | ||
63435 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
63436 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
63437 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63438 | // the upper bound of the multiplicity should be considered. | ||
63439 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
63440 | check(numberOfExistingReferences < 1); | ||
63441 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
63442 | // 1. Multiple parents | ||
63443 | neg find mustContains4(problem,interpretation,source,_); | ||
63444 | // 2. Circle in the containment hierarchy | ||
63445 | neg find mustTransitiveContains(source,target); | ||
63446 | } or { | ||
63447 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
63448 | } | ||
63449 | /** | ||
63450 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
63451 | */ | ||
63452 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
63453 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63454 | source: DefinedElement, target:DefinedElement) | ||
63455 | { | ||
63456 | find interpretation(problem,interpretation); | ||
63457 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63458 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
63459 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63460 | BinaryElementRelationLink.param1(link,source); | ||
63461 | BinaryElementRelationLink.param2(link,target); | ||
63462 | } | ||
63463 | /** | ||
63464 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
63465 | */ | ||
63466 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
63467 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63468 | source: DefinedElement, target:DefinedElement) | ||
63469 | { | ||
63470 | find interpretation(problem,interpretation); | ||
63471 | // The two endpoint of the link have to exist | ||
63472 | find mayExist(problem, interpretation, source); | ||
63473 | find mayExist(problem, interpretation, target); | ||
63474 | // Type consistency | ||
63475 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
63476 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
63477 | // The reference is containment, then a new reference cannot be create if: | ||
63478 | // 1. Multiple parents | ||
63479 | neg find mustContains4(problem,interpretation,_,target); | ||
63480 | // 2. Circle in the containment hierarchy | ||
63481 | neg find mustTransitiveContains(source,target); | ||
63482 | } or { | ||
63483 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
63484 | } | ||
63485 | /** | ||
63486 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
63487 | */ | ||
63488 | private pattern mustInRelationsubElements_reference_Function( | ||
63489 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63490 | source: DefinedElement, target:DefinedElement) | ||
63491 | { | ||
63492 | find interpretation(problem,interpretation); | ||
63493 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63494 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
63495 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63496 | BinaryElementRelationLink.param1(link,source); | ||
63497 | BinaryElementRelationLink.param2(link,target); | ||
63498 | } | ||
63499 | /** | ||
63500 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
63501 | */ | ||
63502 | private pattern mayInRelationsubElements_reference_Function( | ||
63503 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63504 | source: DefinedElement, target:DefinedElement) | ||
63505 | { | ||
63506 | find interpretation(problem,interpretation); | ||
63507 | // The two endpoint of the link have to exist | ||
63508 | find mayExist(problem, interpretation, source); | ||
63509 | find mayExist(problem, interpretation, target); | ||
63510 | // Type consistency | ||
63511 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
63512 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
63513 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
63514 | // the upper bound of the opposite reference multiplicity should be considered. | ||
63515 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
63516 | check(numberOfExistingOppositeReferences < 1); | ||
63517 | // The reference is containment, then a new reference cannot be create if: | ||
63518 | // 1. Multiple parents | ||
63519 | neg find mustContains4(problem,interpretation,_,target); | ||
63520 | // 2. Circle in the containment hierarchy | ||
63521 | neg find mustTransitiveContains(source,target); | ||
63522 | } or { | ||
63523 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
63524 | } | ||
63525 | /** | ||
63526 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
63527 | */ | ||
63528 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
63529 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63530 | source: DefinedElement, target:DefinedElement) | ||
63531 | { | ||
63532 | find interpretation(problem,interpretation); | ||
63533 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63534 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
63535 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63536 | BinaryElementRelationLink.param1(link,source); | ||
63537 | BinaryElementRelationLink.param2(link,target); | ||
63538 | } | ||
63539 | /** | ||
63540 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
63541 | */ | ||
63542 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
63543 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63544 | source: DefinedElement, target:DefinedElement) | ||
63545 | { | ||
63546 | find interpretation(problem,interpretation); | ||
63547 | // The two endpoint of the link have to exist | ||
63548 | find mayExist(problem, interpretation, source); | ||
63549 | find mayExist(problem, interpretation, target); | ||
63550 | // Type consistency | ||
63551 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
63552 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
63553 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63554 | // the upper bound of the multiplicity should be considered. | ||
63555 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
63556 | check(numberOfExistingReferences < 1); | ||
63557 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
63558 | // the upper bound of the opposite reference multiplicity should be considered. | ||
63559 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
63560 | check(numberOfExistingOppositeReferences < 1); | ||
63561 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
63562 | // 1. Multiple parents | ||
63563 | neg find mustContains4(problem,interpretation,source,_); | ||
63564 | // 2. Circle in the containment hierarchy | ||
63565 | neg find mustTransitiveContains(source,target); | ||
63566 | } or { | ||
63567 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
63568 | } | ||
63569 | /** | ||
63570 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
63571 | */ | ||
63572 | private pattern mustInRelationfrom_reference_InformationLink( | ||
63573 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63574 | source: DefinedElement, target:DefinedElement) | ||
63575 | { | ||
63576 | find interpretation(problem,interpretation); | ||
63577 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63578 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
63579 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63580 | BinaryElementRelationLink.param1(link,source); | ||
63581 | BinaryElementRelationLink.param2(link,target); | ||
63582 | } | ||
63583 | /** | ||
63584 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
63585 | */ | ||
63586 | private pattern mayInRelationfrom_reference_InformationLink( | ||
63587 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63588 | source: DefinedElement, target:DefinedElement) | ||
63589 | { | ||
63590 | find interpretation(problem,interpretation); | ||
63591 | // The two endpoint of the link have to exist | ||
63592 | find mayExist(problem, interpretation, source); | ||
63593 | find mayExist(problem, interpretation, target); | ||
63594 | // Type consistency | ||
63595 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
63596 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
63597 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63598 | // the upper bound of the multiplicity should be considered. | ||
63599 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
63600 | check(numberOfExistingReferences < 1); | ||
63601 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
63602 | // 1. Multiple parents | ||
63603 | neg find mustContains4(problem,interpretation,source,_); | ||
63604 | // 2. Circle in the containment hierarchy | ||
63605 | neg find mustTransitiveContains(source,target); | ||
63606 | } or { | ||
63607 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
63608 | } | ||
63609 | /** | ||
63610 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
63611 | */ | ||
63612 | private pattern mustInRelationto_reference_InformationLink( | ||
63613 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63614 | source: DefinedElement, target:DefinedElement) | ||
63615 | { | ||
63616 | find interpretation(problem,interpretation); | ||
63617 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63618 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
63619 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63620 | BinaryElementRelationLink.param1(link,source); | ||
63621 | BinaryElementRelationLink.param2(link,target); | ||
63622 | } | ||
63623 | /** | ||
63624 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
63625 | */ | ||
63626 | private pattern mayInRelationto_reference_InformationLink( | ||
63627 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63628 | source: DefinedElement, target:DefinedElement) | ||
63629 | { | ||
63630 | find interpretation(problem,interpretation); | ||
63631 | // The two endpoint of the link have to exist | ||
63632 | find mayExist(problem, interpretation, source); | ||
63633 | find mayExist(problem, interpretation, target); | ||
63634 | // Type consistency | ||
63635 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
63636 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
63637 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63638 | // the upper bound of the multiplicity should be considered. | ||
63639 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
63640 | check(numberOfExistingReferences < 1); | ||
63641 | } or { | ||
63642 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
63643 | } | ||
63644 | /** | ||
63645 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
63646 | */ | ||
63647 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
63648 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63649 | source: DefinedElement, target:DefinedElement) | ||
63650 | { | ||
63651 | find interpretation(problem,interpretation); | ||
63652 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63653 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
63654 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63655 | BinaryElementRelationLink.param1(link,source); | ||
63656 | BinaryElementRelationLink.param2(link,target); | ||
63657 | } | ||
63658 | /** | ||
63659 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
63660 | */ | ||
63661 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
63662 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63663 | source: DefinedElement, target:DefinedElement) | ||
63664 | { | ||
63665 | find interpretation(problem,interpretation); | ||
63666 | // The two endpoint of the link have to exist | ||
63667 | find mayExist(problem, interpretation, source); | ||
63668 | find mayExist(problem, interpretation, target); | ||
63669 | // Type consistency | ||
63670 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
63671 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
63672 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
63673 | // the upper bound of the opposite reference multiplicity should be considered. | ||
63674 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
63675 | check(numberOfExistingOppositeReferences < 1); | ||
63676 | // The reference is containment, then a new reference cannot be create if: | ||
63677 | // 1. Multiple parents | ||
63678 | neg find mustContains4(problem,interpretation,_,target); | ||
63679 | // 2. Circle in the containment hierarchy | ||
63680 | neg find mustTransitiveContains(source,target); | ||
63681 | } or { | ||
63682 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
63683 | } | ||
63684 | /** | ||
63685 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
63686 | */ | ||
63687 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
63688 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63689 | source: DefinedElement, target:DefinedElement) | ||
63690 | { | ||
63691 | find interpretation(problem,interpretation); | ||
63692 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63693 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
63694 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63695 | BinaryElementRelationLink.param1(link,source); | ||
63696 | BinaryElementRelationLink.param2(link,target); | ||
63697 | } | ||
63698 | /** | ||
63699 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
63700 | */ | ||
63701 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
63702 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63703 | source: DefinedElement, target:DefinedElement) | ||
63704 | { | ||
63705 | find interpretation(problem,interpretation); | ||
63706 | // The two endpoint of the link have to exist | ||
63707 | find mayExist(problem, interpretation, source); | ||
63708 | find mayExist(problem, interpretation, target); | ||
63709 | // Type consistency | ||
63710 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
63711 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
63712 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63713 | // the upper bound of the multiplicity should be considered. | ||
63714 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
63715 | check(numberOfExistingReferences < 1); | ||
63716 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
63717 | // the upper bound of the opposite reference multiplicity should be considered. | ||
63718 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
63719 | check(numberOfExistingOppositeReferences < 1); | ||
63720 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
63721 | // 1. Multiple parents | ||
63722 | neg find mustContains4(problem,interpretation,source,_); | ||
63723 | // 2. Circle in the containment hierarchy | ||
63724 | neg find mustTransitiveContains(source,target); | ||
63725 | } or { | ||
63726 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
63727 | } | ||
63728 | /** | ||
63729 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
63730 | */ | ||
63731 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
63732 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63733 | source: DefinedElement, target:DefinedElement) | ||
63734 | { | ||
63735 | find interpretation(problem,interpretation); | ||
63736 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63737 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
63738 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63739 | BinaryElementRelationLink.param1(link,source); | ||
63740 | BinaryElementRelationLink.param2(link,target); | ||
63741 | } | ||
63742 | /** | ||
63743 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
63744 | */ | ||
63745 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
63746 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63747 | source: DefinedElement, target:DefinedElement) | ||
63748 | { | ||
63749 | find interpretation(problem,interpretation); | ||
63750 | // The two endpoint of the link have to exist | ||
63751 | find mayExist(problem, interpretation, source); | ||
63752 | find mayExist(problem, interpretation, target); | ||
63753 | // Type consistency | ||
63754 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
63755 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
63756 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
63757 | // the upper bound of the opposite reference multiplicity should be considered. | ||
63758 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
63759 | check(numberOfExistingOppositeReferences < 1); | ||
63760 | } or { | ||
63761 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
63762 | } | ||
63763 | /** | ||
63764 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
63765 | */ | ||
63766 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
63767 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63768 | source: DefinedElement, target:DefinedElement) | ||
63769 | { | ||
63770 | find interpretation(problem,interpretation); | ||
63771 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63772 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
63773 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63774 | BinaryElementRelationLink.param1(link,source); | ||
63775 | BinaryElementRelationLink.param2(link,target); | ||
63776 | } | ||
63777 | /** | ||
63778 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
63779 | */ | ||
63780 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
63781 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63782 | source: DefinedElement, target:DefinedElement) | ||
63783 | { | ||
63784 | find interpretation(problem,interpretation); | ||
63785 | // The two endpoint of the link have to exist | ||
63786 | find mayExist(problem, interpretation, source); | ||
63787 | find mayExist(problem, interpretation, target); | ||
63788 | // Type consistency | ||
63789 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
63790 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
63791 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
63792 | // the upper bound of the opposite reference multiplicity should be considered. | ||
63793 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
63794 | check(numberOfExistingOppositeReferences < 1); | ||
63795 | // The reference is containment, then a new reference cannot be create if: | ||
63796 | // 1. Multiple parents | ||
63797 | neg find mustContains4(problem,interpretation,_,target); | ||
63798 | // 2. Circle in the containment hierarchy | ||
63799 | neg find mustTransitiveContains(source,target); | ||
63800 | } or { | ||
63801 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
63802 | } | ||
63803 | /** | ||
63804 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
63805 | */ | ||
63806 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
63807 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63808 | source: DefinedElement, target:DefinedElement) | ||
63809 | { | ||
63810 | find interpretation(problem,interpretation); | ||
63811 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63812 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
63813 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63814 | BinaryElementRelationLink.param1(link,source); | ||
63815 | BinaryElementRelationLink.param2(link,target); | ||
63816 | } | ||
63817 | /** | ||
63818 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
63819 | */ | ||
63820 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
63821 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63822 | source: DefinedElement, target:DefinedElement) | ||
63823 | { | ||
63824 | find interpretation(problem,interpretation); | ||
63825 | // The two endpoint of the link have to exist | ||
63826 | find mayExist(problem, interpretation, source); | ||
63827 | find mayExist(problem, interpretation, target); | ||
63828 | // Type consistency | ||
63829 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
63830 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
63831 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63832 | // the upper bound of the multiplicity should be considered. | ||
63833 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
63834 | check(numberOfExistingReferences < 1); | ||
63835 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
63836 | // the upper bound of the opposite reference multiplicity should be considered. | ||
63837 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
63838 | check(numberOfExistingOppositeReferences < 1); | ||
63839 | // The reference is containment, then a new reference cannot be create if: | ||
63840 | // 1. Multiple parents | ||
63841 | neg find mustContains4(problem,interpretation,_,target); | ||
63842 | // 2. Circle in the containment hierarchy | ||
63843 | neg find mustTransitiveContains(source,target); | ||
63844 | } or { | ||
63845 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
63846 | } | ||
63847 | /** | ||
63848 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
63849 | */ | ||
63850 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
63851 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63852 | source: DefinedElement, target:DefinedElement) | ||
63853 | { | ||
63854 | find interpretation(problem,interpretation); | ||
63855 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63856 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
63857 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63858 | BinaryElementRelationLink.param1(link,source); | ||
63859 | BinaryElementRelationLink.param2(link,target); | ||
63860 | } | ||
63861 | /** | ||
63862 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
63863 | */ | ||
63864 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
63865 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63866 | source: DefinedElement, target:DefinedElement) | ||
63867 | { | ||
63868 | find interpretation(problem,interpretation); | ||
63869 | // The two endpoint of the link have to exist | ||
63870 | find mayExist(problem, interpretation, source); | ||
63871 | find mayExist(problem, interpretation, target); | ||
63872 | // Type consistency | ||
63873 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
63874 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
63875 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63876 | // the upper bound of the multiplicity should be considered. | ||
63877 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
63878 | check(numberOfExistingReferences < 1); | ||
63879 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
63880 | // 1. Multiple parents | ||
63881 | neg find mustContains4(problem,interpretation,source,_); | ||
63882 | // 2. Circle in the containment hierarchy | ||
63883 | neg find mustTransitiveContains(source,target); | ||
63884 | } or { | ||
63885 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
63886 | } | ||
63887 | /** | ||
63888 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
63889 | */ | ||
63890 | private pattern mustInRelationtype_attribute_Function( | ||
63891 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63892 | source: DefinedElement, target:DefinedElement) | ||
63893 | { | ||
63894 | find interpretation(problem,interpretation); | ||
63895 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63896 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
63897 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
63898 | BinaryElementRelationLink.param1(link,source); | ||
63899 | BinaryElementRelationLink.param2(link,target); | ||
63900 | } | ||
63901 | /** | ||
63902 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
63903 | */ | ||
63904 | private pattern mayInRelationtype_attribute_Function( | ||
63905 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
63906 | source: DefinedElement, target:DefinedElement) | ||
63907 | { | ||
63908 | find interpretation(problem,interpretation); | ||
63909 | // The two endpoint of the link have to exist | ||
63910 | find mayExist(problem, interpretation, source); | ||
63911 | find mayExist(problem, interpretation, target); | ||
63912 | // Type consistency | ||
63913 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
63914 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
63915 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
63916 | // the upper bound of the multiplicity should be considered. | ||
63917 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
63918 | check(numberOfExistingReferences < 1); | ||
63919 | } or { | ||
63920 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
63921 | } | ||
63922 | |||
63923 | ////////// | ||
63924 | // 1.3 Relation Definition Indexers | ||
63925 | ////////// | ||
63926 | |||
63927 | ////////// | ||
63928 | // 1.4 Containment Indexer | ||
63929 | ////////// | ||
63930 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
63931 | find mustContains4(_,_,source,target); | ||
63932 | } | ||
63933 | |||
63934 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
63935 | source: DefinedElement, target: DefinedElement) | ||
63936 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
63937 | |||
63938 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
63939 | |||
63940 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
63941 | |||
63942 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
63943 | |||
63944 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
63945 | |||
63946 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
63947 | |||
63948 | private pattern mustTransitiveContains(source,target) { | ||
63949 | find mustContains2+(source,target); | ||
63950 | } | ||
63951 | |||
63952 | ////////// | ||
63953 | // 2. Invalidation Indexers | ||
63954 | ////////// | ||
63955 | // 2.1 Invalidated by WF Queries | ||
63956 | ////////// | ||
63957 | |||
63958 | ////////// | ||
63959 | // 3. Unfinishedness Indexers | ||
63960 | ////////// | ||
63961 | // 3.1 Unfinishedness Measured by Multiplicity | ||
63962 | ////////// | ||
63963 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
63964 | find interpretation(problem,interpretation); | ||
63965 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63966 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
63967 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
63968 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
63969 | check(numberOfExistingReferences < 1); | ||
63970 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
63971 | } | ||
63972 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
63973 | find interpretation(problem,interpretation); | ||
63974 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63975 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
63976 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
63977 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
63978 | check(numberOfExistingReferences < 1); | ||
63979 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
63980 | } | ||
63981 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
63982 | find interpretation(problem,interpretation); | ||
63983 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
63984 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
63985 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
63986 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
63987 | check(numberOfExistingReferences < 1); | ||
63988 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
63989 | } | ||
63990 | |||
63991 | ////////// | ||
63992 | // 3.2 Unfinishedness Measured by WF Queries | ||
63993 | ////////// | ||
63994 | |||
63995 | ////////// | ||
63996 | // 4. Refinement Indexers | ||
63997 | ////////// | ||
63998 | // 4.1 Object constructors | ||
63999 | ////////// | ||
64000 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
64001 | { | ||
64002 | find interpretation(problem,interpretation); | ||
64003 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
64004 | find mustExist(problem, interpretation, root); | ||
64005 | }or{ | ||
64006 | find interpretation(problem,interpretation); | ||
64007 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
64008 | find mustExist(problem, interpretation, root); | ||
64009 | }or{ | ||
64010 | find interpretation(problem,interpretation); | ||
64011 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
64012 | find mustExist(problem, interpretation, root); | ||
64013 | }or{ | ||
64014 | find interpretation(problem,interpretation); | ||
64015 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
64016 | find mustExist(problem, interpretation, root); | ||
64017 | }or{ | ||
64018 | find interpretation(problem,interpretation); | ||
64019 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
64020 | find mustExist(problem, interpretation, root); | ||
64021 | }or{ | ||
64022 | find interpretation(problem,interpretation); | ||
64023 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
64024 | find mustExist(problem, interpretation, root); | ||
64025 | }or{ | ||
64026 | find interpretation(problem,interpretation); | ||
64027 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
64028 | find mustExist(problem, interpretation, root); | ||
64029 | }or{ | ||
64030 | find interpretation(problem,interpretation); | ||
64031 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
64032 | find mustExist(problem, interpretation, root); | ||
64033 | }or{ | ||
64034 | find interpretation(problem,interpretation); | ||
64035 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
64036 | find mustExist(problem, interpretation, root); | ||
64037 | } | ||
64038 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
64039 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64040 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
64041 | container:DefinedElement) | ||
64042 | { | ||
64043 | find interpretation(problem,interpretation); | ||
64044 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64045 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
64046 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
64047 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
64048 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
64049 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
64050 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
64051 | find mustExist(problem, interpretation, container); | ||
64052 | neg find mustExist(problem, interpretation, newObject); | ||
64053 | } | ||
64054 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
64055 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64056 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
64057 | container:DefinedElement) | ||
64058 | { | ||
64059 | find interpretation(problem,interpretation); | ||
64060 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64061 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
64062 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
64063 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
64064 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
64065 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
64066 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
64067 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
64068 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
64069 | find mustExist(problem, interpretation, container); | ||
64070 | neg find mustExist(problem, interpretation, newObject); | ||
64071 | } | ||
64072 | pattern createObject_Function_class( | ||
64073 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64074 | typeInterpretation:PartialComplexTypeInterpretation) | ||
64075 | { | ||
64076 | find interpretation(problem,interpretation); | ||
64077 | neg find hasElementInContainment(problem,interpretation); | ||
64078 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64079 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
64080 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
64081 | find mayExist(problem, interpretation, newObject); | ||
64082 | neg find mustExist(problem, interpretation, newObject); | ||
64083 | } | ||
64084 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
64085 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64086 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
64087 | container:DefinedElement) | ||
64088 | { | ||
64089 | find interpretation(problem,interpretation); | ||
64090 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64091 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
64092 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
64093 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
64094 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
64095 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
64096 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
64097 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
64098 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
64099 | find mustExist(problem, interpretation, container); | ||
64100 | neg find mustExist(problem, interpretation, newObject); | ||
64101 | } | ||
64102 | pattern createObject_InformationLink_class( | ||
64103 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64104 | typeInterpretation:PartialComplexTypeInterpretation) | ||
64105 | { | ||
64106 | find interpretation(problem,interpretation); | ||
64107 | neg find hasElementInContainment(problem,interpretation); | ||
64108 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64109 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
64110 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
64111 | find mayExist(problem, interpretation, newObject); | ||
64112 | neg find mustExist(problem, interpretation, newObject); | ||
64113 | } | ||
64114 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
64115 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64116 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
64117 | container:DefinedElement) | ||
64118 | { | ||
64119 | find interpretation(problem,interpretation); | ||
64120 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64121 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
64122 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
64123 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
64124 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
64125 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
64126 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
64127 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
64128 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
64129 | find mustExist(problem, interpretation, container); | ||
64130 | neg find mustExist(problem, interpretation, newObject); | ||
64131 | } | ||
64132 | pattern createObject_FunctionalInterface_class( | ||
64133 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64134 | typeInterpretation:PartialComplexTypeInterpretation) | ||
64135 | { | ||
64136 | find interpretation(problem,interpretation); | ||
64137 | neg find hasElementInContainment(problem,interpretation); | ||
64138 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64139 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
64140 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
64141 | find mayExist(problem, interpretation, newObject); | ||
64142 | neg find mustExist(problem, interpretation, newObject); | ||
64143 | } | ||
64144 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
64145 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64146 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
64147 | container:DefinedElement) | ||
64148 | { | ||
64149 | find interpretation(problem,interpretation); | ||
64150 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64151 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
64152 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
64153 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
64154 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
64155 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
64156 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
64157 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
64158 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
64159 | find mustExist(problem, interpretation, container); | ||
64160 | neg find mustExist(problem, interpretation, newObject); | ||
64161 | } | ||
64162 | pattern createObject_FunctionalInput_class( | ||
64163 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64164 | typeInterpretation:PartialComplexTypeInterpretation) | ||
64165 | { | ||
64166 | find interpretation(problem,interpretation); | ||
64167 | neg find hasElementInContainment(problem,interpretation); | ||
64168 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64169 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
64170 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
64171 | find mayExist(problem, interpretation, newObject); | ||
64172 | neg find mustExist(problem, interpretation, newObject); | ||
64173 | } | ||
64174 | pattern createObject_FunctionalArchitectureModel_class( | ||
64175 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64176 | typeInterpretation:PartialComplexTypeInterpretation) | ||
64177 | { | ||
64178 | find interpretation(problem,interpretation); | ||
64179 | neg find hasElementInContainment(problem,interpretation); | ||
64180 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64181 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class"); | ||
64182 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,newObject); | ||
64183 | find mayExist(problem, interpretation, newObject); | ||
64184 | neg find mustExist(problem, interpretation, newObject); | ||
64185 | } | ||
64186 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
64187 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64188 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
64189 | container:DefinedElement) | ||
64190 | { | ||
64191 | find interpretation(problem,interpretation); | ||
64192 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64193 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
64194 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
64195 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
64196 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
64197 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
64198 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
64199 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
64200 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
64201 | find mustExist(problem, interpretation, container); | ||
64202 | neg find mustExist(problem, interpretation, newObject); | ||
64203 | } | ||
64204 | pattern createObject_FunctionalOutput_class( | ||
64205 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64206 | typeInterpretation:PartialComplexTypeInterpretation) | ||
64207 | { | ||
64208 | find interpretation(problem,interpretation); | ||
64209 | neg find hasElementInContainment(problem,interpretation); | ||
64210 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64211 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
64212 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
64213 | find mayExist(problem, interpretation, newObject); | ||
64214 | neg find mustExist(problem, interpretation, newObject); | ||
64215 | } | ||
64216 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
64217 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64218 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
64219 | container:DefinedElement) | ||
64220 | { | ||
64221 | find interpretation(problem,interpretation); | ||
64222 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64223 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
64224 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
64225 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
64226 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
64227 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
64228 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
64229 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
64230 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
64231 | find mustExist(problem, interpretation, container); | ||
64232 | neg find mustExist(problem, interpretation, newObject); | ||
64233 | } | ||
64234 | pattern createObject_FAMTerminator_class( | ||
64235 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64236 | typeInterpretation:PartialComplexTypeInterpretation) | ||
64237 | { | ||
64238 | find interpretation(problem,interpretation); | ||
64239 | neg find hasElementInContainment(problem,interpretation); | ||
64240 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64241 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
64242 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
64243 | find mayExist(problem, interpretation, newObject); | ||
64244 | neg find mustExist(problem, interpretation, newObject); | ||
64245 | } | ||
64246 | |||
64247 | ////////// | ||
64248 | // 4.2 Type refinement | ||
64249 | ////////// | ||
64250 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
64251 | find interpretation(problem,interpretation); | ||
64252 | PartialInterpretation.newElements(interpretation,element); | ||
64253 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
64254 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
64255 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64256 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64257 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64258 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64259 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64260 | } | ||
64261 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
64262 | find interpretation(problem,interpretation); | ||
64263 | PartialInterpretation.newElements(interpretation,element); | ||
64264 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
64265 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64266 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64267 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64268 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64269 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64270 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64271 | } | ||
64272 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
64273 | find interpretation(problem,interpretation); | ||
64274 | PartialInterpretation.newElements(interpretation,element); | ||
64275 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64276 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64277 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64278 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64279 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64280 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64281 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64282 | } | ||
64283 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
64284 | find interpretation(problem,interpretation); | ||
64285 | PartialInterpretation.newElements(interpretation,element); | ||
64286 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
64287 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64288 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64289 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
64290 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64291 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
64292 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64293 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64294 | } | ||
64295 | pattern refineTypeTo_FunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
64296 | find interpretation(problem,interpretation); | ||
64297 | PartialInterpretation.newElements(interpretation,element); | ||
64298 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64299 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64300 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64301 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64302 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64303 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64304 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64305 | } | ||
64306 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
64307 | find interpretation(problem,interpretation); | ||
64308 | PartialInterpretation.newElements(interpretation,element); | ||
64309 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
64310 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64311 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64312 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
64313 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64314 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64315 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
64316 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64317 | } | ||
64318 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
64319 | find interpretation(problem,interpretation); | ||
64320 | PartialInterpretation.newElements(interpretation,element); | ||
64321 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64322 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64323 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64324 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64325 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64326 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64327 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64328 | } | ||
64329 | |||
64330 | ////////// | ||
64331 | // 4.3 Relation refinement | ||
64332 | ////////// | ||
64333 | pattern refineRelation_model_reference_FunctionalElement( | ||
64334 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64335 | relationIterpretation:PartialRelationInterpretation, | ||
64336 | from: DefinedElement, to: DefinedElement) | ||
64337 | { | ||
64338 | find interpretation(problem,interpretation); | ||
64339 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
64340 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
64341 | find mustExist(problem, interpretation, from); | ||
64342 | find mustExist(problem, interpretation, to); | ||
64343 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
64344 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
64345 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
64346 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
64347 | } | ||
64348 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
64349 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64350 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
64351 | from: DefinedElement, to: DefinedElement) | ||
64352 | { | ||
64353 | find interpretation(problem,interpretation); | ||
64354 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
64355 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
64356 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
64357 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
64358 | find mustExist(problem, interpretation, from); | ||
64359 | find mustExist(problem, interpretation, to); | ||
64360 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
64361 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
64362 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
64363 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
64364 | } | ||
64365 | pattern refineRelation_type_attribute_Function( | ||
64366 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64367 | relationIterpretation:PartialRelationInterpretation, | ||
64368 | from: DefinedElement, to: DefinedElement) | ||
64369 | { | ||
64370 | find interpretation(problem,interpretation); | ||
64371 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
64372 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
64373 | find mustExist(problem, interpretation, from); | ||
64374 | find mustExist(problem, interpretation, to); | ||
64375 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
64376 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
64377 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
64378 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
64379 | } | ||
64380 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
64381 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
64382 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
64383 | |||
64384 | ////////// | ||
64385 | // 0. Util | ||
64386 | ////////// | ||
64387 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64388 | PartialInterpretation.problem(interpretation,problem); | ||
64389 | } | ||
64390 | |||
64391 | ///////////////////////// | ||
64392 | // 0.1 Existence | ||
64393 | ///////////////////////// | ||
64394 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64395 | find interpretation(problem,interpretation); | ||
64396 | LogicProblem.elements(problem,element); | ||
64397 | } or { | ||
64398 | find interpretation(problem,interpretation); | ||
64399 | PartialInterpretation.newElements(interpretation,element); | ||
64400 | } | ||
64401 | |||
64402 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64403 | find mustExist(problem,interpretation,element); | ||
64404 | } or { | ||
64405 | find interpretation(problem,interpretation); | ||
64406 | neg find elementCloseWorld(element); | ||
64407 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64408 | } | ||
64409 | |||
64410 | private pattern elementCloseWorld(element:DefinedElement) { | ||
64411 | PartialInterpretation.openWorldElements(i,element); | ||
64412 | PartialInterpretation.maxNewElements(i,0); | ||
64413 | } or { | ||
64414 | Scope.targetTypeInterpretation(scope,interpretation); | ||
64415 | PartialTypeInterpratation.elements(interpretation,element); | ||
64416 | Scope.maxNewElements(scope,0); | ||
64417 | } | ||
64418 | |||
64419 | //////////////////////// | ||
64420 | // 0.2 Equivalence | ||
64421 | //////////////////////// | ||
64422 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
64423 | find mayExist(problem,interpretation,a); | ||
64424 | find mayExist(problem,interpretation,b); | ||
64425 | a == b; | ||
64426 | } | ||
64427 | |||
64428 | //////////////////////// | ||
64429 | // 0.3 Required Patterns by TypeIndexer | ||
64430 | //////////////////////// | ||
64431 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
64432 | find interpretation(problem,interpretation); | ||
64433 | LogicProblem.types(problem,type); | ||
64434 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
64435 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64436 | } | ||
64437 | |||
64438 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
64439 | find interpretation(problem,interpretation); | ||
64440 | LogicProblem.types(problem,type); | ||
64441 | TypeDefinition.elements(type,element); | ||
64442 | } or { | ||
64443 | find interpretation(problem,interpretation); | ||
64444 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
64445 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
64446 | } | ||
64447 | |||
64448 | private pattern isPrimitive(element: PrimitiveElement) { | ||
64449 | PrimitiveElement(element); | ||
64450 | } | ||
64451 | |||
64452 | ////////// | ||
64453 | // 1. Problem-Specific Base Indexers | ||
64454 | ////////// | ||
64455 | // 1.1 Type Indexers | ||
64456 | ////////// | ||
64457 | // 1.1.1 primitive Type Indexers | ||
64458 | ////////// | ||
64459 | |||
64460 | ////////// | ||
64461 | // 1.1.2 domain-specific Type Indexers | ||
64462 | ////////// | ||
64463 | /** | ||
64464 | * An element must be an instance of type "FunctionalElement class". | ||
64465 | */ | ||
64466 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64467 | Type.name(type,"FunctionalElement class"); | ||
64468 | find directInstanceOf(problem,interpretation,element,type); | ||
64469 | } | ||
64470 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64471 | find interpretation(problem,interpretation); | ||
64472 | PartialInterpretation.scopes(interpretation,scope); | ||
64473 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64474 | Scope.maxNewElements(scope,0); | ||
64475 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64476 | Type.name(type,"FunctionalElement class"); | ||
64477 | } | ||
64478 | |||
64479 | /** | ||
64480 | * An element may be an instance of type "FunctionalElement class". | ||
64481 | */ | ||
64482 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64483 | { | ||
64484 | find interpretation(problem,interpretation); | ||
64485 | PartialInterpretation.newElements(interpretation,element); | ||
64486 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
64487 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64488 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64489 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64490 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64491 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64492 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
64493 | neg find isPrimitive(element); | ||
64494 | } or { | ||
64495 | find interpretation(problem,interpretation); | ||
64496 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64497 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
64498 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64499 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64500 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64501 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64502 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64503 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
64504 | neg find isPrimitive(element); | ||
64505 | } or | ||
64506 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
64507 | /** | ||
64508 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
64509 | */ | ||
64510 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64511 | Type.name(type,"FunctionalArchitectureModel class"); | ||
64512 | find directInstanceOf(problem,interpretation,element,type); | ||
64513 | } | ||
64514 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64515 | find interpretation(problem,interpretation); | ||
64516 | PartialInterpretation.scopes(interpretation,scope); | ||
64517 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64518 | Scope.maxNewElements(scope,0); | ||
64519 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64520 | Type.name(type,"FunctionalArchitectureModel class"); | ||
64521 | } | ||
64522 | |||
64523 | /** | ||
64524 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
64525 | */ | ||
64526 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64527 | { | ||
64528 | find interpretation(problem,interpretation); | ||
64529 | PartialInterpretation.newElements(interpretation,element); | ||
64530 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64531 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64532 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64533 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64534 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64535 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
64536 | neg find isPrimitive(element); | ||
64537 | } or { | ||
64538 | find interpretation(problem,interpretation); | ||
64539 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64540 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64541 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64542 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64543 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64544 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64545 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
64546 | neg find isPrimitive(element); | ||
64547 | } or | ||
64548 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
64549 | /** | ||
64550 | * An element must be an instance of type "Function class". | ||
64551 | */ | ||
64552 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64553 | Type.name(type,"Function class"); | ||
64554 | find directInstanceOf(problem,interpretation,element,type); | ||
64555 | } | ||
64556 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64557 | find interpretation(problem,interpretation); | ||
64558 | PartialInterpretation.scopes(interpretation,scope); | ||
64559 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64560 | Scope.maxNewElements(scope,0); | ||
64561 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64562 | Type.name(type,"Function class"); | ||
64563 | } | ||
64564 | |||
64565 | /** | ||
64566 | * An element may be an instance of type "Function class". | ||
64567 | */ | ||
64568 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64569 | { | ||
64570 | find interpretation(problem,interpretation); | ||
64571 | PartialInterpretation.newElements(interpretation,element); | ||
64572 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64573 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64574 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64575 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64576 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64577 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
64578 | neg find isPrimitive(element); | ||
64579 | } or { | ||
64580 | find interpretation(problem,interpretation); | ||
64581 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64582 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64583 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64584 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64585 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64586 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64587 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
64588 | neg find isPrimitive(element); | ||
64589 | } or | ||
64590 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
64591 | /** | ||
64592 | * An element must be an instance of type "FAMTerminator class". | ||
64593 | */ | ||
64594 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64595 | Type.name(type,"FAMTerminator class"); | ||
64596 | find directInstanceOf(problem,interpretation,element,type); | ||
64597 | } | ||
64598 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64599 | find interpretation(problem,interpretation); | ||
64600 | PartialInterpretation.scopes(interpretation,scope); | ||
64601 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64602 | Scope.maxNewElements(scope,0); | ||
64603 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64604 | Type.name(type,"FAMTerminator class"); | ||
64605 | } | ||
64606 | |||
64607 | /** | ||
64608 | * An element may be an instance of type "FAMTerminator class". | ||
64609 | */ | ||
64610 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64611 | { | ||
64612 | find interpretation(problem,interpretation); | ||
64613 | PartialInterpretation.newElements(interpretation,element); | ||
64614 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64615 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64616 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64617 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64618 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64619 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
64620 | neg find isPrimitive(element); | ||
64621 | } or { | ||
64622 | find interpretation(problem,interpretation); | ||
64623 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64624 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64625 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64626 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64627 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64628 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64629 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
64630 | neg find isPrimitive(element); | ||
64631 | } or | ||
64632 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
64633 | /** | ||
64634 | * An element must be an instance of type "InformationLink class". | ||
64635 | */ | ||
64636 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64637 | Type.name(type,"InformationLink class"); | ||
64638 | find directInstanceOf(problem,interpretation,element,type); | ||
64639 | } | ||
64640 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64641 | find interpretation(problem,interpretation); | ||
64642 | PartialInterpretation.scopes(interpretation,scope); | ||
64643 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64644 | Scope.maxNewElements(scope,0); | ||
64645 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64646 | Type.name(type,"InformationLink class"); | ||
64647 | } | ||
64648 | |||
64649 | /** | ||
64650 | * An element may be an instance of type "InformationLink class". | ||
64651 | */ | ||
64652 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64653 | { | ||
64654 | find interpretation(problem,interpretation); | ||
64655 | PartialInterpretation.newElements(interpretation,element); | ||
64656 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64657 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64658 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64659 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64660 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64661 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
64662 | neg find isPrimitive(element); | ||
64663 | } or { | ||
64664 | find interpretation(problem,interpretation); | ||
64665 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64666 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64667 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64668 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64669 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64670 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64671 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
64672 | neg find isPrimitive(element); | ||
64673 | } or | ||
64674 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
64675 | /** | ||
64676 | * An element must be an instance of type "FunctionalInterface class". | ||
64677 | */ | ||
64678 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64679 | Type.name(type,"FunctionalInterface class"); | ||
64680 | find directInstanceOf(problem,interpretation,element,type); | ||
64681 | } | ||
64682 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64683 | find interpretation(problem,interpretation); | ||
64684 | PartialInterpretation.scopes(interpretation,scope); | ||
64685 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64686 | Scope.maxNewElements(scope,0); | ||
64687 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64688 | Type.name(type,"FunctionalInterface class"); | ||
64689 | } | ||
64690 | |||
64691 | /** | ||
64692 | * An element may be an instance of type "FunctionalInterface class". | ||
64693 | */ | ||
64694 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64695 | { | ||
64696 | find interpretation(problem,interpretation); | ||
64697 | PartialInterpretation.newElements(interpretation,element); | ||
64698 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64699 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64700 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64701 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64702 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64703 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
64704 | neg find isPrimitive(element); | ||
64705 | } or { | ||
64706 | find interpretation(problem,interpretation); | ||
64707 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64708 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64709 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
64710 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64711 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64712 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64713 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
64714 | neg find isPrimitive(element); | ||
64715 | } or | ||
64716 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
64717 | /** | ||
64718 | * An element must be an instance of type "FunctionalInput class". | ||
64719 | */ | ||
64720 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64721 | Type.name(type,"FunctionalInput class"); | ||
64722 | find directInstanceOf(problem,interpretation,element,type); | ||
64723 | } | ||
64724 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64725 | find interpretation(problem,interpretation); | ||
64726 | PartialInterpretation.scopes(interpretation,scope); | ||
64727 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64728 | Scope.maxNewElements(scope,0); | ||
64729 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64730 | Type.name(type,"FunctionalInput class"); | ||
64731 | } | ||
64732 | |||
64733 | /** | ||
64734 | * An element may be an instance of type "FunctionalInput class". | ||
64735 | */ | ||
64736 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64737 | { | ||
64738 | find interpretation(problem,interpretation); | ||
64739 | PartialInterpretation.newElements(interpretation,element); | ||
64740 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64741 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
64742 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64743 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64744 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64745 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64746 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
64747 | neg find isPrimitive(element); | ||
64748 | } or { | ||
64749 | find interpretation(problem,interpretation); | ||
64750 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64751 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64752 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
64753 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64754 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64755 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64756 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64757 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
64758 | neg find isPrimitive(element); | ||
64759 | } or | ||
64760 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
64761 | /** | ||
64762 | * An element must be an instance of type "FunctionalOutput class". | ||
64763 | */ | ||
64764 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64765 | Type.name(type,"FunctionalOutput class"); | ||
64766 | find directInstanceOf(problem,interpretation,element,type); | ||
64767 | } | ||
64768 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64769 | find interpretation(problem,interpretation); | ||
64770 | PartialInterpretation.scopes(interpretation,scope); | ||
64771 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64772 | Scope.maxNewElements(scope,0); | ||
64773 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64774 | Type.name(type,"FunctionalOutput class"); | ||
64775 | } | ||
64776 | |||
64777 | /** | ||
64778 | * An element may be an instance of type "FunctionalOutput class". | ||
64779 | */ | ||
64780 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64781 | { | ||
64782 | find interpretation(problem,interpretation); | ||
64783 | PartialInterpretation.newElements(interpretation,element); | ||
64784 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64785 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64786 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64787 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
64788 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64789 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64790 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
64791 | neg find isPrimitive(element); | ||
64792 | } or { | ||
64793 | find interpretation(problem,interpretation); | ||
64794 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64795 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64796 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64797 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64798 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
64799 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64800 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64801 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
64802 | neg find isPrimitive(element); | ||
64803 | } or | ||
64804 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
64805 | /** | ||
64806 | * An element must be an instance of type "FunctionalData class". | ||
64807 | */ | ||
64808 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64809 | Type.name(type,"FunctionalData class"); | ||
64810 | find directInstanceOf(problem,interpretation,element,type); | ||
64811 | } | ||
64812 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64813 | find interpretation(problem,interpretation); | ||
64814 | PartialInterpretation.scopes(interpretation,scope); | ||
64815 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64816 | Scope.maxNewElements(scope,0); | ||
64817 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64818 | Type.name(type,"FunctionalData class"); | ||
64819 | } | ||
64820 | |||
64821 | /** | ||
64822 | * An element may be an instance of type "FunctionalData class". | ||
64823 | */ | ||
64824 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64825 | { | ||
64826 | find interpretation(problem,interpretation); | ||
64827 | PartialInterpretation.newElements(interpretation,element); | ||
64828 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
64829 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64830 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64831 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64832 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
64833 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64834 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64835 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
64836 | neg find isPrimitive(element); | ||
64837 | } or { | ||
64838 | find interpretation(problem,interpretation); | ||
64839 | PartialInterpretation.openWorldElements(interpretation,element); | ||
64840 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
64841 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
64842 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
64843 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
64844 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
64845 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
64846 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
64847 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
64848 | neg find isPrimitive(element); | ||
64849 | } or | ||
64850 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
64851 | /** | ||
64852 | * An element must be an instance of type "FunctionType enum". | ||
64853 | */ | ||
64854 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
64855 | Type.name(type,"FunctionType enum"); | ||
64856 | find directInstanceOf(problem,interpretation,element,type); | ||
64857 | } | ||
64858 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
64859 | find interpretation(problem,interpretation); | ||
64860 | PartialInterpretation.scopes(interpretation,scope); | ||
64861 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
64862 | Scope.maxNewElements(scope,0); | ||
64863 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
64864 | Type.name(type,"FunctionType enum"); | ||
64865 | } | ||
64866 | |||
64867 | /** | ||
64868 | * An element may be an instance of type "FunctionType enum". | ||
64869 | */ | ||
64870 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
64871 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
64872 | |||
64873 | ////////// | ||
64874 | // 1.2 Relation Declaration Indexers | ||
64875 | ////////// | ||
64876 | /** | ||
64877 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
64878 | */ | ||
64879 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
64880 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64881 | source: DefinedElement, target:DefinedElement) | ||
64882 | { | ||
64883 | find interpretation(problem,interpretation); | ||
64884 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
64885 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
64886 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
64887 | BinaryElementRelationLink.param1(link,source); | ||
64888 | BinaryElementRelationLink.param2(link,target); | ||
64889 | } | ||
64890 | /** | ||
64891 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
64892 | */ | ||
64893 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
64894 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64895 | source: DefinedElement, target:DefinedElement) | ||
64896 | { | ||
64897 | find interpretation(problem,interpretation); | ||
64898 | // The two endpoint of the link have to exist | ||
64899 | find mayExist(problem, interpretation, source); | ||
64900 | find mayExist(problem, interpretation, target); | ||
64901 | // Type consistency | ||
64902 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
64903 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
64904 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
64905 | // the upper bound of the multiplicity should be considered. | ||
64906 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
64907 | check(numberOfExistingReferences < 1); | ||
64908 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
64909 | // the upper bound of the opposite reference multiplicity should be considered. | ||
64910 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
64911 | check(numberOfExistingOppositeReferences < 1); | ||
64912 | // The reference is containment, then a new reference cannot be create if: | ||
64913 | // 1. Multiple parents | ||
64914 | neg find mustContains4(problem,interpretation,_,target); | ||
64915 | // 2. Circle in the containment hierarchy | ||
64916 | neg find mustTransitiveContains(source,target); | ||
64917 | } or { | ||
64918 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
64919 | } | ||
64920 | /** | ||
64921 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
64922 | */ | ||
64923 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
64924 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64925 | source: DefinedElement, target:DefinedElement) | ||
64926 | { | ||
64927 | find interpretation(problem,interpretation); | ||
64928 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
64929 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
64930 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
64931 | BinaryElementRelationLink.param1(link,source); | ||
64932 | BinaryElementRelationLink.param2(link,target); | ||
64933 | } | ||
64934 | /** | ||
64935 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
64936 | */ | ||
64937 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
64938 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64939 | source: DefinedElement, target:DefinedElement) | ||
64940 | { | ||
64941 | find interpretation(problem,interpretation); | ||
64942 | // The two endpoint of the link have to exist | ||
64943 | find mayExist(problem, interpretation, source); | ||
64944 | find mayExist(problem, interpretation, target); | ||
64945 | // Type consistency | ||
64946 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
64947 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
64948 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
64949 | // the upper bound of the multiplicity should be considered. | ||
64950 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
64951 | check(numberOfExistingReferences < 1); | ||
64952 | } or { | ||
64953 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
64954 | } | ||
64955 | /** | ||
64956 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
64957 | */ | ||
64958 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
64959 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64960 | source: DefinedElement, target:DefinedElement) | ||
64961 | { | ||
64962 | find interpretation(problem,interpretation); | ||
64963 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
64964 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
64965 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
64966 | BinaryElementRelationLink.param1(link,source); | ||
64967 | BinaryElementRelationLink.param2(link,target); | ||
64968 | } | ||
64969 | /** | ||
64970 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
64971 | */ | ||
64972 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
64973 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
64974 | source: DefinedElement, target:DefinedElement) | ||
64975 | { | ||
64976 | find interpretation(problem,interpretation); | ||
64977 | // The two endpoint of the link have to exist | ||
64978 | find mayExist(problem, interpretation, source); | ||
64979 | find mayExist(problem, interpretation, target); | ||
64980 | // Type consistency | ||
64981 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
64982 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
64983 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
64984 | // the upper bound of the multiplicity should be considered. | ||
64985 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
64986 | check(numberOfExistingReferences < 1); | ||
64987 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
64988 | // 1. Multiple parents | ||
64989 | neg find mustContains4(problem,interpretation,source,_); | ||
64990 | // 2. Circle in the containment hierarchy | ||
64991 | neg find mustTransitiveContains(source,target); | ||
64992 | } or { | ||
64993 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
64994 | } | ||
64995 | /** | ||
64996 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
64997 | */ | ||
64998 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
64999 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65000 | source: DefinedElement, target:DefinedElement) | ||
65001 | { | ||
65002 | find interpretation(problem,interpretation); | ||
65003 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65004 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
65005 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65006 | BinaryElementRelationLink.param1(link,source); | ||
65007 | BinaryElementRelationLink.param2(link,target); | ||
65008 | } | ||
65009 | /** | ||
65010 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
65011 | */ | ||
65012 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
65013 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65014 | source: DefinedElement, target:DefinedElement) | ||
65015 | { | ||
65016 | find interpretation(problem,interpretation); | ||
65017 | // The two endpoint of the link have to exist | ||
65018 | find mayExist(problem, interpretation, source); | ||
65019 | find mayExist(problem, interpretation, target); | ||
65020 | // Type consistency | ||
65021 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
65022 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
65023 | // The reference is containment, then a new reference cannot be create if: | ||
65024 | // 1. Multiple parents | ||
65025 | neg find mustContains4(problem,interpretation,_,target); | ||
65026 | // 2. Circle in the containment hierarchy | ||
65027 | neg find mustTransitiveContains(source,target); | ||
65028 | } or { | ||
65029 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
65030 | } | ||
65031 | /** | ||
65032 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
65033 | */ | ||
65034 | private pattern mustInRelationsubElements_reference_Function( | ||
65035 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65036 | source: DefinedElement, target:DefinedElement) | ||
65037 | { | ||
65038 | find interpretation(problem,interpretation); | ||
65039 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65040 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
65041 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65042 | BinaryElementRelationLink.param1(link,source); | ||
65043 | BinaryElementRelationLink.param2(link,target); | ||
65044 | } | ||
65045 | /** | ||
65046 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
65047 | */ | ||
65048 | private pattern mayInRelationsubElements_reference_Function( | ||
65049 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65050 | source: DefinedElement, target:DefinedElement) | ||
65051 | { | ||
65052 | find interpretation(problem,interpretation); | ||
65053 | // The two endpoint of the link have to exist | ||
65054 | find mayExist(problem, interpretation, source); | ||
65055 | find mayExist(problem, interpretation, target); | ||
65056 | // Type consistency | ||
65057 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
65058 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
65059 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
65060 | // the upper bound of the opposite reference multiplicity should be considered. | ||
65061 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
65062 | check(numberOfExistingOppositeReferences < 1); | ||
65063 | // The reference is containment, then a new reference cannot be create if: | ||
65064 | // 1. Multiple parents | ||
65065 | neg find mustContains4(problem,interpretation,_,target); | ||
65066 | // 2. Circle in the containment hierarchy | ||
65067 | neg find mustTransitiveContains(source,target); | ||
65068 | } or { | ||
65069 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
65070 | } | ||
65071 | /** | ||
65072 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
65073 | */ | ||
65074 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
65075 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65076 | source: DefinedElement, target:DefinedElement) | ||
65077 | { | ||
65078 | find interpretation(problem,interpretation); | ||
65079 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65080 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
65081 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65082 | BinaryElementRelationLink.param1(link,source); | ||
65083 | BinaryElementRelationLink.param2(link,target); | ||
65084 | } | ||
65085 | /** | ||
65086 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
65087 | */ | ||
65088 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
65089 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65090 | source: DefinedElement, target:DefinedElement) | ||
65091 | { | ||
65092 | find interpretation(problem,interpretation); | ||
65093 | // The two endpoint of the link have to exist | ||
65094 | find mayExist(problem, interpretation, source); | ||
65095 | find mayExist(problem, interpretation, target); | ||
65096 | // Type consistency | ||
65097 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
65098 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
65099 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
65100 | // the upper bound of the multiplicity should be considered. | ||
65101 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
65102 | check(numberOfExistingReferences < 1); | ||
65103 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
65104 | // the upper bound of the opposite reference multiplicity should be considered. | ||
65105 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
65106 | check(numberOfExistingOppositeReferences < 1); | ||
65107 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
65108 | // 1. Multiple parents | ||
65109 | neg find mustContains4(problem,interpretation,source,_); | ||
65110 | // 2. Circle in the containment hierarchy | ||
65111 | neg find mustTransitiveContains(source,target); | ||
65112 | } or { | ||
65113 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
65114 | } | ||
65115 | /** | ||
65116 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
65117 | */ | ||
65118 | private pattern mustInRelationfrom_reference_InformationLink( | ||
65119 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65120 | source: DefinedElement, target:DefinedElement) | ||
65121 | { | ||
65122 | find interpretation(problem,interpretation); | ||
65123 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65124 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
65125 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65126 | BinaryElementRelationLink.param1(link,source); | ||
65127 | BinaryElementRelationLink.param2(link,target); | ||
65128 | } | ||
65129 | /** | ||
65130 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
65131 | */ | ||
65132 | private pattern mayInRelationfrom_reference_InformationLink( | ||
65133 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65134 | source: DefinedElement, target:DefinedElement) | ||
65135 | { | ||
65136 | find interpretation(problem,interpretation); | ||
65137 | // The two endpoint of the link have to exist | ||
65138 | find mayExist(problem, interpretation, source); | ||
65139 | find mayExist(problem, interpretation, target); | ||
65140 | // Type consistency | ||
65141 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
65142 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
65143 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
65144 | // the upper bound of the multiplicity should be considered. | ||
65145 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
65146 | check(numberOfExistingReferences < 1); | ||
65147 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
65148 | // 1. Multiple parents | ||
65149 | neg find mustContains4(problem,interpretation,source,_); | ||
65150 | // 2. Circle in the containment hierarchy | ||
65151 | neg find mustTransitiveContains(source,target); | ||
65152 | } or { | ||
65153 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
65154 | } | ||
65155 | /** | ||
65156 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
65157 | */ | ||
65158 | private pattern mustInRelationto_reference_InformationLink( | ||
65159 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65160 | source: DefinedElement, target:DefinedElement) | ||
65161 | { | ||
65162 | find interpretation(problem,interpretation); | ||
65163 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65164 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
65165 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65166 | BinaryElementRelationLink.param1(link,source); | ||
65167 | BinaryElementRelationLink.param2(link,target); | ||
65168 | } | ||
65169 | /** | ||
65170 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
65171 | */ | ||
65172 | private pattern mayInRelationto_reference_InformationLink( | ||
65173 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65174 | source: DefinedElement, target:DefinedElement) | ||
65175 | { | ||
65176 | find interpretation(problem,interpretation); | ||
65177 | // The two endpoint of the link have to exist | ||
65178 | find mayExist(problem, interpretation, source); | ||
65179 | find mayExist(problem, interpretation, target); | ||
65180 | // Type consistency | ||
65181 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
65182 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
65183 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
65184 | // the upper bound of the multiplicity should be considered. | ||
65185 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
65186 | check(numberOfExistingReferences < 1); | ||
65187 | } or { | ||
65188 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
65189 | } | ||
65190 | /** | ||
65191 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
65192 | */ | ||
65193 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
65194 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65195 | source: DefinedElement, target:DefinedElement) | ||
65196 | { | ||
65197 | find interpretation(problem,interpretation); | ||
65198 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65199 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
65200 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65201 | BinaryElementRelationLink.param1(link,source); | ||
65202 | BinaryElementRelationLink.param2(link,target); | ||
65203 | } | ||
65204 | /** | ||
65205 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
65206 | */ | ||
65207 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
65208 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65209 | source: DefinedElement, target:DefinedElement) | ||
65210 | { | ||
65211 | find interpretation(problem,interpretation); | ||
65212 | // The two endpoint of the link have to exist | ||
65213 | find mayExist(problem, interpretation, source); | ||
65214 | find mayExist(problem, interpretation, target); | ||
65215 | // Type consistency | ||
65216 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
65217 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
65218 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
65219 | // the upper bound of the opposite reference multiplicity should be considered. | ||
65220 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
65221 | check(numberOfExistingOppositeReferences < 1); | ||
65222 | // The reference is containment, then a new reference cannot be create if: | ||
65223 | // 1. Multiple parents | ||
65224 | neg find mustContains4(problem,interpretation,_,target); | ||
65225 | // 2. Circle in the containment hierarchy | ||
65226 | neg find mustTransitiveContains(source,target); | ||
65227 | } or { | ||
65228 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
65229 | } | ||
65230 | /** | ||
65231 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
65232 | */ | ||
65233 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
65234 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65235 | source: DefinedElement, target:DefinedElement) | ||
65236 | { | ||
65237 | find interpretation(problem,interpretation); | ||
65238 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65239 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
65240 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65241 | BinaryElementRelationLink.param1(link,source); | ||
65242 | BinaryElementRelationLink.param2(link,target); | ||
65243 | } | ||
65244 | /** | ||
65245 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
65246 | */ | ||
65247 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
65248 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65249 | source: DefinedElement, target:DefinedElement) | ||
65250 | { | ||
65251 | find interpretation(problem,interpretation); | ||
65252 | // The two endpoint of the link have to exist | ||
65253 | find mayExist(problem, interpretation, source); | ||
65254 | find mayExist(problem, interpretation, target); | ||
65255 | // Type consistency | ||
65256 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
65257 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
65258 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
65259 | // the upper bound of the multiplicity should be considered. | ||
65260 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
65261 | check(numberOfExistingReferences < 1); | ||
65262 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
65263 | // the upper bound of the opposite reference multiplicity should be considered. | ||
65264 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
65265 | check(numberOfExistingOppositeReferences < 1); | ||
65266 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
65267 | // 1. Multiple parents | ||
65268 | neg find mustContains4(problem,interpretation,source,_); | ||
65269 | // 2. Circle in the containment hierarchy | ||
65270 | neg find mustTransitiveContains(source,target); | ||
65271 | } or { | ||
65272 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
65273 | } | ||
65274 | /** | ||
65275 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
65276 | */ | ||
65277 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
65278 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65279 | source: DefinedElement, target:DefinedElement) | ||
65280 | { | ||
65281 | find interpretation(problem,interpretation); | ||
65282 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65283 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
65284 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65285 | BinaryElementRelationLink.param1(link,source); | ||
65286 | BinaryElementRelationLink.param2(link,target); | ||
65287 | } | ||
65288 | /** | ||
65289 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
65290 | */ | ||
65291 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
65292 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65293 | source: DefinedElement, target:DefinedElement) | ||
65294 | { | ||
65295 | find interpretation(problem,interpretation); | ||
65296 | // The two endpoint of the link have to exist | ||
65297 | find mayExist(problem, interpretation, source); | ||
65298 | find mayExist(problem, interpretation, target); | ||
65299 | // Type consistency | ||
65300 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
65301 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
65302 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
65303 | // the upper bound of the opposite reference multiplicity should be considered. | ||
65304 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
65305 | check(numberOfExistingOppositeReferences < 1); | ||
65306 | } or { | ||
65307 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
65308 | } | ||
65309 | /** | ||
65310 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
65311 | */ | ||
65312 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
65313 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65314 | source: DefinedElement, target:DefinedElement) | ||
65315 | { | ||
65316 | find interpretation(problem,interpretation); | ||
65317 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65318 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
65319 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65320 | BinaryElementRelationLink.param1(link,source); | ||
65321 | BinaryElementRelationLink.param2(link,target); | ||
65322 | } | ||
65323 | /** | ||
65324 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
65325 | */ | ||
65326 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
65327 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65328 | source: DefinedElement, target:DefinedElement) | ||
65329 | { | ||
65330 | find interpretation(problem,interpretation); | ||
65331 | // The two endpoint of the link have to exist | ||
65332 | find mayExist(problem, interpretation, source); | ||
65333 | find mayExist(problem, interpretation, target); | ||
65334 | // Type consistency | ||
65335 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
65336 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
65337 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
65338 | // the upper bound of the opposite reference multiplicity should be considered. | ||
65339 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
65340 | check(numberOfExistingOppositeReferences < 1); | ||
65341 | // The reference is containment, then a new reference cannot be create if: | ||
65342 | // 1. Multiple parents | ||
65343 | neg find mustContains4(problem,interpretation,_,target); | ||
65344 | // 2. Circle in the containment hierarchy | ||
65345 | neg find mustTransitiveContains(source,target); | ||
65346 | } or { | ||
65347 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
65348 | } | ||
65349 | /** | ||
65350 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
65351 | */ | ||
65352 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
65353 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65354 | source: DefinedElement, target:DefinedElement) | ||
65355 | { | ||
65356 | find interpretation(problem,interpretation); | ||
65357 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65358 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
65359 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65360 | BinaryElementRelationLink.param1(link,source); | ||
65361 | BinaryElementRelationLink.param2(link,target); | ||
65362 | } | ||
65363 | /** | ||
65364 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
65365 | */ | ||
65366 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
65367 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65368 | source: DefinedElement, target:DefinedElement) | ||
65369 | { | ||
65370 | find interpretation(problem,interpretation); | ||
65371 | // The two endpoint of the link have to exist | ||
65372 | find mayExist(problem, interpretation, source); | ||
65373 | find mayExist(problem, interpretation, target); | ||
65374 | // Type consistency | ||
65375 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
65376 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
65377 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
65378 | // the upper bound of the multiplicity should be considered. | ||
65379 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
65380 | check(numberOfExistingReferences < 1); | ||
65381 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
65382 | // the upper bound of the opposite reference multiplicity should be considered. | ||
65383 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
65384 | check(numberOfExistingOppositeReferences < 1); | ||
65385 | // The reference is containment, then a new reference cannot be create if: | ||
65386 | // 1. Multiple parents | ||
65387 | neg find mustContains4(problem,interpretation,_,target); | ||
65388 | // 2. Circle in the containment hierarchy | ||
65389 | neg find mustTransitiveContains(source,target); | ||
65390 | } or { | ||
65391 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
65392 | } | ||
65393 | /** | ||
65394 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
65395 | */ | ||
65396 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
65397 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65398 | source: DefinedElement, target:DefinedElement) | ||
65399 | { | ||
65400 | find interpretation(problem,interpretation); | ||
65401 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65402 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
65403 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65404 | BinaryElementRelationLink.param1(link,source); | ||
65405 | BinaryElementRelationLink.param2(link,target); | ||
65406 | } | ||
65407 | /** | ||
65408 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
65409 | */ | ||
65410 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
65411 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65412 | source: DefinedElement, target:DefinedElement) | ||
65413 | { | ||
65414 | find interpretation(problem,interpretation); | ||
65415 | // The two endpoint of the link have to exist | ||
65416 | find mayExist(problem, interpretation, source); | ||
65417 | find mayExist(problem, interpretation, target); | ||
65418 | // Type consistency | ||
65419 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
65420 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
65421 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
65422 | // the upper bound of the multiplicity should be considered. | ||
65423 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
65424 | check(numberOfExistingReferences < 1); | ||
65425 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
65426 | // 1. Multiple parents | ||
65427 | neg find mustContains4(problem,interpretation,source,_); | ||
65428 | // 2. Circle in the containment hierarchy | ||
65429 | neg find mustTransitiveContains(source,target); | ||
65430 | } or { | ||
65431 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
65432 | } | ||
65433 | /** | ||
65434 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
65435 | */ | ||
65436 | private pattern mustInRelationtype_attribute_Function( | ||
65437 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65438 | source: DefinedElement, target:DefinedElement) | ||
65439 | { | ||
65440 | find interpretation(problem,interpretation); | ||
65441 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65442 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
65443 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
65444 | BinaryElementRelationLink.param1(link,source); | ||
65445 | BinaryElementRelationLink.param2(link,target); | ||
65446 | } | ||
65447 | /** | ||
65448 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
65449 | */ | ||
65450 | private pattern mayInRelationtype_attribute_Function( | ||
65451 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65452 | source: DefinedElement, target:DefinedElement) | ||
65453 | { | ||
65454 | find interpretation(problem,interpretation); | ||
65455 | // The two endpoint of the link have to exist | ||
65456 | find mayExist(problem, interpretation, source); | ||
65457 | find mayExist(problem, interpretation, target); | ||
65458 | // Type consistency | ||
65459 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
65460 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
65461 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
65462 | // the upper bound of the multiplicity should be considered. | ||
65463 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
65464 | check(numberOfExistingReferences < 1); | ||
65465 | } or { | ||
65466 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
65467 | } | ||
65468 | |||
65469 | ////////// | ||
65470 | // 1.3 Relation Definition Indexers | ||
65471 | ////////// | ||
65472 | |||
65473 | ////////// | ||
65474 | // 1.4 Containment Indexer | ||
65475 | ////////// | ||
65476 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
65477 | find mustContains4(_,_,source,target); | ||
65478 | } | ||
65479 | |||
65480 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
65481 | source: DefinedElement, target: DefinedElement) | ||
65482 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
65483 | |||
65484 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
65485 | |||
65486 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
65487 | |||
65488 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
65489 | |||
65490 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
65491 | |||
65492 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
65493 | |||
65494 | private pattern mustTransitiveContains(source,target) { | ||
65495 | find mustContains2+(source,target); | ||
65496 | } | ||
65497 | |||
65498 | ////////// | ||
65499 | // 2. Invalidation Indexers | ||
65500 | ////////// | ||
65501 | // 2.1 Invalidated by WF Queries | ||
65502 | ////////// | ||
65503 | |||
65504 | ////////// | ||
65505 | // 3. Unfinishedness Indexers | ||
65506 | ////////// | ||
65507 | // 3.1 Unfinishedness Measured by Multiplicity | ||
65508 | ////////// | ||
65509 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
65510 | find interpretation(problem,interpretation); | ||
65511 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65512 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
65513 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
65514 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
65515 | check(numberOfExistingReferences < 1); | ||
65516 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
65517 | } | ||
65518 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
65519 | find interpretation(problem,interpretation); | ||
65520 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65521 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
65522 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
65523 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
65524 | check(numberOfExistingReferences < 1); | ||
65525 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
65526 | } | ||
65527 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
65528 | find interpretation(problem,interpretation); | ||
65529 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65530 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
65531 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
65532 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
65533 | check(numberOfExistingReferences < 1); | ||
65534 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
65535 | } | ||
65536 | |||
65537 | ////////// | ||
65538 | // 3.2 Unfinishedness Measured by WF Queries | ||
65539 | ////////// | ||
65540 | |||
65541 | ////////// | ||
65542 | // 4. Refinement Indexers | ||
65543 | ////////// | ||
65544 | // 4.1 Object constructors | ||
65545 | ////////// | ||
65546 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
65547 | { | ||
65548 | find interpretation(problem,interpretation); | ||
65549 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
65550 | find mustExist(problem, interpretation, root); | ||
65551 | }or{ | ||
65552 | find interpretation(problem,interpretation); | ||
65553 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
65554 | find mustExist(problem, interpretation, root); | ||
65555 | }or{ | ||
65556 | find interpretation(problem,interpretation); | ||
65557 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
65558 | find mustExist(problem, interpretation, root); | ||
65559 | }or{ | ||
65560 | find interpretation(problem,interpretation); | ||
65561 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
65562 | find mustExist(problem, interpretation, root); | ||
65563 | }or{ | ||
65564 | find interpretation(problem,interpretation); | ||
65565 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
65566 | find mustExist(problem, interpretation, root); | ||
65567 | }or{ | ||
65568 | find interpretation(problem,interpretation); | ||
65569 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
65570 | find mustExist(problem, interpretation, root); | ||
65571 | }or{ | ||
65572 | find interpretation(problem,interpretation); | ||
65573 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
65574 | find mustExist(problem, interpretation, root); | ||
65575 | }or{ | ||
65576 | find interpretation(problem,interpretation); | ||
65577 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
65578 | find mustExist(problem, interpretation, root); | ||
65579 | }or{ | ||
65580 | find interpretation(problem,interpretation); | ||
65581 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
65582 | find mustExist(problem, interpretation, root); | ||
65583 | } | ||
65584 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
65585 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65586 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
65587 | container:DefinedElement) | ||
65588 | { | ||
65589 | find interpretation(problem,interpretation); | ||
65590 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65591 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
65592 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
65593 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
65594 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
65595 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
65596 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
65597 | find mustExist(problem, interpretation, container); | ||
65598 | neg find mustExist(problem, interpretation, newObject); | ||
65599 | } | ||
65600 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
65601 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65602 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
65603 | container:DefinedElement) | ||
65604 | { | ||
65605 | find interpretation(problem,interpretation); | ||
65606 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65607 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
65608 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
65609 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
65610 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
65611 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
65612 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
65613 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
65614 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
65615 | find mustExist(problem, interpretation, container); | ||
65616 | neg find mustExist(problem, interpretation, newObject); | ||
65617 | } | ||
65618 | pattern createObject_Function_class( | ||
65619 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65620 | typeInterpretation:PartialComplexTypeInterpretation) | ||
65621 | { | ||
65622 | find interpretation(problem,interpretation); | ||
65623 | neg find hasElementInContainment(problem,interpretation); | ||
65624 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65625 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
65626 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
65627 | find mayExist(problem, interpretation, newObject); | ||
65628 | neg find mustExist(problem, interpretation, newObject); | ||
65629 | } | ||
65630 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
65631 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65632 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
65633 | container:DefinedElement) | ||
65634 | { | ||
65635 | find interpretation(problem,interpretation); | ||
65636 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65637 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
65638 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
65639 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
65640 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
65641 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
65642 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
65643 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
65644 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
65645 | find mustExist(problem, interpretation, container); | ||
65646 | neg find mustExist(problem, interpretation, newObject); | ||
65647 | } | ||
65648 | pattern createObject_FunctionalOutput_class( | ||
65649 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65650 | typeInterpretation:PartialComplexTypeInterpretation) | ||
65651 | { | ||
65652 | find interpretation(problem,interpretation); | ||
65653 | neg find hasElementInContainment(problem,interpretation); | ||
65654 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65655 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
65656 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
65657 | find mayExist(problem, interpretation, newObject); | ||
65658 | neg find mustExist(problem, interpretation, newObject); | ||
65659 | } | ||
65660 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
65661 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65662 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
65663 | container:DefinedElement) | ||
65664 | { | ||
65665 | find interpretation(problem,interpretation); | ||
65666 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65667 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
65668 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
65669 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
65670 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
65671 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
65672 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
65673 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
65674 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
65675 | find mustExist(problem, interpretation, container); | ||
65676 | neg find mustExist(problem, interpretation, newObject); | ||
65677 | } | ||
65678 | pattern createObject_FunctionalInterface_class( | ||
65679 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65680 | typeInterpretation:PartialComplexTypeInterpretation) | ||
65681 | { | ||
65682 | find interpretation(problem,interpretation); | ||
65683 | neg find hasElementInContainment(problem,interpretation); | ||
65684 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65685 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
65686 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
65687 | find mayExist(problem, interpretation, newObject); | ||
65688 | neg find mustExist(problem, interpretation, newObject); | ||
65689 | } | ||
65690 | pattern createObject_FunctionalArchitectureModel_class( | ||
65691 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65692 | typeInterpretation:PartialComplexTypeInterpretation) | ||
65693 | { | ||
65694 | find interpretation(problem,interpretation); | ||
65695 | neg find hasElementInContainment(problem,interpretation); | ||
65696 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65697 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class"); | ||
65698 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,newObject); | ||
65699 | find mayExist(problem, interpretation, newObject); | ||
65700 | neg find mustExist(problem, interpretation, newObject); | ||
65701 | } | ||
65702 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
65703 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65704 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
65705 | container:DefinedElement) | ||
65706 | { | ||
65707 | find interpretation(problem,interpretation); | ||
65708 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65709 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
65710 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
65711 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
65712 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
65713 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
65714 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
65715 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
65716 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
65717 | find mustExist(problem, interpretation, container); | ||
65718 | neg find mustExist(problem, interpretation, newObject); | ||
65719 | } | ||
65720 | pattern createObject_FunctionalInput_class( | ||
65721 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65722 | typeInterpretation:PartialComplexTypeInterpretation) | ||
65723 | { | ||
65724 | find interpretation(problem,interpretation); | ||
65725 | neg find hasElementInContainment(problem,interpretation); | ||
65726 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65727 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
65728 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
65729 | find mayExist(problem, interpretation, newObject); | ||
65730 | neg find mustExist(problem, interpretation, newObject); | ||
65731 | } | ||
65732 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
65733 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65734 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
65735 | container:DefinedElement) | ||
65736 | { | ||
65737 | find interpretation(problem,interpretation); | ||
65738 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65739 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
65740 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
65741 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
65742 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
65743 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
65744 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
65745 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
65746 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
65747 | find mustExist(problem, interpretation, container); | ||
65748 | neg find mustExist(problem, interpretation, newObject); | ||
65749 | } | ||
65750 | pattern createObject_FAMTerminator_class( | ||
65751 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65752 | typeInterpretation:PartialComplexTypeInterpretation) | ||
65753 | { | ||
65754 | find interpretation(problem,interpretation); | ||
65755 | neg find hasElementInContainment(problem,interpretation); | ||
65756 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65757 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
65758 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
65759 | find mayExist(problem, interpretation, newObject); | ||
65760 | neg find mustExist(problem, interpretation, newObject); | ||
65761 | } | ||
65762 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
65763 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65764 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
65765 | container:DefinedElement) | ||
65766 | { | ||
65767 | find interpretation(problem,interpretation); | ||
65768 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65769 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
65770 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
65771 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
65772 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
65773 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
65774 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
65775 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
65776 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
65777 | find mustExist(problem, interpretation, container); | ||
65778 | neg find mustExist(problem, interpretation, newObject); | ||
65779 | } | ||
65780 | pattern createObject_InformationLink_class( | ||
65781 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65782 | typeInterpretation:PartialComplexTypeInterpretation) | ||
65783 | { | ||
65784 | find interpretation(problem,interpretation); | ||
65785 | neg find hasElementInContainment(problem,interpretation); | ||
65786 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65787 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
65788 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
65789 | find mayExist(problem, interpretation, newObject); | ||
65790 | neg find mustExist(problem, interpretation, newObject); | ||
65791 | } | ||
65792 | |||
65793 | ////////// | ||
65794 | // 4.2 Type refinement | ||
65795 | ////////// | ||
65796 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
65797 | find interpretation(problem,interpretation); | ||
65798 | PartialInterpretation.newElements(interpretation,element); | ||
65799 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
65800 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
65801 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
65802 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
65803 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
65804 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
65805 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
65806 | } | ||
65807 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
65808 | find interpretation(problem,interpretation); | ||
65809 | PartialInterpretation.newElements(interpretation,element); | ||
65810 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
65811 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
65812 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
65813 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
65814 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
65815 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
65816 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
65817 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
65818 | } | ||
65819 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
65820 | find interpretation(problem,interpretation); | ||
65821 | PartialInterpretation.newElements(interpretation,element); | ||
65822 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
65823 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
65824 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
65825 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
65826 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
65827 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
65828 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
65829 | } | ||
65830 | pattern refineTypeTo_FunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
65831 | find interpretation(problem,interpretation); | ||
65832 | PartialInterpretation.newElements(interpretation,element); | ||
65833 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
65834 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
65835 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
65836 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
65837 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
65838 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
65839 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
65840 | } | ||
65841 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
65842 | find interpretation(problem,interpretation); | ||
65843 | PartialInterpretation.newElements(interpretation,element); | ||
65844 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
65845 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
65846 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
65847 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
65848 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
65849 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
65850 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
65851 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
65852 | } | ||
65853 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
65854 | find interpretation(problem,interpretation); | ||
65855 | PartialInterpretation.newElements(interpretation,element); | ||
65856 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
65857 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
65858 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
65859 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
65860 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
65861 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
65862 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
65863 | } | ||
65864 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
65865 | find interpretation(problem,interpretation); | ||
65866 | PartialInterpretation.newElements(interpretation,element); | ||
65867 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
65868 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
65869 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
65870 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
65871 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
65872 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
65873 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
65874 | } | ||
65875 | |||
65876 | ////////// | ||
65877 | // 4.3 Relation refinement | ||
65878 | ////////// | ||
65879 | pattern refineRelation_model_reference_FunctionalElement( | ||
65880 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65881 | relationIterpretation:PartialRelationInterpretation, | ||
65882 | from: DefinedElement, to: DefinedElement) | ||
65883 | { | ||
65884 | find interpretation(problem,interpretation); | ||
65885 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65886 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
65887 | find mustExist(problem, interpretation, from); | ||
65888 | find mustExist(problem, interpretation, to); | ||
65889 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
65890 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
65891 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
65892 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
65893 | } | ||
65894 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
65895 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65896 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
65897 | from: DefinedElement, to: DefinedElement) | ||
65898 | { | ||
65899 | find interpretation(problem,interpretation); | ||
65900 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65901 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
65902 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
65903 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
65904 | find mustExist(problem, interpretation, from); | ||
65905 | find mustExist(problem, interpretation, to); | ||
65906 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
65907 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
65908 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
65909 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
65910 | } | ||
65911 | pattern refineRelation_type_attribute_Function( | ||
65912 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
65913 | relationIterpretation:PartialRelationInterpretation, | ||
65914 | from: DefinedElement, to: DefinedElement) | ||
65915 | { | ||
65916 | find interpretation(problem,interpretation); | ||
65917 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
65918 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
65919 | find mustExist(problem, interpretation, from); | ||
65920 | find mustExist(problem, interpretation, to); | ||
65921 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
65922 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
65923 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
65924 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
65925 | } | ||
65926 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
65927 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
65928 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
65929 | |||
65930 | ////////// | ||
65931 | // 0. Util | ||
65932 | ////////// | ||
65933 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
65934 | PartialInterpretation.problem(interpretation,problem); | ||
65935 | } | ||
65936 | |||
65937 | ///////////////////////// | ||
65938 | // 0.1 Existence | ||
65939 | ///////////////////////// | ||
65940 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
65941 | find interpretation(problem,interpretation); | ||
65942 | LogicProblem.elements(problem,element); | ||
65943 | } or { | ||
65944 | find interpretation(problem,interpretation); | ||
65945 | PartialInterpretation.newElements(interpretation,element); | ||
65946 | } | ||
65947 | |||
65948 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
65949 | find mustExist(problem,interpretation,element); | ||
65950 | } or { | ||
65951 | find interpretation(problem,interpretation); | ||
65952 | neg find elementCloseWorld(element); | ||
65953 | PartialInterpretation.openWorldElements(interpretation,element); | ||
65954 | } | ||
65955 | |||
65956 | private pattern elementCloseWorld(element:DefinedElement) { | ||
65957 | PartialInterpretation.openWorldElements(i,element); | ||
65958 | PartialInterpretation.maxNewElements(i,0); | ||
65959 | } or { | ||
65960 | Scope.targetTypeInterpretation(scope,interpretation); | ||
65961 | PartialTypeInterpratation.elements(interpretation,element); | ||
65962 | Scope.maxNewElements(scope,0); | ||
65963 | } | ||
65964 | |||
65965 | //////////////////////// | ||
65966 | // 0.2 Equivalence | ||
65967 | //////////////////////// | ||
65968 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
65969 | find mayExist(problem,interpretation,a); | ||
65970 | find mayExist(problem,interpretation,b); | ||
65971 | a == b; | ||
65972 | } | ||
65973 | |||
65974 | //////////////////////// | ||
65975 | // 0.3 Required Patterns by TypeIndexer | ||
65976 | //////////////////////// | ||
65977 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
65978 | find interpretation(problem,interpretation); | ||
65979 | LogicProblem.types(problem,type); | ||
65980 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
65981 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
65982 | } | ||
65983 | |||
65984 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
65985 | find interpretation(problem,interpretation); | ||
65986 | LogicProblem.types(problem,type); | ||
65987 | TypeDefinition.elements(type,element); | ||
65988 | } or { | ||
65989 | find interpretation(problem,interpretation); | ||
65990 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
65991 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
65992 | } | ||
65993 | |||
65994 | private pattern isPrimitive(element: PrimitiveElement) { | ||
65995 | PrimitiveElement(element); | ||
65996 | } | ||
65997 | |||
65998 | ////////// | ||
65999 | // 1. Problem-Specific Base Indexers | ||
66000 | ////////// | ||
66001 | // 1.1 Type Indexers | ||
66002 | ////////// | ||
66003 | // 1.1.1 primitive Type Indexers | ||
66004 | ////////// | ||
66005 | |||
66006 | ////////// | ||
66007 | // 1.1.2 domain-specific Type Indexers | ||
66008 | ////////// | ||
66009 | /** | ||
66010 | * An element must be an instance of type "FunctionalElement class". | ||
66011 | */ | ||
66012 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66013 | Type.name(type,"FunctionalElement class"); | ||
66014 | find directInstanceOf(problem,interpretation,element,type); | ||
66015 | } | ||
66016 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66017 | find interpretation(problem,interpretation); | ||
66018 | PartialInterpretation.scopes(interpretation,scope); | ||
66019 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66020 | Scope.maxNewElements(scope,0); | ||
66021 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66022 | Type.name(type,"FunctionalElement class"); | ||
66023 | } | ||
66024 | |||
66025 | /** | ||
66026 | * An element may be an instance of type "FunctionalElement class". | ||
66027 | */ | ||
66028 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66029 | { | ||
66030 | find interpretation(problem,interpretation); | ||
66031 | PartialInterpretation.newElements(interpretation,element); | ||
66032 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66033 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
66034 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66035 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66036 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66037 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66038 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
66039 | neg find isPrimitive(element); | ||
66040 | } or { | ||
66041 | find interpretation(problem,interpretation); | ||
66042 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66043 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66044 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
66045 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66046 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66047 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66048 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66049 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
66050 | neg find isPrimitive(element); | ||
66051 | } or | ||
66052 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
66053 | /** | ||
66054 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
66055 | */ | ||
66056 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66057 | Type.name(type,"FunctionalArchitectureModel class"); | ||
66058 | find directInstanceOf(problem,interpretation,element,type); | ||
66059 | } | ||
66060 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66061 | find interpretation(problem,interpretation); | ||
66062 | PartialInterpretation.scopes(interpretation,scope); | ||
66063 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66064 | Scope.maxNewElements(scope,0); | ||
66065 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66066 | Type.name(type,"FunctionalArchitectureModel class"); | ||
66067 | } | ||
66068 | |||
66069 | /** | ||
66070 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
66071 | */ | ||
66072 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66073 | { | ||
66074 | find interpretation(problem,interpretation); | ||
66075 | PartialInterpretation.newElements(interpretation,element); | ||
66076 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66077 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
66078 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66079 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66080 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66081 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66082 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
66083 | neg find isPrimitive(element); | ||
66084 | } or { | ||
66085 | find interpretation(problem,interpretation); | ||
66086 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66087 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66088 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
66089 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66090 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66091 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66092 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66093 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
66094 | neg find isPrimitive(element); | ||
66095 | } or | ||
66096 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
66097 | /** | ||
66098 | * An element must be an instance of type "Function class". | ||
66099 | */ | ||
66100 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66101 | Type.name(type,"Function class"); | ||
66102 | find directInstanceOf(problem,interpretation,element,type); | ||
66103 | } | ||
66104 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66105 | find interpretation(problem,interpretation); | ||
66106 | PartialInterpretation.scopes(interpretation,scope); | ||
66107 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66108 | Scope.maxNewElements(scope,0); | ||
66109 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66110 | Type.name(type,"Function class"); | ||
66111 | } | ||
66112 | |||
66113 | /** | ||
66114 | * An element may be an instance of type "Function class". | ||
66115 | */ | ||
66116 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66117 | { | ||
66118 | find interpretation(problem,interpretation); | ||
66119 | PartialInterpretation.newElements(interpretation,element); | ||
66120 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66121 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66122 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66123 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66124 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66125 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
66126 | neg find isPrimitive(element); | ||
66127 | } or { | ||
66128 | find interpretation(problem,interpretation); | ||
66129 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66130 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66131 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66132 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66133 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66134 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66135 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
66136 | neg find isPrimitive(element); | ||
66137 | } or | ||
66138 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
66139 | /** | ||
66140 | * An element must be an instance of type "FAMTerminator class". | ||
66141 | */ | ||
66142 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66143 | Type.name(type,"FAMTerminator class"); | ||
66144 | find directInstanceOf(problem,interpretation,element,type); | ||
66145 | } | ||
66146 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66147 | find interpretation(problem,interpretation); | ||
66148 | PartialInterpretation.scopes(interpretation,scope); | ||
66149 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66150 | Scope.maxNewElements(scope,0); | ||
66151 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66152 | Type.name(type,"FAMTerminator class"); | ||
66153 | } | ||
66154 | |||
66155 | /** | ||
66156 | * An element may be an instance of type "FAMTerminator class". | ||
66157 | */ | ||
66158 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66159 | { | ||
66160 | find interpretation(problem,interpretation); | ||
66161 | PartialInterpretation.newElements(interpretation,element); | ||
66162 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66163 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66164 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66165 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66166 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66167 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
66168 | neg find isPrimitive(element); | ||
66169 | } or { | ||
66170 | find interpretation(problem,interpretation); | ||
66171 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66172 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66173 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66174 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66175 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66176 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66177 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
66178 | neg find isPrimitive(element); | ||
66179 | } or | ||
66180 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
66181 | /** | ||
66182 | * An element must be an instance of type "InformationLink class". | ||
66183 | */ | ||
66184 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66185 | Type.name(type,"InformationLink class"); | ||
66186 | find directInstanceOf(problem,interpretation,element,type); | ||
66187 | } | ||
66188 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66189 | find interpretation(problem,interpretation); | ||
66190 | PartialInterpretation.scopes(interpretation,scope); | ||
66191 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66192 | Scope.maxNewElements(scope,0); | ||
66193 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66194 | Type.name(type,"InformationLink class"); | ||
66195 | } | ||
66196 | |||
66197 | /** | ||
66198 | * An element may be an instance of type "InformationLink class". | ||
66199 | */ | ||
66200 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66201 | { | ||
66202 | find interpretation(problem,interpretation); | ||
66203 | PartialInterpretation.newElements(interpretation,element); | ||
66204 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66205 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66206 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66207 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66208 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66209 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
66210 | neg find isPrimitive(element); | ||
66211 | } or { | ||
66212 | find interpretation(problem,interpretation); | ||
66213 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66214 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66215 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66216 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66217 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66218 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66219 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
66220 | neg find isPrimitive(element); | ||
66221 | } or | ||
66222 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
66223 | /** | ||
66224 | * An element must be an instance of type "FunctionalInterface class". | ||
66225 | */ | ||
66226 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66227 | Type.name(type,"FunctionalInterface class"); | ||
66228 | find directInstanceOf(problem,interpretation,element,type); | ||
66229 | } | ||
66230 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66231 | find interpretation(problem,interpretation); | ||
66232 | PartialInterpretation.scopes(interpretation,scope); | ||
66233 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66234 | Scope.maxNewElements(scope,0); | ||
66235 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66236 | Type.name(type,"FunctionalInterface class"); | ||
66237 | } | ||
66238 | |||
66239 | /** | ||
66240 | * An element may be an instance of type "FunctionalInterface class". | ||
66241 | */ | ||
66242 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66243 | { | ||
66244 | find interpretation(problem,interpretation); | ||
66245 | PartialInterpretation.newElements(interpretation,element); | ||
66246 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66247 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66248 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66249 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66250 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66251 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
66252 | neg find isPrimitive(element); | ||
66253 | } or { | ||
66254 | find interpretation(problem,interpretation); | ||
66255 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66256 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66257 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66258 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66259 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66260 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66261 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
66262 | neg find isPrimitive(element); | ||
66263 | } or | ||
66264 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
66265 | /** | ||
66266 | * An element must be an instance of type "FunctionalInput class". | ||
66267 | */ | ||
66268 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66269 | Type.name(type,"FunctionalInput class"); | ||
66270 | find directInstanceOf(problem,interpretation,element,type); | ||
66271 | } | ||
66272 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66273 | find interpretation(problem,interpretation); | ||
66274 | PartialInterpretation.scopes(interpretation,scope); | ||
66275 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66276 | Scope.maxNewElements(scope,0); | ||
66277 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66278 | Type.name(type,"FunctionalInput class"); | ||
66279 | } | ||
66280 | |||
66281 | /** | ||
66282 | * An element may be an instance of type "FunctionalInput class". | ||
66283 | */ | ||
66284 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66285 | { | ||
66286 | find interpretation(problem,interpretation); | ||
66287 | PartialInterpretation.newElements(interpretation,element); | ||
66288 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66289 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66290 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66291 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
66292 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66293 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66294 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
66295 | neg find isPrimitive(element); | ||
66296 | } or { | ||
66297 | find interpretation(problem,interpretation); | ||
66298 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66299 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66300 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66301 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66302 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
66303 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66304 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66305 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
66306 | neg find isPrimitive(element); | ||
66307 | } or | ||
66308 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
66309 | /** | ||
66310 | * An element must be an instance of type "FunctionalOutput class". | ||
66311 | */ | ||
66312 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66313 | Type.name(type,"FunctionalOutput class"); | ||
66314 | find directInstanceOf(problem,interpretation,element,type); | ||
66315 | } | ||
66316 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66317 | find interpretation(problem,interpretation); | ||
66318 | PartialInterpretation.scopes(interpretation,scope); | ||
66319 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66320 | Scope.maxNewElements(scope,0); | ||
66321 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66322 | Type.name(type,"FunctionalOutput class"); | ||
66323 | } | ||
66324 | |||
66325 | /** | ||
66326 | * An element may be an instance of type "FunctionalOutput class". | ||
66327 | */ | ||
66328 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66329 | { | ||
66330 | find interpretation(problem,interpretation); | ||
66331 | PartialInterpretation.newElements(interpretation,element); | ||
66332 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
66333 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66334 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66335 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66336 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66337 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66338 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
66339 | neg find isPrimitive(element); | ||
66340 | } or { | ||
66341 | find interpretation(problem,interpretation); | ||
66342 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66343 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
66344 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66345 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66346 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66347 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66348 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66349 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
66350 | neg find isPrimitive(element); | ||
66351 | } or | ||
66352 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
66353 | /** | ||
66354 | * An element must be an instance of type "FunctionalData class". | ||
66355 | */ | ||
66356 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66357 | Type.name(type,"FunctionalData class"); | ||
66358 | find directInstanceOf(problem,interpretation,element,type); | ||
66359 | } | ||
66360 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66361 | find interpretation(problem,interpretation); | ||
66362 | PartialInterpretation.scopes(interpretation,scope); | ||
66363 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66364 | Scope.maxNewElements(scope,0); | ||
66365 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66366 | Type.name(type,"FunctionalData class"); | ||
66367 | } | ||
66368 | |||
66369 | /** | ||
66370 | * An element may be an instance of type "FunctionalData class". | ||
66371 | */ | ||
66372 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66373 | { | ||
66374 | find interpretation(problem,interpretation); | ||
66375 | PartialInterpretation.newElements(interpretation,element); | ||
66376 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
66377 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66378 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66379 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66380 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66381 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66382 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
66383 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
66384 | neg find isPrimitive(element); | ||
66385 | } or { | ||
66386 | find interpretation(problem,interpretation); | ||
66387 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66388 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
66389 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66390 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66391 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66392 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
66393 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66394 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
66395 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
66396 | neg find isPrimitive(element); | ||
66397 | } or | ||
66398 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
66399 | /** | ||
66400 | * An element must be an instance of type "FunctionType enum". | ||
66401 | */ | ||
66402 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66403 | Type.name(type,"FunctionType enum"); | ||
66404 | find directInstanceOf(problem,interpretation,element,type); | ||
66405 | } | ||
66406 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66407 | find interpretation(problem,interpretation); | ||
66408 | PartialInterpretation.scopes(interpretation,scope); | ||
66409 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66410 | Scope.maxNewElements(scope,0); | ||
66411 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66412 | Type.name(type,"FunctionType enum"); | ||
66413 | } | ||
66414 | |||
66415 | /** | ||
66416 | * An element may be an instance of type "FunctionType enum". | ||
66417 | */ | ||
66418 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66419 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
66420 | /** | ||
66421 | * An element must be an instance of type "FunctionalArchitectureModel class DefinedPart". | ||
66422 | */ | ||
66423 | private pattern mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66424 | Type.name(type,"FunctionalArchitectureModel class DefinedPart"); | ||
66425 | find directInstanceOf(problem,interpretation,element,type); | ||
66426 | } | ||
66427 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66428 | find interpretation(problem,interpretation); | ||
66429 | PartialInterpretation.scopes(interpretation,scope); | ||
66430 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66431 | Scope.maxNewElements(scope,0); | ||
66432 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66433 | Type.name(type,"FunctionalArchitectureModel class DefinedPart"); | ||
66434 | } | ||
66435 | |||
66436 | /** | ||
66437 | * An element may be an instance of type "FunctionalArchitectureModel class DefinedPart". | ||
66438 | */ | ||
66439 | private pattern mayInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66440 | { find mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem,interpretation,element); } | ||
66441 | /** | ||
66442 | * An element must be an instance of type "FunctionalArchitectureModel class UndefinedPart". | ||
66443 | */ | ||
66444 | private pattern mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
66445 | Type.name(type,"FunctionalArchitectureModel class UndefinedPart"); | ||
66446 | find directInstanceOf(problem,interpretation,element,type); | ||
66447 | } | ||
66448 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
66449 | find interpretation(problem,interpretation); | ||
66450 | PartialInterpretation.scopes(interpretation,scope); | ||
66451 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
66452 | Scope.maxNewElements(scope,0); | ||
66453 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
66454 | Type.name(type,"FunctionalArchitectureModel class UndefinedPart"); | ||
66455 | } | ||
66456 | |||
66457 | /** | ||
66458 | * An element may be an instance of type "FunctionalArchitectureModel class UndefinedPart". | ||
66459 | */ | ||
66460 | private pattern mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
66461 | { | ||
66462 | find interpretation(problem,interpretation); | ||
66463 | PartialInterpretation.newElements(interpretation,element); | ||
66464 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66465 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66466 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66467 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66468 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66469 | neg find scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem, interpretation); | ||
66470 | neg find isPrimitive(element); | ||
66471 | } or { | ||
66472 | find interpretation(problem,interpretation); | ||
66473 | PartialInterpretation.openWorldElements(interpretation,element); | ||
66474 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
66475 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
66476 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
66477 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
66478 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
66479 | neg find scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem, interpretation); | ||
66480 | neg find isPrimitive(element); | ||
66481 | } or | ||
66482 | { find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); } | ||
66483 | |||
66484 | ////////// | ||
66485 | // 1.2 Relation Declaration Indexers | ||
66486 | ////////// | ||
66487 | /** | ||
66488 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
66489 | */ | ||
66490 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
66491 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66492 | source: DefinedElement, target:DefinedElement) | ||
66493 | { | ||
66494 | find interpretation(problem,interpretation); | ||
66495 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66496 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
66497 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66498 | BinaryElementRelationLink.param1(link,source); | ||
66499 | BinaryElementRelationLink.param2(link,target); | ||
66500 | } | ||
66501 | /** | ||
66502 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
66503 | */ | ||
66504 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
66505 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66506 | source: DefinedElement, target:DefinedElement) | ||
66507 | { | ||
66508 | find interpretation(problem,interpretation); | ||
66509 | // The two endpoint of the link have to exist | ||
66510 | find mayExist(problem, interpretation, source); | ||
66511 | find mayExist(problem, interpretation, target); | ||
66512 | // Type consistency | ||
66513 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
66514 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
66515 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
66516 | // the upper bound of the multiplicity should be considered. | ||
66517 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
66518 | check(numberOfExistingReferences < 1); | ||
66519 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
66520 | // the upper bound of the opposite reference multiplicity should be considered. | ||
66521 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
66522 | check(numberOfExistingOppositeReferences < 1); | ||
66523 | // The reference is containment, then a new reference cannot be create if: | ||
66524 | // 1. Multiple parents | ||
66525 | neg find mustContains4(problem,interpretation,_,target); | ||
66526 | // 2. Circle in the containment hierarchy | ||
66527 | neg find mustTransitiveContains(source,target); | ||
66528 | } or { | ||
66529 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
66530 | } | ||
66531 | /** | ||
66532 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
66533 | */ | ||
66534 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
66535 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66536 | source: DefinedElement, target:DefinedElement) | ||
66537 | { | ||
66538 | find interpretation(problem,interpretation); | ||
66539 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66540 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
66541 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66542 | BinaryElementRelationLink.param1(link,source); | ||
66543 | BinaryElementRelationLink.param2(link,target); | ||
66544 | } | ||
66545 | /** | ||
66546 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
66547 | */ | ||
66548 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
66549 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66550 | source: DefinedElement, target:DefinedElement) | ||
66551 | { | ||
66552 | find interpretation(problem,interpretation); | ||
66553 | // The two endpoint of the link have to exist | ||
66554 | find mayExist(problem, interpretation, source); | ||
66555 | find mayExist(problem, interpretation, target); | ||
66556 | // Type consistency | ||
66557 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
66558 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
66559 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
66560 | // the upper bound of the multiplicity should be considered. | ||
66561 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
66562 | check(numberOfExistingReferences < 1); | ||
66563 | } or { | ||
66564 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
66565 | } | ||
66566 | /** | ||
66567 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
66568 | */ | ||
66569 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
66570 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66571 | source: DefinedElement, target:DefinedElement) | ||
66572 | { | ||
66573 | find interpretation(problem,interpretation); | ||
66574 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66575 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
66576 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66577 | BinaryElementRelationLink.param1(link,source); | ||
66578 | BinaryElementRelationLink.param2(link,target); | ||
66579 | } | ||
66580 | /** | ||
66581 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
66582 | */ | ||
66583 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
66584 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66585 | source: DefinedElement, target:DefinedElement) | ||
66586 | { | ||
66587 | find interpretation(problem,interpretation); | ||
66588 | // The two endpoint of the link have to exist | ||
66589 | find mayExist(problem, interpretation, source); | ||
66590 | find mayExist(problem, interpretation, target); | ||
66591 | // Type consistency | ||
66592 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
66593 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
66594 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
66595 | // the upper bound of the multiplicity should be considered. | ||
66596 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
66597 | check(numberOfExistingReferences < 1); | ||
66598 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
66599 | // 1. Multiple parents | ||
66600 | neg find mustContains4(problem,interpretation,source,_); | ||
66601 | // 2. Circle in the containment hierarchy | ||
66602 | neg find mustTransitiveContains(source,target); | ||
66603 | } or { | ||
66604 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
66605 | } | ||
66606 | /** | ||
66607 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
66608 | */ | ||
66609 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
66610 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66611 | source: DefinedElement, target:DefinedElement) | ||
66612 | { | ||
66613 | find interpretation(problem,interpretation); | ||
66614 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66615 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
66616 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66617 | BinaryElementRelationLink.param1(link,source); | ||
66618 | BinaryElementRelationLink.param2(link,target); | ||
66619 | } | ||
66620 | /** | ||
66621 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
66622 | */ | ||
66623 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
66624 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66625 | source: DefinedElement, target:DefinedElement) | ||
66626 | { | ||
66627 | find interpretation(problem,interpretation); | ||
66628 | // The two endpoint of the link have to exist | ||
66629 | find mayExist(problem, interpretation, source); | ||
66630 | find mayExist(problem, interpretation, target); | ||
66631 | // Type consistency | ||
66632 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
66633 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
66634 | // The reference is containment, then a new reference cannot be create if: | ||
66635 | // 1. Multiple parents | ||
66636 | neg find mustContains4(problem,interpretation,_,target); | ||
66637 | // 2. Circle in the containment hierarchy | ||
66638 | neg find mustTransitiveContains(source,target); | ||
66639 | } or { | ||
66640 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
66641 | } | ||
66642 | /** | ||
66643 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
66644 | */ | ||
66645 | private pattern mustInRelationsubElements_reference_Function( | ||
66646 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66647 | source: DefinedElement, target:DefinedElement) | ||
66648 | { | ||
66649 | find interpretation(problem,interpretation); | ||
66650 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66651 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
66652 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66653 | BinaryElementRelationLink.param1(link,source); | ||
66654 | BinaryElementRelationLink.param2(link,target); | ||
66655 | } | ||
66656 | /** | ||
66657 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
66658 | */ | ||
66659 | private pattern mayInRelationsubElements_reference_Function( | ||
66660 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66661 | source: DefinedElement, target:DefinedElement) | ||
66662 | { | ||
66663 | find interpretation(problem,interpretation); | ||
66664 | // The two endpoint of the link have to exist | ||
66665 | find mayExist(problem, interpretation, source); | ||
66666 | find mayExist(problem, interpretation, target); | ||
66667 | // Type consistency | ||
66668 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
66669 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
66670 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
66671 | // the upper bound of the opposite reference multiplicity should be considered. | ||
66672 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
66673 | check(numberOfExistingOppositeReferences < 1); | ||
66674 | // The reference is containment, then a new reference cannot be create if: | ||
66675 | // 1. Multiple parents | ||
66676 | neg find mustContains4(problem,interpretation,_,target); | ||
66677 | // 2. Circle in the containment hierarchy | ||
66678 | neg find mustTransitiveContains(source,target); | ||
66679 | } or { | ||
66680 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
66681 | } | ||
66682 | /** | ||
66683 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
66684 | */ | ||
66685 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
66686 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66687 | source: DefinedElement, target:DefinedElement) | ||
66688 | { | ||
66689 | find interpretation(problem,interpretation); | ||
66690 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66691 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
66692 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66693 | BinaryElementRelationLink.param1(link,source); | ||
66694 | BinaryElementRelationLink.param2(link,target); | ||
66695 | } | ||
66696 | /** | ||
66697 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
66698 | */ | ||
66699 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
66700 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66701 | source: DefinedElement, target:DefinedElement) | ||
66702 | { | ||
66703 | find interpretation(problem,interpretation); | ||
66704 | // The two endpoint of the link have to exist | ||
66705 | find mayExist(problem, interpretation, source); | ||
66706 | find mayExist(problem, interpretation, target); | ||
66707 | // Type consistency | ||
66708 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
66709 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
66710 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
66711 | // the upper bound of the multiplicity should be considered. | ||
66712 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
66713 | check(numberOfExistingReferences < 1); | ||
66714 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
66715 | // the upper bound of the opposite reference multiplicity should be considered. | ||
66716 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
66717 | check(numberOfExistingOppositeReferences < 1); | ||
66718 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
66719 | // 1. Multiple parents | ||
66720 | neg find mustContains4(problem,interpretation,source,_); | ||
66721 | // 2. Circle in the containment hierarchy | ||
66722 | neg find mustTransitiveContains(source,target); | ||
66723 | } or { | ||
66724 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
66725 | } | ||
66726 | /** | ||
66727 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
66728 | */ | ||
66729 | private pattern mustInRelationfrom_reference_InformationLink( | ||
66730 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66731 | source: DefinedElement, target:DefinedElement) | ||
66732 | { | ||
66733 | find interpretation(problem,interpretation); | ||
66734 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66735 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
66736 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66737 | BinaryElementRelationLink.param1(link,source); | ||
66738 | BinaryElementRelationLink.param2(link,target); | ||
66739 | } | ||
66740 | /** | ||
66741 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
66742 | */ | ||
66743 | private pattern mayInRelationfrom_reference_InformationLink( | ||
66744 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66745 | source: DefinedElement, target:DefinedElement) | ||
66746 | { | ||
66747 | find interpretation(problem,interpretation); | ||
66748 | // The two endpoint of the link have to exist | ||
66749 | find mayExist(problem, interpretation, source); | ||
66750 | find mayExist(problem, interpretation, target); | ||
66751 | // Type consistency | ||
66752 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
66753 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
66754 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
66755 | // the upper bound of the multiplicity should be considered. | ||
66756 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
66757 | check(numberOfExistingReferences < 1); | ||
66758 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
66759 | // 1. Multiple parents | ||
66760 | neg find mustContains4(problem,interpretation,source,_); | ||
66761 | // 2. Circle in the containment hierarchy | ||
66762 | neg find mustTransitiveContains(source,target); | ||
66763 | } or { | ||
66764 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
66765 | } | ||
66766 | /** | ||
66767 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
66768 | */ | ||
66769 | private pattern mustInRelationto_reference_InformationLink( | ||
66770 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66771 | source: DefinedElement, target:DefinedElement) | ||
66772 | { | ||
66773 | find interpretation(problem,interpretation); | ||
66774 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66775 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
66776 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66777 | BinaryElementRelationLink.param1(link,source); | ||
66778 | BinaryElementRelationLink.param2(link,target); | ||
66779 | } | ||
66780 | /** | ||
66781 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
66782 | */ | ||
66783 | private pattern mayInRelationto_reference_InformationLink( | ||
66784 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66785 | source: DefinedElement, target:DefinedElement) | ||
66786 | { | ||
66787 | find interpretation(problem,interpretation); | ||
66788 | // The two endpoint of the link have to exist | ||
66789 | find mayExist(problem, interpretation, source); | ||
66790 | find mayExist(problem, interpretation, target); | ||
66791 | // Type consistency | ||
66792 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
66793 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
66794 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
66795 | // the upper bound of the multiplicity should be considered. | ||
66796 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
66797 | check(numberOfExistingReferences < 1); | ||
66798 | } or { | ||
66799 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
66800 | } | ||
66801 | /** | ||
66802 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
66803 | */ | ||
66804 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
66805 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66806 | source: DefinedElement, target:DefinedElement) | ||
66807 | { | ||
66808 | find interpretation(problem,interpretation); | ||
66809 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66810 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
66811 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66812 | BinaryElementRelationLink.param1(link,source); | ||
66813 | BinaryElementRelationLink.param2(link,target); | ||
66814 | } | ||
66815 | /** | ||
66816 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
66817 | */ | ||
66818 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
66819 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66820 | source: DefinedElement, target:DefinedElement) | ||
66821 | { | ||
66822 | find interpretation(problem,interpretation); | ||
66823 | // The two endpoint of the link have to exist | ||
66824 | find mayExist(problem, interpretation, source); | ||
66825 | find mayExist(problem, interpretation, target); | ||
66826 | // Type consistency | ||
66827 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
66828 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
66829 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
66830 | // the upper bound of the opposite reference multiplicity should be considered. | ||
66831 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
66832 | check(numberOfExistingOppositeReferences < 1); | ||
66833 | // The reference is containment, then a new reference cannot be create if: | ||
66834 | // 1. Multiple parents | ||
66835 | neg find mustContains4(problem,interpretation,_,target); | ||
66836 | // 2. Circle in the containment hierarchy | ||
66837 | neg find mustTransitiveContains(source,target); | ||
66838 | } or { | ||
66839 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
66840 | } | ||
66841 | /** | ||
66842 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
66843 | */ | ||
66844 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
66845 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66846 | source: DefinedElement, target:DefinedElement) | ||
66847 | { | ||
66848 | find interpretation(problem,interpretation); | ||
66849 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66850 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
66851 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66852 | BinaryElementRelationLink.param1(link,source); | ||
66853 | BinaryElementRelationLink.param2(link,target); | ||
66854 | } | ||
66855 | /** | ||
66856 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
66857 | */ | ||
66858 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
66859 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66860 | source: DefinedElement, target:DefinedElement) | ||
66861 | { | ||
66862 | find interpretation(problem,interpretation); | ||
66863 | // The two endpoint of the link have to exist | ||
66864 | find mayExist(problem, interpretation, source); | ||
66865 | find mayExist(problem, interpretation, target); | ||
66866 | // Type consistency | ||
66867 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
66868 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
66869 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
66870 | // the upper bound of the multiplicity should be considered. | ||
66871 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
66872 | check(numberOfExistingReferences < 1); | ||
66873 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
66874 | // the upper bound of the opposite reference multiplicity should be considered. | ||
66875 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
66876 | check(numberOfExistingOppositeReferences < 1); | ||
66877 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
66878 | // 1. Multiple parents | ||
66879 | neg find mustContains4(problem,interpretation,source,_); | ||
66880 | // 2. Circle in the containment hierarchy | ||
66881 | neg find mustTransitiveContains(source,target); | ||
66882 | } or { | ||
66883 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
66884 | } | ||
66885 | /** | ||
66886 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
66887 | */ | ||
66888 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
66889 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66890 | source: DefinedElement, target:DefinedElement) | ||
66891 | { | ||
66892 | find interpretation(problem,interpretation); | ||
66893 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66894 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
66895 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66896 | BinaryElementRelationLink.param1(link,source); | ||
66897 | BinaryElementRelationLink.param2(link,target); | ||
66898 | } | ||
66899 | /** | ||
66900 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
66901 | */ | ||
66902 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
66903 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66904 | source: DefinedElement, target:DefinedElement) | ||
66905 | { | ||
66906 | find interpretation(problem,interpretation); | ||
66907 | // The two endpoint of the link have to exist | ||
66908 | find mayExist(problem, interpretation, source); | ||
66909 | find mayExist(problem, interpretation, target); | ||
66910 | // Type consistency | ||
66911 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
66912 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
66913 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
66914 | // the upper bound of the opposite reference multiplicity should be considered. | ||
66915 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
66916 | check(numberOfExistingOppositeReferences < 1); | ||
66917 | } or { | ||
66918 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
66919 | } | ||
66920 | /** | ||
66921 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
66922 | */ | ||
66923 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
66924 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66925 | source: DefinedElement, target:DefinedElement) | ||
66926 | { | ||
66927 | find interpretation(problem,interpretation); | ||
66928 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66929 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
66930 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66931 | BinaryElementRelationLink.param1(link,source); | ||
66932 | BinaryElementRelationLink.param2(link,target); | ||
66933 | } | ||
66934 | /** | ||
66935 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
66936 | */ | ||
66937 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
66938 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66939 | source: DefinedElement, target:DefinedElement) | ||
66940 | { | ||
66941 | find interpretation(problem,interpretation); | ||
66942 | // The two endpoint of the link have to exist | ||
66943 | find mayExist(problem, interpretation, source); | ||
66944 | find mayExist(problem, interpretation, target); | ||
66945 | // Type consistency | ||
66946 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
66947 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
66948 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
66949 | // the upper bound of the opposite reference multiplicity should be considered. | ||
66950 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
66951 | check(numberOfExistingOppositeReferences < 1); | ||
66952 | // The reference is containment, then a new reference cannot be create if: | ||
66953 | // 1. Multiple parents | ||
66954 | neg find mustContains4(problem,interpretation,_,target); | ||
66955 | // 2. Circle in the containment hierarchy | ||
66956 | neg find mustTransitiveContains(source,target); | ||
66957 | } or { | ||
66958 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
66959 | } | ||
66960 | /** | ||
66961 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
66962 | */ | ||
66963 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
66964 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66965 | source: DefinedElement, target:DefinedElement) | ||
66966 | { | ||
66967 | find interpretation(problem,interpretation); | ||
66968 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
66969 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
66970 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
66971 | BinaryElementRelationLink.param1(link,source); | ||
66972 | BinaryElementRelationLink.param2(link,target); | ||
66973 | } | ||
66974 | /** | ||
66975 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
66976 | */ | ||
66977 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
66978 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
66979 | source: DefinedElement, target:DefinedElement) | ||
66980 | { | ||
66981 | find interpretation(problem,interpretation); | ||
66982 | // The two endpoint of the link have to exist | ||
66983 | find mayExist(problem, interpretation, source); | ||
66984 | find mayExist(problem, interpretation, target); | ||
66985 | // Type consistency | ||
66986 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
66987 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
66988 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
66989 | // the upper bound of the multiplicity should be considered. | ||
66990 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
66991 | check(numberOfExistingReferences < 1); | ||
66992 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
66993 | // the upper bound of the opposite reference multiplicity should be considered. | ||
66994 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
66995 | check(numberOfExistingOppositeReferences < 1); | ||
66996 | // The reference is containment, then a new reference cannot be create if: | ||
66997 | // 1. Multiple parents | ||
66998 | neg find mustContains4(problem,interpretation,_,target); | ||
66999 | // 2. Circle in the containment hierarchy | ||
67000 | neg find mustTransitiveContains(source,target); | ||
67001 | } or { | ||
67002 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
67003 | } | ||
67004 | /** | ||
67005 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
67006 | */ | ||
67007 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
67008 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67009 | source: DefinedElement, target:DefinedElement) | ||
67010 | { | ||
67011 | find interpretation(problem,interpretation); | ||
67012 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
67013 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
67014 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
67015 | BinaryElementRelationLink.param1(link,source); | ||
67016 | BinaryElementRelationLink.param2(link,target); | ||
67017 | } | ||
67018 | /** | ||
67019 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
67020 | */ | ||
67021 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
67022 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67023 | source: DefinedElement, target:DefinedElement) | ||
67024 | { | ||
67025 | find interpretation(problem,interpretation); | ||
67026 | // The two endpoint of the link have to exist | ||
67027 | find mayExist(problem, interpretation, source); | ||
67028 | find mayExist(problem, interpretation, target); | ||
67029 | // Type consistency | ||
67030 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
67031 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
67032 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
67033 | // the upper bound of the multiplicity should be considered. | ||
67034 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
67035 | check(numberOfExistingReferences < 1); | ||
67036 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
67037 | // 1. Multiple parents | ||
67038 | neg find mustContains4(problem,interpretation,source,_); | ||
67039 | // 2. Circle in the containment hierarchy | ||
67040 | neg find mustTransitiveContains(source,target); | ||
67041 | } or { | ||
67042 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
67043 | } | ||
67044 | /** | ||
67045 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
67046 | */ | ||
67047 | private pattern mustInRelationtype_attribute_Function( | ||
67048 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67049 | source: DefinedElement, target:DefinedElement) | ||
67050 | { | ||
67051 | find interpretation(problem,interpretation); | ||
67052 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
67053 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
67054 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
67055 | BinaryElementRelationLink.param1(link,source); | ||
67056 | BinaryElementRelationLink.param2(link,target); | ||
67057 | } | ||
67058 | /** | ||
67059 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
67060 | */ | ||
67061 | private pattern mayInRelationtype_attribute_Function( | ||
67062 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67063 | source: DefinedElement, target:DefinedElement) | ||
67064 | { | ||
67065 | find interpretation(problem,interpretation); | ||
67066 | // The two endpoint of the link have to exist | ||
67067 | find mayExist(problem, interpretation, source); | ||
67068 | find mayExist(problem, interpretation, target); | ||
67069 | // Type consistency | ||
67070 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
67071 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
67072 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
67073 | // the upper bound of the multiplicity should be considered. | ||
67074 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
67075 | check(numberOfExistingReferences < 1); | ||
67076 | } or { | ||
67077 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
67078 | } | ||
67079 | |||
67080 | ////////// | ||
67081 | // 1.3 Relation Definition Indexers | ||
67082 | ////////// | ||
67083 | // Must, May and Current queries for pattern ca mcgill ecse dslreasoner standalone test fam queries terminatorAndInformation | ||
67084 | private pattern mustInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation( | ||
67085 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67086 | var_T, var_I) | ||
67087 | { | ||
67088 | find interpretation(problem,interpretation); | ||
67089 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
67090 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67091 | // T is exported | ||
67092 | // I is exported | ||
67093 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
67094 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,var_Out,var_virtual0); | ||
67095 | find mustInstanceOfInformationLink_class(problem,interpretation,var_virtual0); | ||
67096 | var_virtual0 == var_I; | ||
67097 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
67098 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,var_Out,var_virtual1); | ||
67099 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
67100 | var_virtual1 == var_T; | ||
67101 | }or{ | ||
67102 | find interpretation(problem,interpretation); | ||
67103 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
67104 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67105 | // T is exported | ||
67106 | // I is exported | ||
67107 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67108 | find mustInRelationto_reference_InformationLink(problem,interpretation,var_I,var_virtual0); | ||
67109 | find mustInstanceOfFunctionalInput_class(problem,interpretation,var_virtual0); | ||
67110 | var_virtual0 == var_In; | ||
67111 | find mustInstanceOfFunctionalInput_class(problem,interpretation,var_In); | ||
67112 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,var_In,var_virtual1); | ||
67113 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
67114 | var_virtual1 == var_T; | ||
67115 | } | ||
67116 | private pattern mayInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation( | ||
67117 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67118 | var_T, var_I) | ||
67119 | { | ||
67120 | find interpretation(problem,interpretation); | ||
67121 | find mayInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
67122 | find mayInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67123 | // T is exported | ||
67124 | // I is exported | ||
67125 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
67126 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,var_Out,var_virtual0); | ||
67127 | find mayInstanceOfInformationLink_class(problem,interpretation,var_virtual0); | ||
67128 | find mayEquivalent(problem, interpretation, var_virtual0, var_I); | ||
67129 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
67130 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,var_Out,var_virtual1); | ||
67131 | find mayInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
67132 | find mayEquivalent(problem, interpretation, var_virtual1, var_T); | ||
67133 | }or{ | ||
67134 | find interpretation(problem,interpretation); | ||
67135 | find mayInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
67136 | find mayInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67137 | // T is exported | ||
67138 | // I is exported | ||
67139 | find mayInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67140 | find mayInRelationto_reference_InformationLink(problem,interpretation,var_I,var_virtual0); | ||
67141 | find mayInstanceOfFunctionalInput_class(problem,interpretation,var_virtual0); | ||
67142 | find mayEquivalent(problem, interpretation, var_virtual0, var_In); | ||
67143 | find mayInstanceOfFunctionalInput_class(problem,interpretation,var_In); | ||
67144 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,var_In,var_virtual1); | ||
67145 | find mayInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
67146 | find mayEquivalent(problem, interpretation, var_virtual1, var_T); | ||
67147 | } | ||
67148 | private pattern currentInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation( | ||
67149 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67150 | var_T, var_I) | ||
67151 | { | ||
67152 | find interpretation(problem,interpretation); | ||
67153 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
67154 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67155 | // T is exported | ||
67156 | // I is exported | ||
67157 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
67158 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,var_Out,var_virtual0); | ||
67159 | find mustInstanceOfInformationLink_class(problem,interpretation,var_virtual0); | ||
67160 | var_virtual0 == var_I; | ||
67161 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
67162 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,var_Out,var_virtual1); | ||
67163 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
67164 | var_virtual1 == var_T; | ||
67165 | }or{ | ||
67166 | find interpretation(problem,interpretation); | ||
67167 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
67168 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67169 | // T is exported | ||
67170 | // I is exported | ||
67171 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
67172 | find mustInRelationto_reference_InformationLink(problem,interpretation,var_I,var_virtual0); | ||
67173 | find mustInstanceOfFunctionalInput_class(problem,interpretation,var_virtual0); | ||
67174 | var_virtual0 == var_In; | ||
67175 | find mustInstanceOfFunctionalInput_class(problem,interpretation,var_In); | ||
67176 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,var_In,var_virtual1); | ||
67177 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
67178 | var_virtual1 == var_T; | ||
67179 | } | ||
67180 | // Must, May and Current queries for pattern ca mcgill ecse dslreasoner standalone test fam queries rootElements | ||
67181 | private pattern mustInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_rootElements( | ||
67182 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67183 | var_Model, var_Root) | ||
67184 | { | ||
67185 | find interpretation(problem,interpretation); | ||
67186 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
67187 | find mustInstanceOfFunction_class(problem,interpretation,var_Root); | ||
67188 | // Model is exported | ||
67189 | // Root is exported | ||
67190 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
67191 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,var_Model,var_virtual0); | ||
67192 | find mustInstanceOfFunctionalElement_class(problem,interpretation,var_virtual0); | ||
67193 | var_virtual0 == var_Root; | ||
67194 | } | ||
67195 | private pattern mayInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_rootElements( | ||
67196 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67197 | var_Model, var_Root) | ||
67198 | { | ||
67199 | find interpretation(problem,interpretation); | ||
67200 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
67201 | find mayInstanceOfFunction_class(problem,interpretation,var_Root); | ||
67202 | // Model is exported | ||
67203 | // Root is exported | ||
67204 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
67205 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,var_Model,var_virtual0); | ||
67206 | find mayInstanceOfFunctionalElement_class(problem,interpretation,var_virtual0); | ||
67207 | find mayEquivalent(problem, interpretation, var_virtual0, var_Root); | ||
67208 | } | ||
67209 | private pattern currentInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_rootElements( | ||
67210 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67211 | var_Model, var_Root) | ||
67212 | { | ||
67213 | find interpretation(problem,interpretation); | ||
67214 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
67215 | find mustInstanceOfFunction_class(problem,interpretation,var_Root); | ||
67216 | // Model is exported | ||
67217 | // Root is exported | ||
67218 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
67219 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,var_Model,var_virtual0); | ||
67220 | find mustInstanceOfFunctionalElement_class(problem,interpretation,var_virtual0); | ||
67221 | var_virtual0 == var_Root; | ||
67222 | } | ||
67223 | // Must, May and Current queries for pattern ca mcgill ecse dslreasoner standalone test fam queries parent | ||
67224 | private pattern mustInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_parent( | ||
67225 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67226 | var_Func, var_Par) | ||
67227 | { | ||
67228 | find interpretation(problem,interpretation); | ||
67229 | find mustInstanceOfFunction_class(problem,interpretation,var_Func); | ||
67230 | find mustInstanceOfFunction_class(problem,interpretation,var_Par); | ||
67231 | // Func is exported | ||
67232 | // Par is exported | ||
67233 | find mustInstanceOfFunction_class(problem,interpretation,var_Func); | ||
67234 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,var_Func,var_virtual0); | ||
67235 | find mustInstanceOfFunction_class(problem,interpretation,var_virtual0); | ||
67236 | var_virtual0 == var_Par; | ||
67237 | } | ||
67238 | private pattern mayInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_parent( | ||
67239 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67240 | var_Func, var_Par) | ||
67241 | { | ||
67242 | find interpretation(problem,interpretation); | ||
67243 | find mayInstanceOfFunction_class(problem,interpretation,var_Func); | ||
67244 | find mayInstanceOfFunction_class(problem,interpretation,var_Par); | ||
67245 | // Func is exported | ||
67246 | // Par is exported | ||
67247 | find mayInstanceOfFunction_class(problem,interpretation,var_Func); | ||
67248 | find mayInRelationparent_reference_FunctionalElement(problem,interpretation,var_Func,var_virtual0); | ||
67249 | find mayInstanceOfFunction_class(problem,interpretation,var_virtual0); | ||
67250 | find mayEquivalent(problem, interpretation, var_virtual0, var_Par); | ||
67251 | } | ||
67252 | private pattern currentInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_parent( | ||
67253 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67254 | var_Func, var_Par) | ||
67255 | { | ||
67256 | find interpretation(problem,interpretation); | ||
67257 | find mustInstanceOfFunction_class(problem,interpretation,var_Func); | ||
67258 | find mustInstanceOfFunction_class(problem,interpretation,var_Par); | ||
67259 | // Func is exported | ||
67260 | // Par is exported | ||
67261 | find mustInstanceOfFunction_class(problem,interpretation,var_Func); | ||
67262 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,var_Func,var_virtual0); | ||
67263 | find mustInstanceOfFunction_class(problem,interpretation,var_virtual0); | ||
67264 | var_virtual0 == var_Par; | ||
67265 | } | ||
67266 | |||
67267 | ////////// | ||
67268 | // 1.4 Containment Indexer | ||
67269 | ////////// | ||
67270 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
67271 | find mustContains4(_,_,source,target); | ||
67272 | } | ||
67273 | |||
67274 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
67275 | source: DefinedElement, target: DefinedElement) | ||
67276 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
67277 | |||
67278 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
67279 | |||
67280 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
67281 | |||
67282 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
67283 | |||
67284 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
67285 | |||
67286 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
67287 | |||
67288 | private pattern mustTransitiveContains(source,target) { | ||
67289 | find mustContains2+(source,target); | ||
67290 | } | ||
67291 | |||
67292 | ////////// | ||
67293 | // 2. Invalidation Indexers | ||
67294 | ////////// | ||
67295 | // 2.1 Invalidated by WF Queries | ||
67296 | ////////// | ||
67297 | pattern invalidatedBy_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation(problem:LogicProblem, interpretation:PartialInterpretation, | ||
67298 | var_T, var_I) | ||
67299 | { | ||
67300 | find mustInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation(problem,interpretation,var_T,var_I); | ||
67301 | } | ||
67302 | |||
67303 | ////////// | ||
67304 | // 3. Unfinishedness Indexers | ||
67305 | ////////// | ||
67306 | // 3.1 Unfinishedness Measured by Multiplicity | ||
67307 | ////////// | ||
67308 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
67309 | find interpretation(problem,interpretation); | ||
67310 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
67311 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
67312 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
67313 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
67314 | check(numberOfExistingReferences < 1); | ||
67315 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
67316 | } | ||
67317 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
67318 | find interpretation(problem,interpretation); | ||
67319 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
67320 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
67321 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
67322 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
67323 | check(numberOfExistingReferences < 1); | ||
67324 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
67325 | } | ||
67326 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
67327 | find interpretation(problem,interpretation); | ||
67328 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
67329 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
67330 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
67331 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
67332 | check(numberOfExistingReferences < 1); | ||
67333 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
67334 | } | ||
67335 | |||
67336 | ////////// | ||
67337 | // 3.2 Unfinishedness Measured by WF Queries | ||
67338 | ////////// | ||
67339 | pattern unfinishedBy_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation(problem:LogicProblem, interpretation:PartialInterpretation, | ||
67340 | var_T, var_I) | ||
67341 | { | ||
67342 | find currentInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation(problem,interpretation,var_T,var_I); | ||
67343 | } | ||
67344 | |||
67345 | ////////// | ||
67346 | // 4. Refinement Indexers | ||
67347 | ////////// | ||
67348 | // 4.1 Object constructors | ||
67349 | ////////// | ||
67350 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
67351 | { | ||
67352 | find interpretation(problem,interpretation); | ||
67353 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
67354 | find mustExist(problem, interpretation, root); | ||
67355 | }or{ | ||
67356 | find interpretation(problem,interpretation); | ||
67357 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
67358 | find mustExist(problem, interpretation, root); | ||
67359 | }or{ | ||
67360 | find interpretation(problem,interpretation); | ||
67361 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
67362 | find mustExist(problem, interpretation, root); | ||
67363 | }or{ | ||
67364 | find interpretation(problem,interpretation); | ||
67365 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
67366 | find mustExist(problem, interpretation, root); | ||
67367 | }or{ | ||
67368 | find interpretation(problem,interpretation); | ||
67369 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
67370 | find mustExist(problem, interpretation, root); | ||
67371 | }or{ | ||
67372 | find interpretation(problem,interpretation); | ||
67373 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
67374 | find mustExist(problem, interpretation, root); | ||
67375 | }or{ | ||
67376 | find interpretation(problem,interpretation); | ||
67377 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
67378 | find mustExist(problem, interpretation, root); | ||
67379 | }or{ | ||
67380 | find interpretation(problem,interpretation); | ||
67381 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
67382 | find mustExist(problem, interpretation, root); | ||
67383 | }or{ | ||
67384 | find interpretation(problem,interpretation); | ||
67385 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
67386 | find mustExist(problem, interpretation, root); | ||
67387 | }or{ | ||
67388 | find interpretation(problem,interpretation); | ||
67389 | find mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem,interpretation,root); | ||
67390 | find mustExist(problem, interpretation, root); | ||
67391 | }or{ | ||
67392 | find interpretation(problem,interpretation); | ||
67393 | find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,root); | ||
67394 | find mustExist(problem, interpretation, root); | ||
67395 | } | ||
67396 | pattern createObject_FunctionalArchitectureModel_class_UndefinedPart( | ||
67397 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67398 | typeInterpretation:PartialComplexTypeInterpretation) | ||
67399 | { | ||
67400 | find interpretation(problem,interpretation); | ||
67401 | neg find hasElementInContainment(problem,interpretation); | ||
67402 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67403 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class UndefinedPart"); | ||
67404 | find mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,newObject); | ||
67405 | find mayExist(problem, interpretation, newObject); | ||
67406 | neg find mustExist(problem, interpretation, newObject); | ||
67407 | } | ||
67408 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
67409 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67410 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
67411 | container:DefinedElement) | ||
67412 | { | ||
67413 | find interpretation(problem,interpretation); | ||
67414 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67415 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
67416 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
67417 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
67418 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
67419 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
67420 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
67421 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
67422 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
67423 | find mustExist(problem, interpretation, container); | ||
67424 | neg find mustExist(problem, interpretation, newObject); | ||
67425 | } | ||
67426 | pattern createObject_FunctionalInput_class( | ||
67427 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67428 | typeInterpretation:PartialComplexTypeInterpretation) | ||
67429 | { | ||
67430 | find interpretation(problem,interpretation); | ||
67431 | neg find hasElementInContainment(problem,interpretation); | ||
67432 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67433 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
67434 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
67435 | find mayExist(problem, interpretation, newObject); | ||
67436 | neg find mustExist(problem, interpretation, newObject); | ||
67437 | } | ||
67438 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
67439 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67440 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
67441 | container:DefinedElement) | ||
67442 | { | ||
67443 | find interpretation(problem,interpretation); | ||
67444 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67445 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
67446 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
67447 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
67448 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
67449 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
67450 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
67451 | find mustExist(problem, interpretation, container); | ||
67452 | neg find mustExist(problem, interpretation, newObject); | ||
67453 | } | ||
67454 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
67455 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67456 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
67457 | container:DefinedElement) | ||
67458 | { | ||
67459 | find interpretation(problem,interpretation); | ||
67460 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67461 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
67462 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
67463 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
67464 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
67465 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
67466 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
67467 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
67468 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
67469 | find mustExist(problem, interpretation, container); | ||
67470 | neg find mustExist(problem, interpretation, newObject); | ||
67471 | } | ||
67472 | pattern createObject_Function_class( | ||
67473 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67474 | typeInterpretation:PartialComplexTypeInterpretation) | ||
67475 | { | ||
67476 | find interpretation(problem,interpretation); | ||
67477 | neg find hasElementInContainment(problem,interpretation); | ||
67478 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67479 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
67480 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
67481 | find mayExist(problem, interpretation, newObject); | ||
67482 | neg find mustExist(problem, interpretation, newObject); | ||
67483 | } | ||
67484 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
67485 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67486 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
67487 | container:DefinedElement) | ||
67488 | { | ||
67489 | find interpretation(problem,interpretation); | ||
67490 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67491 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
67492 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
67493 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
67494 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
67495 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
67496 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
67497 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
67498 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
67499 | find mustExist(problem, interpretation, container); | ||
67500 | neg find mustExist(problem, interpretation, newObject); | ||
67501 | } | ||
67502 | pattern createObject_InformationLink_class( | ||
67503 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67504 | typeInterpretation:PartialComplexTypeInterpretation) | ||
67505 | { | ||
67506 | find interpretation(problem,interpretation); | ||
67507 | neg find hasElementInContainment(problem,interpretation); | ||
67508 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67509 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
67510 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
67511 | find mayExist(problem, interpretation, newObject); | ||
67512 | neg find mustExist(problem, interpretation, newObject); | ||
67513 | } | ||
67514 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
67515 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67516 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
67517 | container:DefinedElement) | ||
67518 | { | ||
67519 | find interpretation(problem,interpretation); | ||
67520 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67521 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
67522 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
67523 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
67524 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
67525 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
67526 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
67527 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
67528 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
67529 | find mustExist(problem, interpretation, container); | ||
67530 | neg find mustExist(problem, interpretation, newObject); | ||
67531 | } | ||
67532 | pattern createObject_FunctionalInterface_class( | ||
67533 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67534 | typeInterpretation:PartialComplexTypeInterpretation) | ||
67535 | { | ||
67536 | find interpretation(problem,interpretation); | ||
67537 | neg find hasElementInContainment(problem,interpretation); | ||
67538 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67539 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
67540 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
67541 | find mayExist(problem, interpretation, newObject); | ||
67542 | neg find mustExist(problem, interpretation, newObject); | ||
67543 | } | ||
67544 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
67545 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67546 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
67547 | container:DefinedElement) | ||
67548 | { | ||
67549 | find interpretation(problem,interpretation); | ||
67550 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67551 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
67552 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
67553 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
67554 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
67555 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
67556 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
67557 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
67558 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
67559 | find mustExist(problem, interpretation, container); | ||
67560 | neg find mustExist(problem, interpretation, newObject); | ||
67561 | } | ||
67562 | pattern createObject_FAMTerminator_class( | ||
67563 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67564 | typeInterpretation:PartialComplexTypeInterpretation) | ||
67565 | { | ||
67566 | find interpretation(problem,interpretation); | ||
67567 | neg find hasElementInContainment(problem,interpretation); | ||
67568 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67569 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
67570 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
67571 | find mayExist(problem, interpretation, newObject); | ||
67572 | neg find mustExist(problem, interpretation, newObject); | ||
67573 | } | ||
67574 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
67575 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67576 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
67577 | container:DefinedElement) | ||
67578 | { | ||
67579 | find interpretation(problem,interpretation); | ||
67580 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67581 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
67582 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
67583 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
67584 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
67585 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
67586 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
67587 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
67588 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
67589 | find mustExist(problem, interpretation, container); | ||
67590 | neg find mustExist(problem, interpretation, newObject); | ||
67591 | } | ||
67592 | pattern createObject_FunctionalOutput_class( | ||
67593 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67594 | typeInterpretation:PartialComplexTypeInterpretation) | ||
67595 | { | ||
67596 | find interpretation(problem,interpretation); | ||
67597 | neg find hasElementInContainment(problem,interpretation); | ||
67598 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67599 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
67600 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
67601 | find mayExist(problem, interpretation, newObject); | ||
67602 | neg find mustExist(problem, interpretation, newObject); | ||
67603 | } | ||
67604 | |||
67605 | ////////// | ||
67606 | // 4.2 Type refinement | ||
67607 | ////////// | ||
67608 | pattern refineTypeTo_FunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
67609 | find interpretation(problem,interpretation); | ||
67610 | PartialInterpretation.newElements(interpretation,element); | ||
67611 | find mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
67612 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67613 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
67614 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67615 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67616 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67617 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67618 | } | ||
67619 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
67620 | find interpretation(problem,interpretation); | ||
67621 | PartialInterpretation.newElements(interpretation,element); | ||
67622 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
67623 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
67624 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67625 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67626 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67627 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
67628 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67629 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67630 | } | ||
67631 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
67632 | find interpretation(problem,interpretation); | ||
67633 | PartialInterpretation.newElements(interpretation,element); | ||
67634 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
67635 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67636 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
67637 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67638 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67639 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67640 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67641 | } | ||
67642 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
67643 | find interpretation(problem,interpretation); | ||
67644 | PartialInterpretation.newElements(interpretation,element); | ||
67645 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
67646 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67647 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67648 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67649 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67650 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67651 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67652 | } | ||
67653 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
67654 | find interpretation(problem,interpretation); | ||
67655 | PartialInterpretation.newElements(interpretation,element); | ||
67656 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67657 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67658 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67659 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67660 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67661 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67662 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67663 | } | ||
67664 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
67665 | find interpretation(problem,interpretation); | ||
67666 | PartialInterpretation.newElements(interpretation,element); | ||
67667 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67668 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67669 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67670 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67671 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67672 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67673 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67674 | } | ||
67675 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
67676 | find interpretation(problem,interpretation); | ||
67677 | PartialInterpretation.newElements(interpretation,element); | ||
67678 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
67679 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
67680 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67681 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67682 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67683 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67684 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
67685 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67686 | } | ||
67687 | |||
67688 | ////////// | ||
67689 | // 4.3 Relation refinement | ||
67690 | ////////// | ||
67691 | pattern refineRelation_model_reference_FunctionalElement( | ||
67692 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67693 | relationIterpretation:PartialRelationInterpretation, | ||
67694 | from: DefinedElement, to: DefinedElement) | ||
67695 | { | ||
67696 | find interpretation(problem,interpretation); | ||
67697 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
67698 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
67699 | find mustExist(problem, interpretation, from); | ||
67700 | find mustExist(problem, interpretation, to); | ||
67701 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
67702 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
67703 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
67704 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
67705 | } | ||
67706 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
67707 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67708 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
67709 | from: DefinedElement, to: DefinedElement) | ||
67710 | { | ||
67711 | find interpretation(problem,interpretation); | ||
67712 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
67713 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
67714 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
67715 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
67716 | find mustExist(problem, interpretation, from); | ||
67717 | find mustExist(problem, interpretation, to); | ||
67718 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
67719 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
67720 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
67721 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
67722 | } | ||
67723 | pattern refineRelation_type_attribute_Function( | ||
67724 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
67725 | relationIterpretation:PartialRelationInterpretation, | ||
67726 | from: DefinedElement, to: DefinedElement) | ||
67727 | { | ||
67728 | find interpretation(problem,interpretation); | ||
67729 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
67730 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
67731 | find mustExist(problem, interpretation, from); | ||
67732 | find mustExist(problem, interpretation, to); | ||
67733 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
67734 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
67735 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
67736 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
67737 | } | ||
67738 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
67739 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
67740 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
67741 | |||
67742 | ////////// | ||
67743 | // 0. Util | ||
67744 | ////////// | ||
67745 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
67746 | PartialInterpretation.problem(interpretation,problem); | ||
67747 | } | ||
67748 | |||
67749 | ///////////////////////// | ||
67750 | // 0.1 Existence | ||
67751 | ///////////////////////// | ||
67752 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
67753 | find interpretation(problem,interpretation); | ||
67754 | LogicProblem.elements(problem,element); | ||
67755 | } or { | ||
67756 | find interpretation(problem,interpretation); | ||
67757 | PartialInterpretation.newElements(interpretation,element); | ||
67758 | } | ||
67759 | |||
67760 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
67761 | find mustExist(problem,interpretation,element); | ||
67762 | } or { | ||
67763 | find interpretation(problem,interpretation); | ||
67764 | neg find elementCloseWorld(element); | ||
67765 | PartialInterpretation.openWorldElements(interpretation,element); | ||
67766 | } | ||
67767 | |||
67768 | private pattern elementCloseWorld(element:DefinedElement) { | ||
67769 | PartialInterpretation.openWorldElements(i,element); | ||
67770 | PartialInterpretation.maxNewElements(i,0); | ||
67771 | } or { | ||
67772 | Scope.targetTypeInterpretation(scope,interpretation); | ||
67773 | PartialTypeInterpratation.elements(interpretation,element); | ||
67774 | Scope.maxNewElements(scope,0); | ||
67775 | } | ||
67776 | |||
67777 | //////////////////////// | ||
67778 | // 0.2 Equivalence | ||
67779 | //////////////////////// | ||
67780 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
67781 | find mayExist(problem,interpretation,a); | ||
67782 | find mayExist(problem,interpretation,b); | ||
67783 | a == b; | ||
67784 | } | ||
67785 | |||
67786 | //////////////////////// | ||
67787 | // 0.3 Required Patterns by TypeIndexer | ||
67788 | //////////////////////// | ||
67789 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
67790 | find interpretation(problem,interpretation); | ||
67791 | LogicProblem.types(problem,type); | ||
67792 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
67793 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
67794 | } | ||
67795 | |||
67796 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
67797 | find interpretation(problem,interpretation); | ||
67798 | LogicProblem.types(problem,type); | ||
67799 | TypeDefinition.elements(type,element); | ||
67800 | } or { | ||
67801 | find interpretation(problem,interpretation); | ||
67802 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
67803 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
67804 | } | ||
67805 | |||
67806 | private pattern isPrimitive(element: PrimitiveElement) { | ||
67807 | PrimitiveElement(element); | ||
67808 | } | ||
67809 | |||
67810 | ////////// | ||
67811 | // 1. Problem-Specific Base Indexers | ||
67812 | ////////// | ||
67813 | // 1.1 Type Indexers | ||
67814 | ////////// | ||
67815 | // 1.1.1 primitive Type Indexers | ||
67816 | ////////// | ||
67817 | |||
67818 | ////////// | ||
67819 | // 1.1.2 domain-specific Type Indexers | ||
67820 | ////////// | ||
67821 | /** | ||
67822 | * An element must be an instance of type "FunctionalElement class". | ||
67823 | */ | ||
67824 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
67825 | Type.name(type,"FunctionalElement class"); | ||
67826 | find directInstanceOf(problem,interpretation,element,type); | ||
67827 | } | ||
67828 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
67829 | find interpretation(problem,interpretation); | ||
67830 | PartialInterpretation.scopes(interpretation,scope); | ||
67831 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
67832 | Scope.maxNewElements(scope,0); | ||
67833 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
67834 | Type.name(type,"FunctionalElement class"); | ||
67835 | } | ||
67836 | |||
67837 | /** | ||
67838 | * An element may be an instance of type "FunctionalElement class". | ||
67839 | */ | ||
67840 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
67841 | { | ||
67842 | find interpretation(problem,interpretation); | ||
67843 | PartialInterpretation.newElements(interpretation,element); | ||
67844 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67845 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
67846 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67847 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67848 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67849 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67850 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
67851 | neg find isPrimitive(element); | ||
67852 | } or { | ||
67853 | find interpretation(problem,interpretation); | ||
67854 | PartialInterpretation.openWorldElements(interpretation,element); | ||
67855 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67856 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
67857 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67858 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67859 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67860 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67861 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
67862 | neg find isPrimitive(element); | ||
67863 | } or | ||
67864 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
67865 | /** | ||
67866 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
67867 | */ | ||
67868 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
67869 | Type.name(type,"FunctionalArchitectureModel class"); | ||
67870 | find directInstanceOf(problem,interpretation,element,type); | ||
67871 | } | ||
67872 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
67873 | find interpretation(problem,interpretation); | ||
67874 | PartialInterpretation.scopes(interpretation,scope); | ||
67875 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
67876 | Scope.maxNewElements(scope,0); | ||
67877 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
67878 | Type.name(type,"FunctionalArchitectureModel class"); | ||
67879 | } | ||
67880 | |||
67881 | /** | ||
67882 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
67883 | */ | ||
67884 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
67885 | { | ||
67886 | find interpretation(problem,interpretation); | ||
67887 | PartialInterpretation.newElements(interpretation,element); | ||
67888 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67889 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67890 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
67891 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67892 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67893 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67894 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
67895 | neg find isPrimitive(element); | ||
67896 | } or { | ||
67897 | find interpretation(problem,interpretation); | ||
67898 | PartialInterpretation.openWorldElements(interpretation,element); | ||
67899 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67900 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67901 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
67902 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67903 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67904 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67905 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
67906 | neg find isPrimitive(element); | ||
67907 | } or | ||
67908 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
67909 | /** | ||
67910 | * An element must be an instance of type "Function class". | ||
67911 | */ | ||
67912 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
67913 | Type.name(type,"Function class"); | ||
67914 | find directInstanceOf(problem,interpretation,element,type); | ||
67915 | } | ||
67916 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
67917 | find interpretation(problem,interpretation); | ||
67918 | PartialInterpretation.scopes(interpretation,scope); | ||
67919 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
67920 | Scope.maxNewElements(scope,0); | ||
67921 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
67922 | Type.name(type,"Function class"); | ||
67923 | } | ||
67924 | |||
67925 | /** | ||
67926 | * An element may be an instance of type "Function class". | ||
67927 | */ | ||
67928 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
67929 | { | ||
67930 | find interpretation(problem,interpretation); | ||
67931 | PartialInterpretation.newElements(interpretation,element); | ||
67932 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67933 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67934 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67935 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67936 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67937 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
67938 | neg find isPrimitive(element); | ||
67939 | } or { | ||
67940 | find interpretation(problem,interpretation); | ||
67941 | PartialInterpretation.openWorldElements(interpretation,element); | ||
67942 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67943 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
67944 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67945 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67946 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67947 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
67948 | neg find isPrimitive(element); | ||
67949 | } or | ||
67950 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
67951 | /** | ||
67952 | * An element must be an instance of type "FAMTerminator class". | ||
67953 | */ | ||
67954 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
67955 | Type.name(type,"FAMTerminator class"); | ||
67956 | find directInstanceOf(problem,interpretation,element,type); | ||
67957 | } | ||
67958 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
67959 | find interpretation(problem,interpretation); | ||
67960 | PartialInterpretation.scopes(interpretation,scope); | ||
67961 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
67962 | Scope.maxNewElements(scope,0); | ||
67963 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
67964 | Type.name(type,"FAMTerminator class"); | ||
67965 | } | ||
67966 | |||
67967 | /** | ||
67968 | * An element may be an instance of type "FAMTerminator class". | ||
67969 | */ | ||
67970 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
67971 | { | ||
67972 | find interpretation(problem,interpretation); | ||
67973 | PartialInterpretation.newElements(interpretation,element); | ||
67974 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67975 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67976 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67977 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67978 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67979 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
67980 | neg find isPrimitive(element); | ||
67981 | } or { | ||
67982 | find interpretation(problem,interpretation); | ||
67983 | PartialInterpretation.openWorldElements(interpretation,element); | ||
67984 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
67985 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
67986 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
67987 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
67988 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
67989 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
67990 | neg find isPrimitive(element); | ||
67991 | } or | ||
67992 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
67993 | /** | ||
67994 | * An element must be an instance of type "InformationLink class". | ||
67995 | */ | ||
67996 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
67997 | Type.name(type,"InformationLink class"); | ||
67998 | find directInstanceOf(problem,interpretation,element,type); | ||
67999 | } | ||
68000 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
68001 | find interpretation(problem,interpretation); | ||
68002 | PartialInterpretation.scopes(interpretation,scope); | ||
68003 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
68004 | Scope.maxNewElements(scope,0); | ||
68005 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
68006 | Type.name(type,"InformationLink class"); | ||
68007 | } | ||
68008 | |||
68009 | /** | ||
68010 | * An element may be an instance of type "InformationLink class". | ||
68011 | */ | ||
68012 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
68013 | { | ||
68014 | find interpretation(problem,interpretation); | ||
68015 | PartialInterpretation.newElements(interpretation,element); | ||
68016 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68017 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68018 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68019 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
68020 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68021 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
68022 | neg find isPrimitive(element); | ||
68023 | } or { | ||
68024 | find interpretation(problem,interpretation); | ||
68025 | PartialInterpretation.openWorldElements(interpretation,element); | ||
68026 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68027 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68028 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68029 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
68030 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68031 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
68032 | neg find isPrimitive(element); | ||
68033 | } or | ||
68034 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
68035 | /** | ||
68036 | * An element must be an instance of type "FunctionalInterface class". | ||
68037 | */ | ||
68038 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
68039 | Type.name(type,"FunctionalInterface class"); | ||
68040 | find directInstanceOf(problem,interpretation,element,type); | ||
68041 | } | ||
68042 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
68043 | find interpretation(problem,interpretation); | ||
68044 | PartialInterpretation.scopes(interpretation,scope); | ||
68045 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
68046 | Scope.maxNewElements(scope,0); | ||
68047 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
68048 | Type.name(type,"FunctionalInterface class"); | ||
68049 | } | ||
68050 | |||
68051 | /** | ||
68052 | * An element may be an instance of type "FunctionalInterface class". | ||
68053 | */ | ||
68054 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
68055 | { | ||
68056 | find interpretation(problem,interpretation); | ||
68057 | PartialInterpretation.newElements(interpretation,element); | ||
68058 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68059 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68060 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
68061 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68062 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68063 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
68064 | neg find isPrimitive(element); | ||
68065 | } or { | ||
68066 | find interpretation(problem,interpretation); | ||
68067 | PartialInterpretation.openWorldElements(interpretation,element); | ||
68068 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68069 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68070 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
68071 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68072 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68073 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
68074 | neg find isPrimitive(element); | ||
68075 | } or | ||
68076 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
68077 | /** | ||
68078 | * An element must be an instance of type "FunctionalInput class". | ||
68079 | */ | ||
68080 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
68081 | Type.name(type,"FunctionalInput class"); | ||
68082 | find directInstanceOf(problem,interpretation,element,type); | ||
68083 | } | ||
68084 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
68085 | find interpretation(problem,interpretation); | ||
68086 | PartialInterpretation.scopes(interpretation,scope); | ||
68087 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
68088 | Scope.maxNewElements(scope,0); | ||
68089 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
68090 | Type.name(type,"FunctionalInput class"); | ||
68091 | } | ||
68092 | |||
68093 | /** | ||
68094 | * An element may be an instance of type "FunctionalInput class". | ||
68095 | */ | ||
68096 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
68097 | { | ||
68098 | find interpretation(problem,interpretation); | ||
68099 | PartialInterpretation.newElements(interpretation,element); | ||
68100 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68101 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68102 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
68103 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68104 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68105 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68106 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
68107 | neg find isPrimitive(element); | ||
68108 | } or { | ||
68109 | find interpretation(problem,interpretation); | ||
68110 | PartialInterpretation.openWorldElements(interpretation,element); | ||
68111 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68112 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68113 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
68114 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68115 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68116 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68117 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
68118 | neg find isPrimitive(element); | ||
68119 | } or | ||
68120 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
68121 | /** | ||
68122 | * An element must be an instance of type "FunctionalOutput class". | ||
68123 | */ | ||
68124 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
68125 | Type.name(type,"FunctionalOutput class"); | ||
68126 | find directInstanceOf(problem,interpretation,element,type); | ||
68127 | } | ||
68128 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
68129 | find interpretation(problem,interpretation); | ||
68130 | PartialInterpretation.scopes(interpretation,scope); | ||
68131 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
68132 | Scope.maxNewElements(scope,0); | ||
68133 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
68134 | Type.name(type,"FunctionalOutput class"); | ||
68135 | } | ||
68136 | |||
68137 | /** | ||
68138 | * An element may be an instance of type "FunctionalOutput class". | ||
68139 | */ | ||
68140 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
68141 | { | ||
68142 | find interpretation(problem,interpretation); | ||
68143 | PartialInterpretation.newElements(interpretation,element); | ||
68144 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68145 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68146 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68147 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
68148 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68149 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68150 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
68151 | neg find isPrimitive(element); | ||
68152 | } or { | ||
68153 | find interpretation(problem,interpretation); | ||
68154 | PartialInterpretation.openWorldElements(interpretation,element); | ||
68155 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68156 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68157 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68158 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
68159 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68160 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68161 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
68162 | neg find isPrimitive(element); | ||
68163 | } or | ||
68164 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
68165 | /** | ||
68166 | * An element must be an instance of type "FunctionalData class". | ||
68167 | */ | ||
68168 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
68169 | Type.name(type,"FunctionalData class"); | ||
68170 | find directInstanceOf(problem,interpretation,element,type); | ||
68171 | } | ||
68172 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
68173 | find interpretation(problem,interpretation); | ||
68174 | PartialInterpretation.scopes(interpretation,scope); | ||
68175 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
68176 | Scope.maxNewElements(scope,0); | ||
68177 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
68178 | Type.name(type,"FunctionalData class"); | ||
68179 | } | ||
68180 | |||
68181 | /** | ||
68182 | * An element may be an instance of type "FunctionalData class". | ||
68183 | */ | ||
68184 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
68185 | { | ||
68186 | find interpretation(problem,interpretation); | ||
68187 | PartialInterpretation.newElements(interpretation,element); | ||
68188 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68189 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68190 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
68191 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68192 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68193 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
68194 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68195 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
68196 | neg find isPrimitive(element); | ||
68197 | } or { | ||
68198 | find interpretation(problem,interpretation); | ||
68199 | PartialInterpretation.openWorldElements(interpretation,element); | ||
68200 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68201 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68202 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
68203 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68204 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68205 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
68206 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
68207 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
68208 | neg find isPrimitive(element); | ||
68209 | } or | ||
68210 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
68211 | /** | ||
68212 | * An element must be an instance of type "FunctionType enum". | ||
68213 | */ | ||
68214 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
68215 | Type.name(type,"FunctionType enum"); | ||
68216 | find directInstanceOf(problem,interpretation,element,type); | ||
68217 | } | ||
68218 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
68219 | find interpretation(problem,interpretation); | ||
68220 | PartialInterpretation.scopes(interpretation,scope); | ||
68221 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
68222 | Scope.maxNewElements(scope,0); | ||
68223 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
68224 | Type.name(type,"FunctionType enum"); | ||
68225 | } | ||
68226 | |||
68227 | /** | ||
68228 | * An element may be an instance of type "FunctionType enum". | ||
68229 | */ | ||
68230 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
68231 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
68232 | /** | ||
68233 | * An element must be an instance of type "FunctionalArchitectureModel class DefinedPart". | ||
68234 | */ | ||
68235 | private pattern mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
68236 | Type.name(type,"FunctionalArchitectureModel class DefinedPart"); | ||
68237 | find directInstanceOf(problem,interpretation,element,type); | ||
68238 | } | ||
68239 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
68240 | find interpretation(problem,interpretation); | ||
68241 | PartialInterpretation.scopes(interpretation,scope); | ||
68242 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
68243 | Scope.maxNewElements(scope,0); | ||
68244 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
68245 | Type.name(type,"FunctionalArchitectureModel class DefinedPart"); | ||
68246 | } | ||
68247 | |||
68248 | /** | ||
68249 | * An element may be an instance of type "FunctionalArchitectureModel class DefinedPart". | ||
68250 | */ | ||
68251 | private pattern mayInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
68252 | { find mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem,interpretation,element); } | ||
68253 | /** | ||
68254 | * An element must be an instance of type "FunctionalArchitectureModel class UndefinedPart". | ||
68255 | */ | ||
68256 | private pattern mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
68257 | Type.name(type,"FunctionalArchitectureModel class UndefinedPart"); | ||
68258 | find directInstanceOf(problem,interpretation,element,type); | ||
68259 | } | ||
68260 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
68261 | find interpretation(problem,interpretation); | ||
68262 | PartialInterpretation.scopes(interpretation,scope); | ||
68263 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
68264 | Scope.maxNewElements(scope,0); | ||
68265 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
68266 | Type.name(type,"FunctionalArchitectureModel class UndefinedPart"); | ||
68267 | } | ||
68268 | |||
68269 | /** | ||
68270 | * An element may be an instance of type "FunctionalArchitectureModel class UndefinedPart". | ||
68271 | */ | ||
68272 | private pattern mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
68273 | { | ||
68274 | find interpretation(problem,interpretation); | ||
68275 | PartialInterpretation.newElements(interpretation,element); | ||
68276 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68277 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68278 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68279 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
68280 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68281 | neg find scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem, interpretation); | ||
68282 | neg find isPrimitive(element); | ||
68283 | } or { | ||
68284 | find interpretation(problem,interpretation); | ||
68285 | PartialInterpretation.openWorldElements(interpretation,element); | ||
68286 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
68287 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
68288 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
68289 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
68290 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
68291 | neg find scopeDisallowsNewFunctionalArchitectureModel_class_UndefinedPart(problem, interpretation); | ||
68292 | neg find isPrimitive(element); | ||
68293 | } or | ||
68294 | { find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); } | ||
68295 | |||
68296 | ////////// | ||
68297 | // 1.2 Relation Declaration Indexers | ||
68298 | ////////// | ||
68299 | /** | ||
68300 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
68301 | */ | ||
68302 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
68303 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68304 | source: DefinedElement, target:DefinedElement) | ||
68305 | { | ||
68306 | find interpretation(problem,interpretation); | ||
68307 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68308 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
68309 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68310 | BinaryElementRelationLink.param1(link,source); | ||
68311 | BinaryElementRelationLink.param2(link,target); | ||
68312 | } | ||
68313 | /** | ||
68314 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
68315 | */ | ||
68316 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
68317 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68318 | source: DefinedElement, target:DefinedElement) | ||
68319 | { | ||
68320 | find interpretation(problem,interpretation); | ||
68321 | // The two endpoint of the link have to exist | ||
68322 | find mayExist(problem, interpretation, source); | ||
68323 | find mayExist(problem, interpretation, target); | ||
68324 | // Type consistency | ||
68325 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
68326 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
68327 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68328 | // the upper bound of the multiplicity should be considered. | ||
68329 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
68330 | check(numberOfExistingReferences < 1); | ||
68331 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
68332 | // the upper bound of the opposite reference multiplicity should be considered. | ||
68333 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
68334 | check(numberOfExistingOppositeReferences < 1); | ||
68335 | // The reference is containment, then a new reference cannot be create if: | ||
68336 | // 1. Multiple parents | ||
68337 | neg find mustContains4(problem,interpretation,_,target); | ||
68338 | // 2. Circle in the containment hierarchy | ||
68339 | neg find mustTransitiveContains(source,target); | ||
68340 | } or { | ||
68341 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
68342 | } | ||
68343 | /** | ||
68344 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
68345 | */ | ||
68346 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
68347 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68348 | source: DefinedElement, target:DefinedElement) | ||
68349 | { | ||
68350 | find interpretation(problem,interpretation); | ||
68351 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68352 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
68353 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68354 | BinaryElementRelationLink.param1(link,source); | ||
68355 | BinaryElementRelationLink.param2(link,target); | ||
68356 | } | ||
68357 | /** | ||
68358 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
68359 | */ | ||
68360 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
68361 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68362 | source: DefinedElement, target:DefinedElement) | ||
68363 | { | ||
68364 | find interpretation(problem,interpretation); | ||
68365 | // The two endpoint of the link have to exist | ||
68366 | find mayExist(problem, interpretation, source); | ||
68367 | find mayExist(problem, interpretation, target); | ||
68368 | // Type consistency | ||
68369 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
68370 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
68371 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68372 | // the upper bound of the multiplicity should be considered. | ||
68373 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
68374 | check(numberOfExistingReferences < 1); | ||
68375 | } or { | ||
68376 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
68377 | } | ||
68378 | /** | ||
68379 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
68380 | */ | ||
68381 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
68382 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68383 | source: DefinedElement, target:DefinedElement) | ||
68384 | { | ||
68385 | find interpretation(problem,interpretation); | ||
68386 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68387 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
68388 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68389 | BinaryElementRelationLink.param1(link,source); | ||
68390 | BinaryElementRelationLink.param2(link,target); | ||
68391 | } | ||
68392 | /** | ||
68393 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
68394 | */ | ||
68395 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
68396 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68397 | source: DefinedElement, target:DefinedElement) | ||
68398 | { | ||
68399 | find interpretation(problem,interpretation); | ||
68400 | // The two endpoint of the link have to exist | ||
68401 | find mayExist(problem, interpretation, source); | ||
68402 | find mayExist(problem, interpretation, target); | ||
68403 | // Type consistency | ||
68404 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
68405 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
68406 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68407 | // the upper bound of the multiplicity should be considered. | ||
68408 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
68409 | check(numberOfExistingReferences < 1); | ||
68410 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
68411 | // 1. Multiple parents | ||
68412 | neg find mustContains4(problem,interpretation,source,_); | ||
68413 | // 2. Circle in the containment hierarchy | ||
68414 | neg find mustTransitiveContains(source,target); | ||
68415 | } or { | ||
68416 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
68417 | } | ||
68418 | /** | ||
68419 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
68420 | */ | ||
68421 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
68422 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68423 | source: DefinedElement, target:DefinedElement) | ||
68424 | { | ||
68425 | find interpretation(problem,interpretation); | ||
68426 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68427 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
68428 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68429 | BinaryElementRelationLink.param1(link,source); | ||
68430 | BinaryElementRelationLink.param2(link,target); | ||
68431 | } | ||
68432 | /** | ||
68433 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
68434 | */ | ||
68435 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
68436 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68437 | source: DefinedElement, target:DefinedElement) | ||
68438 | { | ||
68439 | find interpretation(problem,interpretation); | ||
68440 | // The two endpoint of the link have to exist | ||
68441 | find mayExist(problem, interpretation, source); | ||
68442 | find mayExist(problem, interpretation, target); | ||
68443 | // Type consistency | ||
68444 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
68445 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
68446 | // The reference is containment, then a new reference cannot be create if: | ||
68447 | // 1. Multiple parents | ||
68448 | neg find mustContains4(problem,interpretation,_,target); | ||
68449 | // 2. Circle in the containment hierarchy | ||
68450 | neg find mustTransitiveContains(source,target); | ||
68451 | } or { | ||
68452 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
68453 | } | ||
68454 | /** | ||
68455 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
68456 | */ | ||
68457 | private pattern mustInRelationsubElements_reference_Function( | ||
68458 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68459 | source: DefinedElement, target:DefinedElement) | ||
68460 | { | ||
68461 | find interpretation(problem,interpretation); | ||
68462 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68463 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
68464 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68465 | BinaryElementRelationLink.param1(link,source); | ||
68466 | BinaryElementRelationLink.param2(link,target); | ||
68467 | } | ||
68468 | /** | ||
68469 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
68470 | */ | ||
68471 | private pattern mayInRelationsubElements_reference_Function( | ||
68472 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68473 | source: DefinedElement, target:DefinedElement) | ||
68474 | { | ||
68475 | find interpretation(problem,interpretation); | ||
68476 | // The two endpoint of the link have to exist | ||
68477 | find mayExist(problem, interpretation, source); | ||
68478 | find mayExist(problem, interpretation, target); | ||
68479 | // Type consistency | ||
68480 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
68481 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
68482 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
68483 | // the upper bound of the opposite reference multiplicity should be considered. | ||
68484 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
68485 | check(numberOfExistingOppositeReferences < 1); | ||
68486 | // The reference is containment, then a new reference cannot be create if: | ||
68487 | // 1. Multiple parents | ||
68488 | neg find mustContains4(problem,interpretation,_,target); | ||
68489 | // 2. Circle in the containment hierarchy | ||
68490 | neg find mustTransitiveContains(source,target); | ||
68491 | } or { | ||
68492 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
68493 | } | ||
68494 | /** | ||
68495 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
68496 | */ | ||
68497 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
68498 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68499 | source: DefinedElement, target:DefinedElement) | ||
68500 | { | ||
68501 | find interpretation(problem,interpretation); | ||
68502 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68503 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
68504 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68505 | BinaryElementRelationLink.param1(link,source); | ||
68506 | BinaryElementRelationLink.param2(link,target); | ||
68507 | } | ||
68508 | /** | ||
68509 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
68510 | */ | ||
68511 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
68512 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68513 | source: DefinedElement, target:DefinedElement) | ||
68514 | { | ||
68515 | find interpretation(problem,interpretation); | ||
68516 | // The two endpoint of the link have to exist | ||
68517 | find mayExist(problem, interpretation, source); | ||
68518 | find mayExist(problem, interpretation, target); | ||
68519 | // Type consistency | ||
68520 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
68521 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
68522 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68523 | // the upper bound of the multiplicity should be considered. | ||
68524 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
68525 | check(numberOfExistingReferences < 1); | ||
68526 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
68527 | // the upper bound of the opposite reference multiplicity should be considered. | ||
68528 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
68529 | check(numberOfExistingOppositeReferences < 1); | ||
68530 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
68531 | // 1. Multiple parents | ||
68532 | neg find mustContains4(problem,interpretation,source,_); | ||
68533 | // 2. Circle in the containment hierarchy | ||
68534 | neg find mustTransitiveContains(source,target); | ||
68535 | } or { | ||
68536 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
68537 | } | ||
68538 | /** | ||
68539 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
68540 | */ | ||
68541 | private pattern mustInRelationfrom_reference_InformationLink( | ||
68542 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68543 | source: DefinedElement, target:DefinedElement) | ||
68544 | { | ||
68545 | find interpretation(problem,interpretation); | ||
68546 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68547 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
68548 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68549 | BinaryElementRelationLink.param1(link,source); | ||
68550 | BinaryElementRelationLink.param2(link,target); | ||
68551 | } | ||
68552 | /** | ||
68553 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
68554 | */ | ||
68555 | private pattern mayInRelationfrom_reference_InformationLink( | ||
68556 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68557 | source: DefinedElement, target:DefinedElement) | ||
68558 | { | ||
68559 | find interpretation(problem,interpretation); | ||
68560 | // The two endpoint of the link have to exist | ||
68561 | find mayExist(problem, interpretation, source); | ||
68562 | find mayExist(problem, interpretation, target); | ||
68563 | // Type consistency | ||
68564 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
68565 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
68566 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68567 | // the upper bound of the multiplicity should be considered. | ||
68568 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
68569 | check(numberOfExistingReferences < 1); | ||
68570 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
68571 | // 1. Multiple parents | ||
68572 | neg find mustContains4(problem,interpretation,source,_); | ||
68573 | // 2. Circle in the containment hierarchy | ||
68574 | neg find mustTransitiveContains(source,target); | ||
68575 | } or { | ||
68576 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
68577 | } | ||
68578 | /** | ||
68579 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
68580 | */ | ||
68581 | private pattern mustInRelationto_reference_InformationLink( | ||
68582 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68583 | source: DefinedElement, target:DefinedElement) | ||
68584 | { | ||
68585 | find interpretation(problem,interpretation); | ||
68586 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68587 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
68588 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68589 | BinaryElementRelationLink.param1(link,source); | ||
68590 | BinaryElementRelationLink.param2(link,target); | ||
68591 | } | ||
68592 | /** | ||
68593 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
68594 | */ | ||
68595 | private pattern mayInRelationto_reference_InformationLink( | ||
68596 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68597 | source: DefinedElement, target:DefinedElement) | ||
68598 | { | ||
68599 | find interpretation(problem,interpretation); | ||
68600 | // The two endpoint of the link have to exist | ||
68601 | find mayExist(problem, interpretation, source); | ||
68602 | find mayExist(problem, interpretation, target); | ||
68603 | // Type consistency | ||
68604 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
68605 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
68606 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68607 | // the upper bound of the multiplicity should be considered. | ||
68608 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
68609 | check(numberOfExistingReferences < 1); | ||
68610 | } or { | ||
68611 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
68612 | } | ||
68613 | /** | ||
68614 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
68615 | */ | ||
68616 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
68617 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68618 | source: DefinedElement, target:DefinedElement) | ||
68619 | { | ||
68620 | find interpretation(problem,interpretation); | ||
68621 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68622 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
68623 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68624 | BinaryElementRelationLink.param1(link,source); | ||
68625 | BinaryElementRelationLink.param2(link,target); | ||
68626 | } | ||
68627 | /** | ||
68628 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
68629 | */ | ||
68630 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
68631 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68632 | source: DefinedElement, target:DefinedElement) | ||
68633 | { | ||
68634 | find interpretation(problem,interpretation); | ||
68635 | // The two endpoint of the link have to exist | ||
68636 | find mayExist(problem, interpretation, source); | ||
68637 | find mayExist(problem, interpretation, target); | ||
68638 | // Type consistency | ||
68639 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
68640 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
68641 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
68642 | // the upper bound of the opposite reference multiplicity should be considered. | ||
68643 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
68644 | check(numberOfExistingOppositeReferences < 1); | ||
68645 | // The reference is containment, then a new reference cannot be create if: | ||
68646 | // 1. Multiple parents | ||
68647 | neg find mustContains4(problem,interpretation,_,target); | ||
68648 | // 2. Circle in the containment hierarchy | ||
68649 | neg find mustTransitiveContains(source,target); | ||
68650 | } or { | ||
68651 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
68652 | } | ||
68653 | /** | ||
68654 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
68655 | */ | ||
68656 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
68657 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68658 | source: DefinedElement, target:DefinedElement) | ||
68659 | { | ||
68660 | find interpretation(problem,interpretation); | ||
68661 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68662 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
68663 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68664 | BinaryElementRelationLink.param1(link,source); | ||
68665 | BinaryElementRelationLink.param2(link,target); | ||
68666 | } | ||
68667 | /** | ||
68668 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
68669 | */ | ||
68670 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
68671 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68672 | source: DefinedElement, target:DefinedElement) | ||
68673 | { | ||
68674 | find interpretation(problem,interpretation); | ||
68675 | // The two endpoint of the link have to exist | ||
68676 | find mayExist(problem, interpretation, source); | ||
68677 | find mayExist(problem, interpretation, target); | ||
68678 | // Type consistency | ||
68679 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
68680 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
68681 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68682 | // the upper bound of the multiplicity should be considered. | ||
68683 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
68684 | check(numberOfExistingReferences < 1); | ||
68685 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
68686 | // the upper bound of the opposite reference multiplicity should be considered. | ||
68687 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
68688 | check(numberOfExistingOppositeReferences < 1); | ||
68689 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
68690 | // 1. Multiple parents | ||
68691 | neg find mustContains4(problem,interpretation,source,_); | ||
68692 | // 2. Circle in the containment hierarchy | ||
68693 | neg find mustTransitiveContains(source,target); | ||
68694 | } or { | ||
68695 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
68696 | } | ||
68697 | /** | ||
68698 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
68699 | */ | ||
68700 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
68701 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68702 | source: DefinedElement, target:DefinedElement) | ||
68703 | { | ||
68704 | find interpretation(problem,interpretation); | ||
68705 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68706 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
68707 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68708 | BinaryElementRelationLink.param1(link,source); | ||
68709 | BinaryElementRelationLink.param2(link,target); | ||
68710 | } | ||
68711 | /** | ||
68712 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
68713 | */ | ||
68714 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
68715 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68716 | source: DefinedElement, target:DefinedElement) | ||
68717 | { | ||
68718 | find interpretation(problem,interpretation); | ||
68719 | // The two endpoint of the link have to exist | ||
68720 | find mayExist(problem, interpretation, source); | ||
68721 | find mayExist(problem, interpretation, target); | ||
68722 | // Type consistency | ||
68723 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
68724 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
68725 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
68726 | // the upper bound of the opposite reference multiplicity should be considered. | ||
68727 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
68728 | check(numberOfExistingOppositeReferences < 1); | ||
68729 | } or { | ||
68730 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
68731 | } | ||
68732 | /** | ||
68733 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
68734 | */ | ||
68735 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
68736 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68737 | source: DefinedElement, target:DefinedElement) | ||
68738 | { | ||
68739 | find interpretation(problem,interpretation); | ||
68740 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68741 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
68742 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68743 | BinaryElementRelationLink.param1(link,source); | ||
68744 | BinaryElementRelationLink.param2(link,target); | ||
68745 | } | ||
68746 | /** | ||
68747 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
68748 | */ | ||
68749 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
68750 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68751 | source: DefinedElement, target:DefinedElement) | ||
68752 | { | ||
68753 | find interpretation(problem,interpretation); | ||
68754 | // The two endpoint of the link have to exist | ||
68755 | find mayExist(problem, interpretation, source); | ||
68756 | find mayExist(problem, interpretation, target); | ||
68757 | // Type consistency | ||
68758 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
68759 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
68760 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
68761 | // the upper bound of the opposite reference multiplicity should be considered. | ||
68762 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
68763 | check(numberOfExistingOppositeReferences < 1); | ||
68764 | // The reference is containment, then a new reference cannot be create if: | ||
68765 | // 1. Multiple parents | ||
68766 | neg find mustContains4(problem,interpretation,_,target); | ||
68767 | // 2. Circle in the containment hierarchy | ||
68768 | neg find mustTransitiveContains(source,target); | ||
68769 | } or { | ||
68770 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
68771 | } | ||
68772 | /** | ||
68773 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
68774 | */ | ||
68775 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
68776 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68777 | source: DefinedElement, target:DefinedElement) | ||
68778 | { | ||
68779 | find interpretation(problem,interpretation); | ||
68780 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68781 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
68782 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68783 | BinaryElementRelationLink.param1(link,source); | ||
68784 | BinaryElementRelationLink.param2(link,target); | ||
68785 | } | ||
68786 | /** | ||
68787 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
68788 | */ | ||
68789 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
68790 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68791 | source: DefinedElement, target:DefinedElement) | ||
68792 | { | ||
68793 | find interpretation(problem,interpretation); | ||
68794 | // The two endpoint of the link have to exist | ||
68795 | find mayExist(problem, interpretation, source); | ||
68796 | find mayExist(problem, interpretation, target); | ||
68797 | // Type consistency | ||
68798 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
68799 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
68800 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68801 | // the upper bound of the multiplicity should be considered. | ||
68802 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
68803 | check(numberOfExistingReferences < 1); | ||
68804 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
68805 | // the upper bound of the opposite reference multiplicity should be considered. | ||
68806 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
68807 | check(numberOfExistingOppositeReferences < 1); | ||
68808 | // The reference is containment, then a new reference cannot be create if: | ||
68809 | // 1. Multiple parents | ||
68810 | neg find mustContains4(problem,interpretation,_,target); | ||
68811 | // 2. Circle in the containment hierarchy | ||
68812 | neg find mustTransitiveContains(source,target); | ||
68813 | } or { | ||
68814 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
68815 | } | ||
68816 | /** | ||
68817 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
68818 | */ | ||
68819 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
68820 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68821 | source: DefinedElement, target:DefinedElement) | ||
68822 | { | ||
68823 | find interpretation(problem,interpretation); | ||
68824 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68825 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
68826 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68827 | BinaryElementRelationLink.param1(link,source); | ||
68828 | BinaryElementRelationLink.param2(link,target); | ||
68829 | } | ||
68830 | /** | ||
68831 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
68832 | */ | ||
68833 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
68834 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68835 | source: DefinedElement, target:DefinedElement) | ||
68836 | { | ||
68837 | find interpretation(problem,interpretation); | ||
68838 | // The two endpoint of the link have to exist | ||
68839 | find mayExist(problem, interpretation, source); | ||
68840 | find mayExist(problem, interpretation, target); | ||
68841 | // Type consistency | ||
68842 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
68843 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
68844 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68845 | // the upper bound of the multiplicity should be considered. | ||
68846 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
68847 | check(numberOfExistingReferences < 1); | ||
68848 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
68849 | // 1. Multiple parents | ||
68850 | neg find mustContains4(problem,interpretation,source,_); | ||
68851 | // 2. Circle in the containment hierarchy | ||
68852 | neg find mustTransitiveContains(source,target); | ||
68853 | } or { | ||
68854 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
68855 | } | ||
68856 | /** | ||
68857 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
68858 | */ | ||
68859 | private pattern mustInRelationtype_attribute_Function( | ||
68860 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68861 | source: DefinedElement, target:DefinedElement) | ||
68862 | { | ||
68863 | find interpretation(problem,interpretation); | ||
68864 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
68865 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
68866 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
68867 | BinaryElementRelationLink.param1(link,source); | ||
68868 | BinaryElementRelationLink.param2(link,target); | ||
68869 | } | ||
68870 | /** | ||
68871 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
68872 | */ | ||
68873 | private pattern mayInRelationtype_attribute_Function( | ||
68874 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68875 | source: DefinedElement, target:DefinedElement) | ||
68876 | { | ||
68877 | find interpretation(problem,interpretation); | ||
68878 | // The two endpoint of the link have to exist | ||
68879 | find mayExist(problem, interpretation, source); | ||
68880 | find mayExist(problem, interpretation, target); | ||
68881 | // Type consistency | ||
68882 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
68883 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
68884 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
68885 | // the upper bound of the multiplicity should be considered. | ||
68886 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
68887 | check(numberOfExistingReferences < 1); | ||
68888 | } or { | ||
68889 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
68890 | } | ||
68891 | |||
68892 | ////////// | ||
68893 | // 1.3 Relation Definition Indexers | ||
68894 | ////////// | ||
68895 | // Must, May and Current queries for pattern ca mcgill ecse dslreasoner standalone test fam queries terminatorAndInformation | ||
68896 | private pattern mustInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation( | ||
68897 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68898 | var_T, var_I) | ||
68899 | { | ||
68900 | find interpretation(problem,interpretation); | ||
68901 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
68902 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68903 | // T is exported | ||
68904 | // I is exported | ||
68905 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
68906 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,var_Out,var_virtual0); | ||
68907 | find mustInstanceOfInformationLink_class(problem,interpretation,var_virtual0); | ||
68908 | var_virtual0 == var_I; | ||
68909 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
68910 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,var_Out,var_virtual1); | ||
68911 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
68912 | var_virtual1 == var_T; | ||
68913 | }or{ | ||
68914 | find interpretation(problem,interpretation); | ||
68915 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
68916 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68917 | // T is exported | ||
68918 | // I is exported | ||
68919 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68920 | find mustInRelationto_reference_InformationLink(problem,interpretation,var_I,var_virtual0); | ||
68921 | find mustInstanceOfFunctionalInput_class(problem,interpretation,var_virtual0); | ||
68922 | var_virtual0 == var_In; | ||
68923 | find mustInstanceOfFunctionalInput_class(problem,interpretation,var_In); | ||
68924 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,var_In,var_virtual1); | ||
68925 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
68926 | var_virtual1 == var_T; | ||
68927 | } | ||
68928 | private pattern mayInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation( | ||
68929 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68930 | var_T, var_I) | ||
68931 | { | ||
68932 | find interpretation(problem,interpretation); | ||
68933 | find mayInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
68934 | find mayInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68935 | // T is exported | ||
68936 | // I is exported | ||
68937 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
68938 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,var_Out,var_virtual0); | ||
68939 | find mayInstanceOfInformationLink_class(problem,interpretation,var_virtual0); | ||
68940 | find mayEquivalent(problem, interpretation, var_virtual0, var_I); | ||
68941 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
68942 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,var_Out,var_virtual1); | ||
68943 | find mayInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
68944 | find mayEquivalent(problem, interpretation, var_virtual1, var_T); | ||
68945 | }or{ | ||
68946 | find interpretation(problem,interpretation); | ||
68947 | find mayInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
68948 | find mayInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68949 | // T is exported | ||
68950 | // I is exported | ||
68951 | find mayInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68952 | find mayInRelationto_reference_InformationLink(problem,interpretation,var_I,var_virtual0); | ||
68953 | find mayInstanceOfFunctionalInput_class(problem,interpretation,var_virtual0); | ||
68954 | find mayEquivalent(problem, interpretation, var_virtual0, var_In); | ||
68955 | find mayInstanceOfFunctionalInput_class(problem,interpretation,var_In); | ||
68956 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,var_In,var_virtual1); | ||
68957 | find mayInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
68958 | find mayEquivalent(problem, interpretation, var_virtual1, var_T); | ||
68959 | } | ||
68960 | private pattern currentInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation( | ||
68961 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68962 | var_T, var_I) | ||
68963 | { | ||
68964 | find interpretation(problem,interpretation); | ||
68965 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
68966 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68967 | // T is exported | ||
68968 | // I is exported | ||
68969 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
68970 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,var_Out,var_virtual0); | ||
68971 | find mustInstanceOfInformationLink_class(problem,interpretation,var_virtual0); | ||
68972 | var_virtual0 == var_I; | ||
68973 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,var_Out); | ||
68974 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,var_Out,var_virtual1); | ||
68975 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
68976 | var_virtual1 == var_T; | ||
68977 | }or{ | ||
68978 | find interpretation(problem,interpretation); | ||
68979 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_T); | ||
68980 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68981 | // T is exported | ||
68982 | // I is exported | ||
68983 | find mustInstanceOfInformationLink_class(problem,interpretation,var_I); | ||
68984 | find mustInRelationto_reference_InformationLink(problem,interpretation,var_I,var_virtual0); | ||
68985 | find mustInstanceOfFunctionalInput_class(problem,interpretation,var_virtual0); | ||
68986 | var_virtual0 == var_In; | ||
68987 | find mustInstanceOfFunctionalInput_class(problem,interpretation,var_In); | ||
68988 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,var_In,var_virtual1); | ||
68989 | find mustInstanceOfFAMTerminator_class(problem,interpretation,var_virtual1); | ||
68990 | var_virtual1 == var_T; | ||
68991 | } | ||
68992 | // Must, May and Current queries for pattern ca mcgill ecse dslreasoner standalone test fam queries rootElements | ||
68993 | private pattern mustInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_rootElements( | ||
68994 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
68995 | var_Model, var_Root) | ||
68996 | { | ||
68997 | find interpretation(problem,interpretation); | ||
68998 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
68999 | find mustInstanceOfFunction_class(problem,interpretation,var_Root); | ||
69000 | // Model is exported | ||
69001 | // Root is exported | ||
69002 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
69003 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,var_Model,var_virtual0); | ||
69004 | find mustInstanceOfFunctionalElement_class(problem,interpretation,var_virtual0); | ||
69005 | var_virtual0 == var_Root; | ||
69006 | } | ||
69007 | private pattern mayInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_rootElements( | ||
69008 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69009 | var_Model, var_Root) | ||
69010 | { | ||
69011 | find interpretation(problem,interpretation); | ||
69012 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
69013 | find mayInstanceOfFunction_class(problem,interpretation,var_Root); | ||
69014 | // Model is exported | ||
69015 | // Root is exported | ||
69016 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
69017 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,var_Model,var_virtual0); | ||
69018 | find mayInstanceOfFunctionalElement_class(problem,interpretation,var_virtual0); | ||
69019 | find mayEquivalent(problem, interpretation, var_virtual0, var_Root); | ||
69020 | } | ||
69021 | private pattern currentInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_rootElements( | ||
69022 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69023 | var_Model, var_Root) | ||
69024 | { | ||
69025 | find interpretation(problem,interpretation); | ||
69026 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
69027 | find mustInstanceOfFunction_class(problem,interpretation,var_Root); | ||
69028 | // Model is exported | ||
69029 | // Root is exported | ||
69030 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,var_Model); | ||
69031 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,var_Model,var_virtual0); | ||
69032 | find mustInstanceOfFunctionalElement_class(problem,interpretation,var_virtual0); | ||
69033 | var_virtual0 == var_Root; | ||
69034 | } | ||
69035 | // Must, May and Current queries for pattern ca mcgill ecse dslreasoner standalone test fam queries parent | ||
69036 | private pattern mustInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_parent( | ||
69037 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69038 | var_Func, var_Par) | ||
69039 | { | ||
69040 | find interpretation(problem,interpretation); | ||
69041 | find mustInstanceOfFunction_class(problem,interpretation,var_Func); | ||
69042 | find mustInstanceOfFunction_class(problem,interpretation,var_Par); | ||
69043 | // Func is exported | ||
69044 | // Par is exported | ||
69045 | find mustInstanceOfFunction_class(problem,interpretation,var_Func); | ||
69046 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,var_Func,var_virtual0); | ||
69047 | find mustInstanceOfFunction_class(problem,interpretation,var_virtual0); | ||
69048 | var_virtual0 == var_Par; | ||
69049 | } | ||
69050 | private pattern mayInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_parent( | ||
69051 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69052 | var_Func, var_Par) | ||
69053 | { | ||
69054 | find interpretation(problem,interpretation); | ||
69055 | find mayInstanceOfFunction_class(problem,interpretation,var_Func); | ||
69056 | find mayInstanceOfFunction_class(problem,interpretation,var_Par); | ||
69057 | // Func is exported | ||
69058 | // Par is exported | ||
69059 | find mayInstanceOfFunction_class(problem,interpretation,var_Func); | ||
69060 | find mayInRelationparent_reference_FunctionalElement(problem,interpretation,var_Func,var_virtual0); | ||
69061 | find mayInstanceOfFunction_class(problem,interpretation,var_virtual0); | ||
69062 | find mayEquivalent(problem, interpretation, var_virtual0, var_Par); | ||
69063 | } | ||
69064 | private pattern currentInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_parent( | ||
69065 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69066 | var_Func, var_Par) | ||
69067 | { | ||
69068 | find interpretation(problem,interpretation); | ||
69069 | find mustInstanceOfFunction_class(problem,interpretation,var_Func); | ||
69070 | find mustInstanceOfFunction_class(problem,interpretation,var_Par); | ||
69071 | // Func is exported | ||
69072 | // Par is exported | ||
69073 | find mustInstanceOfFunction_class(problem,interpretation,var_Func); | ||
69074 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,var_Func,var_virtual0); | ||
69075 | find mustInstanceOfFunction_class(problem,interpretation,var_virtual0); | ||
69076 | var_virtual0 == var_Par; | ||
69077 | } | ||
69078 | |||
69079 | ////////// | ||
69080 | // 1.4 Containment Indexer | ||
69081 | ////////// | ||
69082 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
69083 | find mustContains4(_,_,source,target); | ||
69084 | } | ||
69085 | |||
69086 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
69087 | source: DefinedElement, target: DefinedElement) | ||
69088 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
69089 | |||
69090 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
69091 | |||
69092 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
69093 | |||
69094 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
69095 | |||
69096 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
69097 | |||
69098 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
69099 | |||
69100 | private pattern mustTransitiveContains(source,target) { | ||
69101 | find mustContains2+(source,target); | ||
69102 | } | ||
69103 | |||
69104 | ////////// | ||
69105 | // 2. Invalidation Indexers | ||
69106 | ////////// | ||
69107 | // 2.1 Invalidated by WF Queries | ||
69108 | ////////// | ||
69109 | pattern invalidatedBy_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation(problem:LogicProblem, interpretation:PartialInterpretation, | ||
69110 | var_T, var_I) | ||
69111 | { | ||
69112 | find mustInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation(problem,interpretation,var_T,var_I); | ||
69113 | } | ||
69114 | |||
69115 | ////////// | ||
69116 | // 3. Unfinishedness Indexers | ||
69117 | ////////// | ||
69118 | // 3.1 Unfinishedness Measured by Multiplicity | ||
69119 | ////////// | ||
69120 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
69121 | find interpretation(problem,interpretation); | ||
69122 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
69123 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
69124 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
69125 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
69126 | check(numberOfExistingReferences < 1); | ||
69127 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
69128 | } | ||
69129 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
69130 | find interpretation(problem,interpretation); | ||
69131 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
69132 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
69133 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
69134 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
69135 | check(numberOfExistingReferences < 1); | ||
69136 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
69137 | } | ||
69138 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
69139 | find interpretation(problem,interpretation); | ||
69140 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
69141 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
69142 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
69143 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
69144 | check(numberOfExistingReferences < 1); | ||
69145 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
69146 | } | ||
69147 | |||
69148 | ////////// | ||
69149 | // 3.2 Unfinishedness Measured by WF Queries | ||
69150 | ////////// | ||
69151 | pattern unfinishedBy_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation(problem:LogicProblem, interpretation:PartialInterpretation, | ||
69152 | var_T, var_I) | ||
69153 | { | ||
69154 | find currentInRelation_pattern_ca_mcgill_ecse_dslreasoner_standalone_test_fam_queries_terminatorAndInformation(problem,interpretation,var_T,var_I); | ||
69155 | } | ||
69156 | |||
69157 | ////////// | ||
69158 | // 4. Refinement Indexers | ||
69159 | ////////// | ||
69160 | // 4.1 Object constructors | ||
69161 | ////////// | ||
69162 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
69163 | { | ||
69164 | find interpretation(problem,interpretation); | ||
69165 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
69166 | find mustExist(problem, interpretation, root); | ||
69167 | }or{ | ||
69168 | find interpretation(problem,interpretation); | ||
69169 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
69170 | find mustExist(problem, interpretation, root); | ||
69171 | }or{ | ||
69172 | find interpretation(problem,interpretation); | ||
69173 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
69174 | find mustExist(problem, interpretation, root); | ||
69175 | }or{ | ||
69176 | find interpretation(problem,interpretation); | ||
69177 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
69178 | find mustExist(problem, interpretation, root); | ||
69179 | }or{ | ||
69180 | find interpretation(problem,interpretation); | ||
69181 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
69182 | find mustExist(problem, interpretation, root); | ||
69183 | }or{ | ||
69184 | find interpretation(problem,interpretation); | ||
69185 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
69186 | find mustExist(problem, interpretation, root); | ||
69187 | }or{ | ||
69188 | find interpretation(problem,interpretation); | ||
69189 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
69190 | find mustExist(problem, interpretation, root); | ||
69191 | }or{ | ||
69192 | find interpretation(problem,interpretation); | ||
69193 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
69194 | find mustExist(problem, interpretation, root); | ||
69195 | }or{ | ||
69196 | find interpretation(problem,interpretation); | ||
69197 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
69198 | find mustExist(problem, interpretation, root); | ||
69199 | }or{ | ||
69200 | find interpretation(problem,interpretation); | ||
69201 | find mustInstanceOfFunctionalArchitectureModel_class_DefinedPart(problem,interpretation,root); | ||
69202 | find mustExist(problem, interpretation, root); | ||
69203 | }or{ | ||
69204 | find interpretation(problem,interpretation); | ||
69205 | find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,root); | ||
69206 | find mustExist(problem, interpretation, root); | ||
69207 | } | ||
69208 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
69209 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69210 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
69211 | container:DefinedElement) | ||
69212 | { | ||
69213 | find interpretation(problem,interpretation); | ||
69214 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69215 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
69216 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
69217 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
69218 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
69219 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
69220 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
69221 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
69222 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
69223 | find mustExist(problem, interpretation, container); | ||
69224 | neg find mustExist(problem, interpretation, newObject); | ||
69225 | } | ||
69226 | pattern createObject_FunctionalInterface_class( | ||
69227 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69228 | typeInterpretation:PartialComplexTypeInterpretation) | ||
69229 | { | ||
69230 | find interpretation(problem,interpretation); | ||
69231 | neg find hasElementInContainment(problem,interpretation); | ||
69232 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69233 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
69234 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
69235 | find mayExist(problem, interpretation, newObject); | ||
69236 | neg find mustExist(problem, interpretation, newObject); | ||
69237 | } | ||
69238 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
69239 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69240 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
69241 | container:DefinedElement) | ||
69242 | { | ||
69243 | find interpretation(problem,interpretation); | ||
69244 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69245 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
69246 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
69247 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
69248 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
69249 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
69250 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
69251 | find mustExist(problem, interpretation, container); | ||
69252 | neg find mustExist(problem, interpretation, newObject); | ||
69253 | } | ||
69254 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
69255 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69256 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
69257 | container:DefinedElement) | ||
69258 | { | ||
69259 | find interpretation(problem,interpretation); | ||
69260 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69261 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
69262 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
69263 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
69264 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
69265 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
69266 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
69267 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
69268 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
69269 | find mustExist(problem, interpretation, container); | ||
69270 | neg find mustExist(problem, interpretation, newObject); | ||
69271 | } | ||
69272 | pattern createObject_Function_class( | ||
69273 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69274 | typeInterpretation:PartialComplexTypeInterpretation) | ||
69275 | { | ||
69276 | find interpretation(problem,interpretation); | ||
69277 | neg find hasElementInContainment(problem,interpretation); | ||
69278 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69279 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
69280 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
69281 | find mayExist(problem, interpretation, newObject); | ||
69282 | neg find mustExist(problem, interpretation, newObject); | ||
69283 | } | ||
69284 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
69285 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69286 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
69287 | container:DefinedElement) | ||
69288 | { | ||
69289 | find interpretation(problem,interpretation); | ||
69290 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69291 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
69292 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
69293 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
69294 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
69295 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
69296 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
69297 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
69298 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
69299 | find mustExist(problem, interpretation, container); | ||
69300 | neg find mustExist(problem, interpretation, newObject); | ||
69301 | } | ||
69302 | pattern createObject_FunctionalOutput_class( | ||
69303 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69304 | typeInterpretation:PartialComplexTypeInterpretation) | ||
69305 | { | ||
69306 | find interpretation(problem,interpretation); | ||
69307 | neg find hasElementInContainment(problem,interpretation); | ||
69308 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69309 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
69310 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
69311 | find mayExist(problem, interpretation, newObject); | ||
69312 | neg find mustExist(problem, interpretation, newObject); | ||
69313 | } | ||
69314 | pattern createObject_FunctionalArchitectureModel_class_UndefinedPart( | ||
69315 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69316 | typeInterpretation:PartialComplexTypeInterpretation) | ||
69317 | { | ||
69318 | find interpretation(problem,interpretation); | ||
69319 | neg find hasElementInContainment(problem,interpretation); | ||
69320 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69321 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class UndefinedPart"); | ||
69322 | find mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,newObject); | ||
69323 | find mayExist(problem, interpretation, newObject); | ||
69324 | neg find mustExist(problem, interpretation, newObject); | ||
69325 | } | ||
69326 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
69327 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69328 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
69329 | container:DefinedElement) | ||
69330 | { | ||
69331 | find interpretation(problem,interpretation); | ||
69332 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69333 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
69334 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
69335 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
69336 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
69337 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
69338 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
69339 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
69340 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
69341 | find mustExist(problem, interpretation, container); | ||
69342 | neg find mustExist(problem, interpretation, newObject); | ||
69343 | } | ||
69344 | pattern createObject_FAMTerminator_class( | ||
69345 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69346 | typeInterpretation:PartialComplexTypeInterpretation) | ||
69347 | { | ||
69348 | find interpretation(problem,interpretation); | ||
69349 | neg find hasElementInContainment(problem,interpretation); | ||
69350 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69351 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
69352 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
69353 | find mayExist(problem, interpretation, newObject); | ||
69354 | neg find mustExist(problem, interpretation, newObject); | ||
69355 | } | ||
69356 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
69357 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69358 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
69359 | container:DefinedElement) | ||
69360 | { | ||
69361 | find interpretation(problem,interpretation); | ||
69362 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69363 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
69364 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
69365 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
69366 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
69367 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
69368 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
69369 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
69370 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
69371 | find mustExist(problem, interpretation, container); | ||
69372 | neg find mustExist(problem, interpretation, newObject); | ||
69373 | } | ||
69374 | pattern createObject_InformationLink_class( | ||
69375 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69376 | typeInterpretation:PartialComplexTypeInterpretation) | ||
69377 | { | ||
69378 | find interpretation(problem,interpretation); | ||
69379 | neg find hasElementInContainment(problem,interpretation); | ||
69380 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69381 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
69382 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
69383 | find mayExist(problem, interpretation, newObject); | ||
69384 | neg find mustExist(problem, interpretation, newObject); | ||
69385 | } | ||
69386 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
69387 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69388 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
69389 | container:DefinedElement) | ||
69390 | { | ||
69391 | find interpretation(problem,interpretation); | ||
69392 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69393 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
69394 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
69395 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
69396 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
69397 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
69398 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
69399 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
69400 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
69401 | find mustExist(problem, interpretation, container); | ||
69402 | neg find mustExist(problem, interpretation, newObject); | ||
69403 | } | ||
69404 | pattern createObject_FunctionalInput_class( | ||
69405 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69406 | typeInterpretation:PartialComplexTypeInterpretation) | ||
69407 | { | ||
69408 | find interpretation(problem,interpretation); | ||
69409 | neg find hasElementInContainment(problem,interpretation); | ||
69410 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69411 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
69412 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
69413 | find mayExist(problem, interpretation, newObject); | ||
69414 | neg find mustExist(problem, interpretation, newObject); | ||
69415 | } | ||
69416 | |||
69417 | ////////// | ||
69418 | // 4.2 Type refinement | ||
69419 | ////////// | ||
69420 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
69421 | find interpretation(problem,interpretation); | ||
69422 | PartialInterpretation.newElements(interpretation,element); | ||
69423 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69424 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69425 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69426 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69427 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69428 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69429 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69430 | } | ||
69431 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
69432 | find interpretation(problem,interpretation); | ||
69433 | PartialInterpretation.newElements(interpretation,element); | ||
69434 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
69435 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
69436 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69437 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69438 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69439 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69440 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69441 | } | ||
69442 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
69443 | find interpretation(problem,interpretation); | ||
69444 | PartialInterpretation.newElements(interpretation,element); | ||
69445 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
69446 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69447 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69448 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
69449 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69450 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
69451 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69452 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69453 | } | ||
69454 | pattern refineTypeTo_FunctionalArchitectureModel_class_UndefinedPart(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
69455 | find interpretation(problem,interpretation); | ||
69456 | PartialInterpretation.newElements(interpretation,element); | ||
69457 | find mayInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
69458 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69459 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69460 | neg find mustInstanceOfFunctionalArchitectureModel_class_UndefinedPart(problem,interpretation,element); | ||
69461 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69462 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69463 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69464 | } | ||
69465 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
69466 | find interpretation(problem,interpretation); | ||
69467 | PartialInterpretation.newElements(interpretation,element); | ||
69468 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69469 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69470 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69471 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69472 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69473 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69474 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69475 | } | ||
69476 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
69477 | find interpretation(problem,interpretation); | ||
69478 | PartialInterpretation.newElements(interpretation,element); | ||
69479 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
69480 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69481 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69482 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69483 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69484 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69485 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69486 | } | ||
69487 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
69488 | find interpretation(problem,interpretation); | ||
69489 | PartialInterpretation.newElements(interpretation,element); | ||
69490 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
69491 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69492 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69493 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
69494 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69495 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69496 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
69497 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69498 | } | ||
69499 | |||
69500 | ////////// | ||
69501 | // 4.3 Relation refinement | ||
69502 | ////////// | ||
69503 | pattern refineRelation_model_reference_FunctionalElement( | ||
69504 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69505 | relationIterpretation:PartialRelationInterpretation, | ||
69506 | from: DefinedElement, to: DefinedElement) | ||
69507 | { | ||
69508 | find interpretation(problem,interpretation); | ||
69509 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
69510 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
69511 | find mustExist(problem, interpretation, from); | ||
69512 | find mustExist(problem, interpretation, to); | ||
69513 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
69514 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
69515 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
69516 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
69517 | } | ||
69518 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
69519 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69520 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
69521 | from: DefinedElement, to: DefinedElement) | ||
69522 | { | ||
69523 | find interpretation(problem,interpretation); | ||
69524 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
69525 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
69526 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
69527 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
69528 | find mustExist(problem, interpretation, from); | ||
69529 | find mustExist(problem, interpretation, to); | ||
69530 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
69531 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
69532 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
69533 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
69534 | } | ||
69535 | pattern refineRelation_type_attribute_Function( | ||
69536 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
69537 | relationIterpretation:PartialRelationInterpretation, | ||
69538 | from: DefinedElement, to: DefinedElement) | ||
69539 | { | ||
69540 | find interpretation(problem,interpretation); | ||
69541 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
69542 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
69543 | find mustExist(problem, interpretation, from); | ||
69544 | find mustExist(problem, interpretation, to); | ||
69545 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
69546 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
69547 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
69548 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
69549 | } | ||
69550 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
69551 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
69552 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
69553 | |||
69554 | ////////// | ||
69555 | // 0. Util | ||
69556 | ////////// | ||
69557 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69558 | PartialInterpretation.problem(interpretation,problem); | ||
69559 | } | ||
69560 | |||
69561 | ///////////////////////// | ||
69562 | // 0.1 Existence | ||
69563 | ///////////////////////// | ||
69564 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69565 | find interpretation(problem,interpretation); | ||
69566 | LogicProblem.elements(problem,element); | ||
69567 | } or { | ||
69568 | find interpretation(problem,interpretation); | ||
69569 | PartialInterpretation.newElements(interpretation,element); | ||
69570 | } | ||
69571 | |||
69572 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69573 | find mustExist(problem,interpretation,element); | ||
69574 | } or { | ||
69575 | find interpretation(problem,interpretation); | ||
69576 | neg find elementCloseWorld(element); | ||
69577 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69578 | } | ||
69579 | |||
69580 | private pattern elementCloseWorld(element:DefinedElement) { | ||
69581 | PartialInterpretation.openWorldElements(i,element); | ||
69582 | PartialInterpretation.maxNewElements(i,0); | ||
69583 | } or { | ||
69584 | Scope.targetTypeInterpretation(scope,interpretation); | ||
69585 | PartialTypeInterpratation.elements(interpretation,element); | ||
69586 | Scope.maxNewElements(scope,0); | ||
69587 | } | ||
69588 | |||
69589 | //////////////////////// | ||
69590 | // 0.2 Equivalence | ||
69591 | //////////////////////// | ||
69592 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
69593 | find mayExist(problem,interpretation,a); | ||
69594 | find mayExist(problem,interpretation,b); | ||
69595 | a == b; | ||
69596 | } | ||
69597 | |||
69598 | //////////////////////// | ||
69599 | // 0.3 Required Patterns by TypeIndexer | ||
69600 | //////////////////////// | ||
69601 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
69602 | find interpretation(problem,interpretation); | ||
69603 | LogicProblem.types(problem,type); | ||
69604 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
69605 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69606 | } | ||
69607 | |||
69608 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
69609 | find interpretation(problem,interpretation); | ||
69610 | LogicProblem.types(problem,type); | ||
69611 | TypeDefinition.elements(type,element); | ||
69612 | } or { | ||
69613 | find interpretation(problem,interpretation); | ||
69614 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
69615 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
69616 | } | ||
69617 | |||
69618 | private pattern isPrimitive(element: PrimitiveElement) { | ||
69619 | PrimitiveElement(element); | ||
69620 | } | ||
69621 | |||
69622 | ////////// | ||
69623 | // 1. Problem-Specific Base Indexers | ||
69624 | ////////// | ||
69625 | // 1.1 Type Indexers | ||
69626 | ////////// | ||
69627 | // 1.1.1 primitive Type Indexers | ||
69628 | ////////// | ||
69629 | |||
69630 | ////////// | ||
69631 | // 1.1.2 domain-specific Type Indexers | ||
69632 | ////////// | ||
69633 | /** | ||
69634 | * An element must be an instance of type "FunctionalElement class". | ||
69635 | */ | ||
69636 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69637 | Type.name(type,"FunctionalElement class"); | ||
69638 | find directInstanceOf(problem,interpretation,element,type); | ||
69639 | } | ||
69640 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69641 | find interpretation(problem,interpretation); | ||
69642 | PartialInterpretation.scopes(interpretation,scope); | ||
69643 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69644 | Scope.maxNewElements(scope,0); | ||
69645 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69646 | Type.name(type,"FunctionalElement class"); | ||
69647 | } | ||
69648 | |||
69649 | /** | ||
69650 | * An element may be an instance of type "FunctionalElement class". | ||
69651 | */ | ||
69652 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69653 | { | ||
69654 | find interpretation(problem,interpretation); | ||
69655 | PartialInterpretation.newElements(interpretation,element); | ||
69656 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69657 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69658 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
69659 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69660 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69661 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69662 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
69663 | neg find isPrimitive(element); | ||
69664 | } or { | ||
69665 | find interpretation(problem,interpretation); | ||
69666 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69667 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69668 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69669 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
69670 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69671 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69672 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69673 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
69674 | neg find isPrimitive(element); | ||
69675 | } or | ||
69676 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
69677 | /** | ||
69678 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
69679 | */ | ||
69680 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69681 | Type.name(type,"FunctionalArchitectureModel class"); | ||
69682 | find directInstanceOf(problem,interpretation,element,type); | ||
69683 | } | ||
69684 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69685 | find interpretation(problem,interpretation); | ||
69686 | PartialInterpretation.scopes(interpretation,scope); | ||
69687 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69688 | Scope.maxNewElements(scope,0); | ||
69689 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69690 | Type.name(type,"FunctionalArchitectureModel class"); | ||
69691 | } | ||
69692 | |||
69693 | /** | ||
69694 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
69695 | */ | ||
69696 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69697 | { | ||
69698 | find interpretation(problem,interpretation); | ||
69699 | PartialInterpretation.newElements(interpretation,element); | ||
69700 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69701 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69702 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69703 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69704 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69705 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
69706 | neg find isPrimitive(element); | ||
69707 | } or { | ||
69708 | find interpretation(problem,interpretation); | ||
69709 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69710 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69711 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69712 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69713 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69714 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69715 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
69716 | neg find isPrimitive(element); | ||
69717 | } or | ||
69718 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
69719 | /** | ||
69720 | * An element must be an instance of type "Function class". | ||
69721 | */ | ||
69722 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69723 | Type.name(type,"Function class"); | ||
69724 | find directInstanceOf(problem,interpretation,element,type); | ||
69725 | } | ||
69726 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69727 | find interpretation(problem,interpretation); | ||
69728 | PartialInterpretation.scopes(interpretation,scope); | ||
69729 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69730 | Scope.maxNewElements(scope,0); | ||
69731 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69732 | Type.name(type,"Function class"); | ||
69733 | } | ||
69734 | |||
69735 | /** | ||
69736 | * An element may be an instance of type "Function class". | ||
69737 | */ | ||
69738 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69739 | { | ||
69740 | find interpretation(problem,interpretation); | ||
69741 | PartialInterpretation.newElements(interpretation,element); | ||
69742 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69743 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69744 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69745 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69746 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69747 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
69748 | neg find isPrimitive(element); | ||
69749 | } or { | ||
69750 | find interpretation(problem,interpretation); | ||
69751 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69752 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69753 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69754 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69755 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69756 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69757 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
69758 | neg find isPrimitive(element); | ||
69759 | } or | ||
69760 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
69761 | /** | ||
69762 | * An element must be an instance of type "FAMTerminator class". | ||
69763 | */ | ||
69764 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69765 | Type.name(type,"FAMTerminator class"); | ||
69766 | find directInstanceOf(problem,interpretation,element,type); | ||
69767 | } | ||
69768 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69769 | find interpretation(problem,interpretation); | ||
69770 | PartialInterpretation.scopes(interpretation,scope); | ||
69771 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69772 | Scope.maxNewElements(scope,0); | ||
69773 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69774 | Type.name(type,"FAMTerminator class"); | ||
69775 | } | ||
69776 | |||
69777 | /** | ||
69778 | * An element may be an instance of type "FAMTerminator class". | ||
69779 | */ | ||
69780 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69781 | { | ||
69782 | find interpretation(problem,interpretation); | ||
69783 | PartialInterpretation.newElements(interpretation,element); | ||
69784 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69785 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69786 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69787 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69788 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69789 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
69790 | neg find isPrimitive(element); | ||
69791 | } or { | ||
69792 | find interpretation(problem,interpretation); | ||
69793 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69794 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69795 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69796 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69797 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69798 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69799 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
69800 | neg find isPrimitive(element); | ||
69801 | } or | ||
69802 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
69803 | /** | ||
69804 | * An element must be an instance of type "InformationLink class". | ||
69805 | */ | ||
69806 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69807 | Type.name(type,"InformationLink class"); | ||
69808 | find directInstanceOf(problem,interpretation,element,type); | ||
69809 | } | ||
69810 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69811 | find interpretation(problem,interpretation); | ||
69812 | PartialInterpretation.scopes(interpretation,scope); | ||
69813 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69814 | Scope.maxNewElements(scope,0); | ||
69815 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69816 | Type.name(type,"InformationLink class"); | ||
69817 | } | ||
69818 | |||
69819 | /** | ||
69820 | * An element may be an instance of type "InformationLink class". | ||
69821 | */ | ||
69822 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69823 | { | ||
69824 | find interpretation(problem,interpretation); | ||
69825 | PartialInterpretation.newElements(interpretation,element); | ||
69826 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69827 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69828 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69829 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69830 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69831 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
69832 | neg find isPrimitive(element); | ||
69833 | } or { | ||
69834 | find interpretation(problem,interpretation); | ||
69835 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69836 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69837 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69838 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69839 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69840 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69841 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
69842 | neg find isPrimitive(element); | ||
69843 | } or | ||
69844 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
69845 | /** | ||
69846 | * An element must be an instance of type "FunctionalInterface class". | ||
69847 | */ | ||
69848 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69849 | Type.name(type,"FunctionalInterface class"); | ||
69850 | find directInstanceOf(problem,interpretation,element,type); | ||
69851 | } | ||
69852 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69853 | find interpretation(problem,interpretation); | ||
69854 | PartialInterpretation.scopes(interpretation,scope); | ||
69855 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69856 | Scope.maxNewElements(scope,0); | ||
69857 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69858 | Type.name(type,"FunctionalInterface class"); | ||
69859 | } | ||
69860 | |||
69861 | /** | ||
69862 | * An element may be an instance of type "FunctionalInterface class". | ||
69863 | */ | ||
69864 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69865 | { | ||
69866 | find interpretation(problem,interpretation); | ||
69867 | PartialInterpretation.newElements(interpretation,element); | ||
69868 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69869 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69870 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69871 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69872 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69873 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
69874 | neg find isPrimitive(element); | ||
69875 | } or { | ||
69876 | find interpretation(problem,interpretation); | ||
69877 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69878 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69879 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69880 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
69881 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69882 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69883 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
69884 | neg find isPrimitive(element); | ||
69885 | } or | ||
69886 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
69887 | /** | ||
69888 | * An element must be an instance of type "FunctionalInput class". | ||
69889 | */ | ||
69890 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69891 | Type.name(type,"FunctionalInput class"); | ||
69892 | find directInstanceOf(problem,interpretation,element,type); | ||
69893 | } | ||
69894 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69895 | find interpretation(problem,interpretation); | ||
69896 | PartialInterpretation.scopes(interpretation,scope); | ||
69897 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69898 | Scope.maxNewElements(scope,0); | ||
69899 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69900 | Type.name(type,"FunctionalInput class"); | ||
69901 | } | ||
69902 | |||
69903 | /** | ||
69904 | * An element may be an instance of type "FunctionalInput class". | ||
69905 | */ | ||
69906 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69907 | { | ||
69908 | find interpretation(problem,interpretation); | ||
69909 | PartialInterpretation.newElements(interpretation,element); | ||
69910 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69911 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69912 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69913 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69914 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69915 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
69916 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
69917 | neg find isPrimitive(element); | ||
69918 | } or { | ||
69919 | find interpretation(problem,interpretation); | ||
69920 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69921 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69922 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69923 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69924 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69925 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69926 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
69927 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
69928 | neg find isPrimitive(element); | ||
69929 | } or | ||
69930 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
69931 | /** | ||
69932 | * An element must be an instance of type "FunctionalOutput class". | ||
69933 | */ | ||
69934 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69935 | Type.name(type,"FunctionalOutput class"); | ||
69936 | find directInstanceOf(problem,interpretation,element,type); | ||
69937 | } | ||
69938 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69939 | find interpretation(problem,interpretation); | ||
69940 | PartialInterpretation.scopes(interpretation,scope); | ||
69941 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69942 | Scope.maxNewElements(scope,0); | ||
69943 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69944 | Type.name(type,"FunctionalOutput class"); | ||
69945 | } | ||
69946 | |||
69947 | /** | ||
69948 | * An element may be an instance of type "FunctionalOutput class". | ||
69949 | */ | ||
69950 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69951 | { | ||
69952 | find interpretation(problem,interpretation); | ||
69953 | PartialInterpretation.newElements(interpretation,element); | ||
69954 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69955 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69956 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69957 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
69958 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69959 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69960 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
69961 | neg find isPrimitive(element); | ||
69962 | } or { | ||
69963 | find interpretation(problem,interpretation); | ||
69964 | PartialInterpretation.openWorldElements(interpretation,element); | ||
69965 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69966 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
69967 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
69968 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
69969 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
69970 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
69971 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
69972 | neg find isPrimitive(element); | ||
69973 | } or | ||
69974 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
69975 | /** | ||
69976 | * An element must be an instance of type "FunctionalData class". | ||
69977 | */ | ||
69978 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
69979 | Type.name(type,"FunctionalData class"); | ||
69980 | find directInstanceOf(problem,interpretation,element,type); | ||
69981 | } | ||
69982 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
69983 | find interpretation(problem,interpretation); | ||
69984 | PartialInterpretation.scopes(interpretation,scope); | ||
69985 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
69986 | Scope.maxNewElements(scope,0); | ||
69987 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
69988 | Type.name(type,"FunctionalData class"); | ||
69989 | } | ||
69990 | |||
69991 | /** | ||
69992 | * An element may be an instance of type "FunctionalData class". | ||
69993 | */ | ||
69994 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
69995 | { | ||
69996 | find interpretation(problem,interpretation); | ||
69997 | PartialInterpretation.newElements(interpretation,element); | ||
69998 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
69999 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
70000 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
70001 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
70002 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
70003 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
70004 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
70005 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
70006 | neg find isPrimitive(element); | ||
70007 | } or { | ||
70008 | find interpretation(problem,interpretation); | ||
70009 | PartialInterpretation.openWorldElements(interpretation,element); | ||
70010 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
70011 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
70012 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
70013 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
70014 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
70015 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
70016 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
70017 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
70018 | neg find isPrimitive(element); | ||
70019 | } or | ||
70020 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
70021 | /** | ||
70022 | * An element must be an instance of type "FunctionType enum". | ||
70023 | */ | ||
70024 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
70025 | Type.name(type,"FunctionType enum"); | ||
70026 | find directInstanceOf(problem,interpretation,element,type); | ||
70027 | } | ||
70028 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
70029 | find interpretation(problem,interpretation); | ||
70030 | PartialInterpretation.scopes(interpretation,scope); | ||
70031 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
70032 | Scope.maxNewElements(scope,0); | ||
70033 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
70034 | Type.name(type,"FunctionType enum"); | ||
70035 | } | ||
70036 | |||
70037 | /** | ||
70038 | * An element may be an instance of type "FunctionType enum". | ||
70039 | */ | ||
70040 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
70041 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
70042 | |||
70043 | ////////// | ||
70044 | // 1.2 Relation Declaration Indexers | ||
70045 | ////////// | ||
70046 | /** | ||
70047 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
70048 | */ | ||
70049 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
70050 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70051 | source: DefinedElement, target:DefinedElement) | ||
70052 | { | ||
70053 | find interpretation(problem,interpretation); | ||
70054 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70055 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
70056 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70057 | BinaryElementRelationLink.param1(link,source); | ||
70058 | BinaryElementRelationLink.param2(link,target); | ||
70059 | } | ||
70060 | /** | ||
70061 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
70062 | */ | ||
70063 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
70064 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70065 | source: DefinedElement, target:DefinedElement) | ||
70066 | { | ||
70067 | find interpretation(problem,interpretation); | ||
70068 | // The two endpoint of the link have to exist | ||
70069 | find mayExist(problem, interpretation, source); | ||
70070 | find mayExist(problem, interpretation, target); | ||
70071 | // Type consistency | ||
70072 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
70073 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
70074 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70075 | // the upper bound of the multiplicity should be considered. | ||
70076 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
70077 | check(numberOfExistingReferences < 1); | ||
70078 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
70079 | // the upper bound of the opposite reference multiplicity should be considered. | ||
70080 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
70081 | check(numberOfExistingOppositeReferences < 1); | ||
70082 | // The reference is containment, then a new reference cannot be create if: | ||
70083 | // 1. Multiple parents | ||
70084 | neg find mustContains4(problem,interpretation,_,target); | ||
70085 | // 2. Circle in the containment hierarchy | ||
70086 | neg find mustTransitiveContains(source,target); | ||
70087 | } or { | ||
70088 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
70089 | } | ||
70090 | /** | ||
70091 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
70092 | */ | ||
70093 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
70094 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70095 | source: DefinedElement, target:DefinedElement) | ||
70096 | { | ||
70097 | find interpretation(problem,interpretation); | ||
70098 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70099 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
70100 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70101 | BinaryElementRelationLink.param1(link,source); | ||
70102 | BinaryElementRelationLink.param2(link,target); | ||
70103 | } | ||
70104 | /** | ||
70105 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
70106 | */ | ||
70107 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
70108 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70109 | source: DefinedElement, target:DefinedElement) | ||
70110 | { | ||
70111 | find interpretation(problem,interpretation); | ||
70112 | // The two endpoint of the link have to exist | ||
70113 | find mayExist(problem, interpretation, source); | ||
70114 | find mayExist(problem, interpretation, target); | ||
70115 | // Type consistency | ||
70116 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
70117 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
70118 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70119 | // the upper bound of the multiplicity should be considered. | ||
70120 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
70121 | check(numberOfExistingReferences < 1); | ||
70122 | } or { | ||
70123 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
70124 | } | ||
70125 | /** | ||
70126 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
70127 | */ | ||
70128 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
70129 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70130 | source: DefinedElement, target:DefinedElement) | ||
70131 | { | ||
70132 | find interpretation(problem,interpretation); | ||
70133 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70134 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
70135 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70136 | BinaryElementRelationLink.param1(link,source); | ||
70137 | BinaryElementRelationLink.param2(link,target); | ||
70138 | } | ||
70139 | /** | ||
70140 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
70141 | */ | ||
70142 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
70143 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70144 | source: DefinedElement, target:DefinedElement) | ||
70145 | { | ||
70146 | find interpretation(problem,interpretation); | ||
70147 | // The two endpoint of the link have to exist | ||
70148 | find mayExist(problem, interpretation, source); | ||
70149 | find mayExist(problem, interpretation, target); | ||
70150 | // Type consistency | ||
70151 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
70152 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
70153 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70154 | // the upper bound of the multiplicity should be considered. | ||
70155 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
70156 | check(numberOfExistingReferences < 1); | ||
70157 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
70158 | // 1. Multiple parents | ||
70159 | neg find mustContains4(problem,interpretation,source,_); | ||
70160 | // 2. Circle in the containment hierarchy | ||
70161 | neg find mustTransitiveContains(source,target); | ||
70162 | } or { | ||
70163 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
70164 | } | ||
70165 | /** | ||
70166 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
70167 | */ | ||
70168 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
70169 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70170 | source: DefinedElement, target:DefinedElement) | ||
70171 | { | ||
70172 | find interpretation(problem,interpretation); | ||
70173 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70174 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
70175 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70176 | BinaryElementRelationLink.param1(link,source); | ||
70177 | BinaryElementRelationLink.param2(link,target); | ||
70178 | } | ||
70179 | /** | ||
70180 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
70181 | */ | ||
70182 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
70183 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70184 | source: DefinedElement, target:DefinedElement) | ||
70185 | { | ||
70186 | find interpretation(problem,interpretation); | ||
70187 | // The two endpoint of the link have to exist | ||
70188 | find mayExist(problem, interpretation, source); | ||
70189 | find mayExist(problem, interpretation, target); | ||
70190 | // Type consistency | ||
70191 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
70192 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
70193 | // The reference is containment, then a new reference cannot be create if: | ||
70194 | // 1. Multiple parents | ||
70195 | neg find mustContains4(problem,interpretation,_,target); | ||
70196 | // 2. Circle in the containment hierarchy | ||
70197 | neg find mustTransitiveContains(source,target); | ||
70198 | } or { | ||
70199 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
70200 | } | ||
70201 | /** | ||
70202 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
70203 | */ | ||
70204 | private pattern mustInRelationsubElements_reference_Function( | ||
70205 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70206 | source: DefinedElement, target:DefinedElement) | ||
70207 | { | ||
70208 | find interpretation(problem,interpretation); | ||
70209 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70210 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
70211 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70212 | BinaryElementRelationLink.param1(link,source); | ||
70213 | BinaryElementRelationLink.param2(link,target); | ||
70214 | } | ||
70215 | /** | ||
70216 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
70217 | */ | ||
70218 | private pattern mayInRelationsubElements_reference_Function( | ||
70219 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70220 | source: DefinedElement, target:DefinedElement) | ||
70221 | { | ||
70222 | find interpretation(problem,interpretation); | ||
70223 | // The two endpoint of the link have to exist | ||
70224 | find mayExist(problem, interpretation, source); | ||
70225 | find mayExist(problem, interpretation, target); | ||
70226 | // Type consistency | ||
70227 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
70228 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
70229 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
70230 | // the upper bound of the opposite reference multiplicity should be considered. | ||
70231 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
70232 | check(numberOfExistingOppositeReferences < 1); | ||
70233 | // The reference is containment, then a new reference cannot be create if: | ||
70234 | // 1. Multiple parents | ||
70235 | neg find mustContains4(problem,interpretation,_,target); | ||
70236 | // 2. Circle in the containment hierarchy | ||
70237 | neg find mustTransitiveContains(source,target); | ||
70238 | } or { | ||
70239 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
70240 | } | ||
70241 | /** | ||
70242 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
70243 | */ | ||
70244 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
70245 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70246 | source: DefinedElement, target:DefinedElement) | ||
70247 | { | ||
70248 | find interpretation(problem,interpretation); | ||
70249 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70250 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
70251 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70252 | BinaryElementRelationLink.param1(link,source); | ||
70253 | BinaryElementRelationLink.param2(link,target); | ||
70254 | } | ||
70255 | /** | ||
70256 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
70257 | */ | ||
70258 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
70259 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70260 | source: DefinedElement, target:DefinedElement) | ||
70261 | { | ||
70262 | find interpretation(problem,interpretation); | ||
70263 | // The two endpoint of the link have to exist | ||
70264 | find mayExist(problem, interpretation, source); | ||
70265 | find mayExist(problem, interpretation, target); | ||
70266 | // Type consistency | ||
70267 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
70268 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
70269 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70270 | // the upper bound of the multiplicity should be considered. | ||
70271 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
70272 | check(numberOfExistingReferences < 1); | ||
70273 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
70274 | // the upper bound of the opposite reference multiplicity should be considered. | ||
70275 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
70276 | check(numberOfExistingOppositeReferences < 1); | ||
70277 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
70278 | // 1. Multiple parents | ||
70279 | neg find mustContains4(problem,interpretation,source,_); | ||
70280 | // 2. Circle in the containment hierarchy | ||
70281 | neg find mustTransitiveContains(source,target); | ||
70282 | } or { | ||
70283 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
70284 | } | ||
70285 | /** | ||
70286 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
70287 | */ | ||
70288 | private pattern mustInRelationfrom_reference_InformationLink( | ||
70289 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70290 | source: DefinedElement, target:DefinedElement) | ||
70291 | { | ||
70292 | find interpretation(problem,interpretation); | ||
70293 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70294 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
70295 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70296 | BinaryElementRelationLink.param1(link,source); | ||
70297 | BinaryElementRelationLink.param2(link,target); | ||
70298 | } | ||
70299 | /** | ||
70300 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
70301 | */ | ||
70302 | private pattern mayInRelationfrom_reference_InformationLink( | ||
70303 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70304 | source: DefinedElement, target:DefinedElement) | ||
70305 | { | ||
70306 | find interpretation(problem,interpretation); | ||
70307 | // The two endpoint of the link have to exist | ||
70308 | find mayExist(problem, interpretation, source); | ||
70309 | find mayExist(problem, interpretation, target); | ||
70310 | // Type consistency | ||
70311 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
70312 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
70313 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70314 | // the upper bound of the multiplicity should be considered. | ||
70315 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
70316 | check(numberOfExistingReferences < 1); | ||
70317 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
70318 | // 1. Multiple parents | ||
70319 | neg find mustContains4(problem,interpretation,source,_); | ||
70320 | // 2. Circle in the containment hierarchy | ||
70321 | neg find mustTransitiveContains(source,target); | ||
70322 | } or { | ||
70323 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
70324 | } | ||
70325 | /** | ||
70326 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
70327 | */ | ||
70328 | private pattern mustInRelationto_reference_InformationLink( | ||
70329 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70330 | source: DefinedElement, target:DefinedElement) | ||
70331 | { | ||
70332 | find interpretation(problem,interpretation); | ||
70333 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70334 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
70335 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70336 | BinaryElementRelationLink.param1(link,source); | ||
70337 | BinaryElementRelationLink.param2(link,target); | ||
70338 | } | ||
70339 | /** | ||
70340 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
70341 | */ | ||
70342 | private pattern mayInRelationto_reference_InformationLink( | ||
70343 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70344 | source: DefinedElement, target:DefinedElement) | ||
70345 | { | ||
70346 | find interpretation(problem,interpretation); | ||
70347 | // The two endpoint of the link have to exist | ||
70348 | find mayExist(problem, interpretation, source); | ||
70349 | find mayExist(problem, interpretation, target); | ||
70350 | // Type consistency | ||
70351 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
70352 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
70353 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70354 | // the upper bound of the multiplicity should be considered. | ||
70355 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
70356 | check(numberOfExistingReferences < 1); | ||
70357 | } or { | ||
70358 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
70359 | } | ||
70360 | /** | ||
70361 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
70362 | */ | ||
70363 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
70364 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70365 | source: DefinedElement, target:DefinedElement) | ||
70366 | { | ||
70367 | find interpretation(problem,interpretation); | ||
70368 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70369 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
70370 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70371 | BinaryElementRelationLink.param1(link,source); | ||
70372 | BinaryElementRelationLink.param2(link,target); | ||
70373 | } | ||
70374 | /** | ||
70375 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
70376 | */ | ||
70377 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
70378 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70379 | source: DefinedElement, target:DefinedElement) | ||
70380 | { | ||
70381 | find interpretation(problem,interpretation); | ||
70382 | // The two endpoint of the link have to exist | ||
70383 | find mayExist(problem, interpretation, source); | ||
70384 | find mayExist(problem, interpretation, target); | ||
70385 | // Type consistency | ||
70386 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
70387 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
70388 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
70389 | // the upper bound of the opposite reference multiplicity should be considered. | ||
70390 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
70391 | check(numberOfExistingOppositeReferences < 1); | ||
70392 | // The reference is containment, then a new reference cannot be create if: | ||
70393 | // 1. Multiple parents | ||
70394 | neg find mustContains4(problem,interpretation,_,target); | ||
70395 | // 2. Circle in the containment hierarchy | ||
70396 | neg find mustTransitiveContains(source,target); | ||
70397 | } or { | ||
70398 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
70399 | } | ||
70400 | /** | ||
70401 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
70402 | */ | ||
70403 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
70404 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70405 | source: DefinedElement, target:DefinedElement) | ||
70406 | { | ||
70407 | find interpretation(problem,interpretation); | ||
70408 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70409 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
70410 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70411 | BinaryElementRelationLink.param1(link,source); | ||
70412 | BinaryElementRelationLink.param2(link,target); | ||
70413 | } | ||
70414 | /** | ||
70415 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
70416 | */ | ||
70417 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
70418 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70419 | source: DefinedElement, target:DefinedElement) | ||
70420 | { | ||
70421 | find interpretation(problem,interpretation); | ||
70422 | // The two endpoint of the link have to exist | ||
70423 | find mayExist(problem, interpretation, source); | ||
70424 | find mayExist(problem, interpretation, target); | ||
70425 | // Type consistency | ||
70426 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
70427 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
70428 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70429 | // the upper bound of the multiplicity should be considered. | ||
70430 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
70431 | check(numberOfExistingReferences < 1); | ||
70432 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
70433 | // the upper bound of the opposite reference multiplicity should be considered. | ||
70434 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
70435 | check(numberOfExistingOppositeReferences < 1); | ||
70436 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
70437 | // 1. Multiple parents | ||
70438 | neg find mustContains4(problem,interpretation,source,_); | ||
70439 | // 2. Circle in the containment hierarchy | ||
70440 | neg find mustTransitiveContains(source,target); | ||
70441 | } or { | ||
70442 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
70443 | } | ||
70444 | /** | ||
70445 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
70446 | */ | ||
70447 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
70448 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70449 | source: DefinedElement, target:DefinedElement) | ||
70450 | { | ||
70451 | find interpretation(problem,interpretation); | ||
70452 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70453 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
70454 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70455 | BinaryElementRelationLink.param1(link,source); | ||
70456 | BinaryElementRelationLink.param2(link,target); | ||
70457 | } | ||
70458 | /** | ||
70459 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
70460 | */ | ||
70461 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
70462 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70463 | source: DefinedElement, target:DefinedElement) | ||
70464 | { | ||
70465 | find interpretation(problem,interpretation); | ||
70466 | // The two endpoint of the link have to exist | ||
70467 | find mayExist(problem, interpretation, source); | ||
70468 | find mayExist(problem, interpretation, target); | ||
70469 | // Type consistency | ||
70470 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
70471 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
70472 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
70473 | // the upper bound of the opposite reference multiplicity should be considered. | ||
70474 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
70475 | check(numberOfExistingOppositeReferences < 1); | ||
70476 | } or { | ||
70477 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
70478 | } | ||
70479 | /** | ||
70480 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
70481 | */ | ||
70482 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
70483 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70484 | source: DefinedElement, target:DefinedElement) | ||
70485 | { | ||
70486 | find interpretation(problem,interpretation); | ||
70487 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70488 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
70489 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70490 | BinaryElementRelationLink.param1(link,source); | ||
70491 | BinaryElementRelationLink.param2(link,target); | ||
70492 | } | ||
70493 | /** | ||
70494 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
70495 | */ | ||
70496 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
70497 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70498 | source: DefinedElement, target:DefinedElement) | ||
70499 | { | ||
70500 | find interpretation(problem,interpretation); | ||
70501 | // The two endpoint of the link have to exist | ||
70502 | find mayExist(problem, interpretation, source); | ||
70503 | find mayExist(problem, interpretation, target); | ||
70504 | // Type consistency | ||
70505 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
70506 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
70507 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
70508 | // the upper bound of the opposite reference multiplicity should be considered. | ||
70509 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
70510 | check(numberOfExistingOppositeReferences < 1); | ||
70511 | // The reference is containment, then a new reference cannot be create if: | ||
70512 | // 1. Multiple parents | ||
70513 | neg find mustContains4(problem,interpretation,_,target); | ||
70514 | // 2. Circle in the containment hierarchy | ||
70515 | neg find mustTransitiveContains(source,target); | ||
70516 | } or { | ||
70517 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
70518 | } | ||
70519 | /** | ||
70520 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
70521 | */ | ||
70522 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
70523 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70524 | source: DefinedElement, target:DefinedElement) | ||
70525 | { | ||
70526 | find interpretation(problem,interpretation); | ||
70527 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70528 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
70529 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70530 | BinaryElementRelationLink.param1(link,source); | ||
70531 | BinaryElementRelationLink.param2(link,target); | ||
70532 | } | ||
70533 | /** | ||
70534 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
70535 | */ | ||
70536 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
70537 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70538 | source: DefinedElement, target:DefinedElement) | ||
70539 | { | ||
70540 | find interpretation(problem,interpretation); | ||
70541 | // The two endpoint of the link have to exist | ||
70542 | find mayExist(problem, interpretation, source); | ||
70543 | find mayExist(problem, interpretation, target); | ||
70544 | // Type consistency | ||
70545 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
70546 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
70547 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70548 | // the upper bound of the multiplicity should be considered. | ||
70549 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
70550 | check(numberOfExistingReferences < 1); | ||
70551 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
70552 | // the upper bound of the opposite reference multiplicity should be considered. | ||
70553 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
70554 | check(numberOfExistingOppositeReferences < 1); | ||
70555 | // The reference is containment, then a new reference cannot be create if: | ||
70556 | // 1. Multiple parents | ||
70557 | neg find mustContains4(problem,interpretation,_,target); | ||
70558 | // 2. Circle in the containment hierarchy | ||
70559 | neg find mustTransitiveContains(source,target); | ||
70560 | } or { | ||
70561 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
70562 | } | ||
70563 | /** | ||
70564 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
70565 | */ | ||
70566 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
70567 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70568 | source: DefinedElement, target:DefinedElement) | ||
70569 | { | ||
70570 | find interpretation(problem,interpretation); | ||
70571 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70572 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
70573 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70574 | BinaryElementRelationLink.param1(link,source); | ||
70575 | BinaryElementRelationLink.param2(link,target); | ||
70576 | } | ||
70577 | /** | ||
70578 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
70579 | */ | ||
70580 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
70581 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70582 | source: DefinedElement, target:DefinedElement) | ||
70583 | { | ||
70584 | find interpretation(problem,interpretation); | ||
70585 | // The two endpoint of the link have to exist | ||
70586 | find mayExist(problem, interpretation, source); | ||
70587 | find mayExist(problem, interpretation, target); | ||
70588 | // Type consistency | ||
70589 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
70590 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
70591 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70592 | // the upper bound of the multiplicity should be considered. | ||
70593 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
70594 | check(numberOfExistingReferences < 1); | ||
70595 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
70596 | // 1. Multiple parents | ||
70597 | neg find mustContains4(problem,interpretation,source,_); | ||
70598 | // 2. Circle in the containment hierarchy | ||
70599 | neg find mustTransitiveContains(source,target); | ||
70600 | } or { | ||
70601 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
70602 | } | ||
70603 | /** | ||
70604 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
70605 | */ | ||
70606 | private pattern mustInRelationtype_attribute_Function( | ||
70607 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70608 | source: DefinedElement, target:DefinedElement) | ||
70609 | { | ||
70610 | find interpretation(problem,interpretation); | ||
70611 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70612 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
70613 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
70614 | BinaryElementRelationLink.param1(link,source); | ||
70615 | BinaryElementRelationLink.param2(link,target); | ||
70616 | } | ||
70617 | /** | ||
70618 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
70619 | */ | ||
70620 | private pattern mayInRelationtype_attribute_Function( | ||
70621 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70622 | source: DefinedElement, target:DefinedElement) | ||
70623 | { | ||
70624 | find interpretation(problem,interpretation); | ||
70625 | // The two endpoint of the link have to exist | ||
70626 | find mayExist(problem, interpretation, source); | ||
70627 | find mayExist(problem, interpretation, target); | ||
70628 | // Type consistency | ||
70629 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
70630 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
70631 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
70632 | // the upper bound of the multiplicity should be considered. | ||
70633 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
70634 | check(numberOfExistingReferences < 1); | ||
70635 | } or { | ||
70636 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
70637 | } | ||
70638 | |||
70639 | ////////// | ||
70640 | // 1.3 Relation Definition Indexers | ||
70641 | ////////// | ||
70642 | |||
70643 | ////////// | ||
70644 | // 1.4 Containment Indexer | ||
70645 | ////////// | ||
70646 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
70647 | find mustContains4(_,_,source,target); | ||
70648 | } | ||
70649 | |||
70650 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
70651 | source: DefinedElement, target: DefinedElement) | ||
70652 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
70653 | |||
70654 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
70655 | |||
70656 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
70657 | |||
70658 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
70659 | |||
70660 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
70661 | |||
70662 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
70663 | |||
70664 | private pattern mustTransitiveContains(source,target) { | ||
70665 | find mustContains2+(source,target); | ||
70666 | } | ||
70667 | |||
70668 | ////////// | ||
70669 | // 2. Invalidation Indexers | ||
70670 | ////////// | ||
70671 | // 2.1 Invalidated by WF Queries | ||
70672 | ////////// | ||
70673 | |||
70674 | ////////// | ||
70675 | // 3. Unfinishedness Indexers | ||
70676 | ////////// | ||
70677 | // 3.1 Unfinishedness Measured by Multiplicity | ||
70678 | ////////// | ||
70679 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
70680 | find interpretation(problem,interpretation); | ||
70681 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70682 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
70683 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
70684 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
70685 | check(numberOfExistingReferences < 1); | ||
70686 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
70687 | } | ||
70688 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
70689 | find interpretation(problem,interpretation); | ||
70690 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70691 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
70692 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
70693 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
70694 | check(numberOfExistingReferences < 1); | ||
70695 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
70696 | } | ||
70697 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
70698 | find interpretation(problem,interpretation); | ||
70699 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
70700 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
70701 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
70702 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
70703 | check(numberOfExistingReferences < 1); | ||
70704 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
70705 | } | ||
70706 | |||
70707 | ////////// | ||
70708 | // 3.2 Unfinishedness Measured by WF Queries | ||
70709 | ////////// | ||
70710 | |||
70711 | ////////// | ||
70712 | // 4. Refinement Indexers | ||
70713 | ////////// | ||
70714 | // 4.1 Object constructors | ||
70715 | ////////// | ||
70716 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
70717 | { | ||
70718 | find interpretation(problem,interpretation); | ||
70719 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
70720 | find mustExist(problem, interpretation, root); | ||
70721 | }or{ | ||
70722 | find interpretation(problem,interpretation); | ||
70723 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
70724 | find mustExist(problem, interpretation, root); | ||
70725 | }or{ | ||
70726 | find interpretation(problem,interpretation); | ||
70727 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
70728 | find mustExist(problem, interpretation, root); | ||
70729 | }or{ | ||
70730 | find interpretation(problem,interpretation); | ||
70731 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
70732 | find mustExist(problem, interpretation, root); | ||
70733 | }or{ | ||
70734 | find interpretation(problem,interpretation); | ||
70735 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
70736 | find mustExist(problem, interpretation, root); | ||
70737 | }or{ | ||
70738 | find interpretation(problem,interpretation); | ||
70739 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
70740 | find mustExist(problem, interpretation, root); | ||
70741 | }or{ | ||
70742 | find interpretation(problem,interpretation); | ||
70743 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
70744 | find mustExist(problem, interpretation, root); | ||
70745 | }or{ | ||
70746 | find interpretation(problem,interpretation); | ||
70747 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
70748 | find mustExist(problem, interpretation, root); | ||
70749 | }or{ | ||
70750 | find interpretation(problem,interpretation); | ||
70751 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
70752 | find mustExist(problem, interpretation, root); | ||
70753 | } | ||
70754 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
70755 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70756 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
70757 | container:DefinedElement) | ||
70758 | { | ||
70759 | find interpretation(problem,interpretation); | ||
70760 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70761 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
70762 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
70763 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
70764 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
70765 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
70766 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
70767 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
70768 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
70769 | find mustExist(problem, interpretation, container); | ||
70770 | neg find mustExist(problem, interpretation, newObject); | ||
70771 | } | ||
70772 | pattern createObject_FAMTerminator_class( | ||
70773 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70774 | typeInterpretation:PartialComplexTypeInterpretation) | ||
70775 | { | ||
70776 | find interpretation(problem,interpretation); | ||
70777 | neg find hasElementInContainment(problem,interpretation); | ||
70778 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70779 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
70780 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
70781 | find mayExist(problem, interpretation, newObject); | ||
70782 | neg find mustExist(problem, interpretation, newObject); | ||
70783 | } | ||
70784 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
70785 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70786 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
70787 | container:DefinedElement) | ||
70788 | { | ||
70789 | find interpretation(problem,interpretation); | ||
70790 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70791 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
70792 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
70793 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
70794 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
70795 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
70796 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
70797 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
70798 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
70799 | find mustExist(problem, interpretation, container); | ||
70800 | neg find mustExist(problem, interpretation, newObject); | ||
70801 | } | ||
70802 | pattern createObject_FunctionalInterface_class( | ||
70803 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70804 | typeInterpretation:PartialComplexTypeInterpretation) | ||
70805 | { | ||
70806 | find interpretation(problem,interpretation); | ||
70807 | neg find hasElementInContainment(problem,interpretation); | ||
70808 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70809 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
70810 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
70811 | find mayExist(problem, interpretation, newObject); | ||
70812 | neg find mustExist(problem, interpretation, newObject); | ||
70813 | } | ||
70814 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
70815 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70816 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
70817 | container:DefinedElement) | ||
70818 | { | ||
70819 | find interpretation(problem,interpretation); | ||
70820 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70821 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
70822 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
70823 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
70824 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
70825 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
70826 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
70827 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
70828 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
70829 | find mustExist(problem, interpretation, container); | ||
70830 | neg find mustExist(problem, interpretation, newObject); | ||
70831 | } | ||
70832 | pattern createObject_FunctionalInput_class( | ||
70833 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70834 | typeInterpretation:PartialComplexTypeInterpretation) | ||
70835 | { | ||
70836 | find interpretation(problem,interpretation); | ||
70837 | neg find hasElementInContainment(problem,interpretation); | ||
70838 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70839 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
70840 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
70841 | find mayExist(problem, interpretation, newObject); | ||
70842 | neg find mustExist(problem, interpretation, newObject); | ||
70843 | } | ||
70844 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
70845 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70846 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
70847 | container:DefinedElement) | ||
70848 | { | ||
70849 | find interpretation(problem,interpretation); | ||
70850 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70851 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
70852 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
70853 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
70854 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
70855 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
70856 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
70857 | find mustExist(problem, interpretation, container); | ||
70858 | neg find mustExist(problem, interpretation, newObject); | ||
70859 | } | ||
70860 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
70861 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70862 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
70863 | container:DefinedElement) | ||
70864 | { | ||
70865 | find interpretation(problem,interpretation); | ||
70866 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70867 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
70868 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
70869 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
70870 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
70871 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
70872 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
70873 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
70874 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
70875 | find mustExist(problem, interpretation, container); | ||
70876 | neg find mustExist(problem, interpretation, newObject); | ||
70877 | } | ||
70878 | pattern createObject_Function_class( | ||
70879 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70880 | typeInterpretation:PartialComplexTypeInterpretation) | ||
70881 | { | ||
70882 | find interpretation(problem,interpretation); | ||
70883 | neg find hasElementInContainment(problem,interpretation); | ||
70884 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70885 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
70886 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
70887 | find mayExist(problem, interpretation, newObject); | ||
70888 | neg find mustExist(problem, interpretation, newObject); | ||
70889 | } | ||
70890 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
70891 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70892 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
70893 | container:DefinedElement) | ||
70894 | { | ||
70895 | find interpretation(problem,interpretation); | ||
70896 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70897 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
70898 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
70899 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
70900 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
70901 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
70902 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
70903 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
70904 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
70905 | find mustExist(problem, interpretation, container); | ||
70906 | neg find mustExist(problem, interpretation, newObject); | ||
70907 | } | ||
70908 | pattern createObject_InformationLink_class( | ||
70909 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70910 | typeInterpretation:PartialComplexTypeInterpretation) | ||
70911 | { | ||
70912 | find interpretation(problem,interpretation); | ||
70913 | neg find hasElementInContainment(problem,interpretation); | ||
70914 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70915 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
70916 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
70917 | find mayExist(problem, interpretation, newObject); | ||
70918 | neg find mustExist(problem, interpretation, newObject); | ||
70919 | } | ||
70920 | pattern createObject_FunctionalArchitectureModel_class( | ||
70921 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70922 | typeInterpretation:PartialComplexTypeInterpretation) | ||
70923 | { | ||
70924 | find interpretation(problem,interpretation); | ||
70925 | neg find hasElementInContainment(problem,interpretation); | ||
70926 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70927 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class"); | ||
70928 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,newObject); | ||
70929 | find mayExist(problem, interpretation, newObject); | ||
70930 | neg find mustExist(problem, interpretation, newObject); | ||
70931 | } | ||
70932 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
70933 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70934 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
70935 | container:DefinedElement) | ||
70936 | { | ||
70937 | find interpretation(problem,interpretation); | ||
70938 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70939 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
70940 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
70941 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
70942 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
70943 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
70944 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
70945 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
70946 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
70947 | find mustExist(problem, interpretation, container); | ||
70948 | neg find mustExist(problem, interpretation, newObject); | ||
70949 | } | ||
70950 | pattern createObject_FunctionalOutput_class( | ||
70951 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
70952 | typeInterpretation:PartialComplexTypeInterpretation) | ||
70953 | { | ||
70954 | find interpretation(problem,interpretation); | ||
70955 | neg find hasElementInContainment(problem,interpretation); | ||
70956 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
70957 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
70958 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
70959 | find mayExist(problem, interpretation, newObject); | ||
70960 | neg find mustExist(problem, interpretation, newObject); | ||
70961 | } | ||
70962 | |||
70963 | ////////// | ||
70964 | // 4.2 Type refinement | ||
70965 | ////////// | ||
70966 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
70967 | find interpretation(problem,interpretation); | ||
70968 | PartialInterpretation.newElements(interpretation,element); | ||
70969 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
70970 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
70971 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
70972 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
70973 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
70974 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
70975 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
70976 | } | ||
70977 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
70978 | find interpretation(problem,interpretation); | ||
70979 | PartialInterpretation.newElements(interpretation,element); | ||
70980 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
70981 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
70982 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
70983 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
70984 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
70985 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
70986 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
70987 | } | ||
70988 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
70989 | find interpretation(problem,interpretation); | ||
70990 | PartialInterpretation.newElements(interpretation,element); | ||
70991 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
70992 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
70993 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
70994 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
70995 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
70996 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
70997 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
70998 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
70999 | } | ||
71000 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
71001 | find interpretation(problem,interpretation); | ||
71002 | PartialInterpretation.newElements(interpretation,element); | ||
71003 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
71004 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71005 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71006 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
71007 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71008 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71009 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71010 | } | ||
71011 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
71012 | find interpretation(problem,interpretation); | ||
71013 | PartialInterpretation.newElements(interpretation,element); | ||
71014 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
71015 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71016 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71017 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71018 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71019 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71020 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71021 | } | ||
71022 | pattern refineTypeTo_FunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
71023 | find interpretation(problem,interpretation); | ||
71024 | PartialInterpretation.newElements(interpretation,element); | ||
71025 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71026 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71027 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71028 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71029 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71030 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71031 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71032 | } | ||
71033 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
71034 | find interpretation(problem,interpretation); | ||
71035 | PartialInterpretation.newElements(interpretation,element); | ||
71036 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
71037 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71038 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71039 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71040 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
71041 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71042 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71043 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
71044 | } | ||
71045 | |||
71046 | ////////// | ||
71047 | // 4.3 Relation refinement | ||
71048 | ////////// | ||
71049 | pattern refineRelation_model_reference_FunctionalElement( | ||
71050 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71051 | relationIterpretation:PartialRelationInterpretation, | ||
71052 | from: DefinedElement, to: DefinedElement) | ||
71053 | { | ||
71054 | find interpretation(problem,interpretation); | ||
71055 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71056 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
71057 | find mustExist(problem, interpretation, from); | ||
71058 | find mustExist(problem, interpretation, to); | ||
71059 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
71060 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
71061 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
71062 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
71063 | } | ||
71064 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
71065 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71066 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
71067 | from: DefinedElement, to: DefinedElement) | ||
71068 | { | ||
71069 | find interpretation(problem,interpretation); | ||
71070 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71071 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
71072 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
71073 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
71074 | find mustExist(problem, interpretation, from); | ||
71075 | find mustExist(problem, interpretation, to); | ||
71076 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
71077 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
71078 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
71079 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
71080 | } | ||
71081 | pattern refineRelation_type_attribute_Function( | ||
71082 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71083 | relationIterpretation:PartialRelationInterpretation, | ||
71084 | from: DefinedElement, to: DefinedElement) | ||
71085 | { | ||
71086 | find interpretation(problem,interpretation); | ||
71087 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71088 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
71089 | find mustExist(problem, interpretation, from); | ||
71090 | find mustExist(problem, interpretation, to); | ||
71091 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
71092 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
71093 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
71094 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
71095 | } | ||
71096 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" | ||
71097 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" | ||
71098 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" | ||
71099 | |||
71100 | ////////// | ||
71101 | // 0. Util | ||
71102 | ////////// | ||
71103 | private pattern interpretation(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71104 | PartialInterpretation.problem(interpretation,problem); | ||
71105 | } | ||
71106 | |||
71107 | ///////////////////////// | ||
71108 | // 0.1 Existence | ||
71109 | ///////////////////////// | ||
71110 | private pattern mustExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71111 | find interpretation(problem,interpretation); | ||
71112 | LogicProblem.elements(problem,element); | ||
71113 | } or { | ||
71114 | find interpretation(problem,interpretation); | ||
71115 | PartialInterpretation.newElements(interpretation,element); | ||
71116 | } | ||
71117 | |||
71118 | private pattern mayExist(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71119 | find mustExist(problem,interpretation,element); | ||
71120 | } or { | ||
71121 | find interpretation(problem,interpretation); | ||
71122 | neg find elementCloseWorld(element); | ||
71123 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71124 | } | ||
71125 | |||
71126 | private pattern elementCloseWorld(element:DefinedElement) { | ||
71127 | PartialInterpretation.openWorldElements(i,element); | ||
71128 | PartialInterpretation.maxNewElements(i,0); | ||
71129 | } or { | ||
71130 | Scope.targetTypeInterpretation(scope,interpretation); | ||
71131 | PartialTypeInterpratation.elements(interpretation,element); | ||
71132 | Scope.maxNewElements(scope,0); | ||
71133 | } | ||
71134 | |||
71135 | //////////////////////// | ||
71136 | // 0.2 Equivalence | ||
71137 | //////////////////////// | ||
71138 | pattern mayEquivalent(problem:LogicProblem, interpretation:PartialInterpretation, a: DefinedElement, b: DefinedElement) { | ||
71139 | find mayExist(problem,interpretation,a); | ||
71140 | find mayExist(problem,interpretation,b); | ||
71141 | a == b; | ||
71142 | } | ||
71143 | |||
71144 | //////////////////////// | ||
71145 | // 0.3 Required Patterns by TypeIndexer | ||
71146 | //////////////////////// | ||
71147 | private pattern typeInterpretation(problem:LogicProblem, interpretation:PartialInterpretation, type:TypeDeclaration, typeInterpretation:PartialComplexTypeInterpretation) { | ||
71148 | find interpretation(problem,interpretation); | ||
71149 | LogicProblem.types(problem,type); | ||
71150 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
71151 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71152 | } | ||
71153 | |||
71154 | private pattern directInstanceOf(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement, type:Type) { | ||
71155 | find interpretation(problem,interpretation); | ||
71156 | LogicProblem.types(problem,type); | ||
71157 | TypeDefinition.elements(type,element); | ||
71158 | } or { | ||
71159 | find interpretation(problem,interpretation); | ||
71160 | find typeInterpretation(problem,interpretation,type,typeInterpretation); | ||
71161 | PartialComplexTypeInterpretation.elements(typeInterpretation,element); | ||
71162 | } | ||
71163 | |||
71164 | private pattern isPrimitive(element: PrimitiveElement) { | ||
71165 | PrimitiveElement(element); | ||
71166 | } | ||
71167 | |||
71168 | ////////// | ||
71169 | // 1. Problem-Specific Base Indexers | ||
71170 | ////////// | ||
71171 | // 1.1 Type Indexers | ||
71172 | ////////// | ||
71173 | // 1.1.1 primitive Type Indexers | ||
71174 | ////////// | ||
71175 | |||
71176 | ////////// | ||
71177 | // 1.1.2 domain-specific Type Indexers | ||
71178 | ////////// | ||
71179 | /** | ||
71180 | * An element must be an instance of type "FunctionalElement class". | ||
71181 | */ | ||
71182 | private pattern mustInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71183 | Type.name(type,"FunctionalElement class"); | ||
71184 | find directInstanceOf(problem,interpretation,element,type); | ||
71185 | } | ||
71186 | private pattern scopeDisallowsNewFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71187 | find interpretation(problem,interpretation); | ||
71188 | PartialInterpretation.scopes(interpretation,scope); | ||
71189 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71190 | Scope.maxNewElements(scope,0); | ||
71191 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71192 | Type.name(type,"FunctionalElement class"); | ||
71193 | } | ||
71194 | |||
71195 | /** | ||
71196 | * An element may be an instance of type "FunctionalElement class". | ||
71197 | */ | ||
71198 | private pattern mayInstanceOfFunctionalElement_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71199 | { | ||
71200 | find interpretation(problem,interpretation); | ||
71201 | PartialInterpretation.newElements(interpretation,element); | ||
71202 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71203 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
71204 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71205 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71206 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71207 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71208 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
71209 | neg find isPrimitive(element); | ||
71210 | } or { | ||
71211 | find interpretation(problem,interpretation); | ||
71212 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71213 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71214 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
71215 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71216 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71217 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71218 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71219 | neg find scopeDisallowsNewFunctionalElement_class(problem, interpretation); | ||
71220 | neg find isPrimitive(element); | ||
71221 | } or | ||
71222 | { find mustInstanceOfFunctionalElement_class(problem,interpretation,element); } | ||
71223 | /** | ||
71224 | * An element must be an instance of type "FunctionalArchitectureModel class". | ||
71225 | */ | ||
71226 | private pattern mustInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71227 | Type.name(type,"FunctionalArchitectureModel class"); | ||
71228 | find directInstanceOf(problem,interpretation,element,type); | ||
71229 | } | ||
71230 | private pattern scopeDisallowsNewFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71231 | find interpretation(problem,interpretation); | ||
71232 | PartialInterpretation.scopes(interpretation,scope); | ||
71233 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71234 | Scope.maxNewElements(scope,0); | ||
71235 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71236 | Type.name(type,"FunctionalArchitectureModel class"); | ||
71237 | } | ||
71238 | |||
71239 | /** | ||
71240 | * An element may be an instance of type "FunctionalArchitectureModel class". | ||
71241 | */ | ||
71242 | private pattern mayInstanceOfFunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71243 | { | ||
71244 | find interpretation(problem,interpretation); | ||
71245 | PartialInterpretation.newElements(interpretation,element); | ||
71246 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71247 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71248 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71249 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71250 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71251 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
71252 | neg find isPrimitive(element); | ||
71253 | } or { | ||
71254 | find interpretation(problem,interpretation); | ||
71255 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71256 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71257 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71258 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71259 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71260 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71261 | neg find scopeDisallowsNewFunctionalArchitectureModel_class(problem, interpretation); | ||
71262 | neg find isPrimitive(element); | ||
71263 | } or | ||
71264 | { find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); } | ||
71265 | /** | ||
71266 | * An element must be an instance of type "Function class". | ||
71267 | */ | ||
71268 | private pattern mustInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71269 | Type.name(type,"Function class"); | ||
71270 | find directInstanceOf(problem,interpretation,element,type); | ||
71271 | } | ||
71272 | private pattern scopeDisallowsNewFunction_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71273 | find interpretation(problem,interpretation); | ||
71274 | PartialInterpretation.scopes(interpretation,scope); | ||
71275 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71276 | Scope.maxNewElements(scope,0); | ||
71277 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71278 | Type.name(type,"Function class"); | ||
71279 | } | ||
71280 | |||
71281 | /** | ||
71282 | * An element may be an instance of type "Function class". | ||
71283 | */ | ||
71284 | private pattern mayInstanceOfFunction_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71285 | { | ||
71286 | find interpretation(problem,interpretation); | ||
71287 | PartialInterpretation.newElements(interpretation,element); | ||
71288 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71289 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71290 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71291 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71292 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71293 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
71294 | neg find isPrimitive(element); | ||
71295 | } or { | ||
71296 | find interpretation(problem,interpretation); | ||
71297 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71298 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71299 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71300 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71301 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71302 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71303 | neg find scopeDisallowsNewFunction_class(problem, interpretation); | ||
71304 | neg find isPrimitive(element); | ||
71305 | } or | ||
71306 | { find mustInstanceOfFunction_class(problem,interpretation,element); } | ||
71307 | /** | ||
71308 | * An element must be an instance of type "FAMTerminator class". | ||
71309 | */ | ||
71310 | private pattern mustInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71311 | Type.name(type,"FAMTerminator class"); | ||
71312 | find directInstanceOf(problem,interpretation,element,type); | ||
71313 | } | ||
71314 | private pattern scopeDisallowsNewFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71315 | find interpretation(problem,interpretation); | ||
71316 | PartialInterpretation.scopes(interpretation,scope); | ||
71317 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71318 | Scope.maxNewElements(scope,0); | ||
71319 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71320 | Type.name(type,"FAMTerminator class"); | ||
71321 | } | ||
71322 | |||
71323 | /** | ||
71324 | * An element may be an instance of type "FAMTerminator class". | ||
71325 | */ | ||
71326 | private pattern mayInstanceOfFAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71327 | { | ||
71328 | find interpretation(problem,interpretation); | ||
71329 | PartialInterpretation.newElements(interpretation,element); | ||
71330 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71331 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71332 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71333 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71334 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71335 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
71336 | neg find isPrimitive(element); | ||
71337 | } or { | ||
71338 | find interpretation(problem,interpretation); | ||
71339 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71340 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71341 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71342 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71343 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71344 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71345 | neg find scopeDisallowsNewFAMTerminator_class(problem, interpretation); | ||
71346 | neg find isPrimitive(element); | ||
71347 | } or | ||
71348 | { find mustInstanceOfFAMTerminator_class(problem,interpretation,element); } | ||
71349 | /** | ||
71350 | * An element must be an instance of type "InformationLink class". | ||
71351 | */ | ||
71352 | private pattern mustInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71353 | Type.name(type,"InformationLink class"); | ||
71354 | find directInstanceOf(problem,interpretation,element,type); | ||
71355 | } | ||
71356 | private pattern scopeDisallowsNewInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71357 | find interpretation(problem,interpretation); | ||
71358 | PartialInterpretation.scopes(interpretation,scope); | ||
71359 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71360 | Scope.maxNewElements(scope,0); | ||
71361 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71362 | Type.name(type,"InformationLink class"); | ||
71363 | } | ||
71364 | |||
71365 | /** | ||
71366 | * An element may be an instance of type "InformationLink class". | ||
71367 | */ | ||
71368 | private pattern mayInstanceOfInformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71369 | { | ||
71370 | find interpretation(problem,interpretation); | ||
71371 | PartialInterpretation.newElements(interpretation,element); | ||
71372 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71373 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71374 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71375 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71376 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71377 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
71378 | neg find isPrimitive(element); | ||
71379 | } or { | ||
71380 | find interpretation(problem,interpretation); | ||
71381 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71382 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71383 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71384 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71385 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71386 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71387 | neg find scopeDisallowsNewInformationLink_class(problem, interpretation); | ||
71388 | neg find isPrimitive(element); | ||
71389 | } or | ||
71390 | { find mustInstanceOfInformationLink_class(problem,interpretation,element); } | ||
71391 | /** | ||
71392 | * An element must be an instance of type "FunctionalInterface class". | ||
71393 | */ | ||
71394 | private pattern mustInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71395 | Type.name(type,"FunctionalInterface class"); | ||
71396 | find directInstanceOf(problem,interpretation,element,type); | ||
71397 | } | ||
71398 | private pattern scopeDisallowsNewFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71399 | find interpretation(problem,interpretation); | ||
71400 | PartialInterpretation.scopes(interpretation,scope); | ||
71401 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71402 | Scope.maxNewElements(scope,0); | ||
71403 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71404 | Type.name(type,"FunctionalInterface class"); | ||
71405 | } | ||
71406 | |||
71407 | /** | ||
71408 | * An element may be an instance of type "FunctionalInterface class". | ||
71409 | */ | ||
71410 | private pattern mayInstanceOfFunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71411 | { | ||
71412 | find interpretation(problem,interpretation); | ||
71413 | PartialInterpretation.newElements(interpretation,element); | ||
71414 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71415 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71416 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71417 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71418 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71419 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
71420 | neg find isPrimitive(element); | ||
71421 | } or { | ||
71422 | find interpretation(problem,interpretation); | ||
71423 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71424 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71425 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
71426 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71427 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71428 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71429 | neg find scopeDisallowsNewFunctionalInterface_class(problem, interpretation); | ||
71430 | neg find isPrimitive(element); | ||
71431 | } or | ||
71432 | { find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); } | ||
71433 | /** | ||
71434 | * An element must be an instance of type "FunctionalInput class". | ||
71435 | */ | ||
71436 | private pattern mustInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71437 | Type.name(type,"FunctionalInput class"); | ||
71438 | find directInstanceOf(problem,interpretation,element,type); | ||
71439 | } | ||
71440 | private pattern scopeDisallowsNewFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71441 | find interpretation(problem,interpretation); | ||
71442 | PartialInterpretation.scopes(interpretation,scope); | ||
71443 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71444 | Scope.maxNewElements(scope,0); | ||
71445 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71446 | Type.name(type,"FunctionalInput class"); | ||
71447 | } | ||
71448 | |||
71449 | /** | ||
71450 | * An element may be an instance of type "FunctionalInput class". | ||
71451 | */ | ||
71452 | private pattern mayInstanceOfFunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71453 | { | ||
71454 | find interpretation(problem,interpretation); | ||
71455 | PartialInterpretation.newElements(interpretation,element); | ||
71456 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71457 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
71458 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71459 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71460 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71461 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71462 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
71463 | neg find isPrimitive(element); | ||
71464 | } or { | ||
71465 | find interpretation(problem,interpretation); | ||
71466 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71467 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71468 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
71469 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71470 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71471 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71472 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71473 | neg find scopeDisallowsNewFunctionalInput_class(problem, interpretation); | ||
71474 | neg find isPrimitive(element); | ||
71475 | } or | ||
71476 | { find mustInstanceOfFunctionalInput_class(problem,interpretation,element); } | ||
71477 | /** | ||
71478 | * An element must be an instance of type "FunctionalOutput class". | ||
71479 | */ | ||
71480 | private pattern mustInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71481 | Type.name(type,"FunctionalOutput class"); | ||
71482 | find directInstanceOf(problem,interpretation,element,type); | ||
71483 | } | ||
71484 | private pattern scopeDisallowsNewFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71485 | find interpretation(problem,interpretation); | ||
71486 | PartialInterpretation.scopes(interpretation,scope); | ||
71487 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71488 | Scope.maxNewElements(scope,0); | ||
71489 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71490 | Type.name(type,"FunctionalOutput class"); | ||
71491 | } | ||
71492 | |||
71493 | /** | ||
71494 | * An element may be an instance of type "FunctionalOutput class". | ||
71495 | */ | ||
71496 | private pattern mayInstanceOfFunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71497 | { | ||
71498 | find interpretation(problem,interpretation); | ||
71499 | PartialInterpretation.newElements(interpretation,element); | ||
71500 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71501 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71502 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
71503 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71504 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71505 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71506 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
71507 | neg find isPrimitive(element); | ||
71508 | } or { | ||
71509 | find interpretation(problem,interpretation); | ||
71510 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71511 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71512 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71513 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
71514 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71515 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71516 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71517 | neg find scopeDisallowsNewFunctionalOutput_class(problem, interpretation); | ||
71518 | neg find isPrimitive(element); | ||
71519 | } or | ||
71520 | { find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); } | ||
71521 | /** | ||
71522 | * An element must be an instance of type "FunctionalData class". | ||
71523 | */ | ||
71524 | private pattern mustInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71525 | Type.name(type,"FunctionalData class"); | ||
71526 | find directInstanceOf(problem,interpretation,element,type); | ||
71527 | } | ||
71528 | private pattern scopeDisallowsNewFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71529 | find interpretation(problem,interpretation); | ||
71530 | PartialInterpretation.scopes(interpretation,scope); | ||
71531 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71532 | Scope.maxNewElements(scope,0); | ||
71533 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71534 | Type.name(type,"FunctionalData class"); | ||
71535 | } | ||
71536 | |||
71537 | /** | ||
71538 | * An element may be an instance of type "FunctionalData class". | ||
71539 | */ | ||
71540 | private pattern mayInstanceOfFunctionalData_class(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71541 | { | ||
71542 | find interpretation(problem,interpretation); | ||
71543 | PartialInterpretation.newElements(interpretation,element); | ||
71544 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71545 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
71546 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71547 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
71548 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71549 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71550 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71551 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
71552 | neg find isPrimitive(element); | ||
71553 | } or { | ||
71554 | find interpretation(problem,interpretation); | ||
71555 | PartialInterpretation.openWorldElements(interpretation,element); | ||
71556 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
71557 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
71558 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
71559 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
71560 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
71561 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
71562 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
71563 | neg find scopeDisallowsNewFunctionalData_class(problem, interpretation); | ||
71564 | neg find isPrimitive(element); | ||
71565 | } or | ||
71566 | { find mustInstanceOfFunctionalData_class(problem,interpretation,element); } | ||
71567 | /** | ||
71568 | * An element must be an instance of type "FunctionType enum". | ||
71569 | */ | ||
71570 | private pattern mustInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) { | ||
71571 | Type.name(type,"FunctionType enum"); | ||
71572 | find directInstanceOf(problem,interpretation,element,type); | ||
71573 | } | ||
71574 | private pattern scopeDisallowsNewFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation) { | ||
71575 | find interpretation(problem,interpretation); | ||
71576 | PartialInterpretation.scopes(interpretation,scope); | ||
71577 | Scope.targetTypeInterpretation(scope,typeInterpretation); | ||
71578 | Scope.maxNewElements(scope,0); | ||
71579 | PartialComplexTypeInterpretation.interpretationOf(typeInterpretation,type); | ||
71580 | Type.name(type,"FunctionType enum"); | ||
71581 | } | ||
71582 | |||
71583 | /** | ||
71584 | * An element may be an instance of type "FunctionType enum". | ||
71585 | */ | ||
71586 | private pattern mayInstanceOfFunctionType_enum(problem:LogicProblem, interpretation:PartialInterpretation, element:DefinedElement) | ||
71587 | { find mustInstanceOfFunctionType_enum(problem,interpretation,element); } | ||
71588 | |||
71589 | ////////// | ||
71590 | // 1.2 Relation Declaration Indexers | ||
71591 | ////////// | ||
71592 | /** | ||
71593 | * Matcher for detecting tuples t where []interface reference FunctionalElement(source,target) | ||
71594 | */ | ||
71595 | private pattern mustInRelationinterface_reference_FunctionalElement( | ||
71596 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71597 | source: DefinedElement, target:DefinedElement) | ||
71598 | { | ||
71599 | find interpretation(problem,interpretation); | ||
71600 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71601 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalElement"); | ||
71602 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71603 | BinaryElementRelationLink.param1(link,source); | ||
71604 | BinaryElementRelationLink.param2(link,target); | ||
71605 | } | ||
71606 | /** | ||
71607 | * Matcher for detecting tuples t where <>interface reference FunctionalElement(source,target) | ||
71608 | */ | ||
71609 | private pattern mayInRelationinterface_reference_FunctionalElement( | ||
71610 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71611 | source: DefinedElement, target:DefinedElement) | ||
71612 | { | ||
71613 | find interpretation(problem,interpretation); | ||
71614 | // The two endpoint of the link have to exist | ||
71615 | find mayExist(problem, interpretation, source); | ||
71616 | find mayExist(problem, interpretation, target); | ||
71617 | // Type consistency | ||
71618 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
71619 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
71620 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
71621 | // the upper bound of the multiplicity should be considered. | ||
71622 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,_); | ||
71623 | check(numberOfExistingReferences < 1); | ||
71624 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
71625 | // the upper bound of the opposite reference multiplicity should be considered. | ||
71626 | numberOfExistingOppositeReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,target,_); | ||
71627 | check(numberOfExistingOppositeReferences < 1); | ||
71628 | // The reference is containment, then a new reference cannot be create if: | ||
71629 | // 1. Multiple parents | ||
71630 | neg find mustContains4(problem,interpretation,_,target); | ||
71631 | // 2. Circle in the containment hierarchy | ||
71632 | neg find mustTransitiveContains(source,target); | ||
71633 | } or { | ||
71634 | find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); | ||
71635 | } | ||
71636 | /** | ||
71637 | * Matcher for detecting tuples t where []model reference FunctionalElement(source,target) | ||
71638 | */ | ||
71639 | private pattern mustInRelationmodel_reference_FunctionalElement( | ||
71640 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71641 | source: DefinedElement, target:DefinedElement) | ||
71642 | { | ||
71643 | find interpretation(problem,interpretation); | ||
71644 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71645 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
71646 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71647 | BinaryElementRelationLink.param1(link,source); | ||
71648 | BinaryElementRelationLink.param2(link,target); | ||
71649 | } | ||
71650 | /** | ||
71651 | * Matcher for detecting tuples t where <>model reference FunctionalElement(source,target) | ||
71652 | */ | ||
71653 | private pattern mayInRelationmodel_reference_FunctionalElement( | ||
71654 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71655 | source: DefinedElement, target:DefinedElement) | ||
71656 | { | ||
71657 | find interpretation(problem,interpretation); | ||
71658 | // The two endpoint of the link have to exist | ||
71659 | find mayExist(problem, interpretation, source); | ||
71660 | find mayExist(problem, interpretation, target); | ||
71661 | // Type consistency | ||
71662 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
71663 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,target); | ||
71664 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
71665 | // the upper bound of the multiplicity should be considered. | ||
71666 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,_); | ||
71667 | check(numberOfExistingReferences < 1); | ||
71668 | } or { | ||
71669 | find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,source,target); | ||
71670 | } | ||
71671 | /** | ||
71672 | * Matcher for detecting tuples t where []parent reference FunctionalElement(source,target) | ||
71673 | */ | ||
71674 | private pattern mustInRelationparent_reference_FunctionalElement( | ||
71675 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71676 | source: DefinedElement, target:DefinedElement) | ||
71677 | { | ||
71678 | find interpretation(problem,interpretation); | ||
71679 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71680 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"parent reference FunctionalElement"); | ||
71681 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71682 | BinaryElementRelationLink.param1(link,source); | ||
71683 | BinaryElementRelationLink.param2(link,target); | ||
71684 | } | ||
71685 | /** | ||
71686 | * Matcher for detecting tuples t where <>parent reference FunctionalElement(source,target) | ||
71687 | */ | ||
71688 | private pattern mayInRelationparent_reference_FunctionalElement( | ||
71689 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71690 | source: DefinedElement, target:DefinedElement) | ||
71691 | { | ||
71692 | find interpretation(problem,interpretation); | ||
71693 | // The two endpoint of the link have to exist | ||
71694 | find mayExist(problem, interpretation, source); | ||
71695 | find mayExist(problem, interpretation, target); | ||
71696 | // Type consistency | ||
71697 | find mayInstanceOfFunctionalElement_class(problem,interpretation,source); | ||
71698 | find mayInstanceOfFunction_class(problem,interpretation,target); | ||
71699 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
71700 | // the upper bound of the multiplicity should be considered. | ||
71701 | numberOfExistingReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,_); | ||
71702 | check(numberOfExistingReferences < 1); | ||
71703 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
71704 | // 1. Multiple parents | ||
71705 | neg find mustContains4(problem,interpretation,source,_); | ||
71706 | // 2. Circle in the containment hierarchy | ||
71707 | neg find mustTransitiveContains(source,target); | ||
71708 | } or { | ||
71709 | find mustInRelationparent_reference_FunctionalElement(problem,interpretation,source,target); | ||
71710 | } | ||
71711 | /** | ||
71712 | * Matcher for detecting tuples t where []rootElements reference FunctionalArchitectureModel(source,target) | ||
71713 | */ | ||
71714 | private pattern mustInRelationrootElements_reference_FunctionalArchitectureModel( | ||
71715 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71716 | source: DefinedElement, target:DefinedElement) | ||
71717 | { | ||
71718 | find interpretation(problem,interpretation); | ||
71719 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71720 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
71721 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71722 | BinaryElementRelationLink.param1(link,source); | ||
71723 | BinaryElementRelationLink.param2(link,target); | ||
71724 | } | ||
71725 | /** | ||
71726 | * Matcher for detecting tuples t where <>rootElements reference FunctionalArchitectureModel(source,target) | ||
71727 | */ | ||
71728 | private pattern mayInRelationrootElements_reference_FunctionalArchitectureModel( | ||
71729 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71730 | source: DefinedElement, target:DefinedElement) | ||
71731 | { | ||
71732 | find interpretation(problem,interpretation); | ||
71733 | // The two endpoint of the link have to exist | ||
71734 | find mayExist(problem, interpretation, source); | ||
71735 | find mayExist(problem, interpretation, target); | ||
71736 | // Type consistency | ||
71737 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,source); | ||
71738 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
71739 | // The reference is containment, then a new reference cannot be create if: | ||
71740 | // 1. Multiple parents | ||
71741 | neg find mustContains4(problem,interpretation,_,target); | ||
71742 | // 2. Circle in the containment hierarchy | ||
71743 | neg find mustTransitiveContains(source,target); | ||
71744 | } or { | ||
71745 | find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); | ||
71746 | } | ||
71747 | /** | ||
71748 | * Matcher for detecting tuples t where []subElements reference Function(source,target) | ||
71749 | */ | ||
71750 | private pattern mustInRelationsubElements_reference_Function( | ||
71751 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71752 | source: DefinedElement, target:DefinedElement) | ||
71753 | { | ||
71754 | find interpretation(problem,interpretation); | ||
71755 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71756 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"subElements reference Function"); | ||
71757 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71758 | BinaryElementRelationLink.param1(link,source); | ||
71759 | BinaryElementRelationLink.param2(link,target); | ||
71760 | } | ||
71761 | /** | ||
71762 | * Matcher for detecting tuples t where <>subElements reference Function(source,target) | ||
71763 | */ | ||
71764 | private pattern mayInRelationsubElements_reference_Function( | ||
71765 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71766 | source: DefinedElement, target:DefinedElement) | ||
71767 | { | ||
71768 | find interpretation(problem,interpretation); | ||
71769 | // The two endpoint of the link have to exist | ||
71770 | find mayExist(problem, interpretation, source); | ||
71771 | find mayExist(problem, interpretation, target); | ||
71772 | // Type consistency | ||
71773 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
71774 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
71775 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
71776 | // the upper bound of the opposite reference multiplicity should be considered. | ||
71777 | numberOfExistingOppositeReferences == count find mustInRelationparent_reference_FunctionalElement(problem,interpretation,target,_); | ||
71778 | check(numberOfExistingOppositeReferences < 1); | ||
71779 | // The reference is containment, then a new reference cannot be create if: | ||
71780 | // 1. Multiple parents | ||
71781 | neg find mustContains4(problem,interpretation,_,target); | ||
71782 | // 2. Circle in the containment hierarchy | ||
71783 | neg find mustTransitiveContains(source,target); | ||
71784 | } or { | ||
71785 | find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); | ||
71786 | } | ||
71787 | /** | ||
71788 | * Matcher for detecting tuples t where []data reference FAMTerminator(source,target) | ||
71789 | */ | ||
71790 | private pattern mustInRelationdata_reference_FAMTerminator( | ||
71791 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71792 | source: DefinedElement, target:DefinedElement) | ||
71793 | { | ||
71794 | find interpretation(problem,interpretation); | ||
71795 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71796 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FAMTerminator"); | ||
71797 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71798 | BinaryElementRelationLink.param1(link,source); | ||
71799 | BinaryElementRelationLink.param2(link,target); | ||
71800 | } | ||
71801 | /** | ||
71802 | * Matcher for detecting tuples t where <>data reference FAMTerminator(source,target) | ||
71803 | */ | ||
71804 | private pattern mayInRelationdata_reference_FAMTerminator( | ||
71805 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71806 | source: DefinedElement, target:DefinedElement) | ||
71807 | { | ||
71808 | find interpretation(problem,interpretation); | ||
71809 | // The two endpoint of the link have to exist | ||
71810 | find mayExist(problem, interpretation, source); | ||
71811 | find mayExist(problem, interpretation, target); | ||
71812 | // Type consistency | ||
71813 | find mayInstanceOfFAMTerminator_class(problem,interpretation,source); | ||
71814 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
71815 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
71816 | // the upper bound of the multiplicity should be considered. | ||
71817 | numberOfExistingReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,_); | ||
71818 | check(numberOfExistingReferences < 1); | ||
71819 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
71820 | // the upper bound of the opposite reference multiplicity should be considered. | ||
71821 | numberOfExistingOppositeReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,target,_); | ||
71822 | check(numberOfExistingOppositeReferences < 1); | ||
71823 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
71824 | // 1. Multiple parents | ||
71825 | neg find mustContains4(problem,interpretation,source,_); | ||
71826 | // 2. Circle in the containment hierarchy | ||
71827 | neg find mustTransitiveContains(source,target); | ||
71828 | } or { | ||
71829 | find mustInRelationdata_reference_FAMTerminator(problem,interpretation,source,target); | ||
71830 | } | ||
71831 | /** | ||
71832 | * Matcher for detecting tuples t where []from reference InformationLink(source,target) | ||
71833 | */ | ||
71834 | private pattern mustInRelationfrom_reference_InformationLink( | ||
71835 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71836 | source: DefinedElement, target:DefinedElement) | ||
71837 | { | ||
71838 | find interpretation(problem,interpretation); | ||
71839 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71840 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"from reference InformationLink"); | ||
71841 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71842 | BinaryElementRelationLink.param1(link,source); | ||
71843 | BinaryElementRelationLink.param2(link,target); | ||
71844 | } | ||
71845 | /** | ||
71846 | * Matcher for detecting tuples t where <>from reference InformationLink(source,target) | ||
71847 | */ | ||
71848 | private pattern mayInRelationfrom_reference_InformationLink( | ||
71849 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71850 | source: DefinedElement, target:DefinedElement) | ||
71851 | { | ||
71852 | find interpretation(problem,interpretation); | ||
71853 | // The two endpoint of the link have to exist | ||
71854 | find mayExist(problem, interpretation, source); | ||
71855 | find mayExist(problem, interpretation, target); | ||
71856 | // Type consistency | ||
71857 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
71858 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,target); | ||
71859 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
71860 | // the upper bound of the multiplicity should be considered. | ||
71861 | numberOfExistingReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,_); | ||
71862 | check(numberOfExistingReferences < 1); | ||
71863 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
71864 | // 1. Multiple parents | ||
71865 | neg find mustContains4(problem,interpretation,source,_); | ||
71866 | // 2. Circle in the containment hierarchy | ||
71867 | neg find mustTransitiveContains(source,target); | ||
71868 | } or { | ||
71869 | find mustInRelationfrom_reference_InformationLink(problem,interpretation,source,target); | ||
71870 | } | ||
71871 | /** | ||
71872 | * Matcher for detecting tuples t where []to reference InformationLink(source,target) | ||
71873 | */ | ||
71874 | private pattern mustInRelationto_reference_InformationLink( | ||
71875 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71876 | source: DefinedElement, target:DefinedElement) | ||
71877 | { | ||
71878 | find interpretation(problem,interpretation); | ||
71879 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71880 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
71881 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71882 | BinaryElementRelationLink.param1(link,source); | ||
71883 | BinaryElementRelationLink.param2(link,target); | ||
71884 | } | ||
71885 | /** | ||
71886 | * Matcher for detecting tuples t where <>to reference InformationLink(source,target) | ||
71887 | */ | ||
71888 | private pattern mayInRelationto_reference_InformationLink( | ||
71889 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71890 | source: DefinedElement, target:DefinedElement) | ||
71891 | { | ||
71892 | find interpretation(problem,interpretation); | ||
71893 | // The two endpoint of the link have to exist | ||
71894 | find mayExist(problem, interpretation, source); | ||
71895 | find mayExist(problem, interpretation, target); | ||
71896 | // Type consistency | ||
71897 | find mayInstanceOfInformationLink_class(problem,interpretation,source); | ||
71898 | find mayInstanceOfFunctionalInput_class(problem,interpretation,target); | ||
71899 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
71900 | // the upper bound of the multiplicity should be considered. | ||
71901 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,source,_); | ||
71902 | check(numberOfExistingReferences < 1); | ||
71903 | } or { | ||
71904 | find mustInRelationto_reference_InformationLink(problem,interpretation,source,target); | ||
71905 | } | ||
71906 | /** | ||
71907 | * Matcher for detecting tuples t where []data reference FunctionalInterface(source,target) | ||
71908 | */ | ||
71909 | private pattern mustInRelationdata_reference_FunctionalInterface( | ||
71910 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71911 | source: DefinedElement, target:DefinedElement) | ||
71912 | { | ||
71913 | find interpretation(problem,interpretation); | ||
71914 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71915 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"data reference FunctionalInterface"); | ||
71916 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71917 | BinaryElementRelationLink.param1(link,source); | ||
71918 | BinaryElementRelationLink.param2(link,target); | ||
71919 | } | ||
71920 | /** | ||
71921 | * Matcher for detecting tuples t where <>data reference FunctionalInterface(source,target) | ||
71922 | */ | ||
71923 | private pattern mayInRelationdata_reference_FunctionalInterface( | ||
71924 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71925 | source: DefinedElement, target:DefinedElement) | ||
71926 | { | ||
71927 | find interpretation(problem,interpretation); | ||
71928 | // The two endpoint of the link have to exist | ||
71929 | find mayExist(problem, interpretation, source); | ||
71930 | find mayExist(problem, interpretation, target); | ||
71931 | // Type consistency | ||
71932 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
71933 | find mayInstanceOfFunctionalData_class(problem,interpretation,target); | ||
71934 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
71935 | // the upper bound of the opposite reference multiplicity should be considered. | ||
71936 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,target,_); | ||
71937 | check(numberOfExistingOppositeReferences < 1); | ||
71938 | // The reference is containment, then a new reference cannot be create if: | ||
71939 | // 1. Multiple parents | ||
71940 | neg find mustContains4(problem,interpretation,_,target); | ||
71941 | // 2. Circle in the containment hierarchy | ||
71942 | neg find mustTransitiveContains(source,target); | ||
71943 | } or { | ||
71944 | find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); | ||
71945 | } | ||
71946 | /** | ||
71947 | * Matcher for detecting tuples t where []element reference FunctionalInterface(source,target) | ||
71948 | */ | ||
71949 | private pattern mustInRelationelement_reference_FunctionalInterface( | ||
71950 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71951 | source: DefinedElement, target:DefinedElement) | ||
71952 | { | ||
71953 | find interpretation(problem,interpretation); | ||
71954 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71955 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"element reference FunctionalInterface"); | ||
71956 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
71957 | BinaryElementRelationLink.param1(link,source); | ||
71958 | BinaryElementRelationLink.param2(link,target); | ||
71959 | } | ||
71960 | /** | ||
71961 | * Matcher for detecting tuples t where <>element reference FunctionalInterface(source,target) | ||
71962 | */ | ||
71963 | private pattern mayInRelationelement_reference_FunctionalInterface( | ||
71964 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71965 | source: DefinedElement, target:DefinedElement) | ||
71966 | { | ||
71967 | find interpretation(problem,interpretation); | ||
71968 | // The two endpoint of the link have to exist | ||
71969 | find mayExist(problem, interpretation, source); | ||
71970 | find mayExist(problem, interpretation, target); | ||
71971 | // Type consistency | ||
71972 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,source); | ||
71973 | find mayInstanceOfFunctionalElement_class(problem,interpretation,target); | ||
71974 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
71975 | // the upper bound of the multiplicity should be considered. | ||
71976 | numberOfExistingReferences == count find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,_); | ||
71977 | check(numberOfExistingReferences < 1); | ||
71978 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
71979 | // the upper bound of the opposite reference multiplicity should be considered. | ||
71980 | numberOfExistingOppositeReferences == count find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,target,_); | ||
71981 | check(numberOfExistingOppositeReferences < 1); | ||
71982 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
71983 | // 1. Multiple parents | ||
71984 | neg find mustContains4(problem,interpretation,source,_); | ||
71985 | // 2. Circle in the containment hierarchy | ||
71986 | neg find mustTransitiveContains(source,target); | ||
71987 | } or { | ||
71988 | find mustInRelationelement_reference_FunctionalInterface(problem,interpretation,source,target); | ||
71989 | } | ||
71990 | /** | ||
71991 | * Matcher for detecting tuples t where []IncomingLinks reference FunctionalInput(source,target) | ||
71992 | */ | ||
71993 | private pattern mustInRelationIncomingLinks_reference_FunctionalInput( | ||
71994 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
71995 | source: DefinedElement, target:DefinedElement) | ||
71996 | { | ||
71997 | find interpretation(problem,interpretation); | ||
71998 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
71999 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
72000 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
72001 | BinaryElementRelationLink.param1(link,source); | ||
72002 | BinaryElementRelationLink.param2(link,target); | ||
72003 | } | ||
72004 | /** | ||
72005 | * Matcher for detecting tuples t where <>IncomingLinks reference FunctionalInput(source,target) | ||
72006 | */ | ||
72007 | private pattern mayInRelationIncomingLinks_reference_FunctionalInput( | ||
72008 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72009 | source: DefinedElement, target:DefinedElement) | ||
72010 | { | ||
72011 | find interpretation(problem,interpretation); | ||
72012 | // The two endpoint of the link have to exist | ||
72013 | find mayExist(problem, interpretation, source); | ||
72014 | find mayExist(problem, interpretation, target); | ||
72015 | // Type consistency | ||
72016 | find mayInstanceOfFunctionalInput_class(problem,interpretation,source); | ||
72017 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
72018 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
72019 | // the upper bound of the opposite reference multiplicity should be considered. | ||
72020 | numberOfExistingOppositeReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,target,_); | ||
72021 | check(numberOfExistingOppositeReferences < 1); | ||
72022 | } or { | ||
72023 | find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,source,target); | ||
72024 | } | ||
72025 | /** | ||
72026 | * Matcher for detecting tuples t where []outgoingLinks reference FunctionalOutput(source,target) | ||
72027 | */ | ||
72028 | private pattern mustInRelationoutgoingLinks_reference_FunctionalOutput( | ||
72029 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72030 | source: DefinedElement, target:DefinedElement) | ||
72031 | { | ||
72032 | find interpretation(problem,interpretation); | ||
72033 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72034 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"outgoingLinks reference FunctionalOutput"); | ||
72035 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
72036 | BinaryElementRelationLink.param1(link,source); | ||
72037 | BinaryElementRelationLink.param2(link,target); | ||
72038 | } | ||
72039 | /** | ||
72040 | * Matcher for detecting tuples t where <>outgoingLinks reference FunctionalOutput(source,target) | ||
72041 | */ | ||
72042 | private pattern mayInRelationoutgoingLinks_reference_FunctionalOutput( | ||
72043 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72044 | source: DefinedElement, target:DefinedElement) | ||
72045 | { | ||
72046 | find interpretation(problem,interpretation); | ||
72047 | // The two endpoint of the link have to exist | ||
72048 | find mayExist(problem, interpretation, source); | ||
72049 | find mayExist(problem, interpretation, target); | ||
72050 | // Type consistency | ||
72051 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,source); | ||
72052 | find mayInstanceOfInformationLink_class(problem,interpretation,target); | ||
72053 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
72054 | // the upper bound of the opposite reference multiplicity should be considered. | ||
72055 | numberOfExistingOppositeReferences == count find mustInRelationfrom_reference_InformationLink(problem,interpretation,target,_); | ||
72056 | check(numberOfExistingOppositeReferences < 1); | ||
72057 | // The reference is containment, then a new reference cannot be create if: | ||
72058 | // 1. Multiple parents | ||
72059 | neg find mustContains4(problem,interpretation,_,target); | ||
72060 | // 2. Circle in the containment hierarchy | ||
72061 | neg find mustTransitiveContains(source,target); | ||
72062 | } or { | ||
72063 | find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); | ||
72064 | } | ||
72065 | /** | ||
72066 | * Matcher for detecting tuples t where []terminator reference FunctionalData(source,target) | ||
72067 | */ | ||
72068 | private pattern mustInRelationterminator_reference_FunctionalData( | ||
72069 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72070 | source: DefinedElement, target:DefinedElement) | ||
72071 | { | ||
72072 | find interpretation(problem,interpretation); | ||
72073 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72074 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"terminator reference FunctionalData"); | ||
72075 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
72076 | BinaryElementRelationLink.param1(link,source); | ||
72077 | BinaryElementRelationLink.param2(link,target); | ||
72078 | } | ||
72079 | /** | ||
72080 | * Matcher for detecting tuples t where <>terminator reference FunctionalData(source,target) | ||
72081 | */ | ||
72082 | private pattern mayInRelationterminator_reference_FunctionalData( | ||
72083 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72084 | source: DefinedElement, target:DefinedElement) | ||
72085 | { | ||
72086 | find interpretation(problem,interpretation); | ||
72087 | // The two endpoint of the link have to exist | ||
72088 | find mayExist(problem, interpretation, source); | ||
72089 | find mayExist(problem, interpretation, target); | ||
72090 | // Type consistency | ||
72091 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
72092 | find mayInstanceOfFAMTerminator_class(problem,interpretation,target); | ||
72093 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
72094 | // the upper bound of the multiplicity should be considered. | ||
72095 | numberOfExistingReferences == count find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,_); | ||
72096 | check(numberOfExistingReferences < 1); | ||
72097 | // There are "numberOfExistingReferences" currently existing instances of the reference to the target, | ||
72098 | // the upper bound of the opposite reference multiplicity should be considered. | ||
72099 | numberOfExistingOppositeReferences == count find mustInRelationdata_reference_FAMTerminator(problem,interpretation,target,_); | ||
72100 | check(numberOfExistingOppositeReferences < 1); | ||
72101 | // The reference is containment, then a new reference cannot be create if: | ||
72102 | // 1. Multiple parents | ||
72103 | neg find mustContains4(problem,interpretation,_,target); | ||
72104 | // 2. Circle in the containment hierarchy | ||
72105 | neg find mustTransitiveContains(source,target); | ||
72106 | } or { | ||
72107 | find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); | ||
72108 | } | ||
72109 | /** | ||
72110 | * Matcher for detecting tuples t where []interface reference FunctionalData(source,target) | ||
72111 | */ | ||
72112 | private pattern mustInRelationinterface_reference_FunctionalData( | ||
72113 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72114 | source: DefinedElement, target:DefinedElement) | ||
72115 | { | ||
72116 | find interpretation(problem,interpretation); | ||
72117 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72118 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"interface reference FunctionalData"); | ||
72119 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
72120 | BinaryElementRelationLink.param1(link,source); | ||
72121 | BinaryElementRelationLink.param2(link,target); | ||
72122 | } | ||
72123 | /** | ||
72124 | * Matcher for detecting tuples t where <>interface reference FunctionalData(source,target) | ||
72125 | */ | ||
72126 | private pattern mayInRelationinterface_reference_FunctionalData( | ||
72127 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72128 | source: DefinedElement, target:DefinedElement) | ||
72129 | { | ||
72130 | find interpretation(problem,interpretation); | ||
72131 | // The two endpoint of the link have to exist | ||
72132 | find mayExist(problem, interpretation, source); | ||
72133 | find mayExist(problem, interpretation, target); | ||
72134 | // Type consistency | ||
72135 | find mayInstanceOfFunctionalData_class(problem,interpretation,source); | ||
72136 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,target); | ||
72137 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
72138 | // the upper bound of the multiplicity should be considered. | ||
72139 | numberOfExistingReferences == count find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,_); | ||
72140 | check(numberOfExistingReferences < 1); | ||
72141 | // The eOpposite of the reference is containment, then a referene cannot be created if | ||
72142 | // 1. Multiple parents | ||
72143 | neg find mustContains4(problem,interpretation,source,_); | ||
72144 | // 2. Circle in the containment hierarchy | ||
72145 | neg find mustTransitiveContains(source,target); | ||
72146 | } or { | ||
72147 | find mustInRelationinterface_reference_FunctionalData(problem,interpretation,source,target); | ||
72148 | } | ||
72149 | /** | ||
72150 | * Matcher for detecting tuples t where []type attribute Function(source,target) | ||
72151 | */ | ||
72152 | private pattern mustInRelationtype_attribute_Function( | ||
72153 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72154 | source: DefinedElement, target:DefinedElement) | ||
72155 | { | ||
72156 | find interpretation(problem,interpretation); | ||
72157 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72158 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
72159 | PartialRelationInterpretation.relationlinks(relationIterpretation,link); | ||
72160 | BinaryElementRelationLink.param1(link,source); | ||
72161 | BinaryElementRelationLink.param2(link,target); | ||
72162 | } | ||
72163 | /** | ||
72164 | * Matcher for detecting tuples t where <>type attribute Function(source,target) | ||
72165 | */ | ||
72166 | private pattern mayInRelationtype_attribute_Function( | ||
72167 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72168 | source: DefinedElement, target:DefinedElement) | ||
72169 | { | ||
72170 | find interpretation(problem,interpretation); | ||
72171 | // The two endpoint of the link have to exist | ||
72172 | find mayExist(problem, interpretation, source); | ||
72173 | find mayExist(problem, interpretation, target); | ||
72174 | // Type consistency | ||
72175 | find mayInstanceOfFunction_class(problem,interpretation,source); | ||
72176 | find mayInstanceOfFunctionType_enum(problem,interpretation,target); | ||
72177 | // There are "numberOfExistingReferences" currently existing instances of the reference from the source, | ||
72178 | // the upper bound of the multiplicity should be considered. | ||
72179 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,source,_); | ||
72180 | check(numberOfExistingReferences < 1); | ||
72181 | } or { | ||
72182 | find mustInRelationtype_attribute_Function(problem,interpretation,source,target); | ||
72183 | } | ||
72184 | |||
72185 | ////////// | ||
72186 | // 1.3 Relation Definition Indexers | ||
72187 | ////////// | ||
72188 | |||
72189 | ////////// | ||
72190 | // 1.4 Containment Indexer | ||
72191 | ////////// | ||
72192 | private pattern mustContains2(source: DefinedElement, target: DefinedElement) { | ||
72193 | find mustContains4(_,_,source,target); | ||
72194 | } | ||
72195 | |||
72196 | private pattern mustContains4(problem:LogicProblem, interpretation:PartialInterpretation, | ||
72197 | source: DefinedElement, target: DefinedElement) | ||
72198 | { find mustInRelationinterface_reference_FunctionalElement(problem,interpretation,source,target); }or | ||
72199 | |||
72200 | { find mustInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,source,target); }or | ||
72201 | |||
72202 | { find mustInRelationsubElements_reference_Function(problem,interpretation,source,target); }or | ||
72203 | |||
72204 | { find mustInRelationdata_reference_FunctionalInterface(problem,interpretation,source,target); }or | ||
72205 | |||
72206 | { find mustInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,source,target); }or | ||
72207 | |||
72208 | { find mustInRelationterminator_reference_FunctionalData(problem,interpretation,source,target); } | ||
72209 | |||
72210 | private pattern mustTransitiveContains(source,target) { | ||
72211 | find mustContains2+(source,target); | ||
72212 | } | ||
72213 | |||
72214 | ////////// | ||
72215 | // 2. Invalidation Indexers | ||
72216 | ////////// | ||
72217 | // 2.1 Invalidated by WF Queries | ||
72218 | ////////// | ||
72219 | |||
72220 | ////////// | ||
72221 | // 3. Unfinishedness Indexers | ||
72222 | ////////// | ||
72223 | // 3.1 Unfinishedness Measured by Multiplicity | ||
72224 | ////////// | ||
72225 | pattern unfinishedLowerMultiplicity_model_reference_FunctionalElement(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
72226 | find interpretation(problem,interpretation); | ||
72227 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72228 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
72229 | find mustInstanceOfFunctionalElement_class(problem,interpretation,object); | ||
72230 | numberOfExistingReferences == count find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,object,_); | ||
72231 | check(numberOfExistingReferences < 1); | ||
72232 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
72233 | } | ||
72234 | pattern unfinishedLowerMultiplicity_to_reference_InformationLink(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
72235 | find interpretation(problem,interpretation); | ||
72236 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72237 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"to reference InformationLink"); | ||
72238 | find mustInstanceOfInformationLink_class(problem,interpretation,object); | ||
72239 | numberOfExistingReferences == count find mustInRelationto_reference_InformationLink(problem,interpretation,object,_); | ||
72240 | check(numberOfExistingReferences < 1); | ||
72241 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
72242 | } | ||
72243 | pattern unfinishedLowerMultiplicity_type_attribute_Function(problem:LogicProblem, interpretation:PartialInterpretation, relationIterpretation:PartialRelationInterpretation, object:DefinedElement,missingMultiplicity) { | ||
72244 | find interpretation(problem,interpretation); | ||
72245 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72246 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
72247 | find mustInstanceOfFunction_class(problem,interpretation,object); | ||
72248 | numberOfExistingReferences == count find mustInRelationtype_attribute_Function(problem,interpretation,object,_); | ||
72249 | check(numberOfExistingReferences < 1); | ||
72250 | missingMultiplicity == eval(1-numberOfExistingReferences); | ||
72251 | } | ||
72252 | |||
72253 | ////////// | ||
72254 | // 3.2 Unfinishedness Measured by WF Queries | ||
72255 | ////////// | ||
72256 | |||
72257 | ////////// | ||
72258 | // 4. Refinement Indexers | ||
72259 | ////////// | ||
72260 | // 4.1 Object constructors | ||
72261 | ////////// | ||
72262 | private pattern hasElementInContainment(problem:LogicProblem, interpretation:PartialInterpretation) | ||
72263 | { | ||
72264 | find interpretation(problem,interpretation); | ||
72265 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,root); | ||
72266 | find mustExist(problem, interpretation, root); | ||
72267 | }or{ | ||
72268 | find interpretation(problem,interpretation); | ||
72269 | find mustInstanceOfFunctionalInput_class(problem,interpretation,root); | ||
72270 | find mustExist(problem, interpretation, root); | ||
72271 | }or{ | ||
72272 | find interpretation(problem,interpretation); | ||
72273 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,root); | ||
72274 | find mustExist(problem, interpretation, root); | ||
72275 | }or{ | ||
72276 | find interpretation(problem,interpretation); | ||
72277 | find mustInstanceOfFAMTerminator_class(problem,interpretation,root); | ||
72278 | find mustExist(problem, interpretation, root); | ||
72279 | }or{ | ||
72280 | find interpretation(problem,interpretation); | ||
72281 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,root); | ||
72282 | find mustExist(problem, interpretation, root); | ||
72283 | }or{ | ||
72284 | find interpretation(problem,interpretation); | ||
72285 | find mustInstanceOfFunction_class(problem,interpretation,root); | ||
72286 | find mustExist(problem, interpretation, root); | ||
72287 | }or{ | ||
72288 | find interpretation(problem,interpretation); | ||
72289 | find mustInstanceOfInformationLink_class(problem,interpretation,root); | ||
72290 | find mustExist(problem, interpretation, root); | ||
72291 | }or{ | ||
72292 | find interpretation(problem,interpretation); | ||
72293 | find mustInstanceOfFunctionalElement_class(problem,interpretation,root); | ||
72294 | find mustExist(problem, interpretation, root); | ||
72295 | }or{ | ||
72296 | find interpretation(problem,interpretation); | ||
72297 | find mustInstanceOfFunctionalData_class(problem,interpretation,root); | ||
72298 | find mustExist(problem, interpretation, root); | ||
72299 | } | ||
72300 | pattern createObject_FunctionalInterface_class_by_interface_reference_FunctionalElement_with_element_reference_FunctionalInterface( | ||
72301 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72302 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
72303 | container:DefinedElement) | ||
72304 | { | ||
72305 | find interpretation(problem,interpretation); | ||
72306 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72307 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
72308 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
72309 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"interface reference FunctionalElement"); | ||
72310 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
72311 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"element reference FunctionalInterface"); | ||
72312 | find mustInstanceOfFunctionalElement_class(problem,interpretation,container); | ||
72313 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
72314 | find mayInRelationinterface_reference_FunctionalElement(problem,interpretation,container,newObject); | ||
72315 | find mustExist(problem, interpretation, container); | ||
72316 | neg find mustExist(problem, interpretation, newObject); | ||
72317 | } | ||
72318 | pattern createObject_FunctionalInterface_class( | ||
72319 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72320 | typeInterpretation:PartialComplexTypeInterpretation) | ||
72321 | { | ||
72322 | find interpretation(problem,interpretation); | ||
72323 | neg find hasElementInContainment(problem,interpretation); | ||
72324 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72325 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInterface class"); | ||
72326 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,newObject); | ||
72327 | find mayExist(problem, interpretation, newObject); | ||
72328 | neg find mustExist(problem, interpretation, newObject); | ||
72329 | } | ||
72330 | pattern createObject_Function_class_by_rootElements_reference_FunctionalArchitectureModel( | ||
72331 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72332 | relationInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
72333 | container:DefinedElement) | ||
72334 | { | ||
72335 | find interpretation(problem,interpretation); | ||
72336 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72337 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
72338 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
72339 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"rootElements reference FunctionalArchitectureModel"); | ||
72340 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,container); | ||
72341 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
72342 | find mayInRelationrootElements_reference_FunctionalArchitectureModel(problem,interpretation,container,newObject); | ||
72343 | find mustExist(problem, interpretation, container); | ||
72344 | neg find mustExist(problem, interpretation, newObject); | ||
72345 | } | ||
72346 | pattern createObject_Function_class_by_subElements_reference_Function_with_parent_reference_FunctionalElement( | ||
72347 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72348 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
72349 | container:DefinedElement) | ||
72350 | { | ||
72351 | find interpretation(problem,interpretation); | ||
72352 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72353 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
72354 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
72355 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"subElements reference Function"); | ||
72356 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
72357 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"parent reference FunctionalElement"); | ||
72358 | find mustInstanceOfFunction_class(problem,interpretation,container); | ||
72359 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
72360 | find mayInRelationsubElements_reference_Function(problem,interpretation,container,newObject); | ||
72361 | find mustExist(problem, interpretation, container); | ||
72362 | neg find mustExist(problem, interpretation, newObject); | ||
72363 | } | ||
72364 | pattern createObject_Function_class( | ||
72365 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72366 | typeInterpretation:PartialComplexTypeInterpretation) | ||
72367 | { | ||
72368 | find interpretation(problem,interpretation); | ||
72369 | neg find hasElementInContainment(problem,interpretation); | ||
72370 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72371 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"Function class"); | ||
72372 | find mayInstanceOfFunction_class(problem,interpretation,newObject); | ||
72373 | find mayExist(problem, interpretation, newObject); | ||
72374 | neg find mustExist(problem, interpretation, newObject); | ||
72375 | } | ||
72376 | pattern createObject_FunctionalOutput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
72377 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72378 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
72379 | container:DefinedElement) | ||
72380 | { | ||
72381 | find interpretation(problem,interpretation); | ||
72382 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72383 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
72384 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
72385 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
72386 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
72387 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
72388 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
72389 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
72390 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
72391 | find mustExist(problem, interpretation, container); | ||
72392 | neg find mustExist(problem, interpretation, newObject); | ||
72393 | } | ||
72394 | pattern createObject_FunctionalOutput_class( | ||
72395 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72396 | typeInterpretation:PartialComplexTypeInterpretation) | ||
72397 | { | ||
72398 | find interpretation(problem,interpretation); | ||
72399 | neg find hasElementInContainment(problem,interpretation); | ||
72400 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72401 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalOutput class"); | ||
72402 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,newObject); | ||
72403 | find mayExist(problem, interpretation, newObject); | ||
72404 | neg find mustExist(problem, interpretation, newObject); | ||
72405 | } | ||
72406 | pattern createObject_FAMTerminator_class_by_terminator_reference_FunctionalData_with_data_reference_FAMTerminator( | ||
72407 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72408 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
72409 | container:DefinedElement) | ||
72410 | { | ||
72411 | find interpretation(problem,interpretation); | ||
72412 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72413 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
72414 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
72415 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"terminator reference FunctionalData"); | ||
72416 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
72417 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"data reference FAMTerminator"); | ||
72418 | find mustInstanceOfFunctionalData_class(problem,interpretation,container); | ||
72419 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
72420 | find mayInRelationterminator_reference_FunctionalData(problem,interpretation,container,newObject); | ||
72421 | find mustExist(problem, interpretation, container); | ||
72422 | neg find mustExist(problem, interpretation, newObject); | ||
72423 | } | ||
72424 | pattern createObject_FAMTerminator_class( | ||
72425 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72426 | typeInterpretation:PartialComplexTypeInterpretation) | ||
72427 | { | ||
72428 | find interpretation(problem,interpretation); | ||
72429 | neg find hasElementInContainment(problem,interpretation); | ||
72430 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72431 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FAMTerminator class"); | ||
72432 | find mayInstanceOfFAMTerminator_class(problem,interpretation,newObject); | ||
72433 | find mayExist(problem, interpretation, newObject); | ||
72434 | neg find mustExist(problem, interpretation, newObject); | ||
72435 | } | ||
72436 | pattern createObject_InformationLink_class_by_outgoingLinks_reference_FunctionalOutput_with_from_reference_InformationLink( | ||
72437 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72438 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
72439 | container:DefinedElement) | ||
72440 | { | ||
72441 | find interpretation(problem,interpretation); | ||
72442 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72443 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
72444 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
72445 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"outgoingLinks reference FunctionalOutput"); | ||
72446 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
72447 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"from reference InformationLink"); | ||
72448 | find mustInstanceOfFunctionalOutput_class(problem,interpretation,container); | ||
72449 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
72450 | find mayInRelationoutgoingLinks_reference_FunctionalOutput(problem,interpretation,container,newObject); | ||
72451 | find mustExist(problem, interpretation, container); | ||
72452 | neg find mustExist(problem, interpretation, newObject); | ||
72453 | } | ||
72454 | pattern createObject_InformationLink_class( | ||
72455 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72456 | typeInterpretation:PartialComplexTypeInterpretation) | ||
72457 | { | ||
72458 | find interpretation(problem,interpretation); | ||
72459 | neg find hasElementInContainment(problem,interpretation); | ||
72460 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72461 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"InformationLink class"); | ||
72462 | find mayInstanceOfInformationLink_class(problem,interpretation,newObject); | ||
72463 | find mayExist(problem, interpretation, newObject); | ||
72464 | neg find mustExist(problem, interpretation, newObject); | ||
72465 | } | ||
72466 | pattern createObject_FunctionalInput_class_by_data_reference_FunctionalInterface_with_interface_reference_FunctionalData( | ||
72467 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72468 | relationInterpretation:PartialRelationInterpretation, inverseInterpretation:PartialRelationInterpretation, typeInterpretation:PartialComplexTypeInterpretation, | ||
72469 | container:DefinedElement) | ||
72470 | { | ||
72471 | find interpretation(problem,interpretation); | ||
72472 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72473 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
72474 | PartialInterpretation.partialrelationinterpretation(interpretation,relationInterpretation); | ||
72475 | PartialRelationInterpretation.interpretationOf.name(relationInterpretation,"data reference FunctionalInterface"); | ||
72476 | PartialInterpretation.partialrelationinterpretation(interpretation,inverseInterpretation); | ||
72477 | PartialRelationInterpretation.interpretationOf.name(inverseInterpretation,"interface reference FunctionalData"); | ||
72478 | find mustInstanceOfFunctionalInterface_class(problem,interpretation,container); | ||
72479 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
72480 | find mayInRelationdata_reference_FunctionalInterface(problem,interpretation,container,newObject); | ||
72481 | find mustExist(problem, interpretation, container); | ||
72482 | neg find mustExist(problem, interpretation, newObject); | ||
72483 | } | ||
72484 | pattern createObject_FunctionalInput_class( | ||
72485 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72486 | typeInterpretation:PartialComplexTypeInterpretation) | ||
72487 | { | ||
72488 | find interpretation(problem,interpretation); | ||
72489 | neg find hasElementInContainment(problem,interpretation); | ||
72490 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72491 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalInput class"); | ||
72492 | find mayInstanceOfFunctionalInput_class(problem,interpretation,newObject); | ||
72493 | find mayExist(problem, interpretation, newObject); | ||
72494 | neg find mustExist(problem, interpretation, newObject); | ||
72495 | } | ||
72496 | pattern createObject_FunctionalArchitectureModel_class( | ||
72497 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72498 | typeInterpretation:PartialComplexTypeInterpretation) | ||
72499 | { | ||
72500 | find interpretation(problem,interpretation); | ||
72501 | neg find hasElementInContainment(problem,interpretation); | ||
72502 | PartialInterpretation.partialtypeinterpratation(interpretation,typeInterpretation); | ||
72503 | PartialComplexTypeInterpretation.interpretationOf.name(typeInterpretation,"FunctionalArchitectureModel class"); | ||
72504 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,newObject); | ||
72505 | find mayExist(problem, interpretation, newObject); | ||
72506 | neg find mustExist(problem, interpretation, newObject); | ||
72507 | } | ||
72508 | |||
72509 | ////////// | ||
72510 | // 4.2 Type refinement | ||
72511 | ////////// | ||
72512 | pattern refineTypeTo_FunctionalInterface_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
72513 | find interpretation(problem,interpretation); | ||
72514 | PartialInterpretation.newElements(interpretation,element); | ||
72515 | find mayInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
72516 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
72517 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
72518 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
72519 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
72520 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
72521 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
72522 | } | ||
72523 | pattern refineTypeTo_Function_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
72524 | find interpretation(problem,interpretation); | ||
72525 | PartialInterpretation.newElements(interpretation,element); | ||
72526 | find mayInstanceOfFunction_class(problem,interpretation,element); | ||
72527 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
72528 | neg find mustInstanceOfFunction_class(problem,interpretation,element); | ||
72529 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
72530 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
72531 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
72532 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
72533 | } | ||
72534 | pattern refineTypeTo_FunctionalOutput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
72535 | find interpretation(problem,interpretation); | ||
72536 | PartialInterpretation.newElements(interpretation,element); | ||
72537 | find mayInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
72538 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
72539 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
72540 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
72541 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
72542 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
72543 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
72544 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
72545 | } | ||
72546 | pattern refineTypeTo_FAMTerminator_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
72547 | find interpretation(problem,interpretation); | ||
72548 | PartialInterpretation.newElements(interpretation,element); | ||
72549 | find mayInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
72550 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
72551 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
72552 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
72553 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
72554 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
72555 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
72556 | } | ||
72557 | pattern refineTypeTo_InformationLink_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
72558 | find interpretation(problem,interpretation); | ||
72559 | PartialInterpretation.newElements(interpretation,element); | ||
72560 | find mayInstanceOfInformationLink_class(problem,interpretation,element); | ||
72561 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
72562 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
72563 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
72564 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
72565 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
72566 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
72567 | } | ||
72568 | pattern refineTypeTo_FunctionalInput_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
72569 | find interpretation(problem,interpretation); | ||
72570 | PartialInterpretation.newElements(interpretation,element); | ||
72571 | find mayInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
72572 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
72573 | neg find mustInstanceOfFunctionalOutput_class(problem,interpretation,element); | ||
72574 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
72575 | neg find mustInstanceOfFunctionalInput_class(problem,interpretation,element); | ||
72576 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
72577 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
72578 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
72579 | } | ||
72580 | pattern refineTypeTo_FunctionalArchitectureModel_class(problem:LogicProblem, interpretation:PartialInterpretation, element: DefinedElement) { | ||
72581 | find interpretation(problem,interpretation); | ||
72582 | PartialInterpretation.newElements(interpretation,element); | ||
72583 | find mayInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
72584 | neg find mustInstanceOfFunctionalInterface_class(problem,interpretation,element); | ||
72585 | neg find mustInstanceOfFAMTerminator_class(problem,interpretation,element); | ||
72586 | neg find mustInstanceOfFunctionalData_class(problem,interpretation,element); | ||
72587 | neg find mustInstanceOfInformationLink_class(problem,interpretation,element); | ||
72588 | neg find mustInstanceOfFunctionalElement_class(problem,interpretation,element); | ||
72589 | neg find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,element); | ||
72590 | } | ||
72591 | |||
72592 | ////////// | ||
72593 | // 4.3 Relation refinement | ||
72594 | ////////// | ||
72595 | pattern refineRelation_model_reference_FunctionalElement( | ||
72596 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72597 | relationIterpretation:PartialRelationInterpretation, | ||
72598 | from: DefinedElement, to: DefinedElement) | ||
72599 | { | ||
72600 | find interpretation(problem,interpretation); | ||
72601 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72602 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"model reference FunctionalElement"); | ||
72603 | find mustExist(problem, interpretation, from); | ||
72604 | find mustExist(problem, interpretation, to); | ||
72605 | find mustInstanceOfFunctionalElement_class(problem,interpretation,from); | ||
72606 | find mustInstanceOfFunctionalArchitectureModel_class(problem,interpretation,to); | ||
72607 | find mayInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
72608 | neg find mustInRelationmodel_reference_FunctionalElement(problem,interpretation,from,to); | ||
72609 | } | ||
72610 | pattern refineRelation_IncomingLinks_reference_FunctionalInput_and_to_reference_InformationLink( | ||
72611 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72612 | relationIterpretation:PartialRelationInterpretation, oppositeInterpretation:PartialRelationInterpretation, | ||
72613 | from: DefinedElement, to: DefinedElement) | ||
72614 | { | ||
72615 | find interpretation(problem,interpretation); | ||
72616 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72617 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"IncomingLinks reference FunctionalInput"); | ||
72618 | PartialInterpretation.partialrelationinterpretation(interpretation,oppositeInterpretation); | ||
72619 | PartialRelationInterpretation.interpretationOf.name(oppositeInterpretation,"to reference InformationLink"); | ||
72620 | find mustExist(problem, interpretation, from); | ||
72621 | find mustExist(problem, interpretation, to); | ||
72622 | find mustInstanceOfFunctionalInput_class(problem,interpretation,from); | ||
72623 | find mustInstanceOfInformationLink_class(problem,interpretation,to); | ||
72624 | find mayInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
72625 | neg find mustInRelationIncomingLinks_reference_FunctionalInput(problem,interpretation,from,to); | ||
72626 | } | ||
72627 | pattern refineRelation_type_attribute_Function( | ||
72628 | problem:LogicProblem, interpretation:PartialInterpretation, | ||
72629 | relationIterpretation:PartialRelationInterpretation, | ||
72630 | from: DefinedElement, to: DefinedElement) | ||
72631 | { | ||
72632 | find interpretation(problem,interpretation); | ||
72633 | PartialInterpretation.partialrelationinterpretation(interpretation,relationIterpretation); | ||
72634 | PartialRelationInterpretation.interpretationOf.name(relationIterpretation,"type attribute Function"); | ||
72635 | find mustExist(problem, interpretation, from); | ||
72636 | find mustExist(problem, interpretation, to); | ||
72637 | find mustInstanceOfFunction_class(problem,interpretation,from); | ||
72638 | find mustInstanceOfFunctionType_enum(problem,interpretation,to); | ||
72639 | find mayInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
72640 | neg find mustInRelationtype_attribute_Function(problem,interpretation,from,to); | ||
72641 | } | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/generation.logicproblem b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/generation.logicproblem index 061a233a..296c3a70 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/generation.logicproblem +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/generation.logicproblem | |||
@@ -1,7 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="ASCII"?> | 1 | <?xml version="1.0" encoding="ASCII"?> |
2 | <language:LogicProblem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore2logicannotations="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language/ecore2logicannotation" xmlns:language="http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" xmlns:language_1="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" xmlns:viatra2logicannotations="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language/viatra2logicannotation"> | 2 | <language:LogicProblem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore2logicannotations="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language/ecore2logicannotation" xmlns:language="http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" xmlns:language_1="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language"> |
3 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalElement class" subtypes="//@types.2" isAbstract="true"/> | 3 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalElement class" subtypes="//@types.2" isAbstract="true"/> |
4 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalArchitectureModel class" subtypes="//@types.10 //@types.11" isAbstract="true"/> | 4 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalArchitectureModel class"/> |
5 | <types xsi:type="language_1:TypeDeclaration" name="Function class" supertypes="//@types.0"/> | 5 | <types xsi:type="language_1:TypeDeclaration" name="Function class" supertypes="//@types.0"/> |
6 | <types xsi:type="language_1:TypeDeclaration" name="FAMTerminator class"/> | 6 | <types xsi:type="language_1:TypeDeclaration" name="FAMTerminator class"/> |
7 | <types xsi:type="language_1:TypeDeclaration" name="InformationLink class"/> | 7 | <types xsi:type="language_1:TypeDeclaration" name="InformationLink class"/> |
@@ -10,8 +10,6 @@ | |||
10 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalOutput class" supertypes="//@types.8"/> | 10 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalOutput class" supertypes="//@types.8"/> |
11 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalData class" subtypes="//@types.6 //@types.7" isAbstract="true"/> | 11 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalData class" subtypes="//@types.6 //@types.7" isAbstract="true"/> |
12 | <types xsi:type="language_1:TypeDefinition" name="FunctionType enum" elements="//@elements.0 //@elements.1 //@elements.2"/> | 12 | <types xsi:type="language_1:TypeDefinition" name="FunctionType enum" elements="//@elements.0 //@elements.1 //@elements.2"/> |
13 | <types xsi:type="language_1:TypeDefinition" name="FunctionalArchitectureModel class DefinedPart" supertypes="//@types.1" elements="//@elements.3"/> | ||
14 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalArchitectureModel class UndefinedPart" supertypes="//@types.1"/> | ||
15 | <assertions name="upperMultiplicity interface FunctionalElement" annotations="//@annotations.0"> | 13 | <assertions name="upperMultiplicity interface FunctionalElement" annotations="//@annotations.0"> |
16 | <value xsi:type="language_1:Forall"> | 14 | <value xsi:type="language_1:Forall"> |
17 | <quantifiedVariables name="src"> | 15 | <quantifiedVariables name="src"> |
@@ -496,22 +494,6 @@ | |||
496 | </expression> | 494 | </expression> |
497 | </value> | 495 | </value> |
498 | </assertions> | 496 | </assertions> |
499 | <assertions name="errorpattern ca mcgill ecse dslreasoner standalone test fam queries terminatorAndInformation" annotations="//@annotations.20"> | ||
500 | <value xsi:type="language_1:Forall"> | ||
501 | <quantifiedVariables name="p0"> | ||
502 | <range xsi:type="language_1:ComplexTypeReference" referred="//@types.3"/> | ||
503 | </quantifiedVariables> | ||
504 | <quantifiedVariables name="p1"> | ||
505 | <range xsi:type="language_1:ComplexTypeReference" referred="//@types.4"/> | ||
506 | </quantifiedVariables> | ||
507 | <expression xsi:type="language_1:Not"> | ||
508 | <operand xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15"> | ||
509 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.19/@value/@quantifiedVariables.0"/> | ||
510 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.19/@value/@quantifiedVariables.1"/> | ||
511 | </operand> | ||
512 | </expression> | ||
513 | </value> | ||
514 | </assertions> | ||
515 | <relations xsi:type="language_1:RelationDeclaration" name="interface reference FunctionalElement"> | 497 | <relations xsi:type="language_1:RelationDeclaration" name="interface reference FunctionalElement"> |
516 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.0"/> | 498 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.0"/> |
517 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.5"/> | 499 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.5"/> |
@@ -572,53 +554,10 @@ | |||
572 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.2"/> | 554 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.2"/> |
573 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.9"/> | 555 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.9"/> |
574 | </relations> | 556 | </relations> |
575 | <relations xsi:type="language_1:RelationDefinition" name="pattern ca mcgill ecse dslreasoner standalone test fam queries terminatorAndInformation" annotations="//@annotations.19"> | ||
576 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.3"/> | ||
577 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.4"/> | ||
578 | <variables name="parameter T"> | ||
579 | <range xsi:type="language_1:ComplexTypeReference" referred="//@types.3"/> | ||
580 | </variables> | ||
581 | <variables name="parameter I"> | ||
582 | <range xsi:type="language_1:ComplexTypeReference" referred="//@types.4"/> | ||
583 | </variables> | ||
584 | <value xsi:type="language_1:Or"> | ||
585 | <operands xsi:type="language_1:Exists"> | ||
586 | <quantifiedVariables name="variable Out"> | ||
587 | <range xsi:type="language_1:ComplexTypeReference" referred="//@types.7"/> | ||
588 | </quantifiedVariables> | ||
589 | <expression xsi:type="language_1:And"> | ||
590 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.11"> | ||
591 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15/@value/@operands.0/@quantifiedVariables.0"/> | ||
592 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15/@variables.1"/> | ||
593 | </operands> | ||
594 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.12"> | ||
595 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15/@value/@operands.0/@quantifiedVariables.0"/> | ||
596 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15/@variables.0"/> | ||
597 | </operands> | ||
598 | </expression> | ||
599 | </operands> | ||
600 | <operands xsi:type="language_1:Exists"> | ||
601 | <quantifiedVariables name="variable In"> | ||
602 | <range xsi:type="language_1:ComplexTypeReference" referred="//@types.6"/> | ||
603 | </quantifiedVariables> | ||
604 | <expression xsi:type="language_1:And"> | ||
605 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.7"> | ||
606 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15/@variables.1"/> | ||
607 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15/@value/@operands.1/@quantifiedVariables.0"/> | ||
608 | </operands> | ||
609 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.12"> | ||
610 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15/@value/@operands.1/@quantifiedVariables.0"/> | ||
611 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15/@variables.0"/> | ||
612 | </operands> | ||
613 | </expression> | ||
614 | </operands> | ||
615 | </value> | ||
616 | </relations> | ||
617 | <elements name="Root literal FunctionType" definedInType="//@types.9"/> | 557 | <elements name="Root literal FunctionType" definedInType="//@types.9"/> |
618 | <elements name="Intermediate literal FunctionType" definedInType="//@types.9"/> | 558 | <elements name="Intermediate literal FunctionType" definedInType="//@types.9"/> |
619 | <elements name="Leaf literal FunctionType" definedInType="//@types.9"/> | 559 | <elements name="Leaf literal FunctionType" definedInType="//@types.9"/> |
620 | <elements name="o 1" definedInType="//@types.10"/> | 560 | <containmentHierarchies typesOrderedInHierarchy="//@types.1 //@types.6 //@types.7 //@types.3 //@types.5 //@types.2 //@types.4 //@types.0 //@types.8" containmentRelations="//@relations.0 //@relations.3 //@relations.4 //@relations.8 //@relations.11 //@relations.12"/> |
621 | <containmentHierarchies typesOrderedInHierarchy="//@types.7 //@types.1 //@types.4 //@types.3 //@types.5 //@types.0 //@types.8 //@types.6 //@types.2 //@types.10 //@types.11" containmentRelations="//@relations.0 //@relations.3 //@relations.4 //@relations.8 //@relations.11 //@relations.12"/> | ||
622 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.0" relation="//@relations.0" upper="1"/> | 561 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.0" relation="//@relations.0" upper="1"/> |
623 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.1" relation="//@relations.1" lower="1"/> | 562 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.1" relation="//@relations.1" lower="1"/> |
624 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.2" relation="//@relations.1" upper="1"/> | 563 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.2" relation="//@relations.1" upper="1"/> |
@@ -638,6 +577,4 @@ | |||
638 | <annotations xsi:type="ecore2logicannotations:InverseRelationAssertion" target="//@assertions.16" inverseA="//@relations.8" inverseB="//@relations.13"/> | 577 | <annotations xsi:type="ecore2logicannotations:InverseRelationAssertion" target="//@assertions.16" inverseA="//@relations.8" inverseB="//@relations.13"/> |
639 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.17" relation="//@relations.14" lower="1"/> | 578 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.17" relation="//@relations.14" lower="1"/> |
640 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.18" relation="//@relations.14" upper="1"/> | 579 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.18" relation="//@relations.14" upper="1"/> |
641 | <annotations xsi:type="viatra2logicannotations:TransfomedViatraQuery" target="//@relations.15" patternFullyQualifiedName="ca.mcgill.ecse.dslreasoner.standalone.test.fam.queries.terminatorAndInformation"/> | ||
642 | <annotations xsi:type="viatra2logicannotations:TransformedViatraWellformednessConstraint" target="//@assertions.19" query="//@annotations.19"/> | ||
643 | </language:LogicProblem> | 580 | </language:LogicProblem> |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/init.partialmodel b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/init.partialmodel index 3f2640d6..55020b90 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/init.partialmodel +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/debug/init.partialmodel | |||
@@ -1,5 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="ASCII"?> | 1 | <?xml version="1.0" encoding="ASCII"?> |
2 | <partialinterpretation:PartialInterpretation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:language="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" xmlns:partialinterpretation="http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" minNewElements="6" maxNewElements="6"> | 2 | <partialinterpretation:PartialInterpretation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:language="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language" xmlns:partialinterpretation="http://www.bme.hu/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage" minNewElements="7" maxNewElements="7"> |
3 | <problem href="generation.logicproblem#/"/> | 3 | <problem href="generation.logicproblem#/"/> |
4 | <partialrelationinterpretation> | 4 | <partialrelationinterpretation> |
5 | <interpretationOf href="generation.logicproblem#//@relations.0"/> | 5 | <interpretationOf href="generation.logicproblem#//@relations.0"/> |
@@ -86,7 +86,6 @@ | |||
86 | <interpretationOf href="generation.logicproblem#//@types.0"/> | 86 | <interpretationOf href="generation.logicproblem#//@types.0"/> |
87 | </partialtypeinterpratation> | 87 | </partialtypeinterpratation> |
88 | <partialtypeinterpratation xsi:type="partialinterpretation:PartialComplexTypeInterpretation" scopes="//@scopes.1"> | 88 | <partialtypeinterpratation xsi:type="partialinterpretation:PartialComplexTypeInterpretation" scopes="//@scopes.1"> |
89 | <elements href="generation.logicproblem#//@elements.3"/> | ||
90 | <interpretationOf href="generation.logicproblem#//@types.1"/> | 89 | <interpretationOf href="generation.logicproblem#//@types.1"/> |
91 | </partialtypeinterpratation> | 90 | </partialtypeinterpratation> |
92 | <partialtypeinterpratation xsi:type="partialinterpretation:PartialComplexTypeInterpretation" scopes="//@scopes.2" supertypeInterpretation="//@partialtypeinterpratation.4"> | 91 | <partialtypeinterpratation xsi:type="partialinterpretation:PartialComplexTypeInterpretation" scopes="//@scopes.2" supertypeInterpretation="//@partialtypeinterpratation.4"> |
@@ -110,9 +109,6 @@ | |||
110 | <partialtypeinterpratation xsi:type="partialinterpretation:PartialComplexTypeInterpretation" scopes="//@scopes.8"> | 109 | <partialtypeinterpratation xsi:type="partialinterpretation:PartialComplexTypeInterpretation" scopes="//@scopes.8"> |
111 | <interpretationOf href="generation.logicproblem#//@types.8"/> | 110 | <interpretationOf href="generation.logicproblem#//@types.8"/> |
112 | </partialtypeinterpratation> | 111 | </partialtypeinterpratation> |
113 | <partialtypeinterpratation xsi:type="partialinterpretation:PartialComplexTypeInterpretation" scopes="//@scopes.9" supertypeInterpretation="//@partialtypeinterpratation.5"> | ||
114 | <interpretationOf href="generation.logicproblem#//@types.11"/> | ||
115 | </partialtypeinterpratation> | ||
116 | <openWorldElements xsi:type="partialinterpretation:IntegerElement" name="New Integers"/> | 112 | <openWorldElements xsi:type="partialinterpretation:IntegerElement" name="New Integers"/> |
117 | <openWorldElements xsi:type="partialinterpretation:RealElement" name="New Reals"/> | 113 | <openWorldElements xsi:type="partialinterpretation:RealElement" name="New Reals"/> |
118 | <openWorldElements xsi:type="partialinterpretation:StringElement" name="New Strings"/> | 114 | <openWorldElements xsi:type="partialinterpretation:StringElement" name="New Strings"/> |
@@ -126,5 +122,4 @@ | |||
126 | <scopes targetTypeInterpretation="//@partialtypeinterpratation.10"/> | 122 | <scopes targetTypeInterpretation="//@partialtypeinterpratation.10"/> |
127 | <scopes targetTypeInterpretation="//@partialtypeinterpratation.11"/> | 123 | <scopes targetTypeInterpretation="//@partialtypeinterpratation.11"/> |
128 | <scopes targetTypeInterpretation="//@partialtypeinterpratation.12"/> | 124 | <scopes targetTypeInterpretation="//@partialtypeinterpratation.12"/> |
129 | <scopes targetTypeInterpretation="//@partialtypeinterpratation.13"/> | ||
130 | </partialinterpretation:PartialInterpretation> | 125 | </partialinterpretation:PartialInterpretation> |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/log.txt b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/log.txt index 6386e508..c7112d9d 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/log.txt +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/log.txt | |||
@@ -1 +1 @@ | |||
Model generation startedModel generation startedModel generation startedModel generation startedProblem is consistent, 5 models are generated!Model generation startedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedModel generation startedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finished \ No newline at end of file | Model generation startedModel generation startedModel generation startedModel generation startedProblem is consistent, 5 models are generated!Model generation startedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedModel generation startedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finishedModel generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Model generation startedProblem is consistent, 5 models are generated!Models: [1.xmi][2.xmi][3.xmi][4.xmi][5.xmi]Visualisations: [1.gml][2.gml][3.gml][4.gml][5.gml]Visualisations: [1.png][2.png][3.png][4.png][5.png]Model generation finished \ No newline at end of file | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.gml b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.gml index b0a86a61..a40633d7 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.gml +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.gml | |||
@@ -11696,3 +11696,3432 @@ graph | |||
11696 | ] | 11696 | ] |
11697 | ] | 11697 | ] |
11698 | ] | 11698 | ] |
11699 | graph | ||
11700 | [ | ||
11701 | node | ||
11702 | [ | ||
11703 | id 0 | ||
11704 | graphics | ||
11705 | [ | ||
11706 | w 226.60000000000002 | ||
11707 | h 40 | ||
11708 | type "rectangle" | ||
11709 | fill "#FFFFFF" | ||
11710 | fill2 "#FFFFFF" | ||
11711 | outline "#000000" | ||
11712 | ] | ||
11713 | LabelGraphics | ||
11714 | [ | ||
11715 | text "Root literal FunctionType" | ||
11716 | outline "#000000" | ||
11717 | fill "#FFFFFF" | ||
11718 | fontSize 16 | ||
11719 | fontName "Monospace" | ||
11720 | autoSizePolicy "node_width" | ||
11721 | anchor "t" | ||
11722 | borderDistance 0.0 | ||
11723 | ] | ||
11724 | LabelGraphics | ||
11725 | [ | ||
11726 | text " | ||
11727 | FunctionType enum | ||
11728 | " | ||
11729 | fontSize 14 | ||
11730 | fontName "Consolas" | ||
11731 | alignment "left" | ||
11732 | anchor "tl" | ||
11733 | borderDistance 6 | ||
11734 | ] | ||
11735 | ] | ||
11736 | |||
11737 | node | ||
11738 | [ | ||
11739 | id 1 | ||
11740 | graphics | ||
11741 | [ | ||
11742 | w 297.0 | ||
11743 | h 40 | ||
11744 | type "rectangle" | ||
11745 | fill "#FFFFFF" | ||
11746 | fill2 "#FFFFFF" | ||
11747 | outline "#000000" | ||
11748 | ] | ||
11749 | LabelGraphics | ||
11750 | [ | ||
11751 | text "Intermediate literal FunctionType" | ||
11752 | outline "#000000" | ||
11753 | fill "#FFFFFF" | ||
11754 | fontSize 16 | ||
11755 | fontName "Monospace" | ||
11756 | autoSizePolicy "node_width" | ||
11757 | anchor "t" | ||
11758 | borderDistance 0.0 | ||
11759 | ] | ||
11760 | LabelGraphics | ||
11761 | [ | ||
11762 | text " | ||
11763 | FunctionType enum | ||
11764 | " | ||
11765 | fontSize 14 | ||
11766 | fontName "Consolas" | ||
11767 | alignment "left" | ||
11768 | anchor "tl" | ||
11769 | borderDistance 6 | ||
11770 | ] | ||
11771 | ] | ||
11772 | |||
11773 | node | ||
11774 | [ | ||
11775 | id 2 | ||
11776 | graphics | ||
11777 | [ | ||
11778 | w 226.60000000000002 | ||
11779 | h 40 | ||
11780 | type "rectangle" | ||
11781 | fill "#FFFFFF" | ||
11782 | fill2 "#FFFFFF" | ||
11783 | outline "#000000" | ||
11784 | ] | ||
11785 | LabelGraphics | ||
11786 | [ | ||
11787 | text "Leaf literal FunctionType" | ||
11788 | outline "#000000" | ||
11789 | fill "#FFFFFF" | ||
11790 | fontSize 16 | ||
11791 | fontName "Monospace" | ||
11792 | autoSizePolicy "node_width" | ||
11793 | anchor "t" | ||
11794 | borderDistance 0.0 | ||
11795 | ] | ||
11796 | LabelGraphics | ||
11797 | [ | ||
11798 | text " | ||
11799 | FunctionType enum | ||
11800 | " | ||
11801 | fontSize 14 | ||
11802 | fontName "Consolas" | ||
11803 | alignment "left" | ||
11804 | anchor "tl" | ||
11805 | borderDistance 6 | ||
11806 | ] | ||
11807 | ] | ||
11808 | |||
11809 | node | ||
11810 | [ | ||
11811 | id 3 | ||
11812 | graphics | ||
11813 | [ | ||
11814 | w 41.800000000000004 | ||
11815 | h 26 | ||
11816 | type "rectangle" | ||
11817 | fill "#FFFFFF" | ||
11818 | fill2 "#FFFFFF" | ||
11819 | outline "#000000" | ||
11820 | ] | ||
11821 | LabelGraphics | ||
11822 | [ | ||
11823 | text "true" | ||
11824 | outline "#000000" | ||
11825 | fill "#FFFFFF" | ||
11826 | fontSize 16 | ||
11827 | fontName "Monospace" | ||
11828 | autoSizePolicy "node_width" | ||
11829 | anchor "t" | ||
11830 | borderDistance 0.0 | ||
11831 | ] | ||
11832 | LabelGraphics | ||
11833 | [ | ||
11834 | text " | ||
11835 | " | ||
11836 | fontSize 14 | ||
11837 | fontName "Consolas" | ||
11838 | alignment "left" | ||
11839 | anchor "tl" | ||
11840 | borderDistance 6 | ||
11841 | ] | ||
11842 | ] | ||
11843 | |||
11844 | node | ||
11845 | [ | ||
11846 | id 4 | ||
11847 | graphics | ||
11848 | [ | ||
11849 | w 50.6 | ||
11850 | h 26 | ||
11851 | type "rectangle" | ||
11852 | fill "#FFFFFF" | ||
11853 | fill2 "#FFFFFF" | ||
11854 | outline "#000000" | ||
11855 | ] | ||
11856 | LabelGraphics | ||
11857 | [ | ||
11858 | text "false" | ||
11859 | outline "#000000" | ||
11860 | fill "#FFFFFF" | ||
11861 | fontSize 16 | ||
11862 | fontName "Monospace" | ||
11863 | autoSizePolicy "node_width" | ||
11864 | anchor "t" | ||
11865 | borderDistance 0.0 | ||
11866 | ] | ||
11867 | LabelGraphics | ||
11868 | [ | ||
11869 | text " | ||
11870 | " | ||
11871 | fontSize 14 | ||
11872 | fontName "Consolas" | ||
11873 | alignment "left" | ||
11874 | anchor "tl" | ||
11875 | borderDistance 6 | ||
11876 | ] | ||
11877 | ] | ||
11878 | |||
11879 | node | ||
11880 | [ | ||
11881 | id 5 | ||
11882 | graphics | ||
11883 | [ | ||
11884 | w 207.9 | ||
11885 | h 40 | ||
11886 | type "rectangle" | ||
11887 | fill "#FFFFFF" | ||
11888 | fill2 "#FFFFFF" | ||
11889 | outline "#000000" | ||
11890 | ] | ||
11891 | LabelGraphics | ||
11892 | [ | ||
11893 | text "null" | ||
11894 | outline "#000000" | ||
11895 | fill "#FFFFFF" | ||
11896 | fontSize 16 | ||
11897 | fontName "Monospace" | ||
11898 | autoSizePolicy "node_width" | ||
11899 | anchor "t" | ||
11900 | borderDistance 0.0 | ||
11901 | ] | ||
11902 | LabelGraphics | ||
11903 | [ | ||
11904 | text " | ||
11905 | FunctionalInterface class | ||
11906 | " | ||
11907 | fontSize 14 | ||
11908 | fontName "Consolas" | ||
11909 | alignment "left" | ||
11910 | anchor "tl" | ||
11911 | borderDistance 6 | ||
11912 | ] | ||
11913 | ] | ||
11914 | |||
11915 | node | ||
11916 | [ | ||
11917 | id 6 | ||
11918 | graphics | ||
11919 | [ | ||
11920 | w 177.10000000000002 | ||
11921 | h 54 | ||
11922 | type "rectangle" | ||
11923 | fill "#FFFFFF" | ||
11924 | fill2 "#FFFFFF" | ||
11925 | outline "#000000" | ||
11926 | ] | ||
11927 | LabelGraphics | ||
11928 | [ | ||
11929 | text "null" | ||
11930 | outline "#000000" | ||
11931 | fill "#FFFFFF" | ||
11932 | fontSize 16 | ||
11933 | fontName "Monospace" | ||
11934 | autoSizePolicy "node_width" | ||
11935 | anchor "t" | ||
11936 | borderDistance 0.0 | ||
11937 | ] | ||
11938 | LabelGraphics | ||
11939 | [ | ||
11940 | text " | ||
11941 | FunctionalInput class | ||
11942 | FunctionalData class | ||
11943 | " | ||
11944 | fontSize 14 | ||
11945 | fontName "Consolas" | ||
11946 | alignment "left" | ||
11947 | anchor "tl" | ||
11948 | borderDistance 6 | ||
11949 | ] | ||
11950 | ] | ||
11951 | |||
11952 | node | ||
11953 | [ | ||
11954 | id 7 | ||
11955 | graphics | ||
11956 | [ | ||
11957 | w 184.8 | ||
11958 | h 54 | ||
11959 | type "rectangle" | ||
11960 | fill "#FFFFFF" | ||
11961 | fill2 "#FFFFFF" | ||
11962 | outline "#000000" | ||
11963 | ] | ||
11964 | LabelGraphics | ||
11965 | [ | ||
11966 | text "null" | ||
11967 | outline "#000000" | ||
11968 | fill "#FFFFFF" | ||
11969 | fontSize 16 | ||
11970 | fontName "Monospace" | ||
11971 | autoSizePolicy "node_width" | ||
11972 | anchor "t" | ||
11973 | borderDistance 0.0 | ||
11974 | ] | ||
11975 | LabelGraphics | ||
11976 | [ | ||
11977 | text " | ||
11978 | FunctionalOutput class | ||
11979 | FunctionalData class | ||
11980 | " | ||
11981 | fontSize 14 | ||
11982 | fontName "Consolas" | ||
11983 | alignment "left" | ||
11984 | anchor "tl" | ||
11985 | borderDistance 6 | ||
11986 | ] | ||
11987 | ] | ||
11988 | |||
11989 | node | ||
11990 | [ | ||
11991 | id 8 | ||
11992 | graphics | ||
11993 | [ | ||
11994 | w 184.8 | ||
11995 | h 54 | ||
11996 | type "rectangle" | ||
11997 | fill "#FFFFFF" | ||
11998 | fill2 "#FFFFFF" | ||
11999 | outline "#000000" | ||
12000 | ] | ||
12001 | LabelGraphics | ||
12002 | [ | ||
12003 | text "null" | ||
12004 | outline "#000000" | ||
12005 | fill "#FFFFFF" | ||
12006 | fontSize 16 | ||
12007 | fontName "Monospace" | ||
12008 | autoSizePolicy "node_width" | ||
12009 | anchor "t" | ||
12010 | borderDistance 0.0 | ||
12011 | ] | ||
12012 | LabelGraphics | ||
12013 | [ | ||
12014 | text " | ||
12015 | FunctionalOutput class | ||
12016 | FunctionalData class | ||
12017 | " | ||
12018 | fontSize 14 | ||
12019 | fontName "Consolas" | ||
12020 | alignment "left" | ||
12021 | anchor "tl" | ||
12022 | borderDistance 6 | ||
12023 | ] | ||
12024 | ] | ||
12025 | |||
12026 | node | ||
12027 | [ | ||
12028 | id 9 | ||
12029 | graphics | ||
12030 | [ | ||
12031 | w 177.10000000000002 | ||
12032 | h 40 | ||
12033 | type "rectangle" | ||
12034 | fill "#FFFFFF" | ||
12035 | fill2 "#FFFFFF" | ||
12036 | outline "#000000" | ||
12037 | ] | ||
12038 | LabelGraphics | ||
12039 | [ | ||
12040 | text "null" | ||
12041 | outline "#000000" | ||
12042 | fill "#FFFFFF" | ||
12043 | fontSize 16 | ||
12044 | fontName "Monospace" | ||
12045 | autoSizePolicy "node_width" | ||
12046 | anchor "t" | ||
12047 | borderDistance 0.0 | ||
12048 | ] | ||
12049 | LabelGraphics | ||
12050 | [ | ||
12051 | text " | ||
12052 | InformationLink class | ||
12053 | " | ||
12054 | fontSize 14 | ||
12055 | fontName "Consolas" | ||
12056 | alignment "left" | ||
12057 | anchor "tl" | ||
12058 | borderDistance 6 | ||
12059 | ] | ||
12060 | ] | ||
12061 | |||
12062 | node | ||
12063 | [ | ||
12064 | id 10 | ||
12065 | graphics | ||
12066 | [ | ||
12067 | w 161.70000000000002 | ||
12068 | h 40 | ||
12069 | type "rectangle" | ||
12070 | fill "#FFFFFF" | ||
12071 | fill2 "#FFFFFF" | ||
12072 | outline "#000000" | ||
12073 | ] | ||
12074 | LabelGraphics | ||
12075 | [ | ||
12076 | text "null" | ||
12077 | outline "#000000" | ||
12078 | fill "#FFFFFF" | ||
12079 | fontSize 16 | ||
12080 | fontName "Monospace" | ||
12081 | autoSizePolicy "node_width" | ||
12082 | anchor "t" | ||
12083 | borderDistance 0.0 | ||
12084 | ] | ||
12085 | LabelGraphics | ||
12086 | [ | ||
12087 | text " | ||
12088 | FAMTerminator class | ||
12089 | " | ||
12090 | fontSize 14 | ||
12091 | fontName "Consolas" | ||
12092 | alignment "left" | ||
12093 | anchor "tl" | ||
12094 | borderDistance 6 | ||
12095 | ] | ||
12096 | ] | ||
12097 | |||
12098 | node | ||
12099 | [ | ||
12100 | id 11 | ||
12101 | graphics | ||
12102 | [ | ||
12103 | w 161.70000000000002 | ||
12104 | h 40 | ||
12105 | type "rectangle" | ||
12106 | fill "#FFFFFF" | ||
12107 | fill2 "#FFFFFF" | ||
12108 | outline "#000000" | ||
12109 | ] | ||
12110 | LabelGraphics | ||
12111 | [ | ||
12112 | text "null" | ||
12113 | outline "#000000" | ||
12114 | fill "#FFFFFF" | ||
12115 | fontSize 16 | ||
12116 | fontName "Monospace" | ||
12117 | autoSizePolicy "node_width" | ||
12118 | anchor "t" | ||
12119 | borderDistance 0.0 | ||
12120 | ] | ||
12121 | LabelGraphics | ||
12122 | [ | ||
12123 | text " | ||
12124 | FAMTerminator class | ||
12125 | " | ||
12126 | fontSize 14 | ||
12127 | fontName "Consolas" | ||
12128 | alignment "left" | ||
12129 | anchor "tl" | ||
12130 | borderDistance 6 | ||
12131 | ] | ||
12132 | ] | ||
12133 | |||
12134 | node | ||
12135 | [ | ||
12136 | id 12 | ||
12137 | graphics | ||
12138 | [ | ||
12139 | w 112.2 | ||
12140 | h 26 | ||
12141 | type "rectangle" | ||
12142 | fill "#FFFFFF" | ||
12143 | fill2 "#FFFFFF" | ||
12144 | outline "#000000" | ||
12145 | ] | ||
12146 | LabelGraphics | ||
12147 | [ | ||
12148 | text "New Integers" | ||
12149 | outline "#000000" | ||
12150 | fill "#FFFFFF" | ||
12151 | fontSize 16 | ||
12152 | fontName "Monospace" | ||
12153 | autoSizePolicy "node_width" | ||
12154 | anchor "t" | ||
12155 | borderDistance 0.0 | ||
12156 | ] | ||
12157 | LabelGraphics | ||
12158 | [ | ||
12159 | text " | ||
12160 | " | ||
12161 | fontSize 14 | ||
12162 | fontName "Consolas" | ||
12163 | alignment "left" | ||
12164 | anchor "tl" | ||
12165 | borderDistance 6 | ||
12166 | ] | ||
12167 | ] | ||
12168 | |||
12169 | node | ||
12170 | [ | ||
12171 | id 13 | ||
12172 | graphics | ||
12173 | [ | ||
12174 | w 85.80000000000001 | ||
12175 | h 26 | ||
12176 | type "rectangle" | ||
12177 | fill "#FFFFFF" | ||
12178 | fill2 "#FFFFFF" | ||
12179 | outline "#000000" | ||
12180 | ] | ||
12181 | LabelGraphics | ||
12182 | [ | ||
12183 | text "New Reals" | ||
12184 | outline "#000000" | ||
12185 | fill "#FFFFFF" | ||
12186 | fontSize 16 | ||
12187 | fontName "Monospace" | ||
12188 | autoSizePolicy "node_width" | ||
12189 | anchor "t" | ||
12190 | borderDistance 0.0 | ||
12191 | ] | ||
12192 | LabelGraphics | ||
12193 | [ | ||
12194 | text " | ||
12195 | " | ||
12196 | fontSize 14 | ||
12197 | fontName "Consolas" | ||
12198 | alignment "left" | ||
12199 | anchor "tl" | ||
12200 | borderDistance 6 | ||
12201 | ] | ||
12202 | ] | ||
12203 | |||
12204 | node | ||
12205 | [ | ||
12206 | id 14 | ||
12207 | graphics | ||
12208 | [ | ||
12209 | w 103.4 | ||
12210 | h 26 | ||
12211 | type "rectangle" | ||
12212 | fill "#FFFFFF" | ||
12213 | fill2 "#FFFFFF" | ||
12214 | outline "#000000" | ||
12215 | ] | ||
12216 | LabelGraphics | ||
12217 | [ | ||
12218 | text "New Strings" | ||
12219 | outline "#000000" | ||
12220 | fill "#FFFFFF" | ||
12221 | fontSize 16 | ||
12222 | fontName "Monospace" | ||
12223 | autoSizePolicy "node_width" | ||
12224 | anchor "t" | ||
12225 | borderDistance 0.0 | ||
12226 | ] | ||
12227 | LabelGraphics | ||
12228 | [ | ||
12229 | text " | ||
12230 | " | ||
12231 | fontSize 14 | ||
12232 | fontName "Consolas" | ||
12233 | alignment "left" | ||
12234 | anchor "tl" | ||
12235 | borderDistance 6 | ||
12236 | ] | ||
12237 | ] | ||
12238 | |||
12239 | node | ||
12240 | [ | ||
12241 | id 15 | ||
12242 | graphics | ||
12243 | [ | ||
12244 | w 103.4 | ||
12245 | h 26 | ||
12246 | type "rectangle" | ||
12247 | fill "#FFFFFF" | ||
12248 | fill2 "#FFFFFF" | ||
12249 | outline "#000000" | ||
12250 | ] | ||
12251 | LabelGraphics | ||
12252 | [ | ||
12253 | text "New Objects" | ||
12254 | outline "#000000" | ||
12255 | fill "#FFFFFF" | ||
12256 | fontSize 16 | ||
12257 | fontName "Monospace" | ||
12258 | autoSizePolicy "node_width" | ||
12259 | anchor "t" | ||
12260 | borderDistance 0.0 | ||
12261 | ] | ||
12262 | LabelGraphics | ||
12263 | [ | ||
12264 | text " | ||
12265 | " | ||
12266 | fontSize 14 | ||
12267 | fontName "Consolas" | ||
12268 | alignment "left" | ||
12269 | anchor "tl" | ||
12270 | borderDistance 6 | ||
12271 | ] | ||
12272 | ] | ||
12273 | edge | ||
12274 | [ | ||
12275 | source 10 | ||
12276 | target 8 | ||
12277 | graphics | ||
12278 | [ | ||
12279 | fill "#000000" | ||
12280 | targetArrow "standard" | ||
12281 | ] | ||
12282 | LabelGraphics | ||
12283 | [ | ||
12284 | text "data reference FAMTerminator" | ||
12285 | fontSize 14 | ||
12286 | fontName "Consolas" | ||
12287 | configuration "AutoFlippingLabel" | ||
12288 | model "six_pos" | ||
12289 | position "thead" | ||
12290 | ] | ||
12291 | ] | ||
12292 | edge | ||
12293 | [ | ||
12294 | source 11 | ||
12295 | target 7 | ||
12296 | graphics | ||
12297 | [ | ||
12298 | fill "#000000" | ||
12299 | targetArrow "standard" | ||
12300 | ] | ||
12301 | LabelGraphics | ||
12302 | [ | ||
12303 | text "data reference FAMTerminator" | ||
12304 | fontSize 14 | ||
12305 | fontName "Consolas" | ||
12306 | configuration "AutoFlippingLabel" | ||
12307 | model "six_pos" | ||
12308 | position "thead" | ||
12309 | ] | ||
12310 | ] | ||
12311 | edge | ||
12312 | [ | ||
12313 | source 9 | ||
12314 | target 8 | ||
12315 | graphics | ||
12316 | [ | ||
12317 | fill "#000000" | ||
12318 | targetArrow "standard" | ||
12319 | ] | ||
12320 | LabelGraphics | ||
12321 | [ | ||
12322 | text "from reference InformationLink" | ||
12323 | fontSize 14 | ||
12324 | fontName "Consolas" | ||
12325 | configuration "AutoFlippingLabel" | ||
12326 | model "six_pos" | ||
12327 | position "thead" | ||
12328 | ] | ||
12329 | ] | ||
12330 | edge | ||
12331 | [ | ||
12332 | source 9 | ||
12333 | target 6 | ||
12334 | graphics | ||
12335 | [ | ||
12336 | fill "#000000" | ||
12337 | targetArrow "standard" | ||
12338 | ] | ||
12339 | LabelGraphics | ||
12340 | [ | ||
12341 | text "to reference InformationLink" | ||
12342 | fontSize 14 | ||
12343 | fontName "Consolas" | ||
12344 | configuration "AutoFlippingLabel" | ||
12345 | model "six_pos" | ||
12346 | position "thead" | ||
12347 | ] | ||
12348 | ] | ||
12349 | edge | ||
12350 | [ | ||
12351 | source 5 | ||
12352 | target 6 | ||
12353 | graphics | ||
12354 | [ | ||
12355 | fill "#000000" | ||
12356 | width 3 | ||
12357 | targetArrow "standard" | ||
12358 | ] | ||
12359 | LabelGraphics | ||
12360 | [ | ||
12361 | text "data reference FunctionalInterface" | ||
12362 | fontSize 14 | ||
12363 | fontName "Consolas" | ||
12364 | configuration "AutoFlippingLabel" | ||
12365 | model "six_pos" | ||
12366 | position "thead" | ||
12367 | ] | ||
12368 | ] | ||
12369 | edge | ||
12370 | [ | ||
12371 | source 5 | ||
12372 | target 7 | ||
12373 | graphics | ||
12374 | [ | ||
12375 | fill "#000000" | ||
12376 | width 3 | ||
12377 | targetArrow "standard" | ||
12378 | ] | ||
12379 | LabelGraphics | ||
12380 | [ | ||
12381 | text "data reference FunctionalInterface" | ||
12382 | fontSize 14 | ||
12383 | fontName "Consolas" | ||
12384 | configuration "AutoFlippingLabel" | ||
12385 | model "six_pos" | ||
12386 | position "thead" | ||
12387 | ] | ||
12388 | ] | ||
12389 | edge | ||
12390 | [ | ||
12391 | source 5 | ||
12392 | target 8 | ||
12393 | graphics | ||
12394 | [ | ||
12395 | fill "#000000" | ||
12396 | width 3 | ||
12397 | targetArrow "standard" | ||
12398 | ] | ||
12399 | LabelGraphics | ||
12400 | [ | ||
12401 | text "data reference FunctionalInterface" | ||
12402 | fontSize 14 | ||
12403 | fontName "Consolas" | ||
12404 | configuration "AutoFlippingLabel" | ||
12405 | model "six_pos" | ||
12406 | position "thead" | ||
12407 | ] | ||
12408 | ] | ||
12409 | edge | ||
12410 | [ | ||
12411 | source 6 | ||
12412 | target 9 | ||
12413 | graphics | ||
12414 | [ | ||
12415 | fill "#000000" | ||
12416 | targetArrow "standard" | ||
12417 | ] | ||
12418 | LabelGraphics | ||
12419 | [ | ||
12420 | text "IncomingLinks reference FunctionalInput" | ||
12421 | fontSize 14 | ||
12422 | fontName "Consolas" | ||
12423 | configuration "AutoFlippingLabel" | ||
12424 | model "six_pos" | ||
12425 | position "thead" | ||
12426 | ] | ||
12427 | ] | ||
12428 | edge | ||
12429 | [ | ||
12430 | source 8 | ||
12431 | target 9 | ||
12432 | graphics | ||
12433 | [ | ||
12434 | fill "#000000" | ||
12435 | width 3 | ||
12436 | targetArrow "standard" | ||
12437 | ] | ||
12438 | LabelGraphics | ||
12439 | [ | ||
12440 | text "outgoingLinks reference FunctionalOutput" | ||
12441 | fontSize 14 | ||
12442 | fontName "Consolas" | ||
12443 | configuration "AutoFlippingLabel" | ||
12444 | model "six_pos" | ||
12445 | position "thead" | ||
12446 | ] | ||
12447 | ] | ||
12448 | edge | ||
12449 | [ | ||
12450 | source 8 | ||
12451 | target 10 | ||
12452 | graphics | ||
12453 | [ | ||
12454 | fill "#000000" | ||
12455 | width 3 | ||
12456 | targetArrow "standard" | ||
12457 | ] | ||
12458 | LabelGraphics | ||
12459 | [ | ||
12460 | text "terminator reference FunctionalData" | ||
12461 | fontSize 14 | ||
12462 | fontName "Consolas" | ||
12463 | configuration "AutoFlippingLabel" | ||
12464 | model "six_pos" | ||
12465 | position "thead" | ||
12466 | ] | ||
12467 | ] | ||
12468 | edge | ||
12469 | [ | ||
12470 | source 7 | ||
12471 | target 11 | ||
12472 | graphics | ||
12473 | [ | ||
12474 | fill "#000000" | ||
12475 | width 3 | ||
12476 | targetArrow "standard" | ||
12477 | ] | ||
12478 | LabelGraphics | ||
12479 | [ | ||
12480 | text "terminator reference FunctionalData" | ||
12481 | fontSize 14 | ||
12482 | fontName "Consolas" | ||
12483 | configuration "AutoFlippingLabel" | ||
12484 | model "six_pos" | ||
12485 | position "thead" | ||
12486 | ] | ||
12487 | ] | ||
12488 | edge | ||
12489 | [ | ||
12490 | source 6 | ||
12491 | target 5 | ||
12492 | graphics | ||
12493 | [ | ||
12494 | fill "#000000" | ||
12495 | targetArrow "standard" | ||
12496 | ] | ||
12497 | LabelGraphics | ||
12498 | [ | ||
12499 | text "interface reference FunctionalData" | ||
12500 | fontSize 14 | ||
12501 | fontName "Consolas" | ||
12502 | configuration "AutoFlippingLabel" | ||
12503 | model "six_pos" | ||
12504 | position "thead" | ||
12505 | ] | ||
12506 | ] | ||
12507 | edge | ||
12508 | [ | ||
12509 | source 7 | ||
12510 | target 5 | ||
12511 | graphics | ||
12512 | [ | ||
12513 | fill "#000000" | ||
12514 | targetArrow "standard" | ||
12515 | ] | ||
12516 | LabelGraphics | ||
12517 | [ | ||
12518 | text "interface reference FunctionalData" | ||
12519 | fontSize 14 | ||
12520 | fontName "Consolas" | ||
12521 | configuration "AutoFlippingLabel" | ||
12522 | model "six_pos" | ||
12523 | position "thead" | ||
12524 | ] | ||
12525 | ] | ||
12526 | edge | ||
12527 | [ | ||
12528 | source 8 | ||
12529 | target 5 | ||
12530 | graphics | ||
12531 | [ | ||
12532 | fill "#000000" | ||
12533 | targetArrow "standard" | ||
12534 | ] | ||
12535 | LabelGraphics | ||
12536 | [ | ||
12537 | text "interface reference FunctionalData" | ||
12538 | fontSize 14 | ||
12539 | fontName "Consolas" | ||
12540 | configuration "AutoFlippingLabel" | ||
12541 | model "six_pos" | ||
12542 | position "thead" | ||
12543 | ] | ||
12544 | ] | ||
12545 | ] | ||
12546 | graph | ||
12547 | [ | ||
12548 | node | ||
12549 | [ | ||
12550 | id 0 | ||
12551 | graphics | ||
12552 | [ | ||
12553 | w 226.60000000000002 | ||
12554 | h 40 | ||
12555 | type "rectangle" | ||
12556 | fill "#FFFFFF" | ||
12557 | fill2 "#FFFFFF" | ||
12558 | outline "#000000" | ||
12559 | ] | ||
12560 | LabelGraphics | ||
12561 | [ | ||
12562 | text "Root literal FunctionType" | ||
12563 | outline "#000000" | ||
12564 | fill "#FFFFFF" | ||
12565 | fontSize 16 | ||
12566 | fontName "Monospace" | ||
12567 | autoSizePolicy "node_width" | ||
12568 | anchor "t" | ||
12569 | borderDistance 0.0 | ||
12570 | ] | ||
12571 | LabelGraphics | ||
12572 | [ | ||
12573 | text " | ||
12574 | FunctionType enum | ||
12575 | " | ||
12576 | fontSize 14 | ||
12577 | fontName "Consolas" | ||
12578 | alignment "left" | ||
12579 | anchor "tl" | ||
12580 | borderDistance 6 | ||
12581 | ] | ||
12582 | ] | ||
12583 | |||
12584 | node | ||
12585 | [ | ||
12586 | id 1 | ||
12587 | graphics | ||
12588 | [ | ||
12589 | w 297.0 | ||
12590 | h 40 | ||
12591 | type "rectangle" | ||
12592 | fill "#FFFFFF" | ||
12593 | fill2 "#FFFFFF" | ||
12594 | outline "#000000" | ||
12595 | ] | ||
12596 | LabelGraphics | ||
12597 | [ | ||
12598 | text "Intermediate literal FunctionType" | ||
12599 | outline "#000000" | ||
12600 | fill "#FFFFFF" | ||
12601 | fontSize 16 | ||
12602 | fontName "Monospace" | ||
12603 | autoSizePolicy "node_width" | ||
12604 | anchor "t" | ||
12605 | borderDistance 0.0 | ||
12606 | ] | ||
12607 | LabelGraphics | ||
12608 | [ | ||
12609 | text " | ||
12610 | FunctionType enum | ||
12611 | " | ||
12612 | fontSize 14 | ||
12613 | fontName "Consolas" | ||
12614 | alignment "left" | ||
12615 | anchor "tl" | ||
12616 | borderDistance 6 | ||
12617 | ] | ||
12618 | ] | ||
12619 | |||
12620 | node | ||
12621 | [ | ||
12622 | id 2 | ||
12623 | graphics | ||
12624 | [ | ||
12625 | w 226.60000000000002 | ||
12626 | h 40 | ||
12627 | type "rectangle" | ||
12628 | fill "#FFFFFF" | ||
12629 | fill2 "#FFFFFF" | ||
12630 | outline "#000000" | ||
12631 | ] | ||
12632 | LabelGraphics | ||
12633 | [ | ||
12634 | text "Leaf literal FunctionType" | ||
12635 | outline "#000000" | ||
12636 | fill "#FFFFFF" | ||
12637 | fontSize 16 | ||
12638 | fontName "Monospace" | ||
12639 | autoSizePolicy "node_width" | ||
12640 | anchor "t" | ||
12641 | borderDistance 0.0 | ||
12642 | ] | ||
12643 | LabelGraphics | ||
12644 | [ | ||
12645 | text " | ||
12646 | FunctionType enum | ||
12647 | " | ||
12648 | fontSize 14 | ||
12649 | fontName "Consolas" | ||
12650 | alignment "left" | ||
12651 | anchor "tl" | ||
12652 | borderDistance 6 | ||
12653 | ] | ||
12654 | ] | ||
12655 | |||
12656 | node | ||
12657 | [ | ||
12658 | id 3 | ||
12659 | graphics | ||
12660 | [ | ||
12661 | w 41.800000000000004 | ||
12662 | h 26 | ||
12663 | type "rectangle" | ||
12664 | fill "#FFFFFF" | ||
12665 | fill2 "#FFFFFF" | ||
12666 | outline "#000000" | ||
12667 | ] | ||
12668 | LabelGraphics | ||
12669 | [ | ||
12670 | text "true" | ||
12671 | outline "#000000" | ||
12672 | fill "#FFFFFF" | ||
12673 | fontSize 16 | ||
12674 | fontName "Monospace" | ||
12675 | autoSizePolicy "node_width" | ||
12676 | anchor "t" | ||
12677 | borderDistance 0.0 | ||
12678 | ] | ||
12679 | LabelGraphics | ||
12680 | [ | ||
12681 | text " | ||
12682 | " | ||
12683 | fontSize 14 | ||
12684 | fontName "Consolas" | ||
12685 | alignment "left" | ||
12686 | anchor "tl" | ||
12687 | borderDistance 6 | ||
12688 | ] | ||
12689 | ] | ||
12690 | |||
12691 | node | ||
12692 | [ | ||
12693 | id 4 | ||
12694 | graphics | ||
12695 | [ | ||
12696 | w 50.6 | ||
12697 | h 26 | ||
12698 | type "rectangle" | ||
12699 | fill "#FFFFFF" | ||
12700 | fill2 "#FFFFFF" | ||
12701 | outline "#000000" | ||
12702 | ] | ||
12703 | LabelGraphics | ||
12704 | [ | ||
12705 | text "false" | ||
12706 | outline "#000000" | ||
12707 | fill "#FFFFFF" | ||
12708 | fontSize 16 | ||
12709 | fontName "Monospace" | ||
12710 | autoSizePolicy "node_width" | ||
12711 | anchor "t" | ||
12712 | borderDistance 0.0 | ||
12713 | ] | ||
12714 | LabelGraphics | ||
12715 | [ | ||
12716 | text " | ||
12717 | " | ||
12718 | fontSize 14 | ||
12719 | fontName "Consolas" | ||
12720 | alignment "left" | ||
12721 | anchor "tl" | ||
12722 | borderDistance 6 | ||
12723 | ] | ||
12724 | ] | ||
12725 | |||
12726 | node | ||
12727 | [ | ||
12728 | id 5 | ||
12729 | graphics | ||
12730 | [ | ||
12731 | w 207.9 | ||
12732 | h 40 | ||
12733 | type "rectangle" | ||
12734 | fill "#FFFFFF" | ||
12735 | fill2 "#FFFFFF" | ||
12736 | outline "#000000" | ||
12737 | ] | ||
12738 | LabelGraphics | ||
12739 | [ | ||
12740 | text "null" | ||
12741 | outline "#000000" | ||
12742 | fill "#FFFFFF" | ||
12743 | fontSize 16 | ||
12744 | fontName "Monospace" | ||
12745 | autoSizePolicy "node_width" | ||
12746 | anchor "t" | ||
12747 | borderDistance 0.0 | ||
12748 | ] | ||
12749 | LabelGraphics | ||
12750 | [ | ||
12751 | text " | ||
12752 | FunctionalInterface class | ||
12753 | " | ||
12754 | fontSize 14 | ||
12755 | fontName "Consolas" | ||
12756 | alignment "left" | ||
12757 | anchor "tl" | ||
12758 | borderDistance 6 | ||
12759 | ] | ||
12760 | ] | ||
12761 | |||
12762 | node | ||
12763 | [ | ||
12764 | id 6 | ||
12765 | graphics | ||
12766 | [ | ||
12767 | w 184.8 | ||
12768 | h 54 | ||
12769 | type "rectangle" | ||
12770 | fill "#FFFFFF" | ||
12771 | fill2 "#FFFFFF" | ||
12772 | outline "#000000" | ||
12773 | ] | ||
12774 | LabelGraphics | ||
12775 | [ | ||
12776 | text "null" | ||
12777 | outline "#000000" | ||
12778 | fill "#FFFFFF" | ||
12779 | fontSize 16 | ||
12780 | fontName "Monospace" | ||
12781 | autoSizePolicy "node_width" | ||
12782 | anchor "t" | ||
12783 | borderDistance 0.0 | ||
12784 | ] | ||
12785 | LabelGraphics | ||
12786 | [ | ||
12787 | text " | ||
12788 | FunctionalOutput class | ||
12789 | FunctionalData class | ||
12790 | " | ||
12791 | fontSize 14 | ||
12792 | fontName "Consolas" | ||
12793 | alignment "left" | ||
12794 | anchor "tl" | ||
12795 | borderDistance 6 | ||
12796 | ] | ||
12797 | ] | ||
12798 | |||
12799 | node | ||
12800 | [ | ||
12801 | id 7 | ||
12802 | graphics | ||
12803 | [ | ||
12804 | w 184.8 | ||
12805 | h 54 | ||
12806 | type "rectangle" | ||
12807 | fill "#FFFFFF" | ||
12808 | fill2 "#FFFFFF" | ||
12809 | outline "#000000" | ||
12810 | ] | ||
12811 | LabelGraphics | ||
12812 | [ | ||
12813 | text "null" | ||
12814 | outline "#000000" | ||
12815 | fill "#FFFFFF" | ||
12816 | fontSize 16 | ||
12817 | fontName "Monospace" | ||
12818 | autoSizePolicy "node_width" | ||
12819 | anchor "t" | ||
12820 | borderDistance 0.0 | ||
12821 | ] | ||
12822 | LabelGraphics | ||
12823 | [ | ||
12824 | text " | ||
12825 | FunctionalOutput class | ||
12826 | FunctionalData class | ||
12827 | " | ||
12828 | fontSize 14 | ||
12829 | fontName "Consolas" | ||
12830 | alignment "left" | ||
12831 | anchor "tl" | ||
12832 | borderDistance 6 | ||
12833 | ] | ||
12834 | ] | ||
12835 | |||
12836 | node | ||
12837 | [ | ||
12838 | id 8 | ||
12839 | graphics | ||
12840 | [ | ||
12841 | w 177.10000000000002 | ||
12842 | h 40 | ||
12843 | type "rectangle" | ||
12844 | fill "#FFFFFF" | ||
12845 | fill2 "#FFFFFF" | ||
12846 | outline "#000000" | ||
12847 | ] | ||
12848 | LabelGraphics | ||
12849 | [ | ||
12850 | text "null" | ||
12851 | outline "#000000" | ||
12852 | fill "#FFFFFF" | ||
12853 | fontSize 16 | ||
12854 | fontName "Monospace" | ||
12855 | autoSizePolicy "node_width" | ||
12856 | anchor "t" | ||
12857 | borderDistance 0.0 | ||
12858 | ] | ||
12859 | LabelGraphics | ||
12860 | [ | ||
12861 | text " | ||
12862 | InformationLink class | ||
12863 | " | ||
12864 | fontSize 14 | ||
12865 | fontName "Consolas" | ||
12866 | alignment "left" | ||
12867 | anchor "tl" | ||
12868 | borderDistance 6 | ||
12869 | ] | ||
12870 | ] | ||
12871 | |||
12872 | node | ||
12873 | [ | ||
12874 | id 9 | ||
12875 | graphics | ||
12876 | [ | ||
12877 | w 177.10000000000002 | ||
12878 | h 40 | ||
12879 | type "rectangle" | ||
12880 | fill "#FFFFFF" | ||
12881 | fill2 "#FFFFFF" | ||
12882 | outline "#000000" | ||
12883 | ] | ||
12884 | LabelGraphics | ||
12885 | [ | ||
12886 | text "null" | ||
12887 | outline "#000000" | ||
12888 | fill "#FFFFFF" | ||
12889 | fontSize 16 | ||
12890 | fontName "Monospace" | ||
12891 | autoSizePolicy "node_width" | ||
12892 | anchor "t" | ||
12893 | borderDistance 0.0 | ||
12894 | ] | ||
12895 | LabelGraphics | ||
12896 | [ | ||
12897 | text " | ||
12898 | InformationLink class | ||
12899 | " | ||
12900 | fontSize 14 | ||
12901 | fontName "Consolas" | ||
12902 | alignment "left" | ||
12903 | anchor "tl" | ||
12904 | borderDistance 6 | ||
12905 | ] | ||
12906 | ] | ||
12907 | |||
12908 | node | ||
12909 | [ | ||
12910 | id 10 | ||
12911 | graphics | ||
12912 | [ | ||
12913 | w 177.10000000000002 | ||
12914 | h 54 | ||
12915 | type "rectangle" | ||
12916 | fill "#FFFFFF" | ||
12917 | fill2 "#FFFFFF" | ||
12918 | outline "#000000" | ||
12919 | ] | ||
12920 | LabelGraphics | ||
12921 | [ | ||
12922 | text "null" | ||
12923 | outline "#000000" | ||
12924 | fill "#FFFFFF" | ||
12925 | fontSize 16 | ||
12926 | fontName "Monospace" | ||
12927 | autoSizePolicy "node_width" | ||
12928 | anchor "t" | ||
12929 | borderDistance 0.0 | ||
12930 | ] | ||
12931 | LabelGraphics | ||
12932 | [ | ||
12933 | text " | ||
12934 | FunctionalInput class | ||
12935 | FunctionalData class | ||
12936 | " | ||
12937 | fontSize 14 | ||
12938 | fontName "Consolas" | ||
12939 | alignment "left" | ||
12940 | anchor "tl" | ||
12941 | borderDistance 6 | ||
12942 | ] | ||
12943 | ] | ||
12944 | |||
12945 | node | ||
12946 | [ | ||
12947 | id 11 | ||
12948 | graphics | ||
12949 | [ | ||
12950 | w 177.10000000000002 | ||
12951 | h 40 | ||
12952 | type "rectangle" | ||
12953 | fill "#FFFFFF" | ||
12954 | fill2 "#FFFFFF" | ||
12955 | outline "#000000" | ||
12956 | ] | ||
12957 | LabelGraphics | ||
12958 | [ | ||
12959 | text "null" | ||
12960 | outline "#000000" | ||
12961 | fill "#FFFFFF" | ||
12962 | fontSize 16 | ||
12963 | fontName "Monospace" | ||
12964 | autoSizePolicy "node_width" | ||
12965 | anchor "t" | ||
12966 | borderDistance 0.0 | ||
12967 | ] | ||
12968 | LabelGraphics | ||
12969 | [ | ||
12970 | text " | ||
12971 | InformationLink class | ||
12972 | " | ||
12973 | fontSize 14 | ||
12974 | fontName "Consolas" | ||
12975 | alignment "left" | ||
12976 | anchor "tl" | ||
12977 | borderDistance 6 | ||
12978 | ] | ||
12979 | ] | ||
12980 | |||
12981 | node | ||
12982 | [ | ||
12983 | id 12 | ||
12984 | graphics | ||
12985 | [ | ||
12986 | w 112.2 | ||
12987 | h 26 | ||
12988 | type "rectangle" | ||
12989 | fill "#FFFFFF" | ||
12990 | fill2 "#FFFFFF" | ||
12991 | outline "#000000" | ||
12992 | ] | ||
12993 | LabelGraphics | ||
12994 | [ | ||
12995 | text "New Integers" | ||
12996 | outline "#000000" | ||
12997 | fill "#FFFFFF" | ||
12998 | fontSize 16 | ||
12999 | fontName "Monospace" | ||
13000 | autoSizePolicy "node_width" | ||
13001 | anchor "t" | ||
13002 | borderDistance 0.0 | ||
13003 | ] | ||
13004 | LabelGraphics | ||
13005 | [ | ||
13006 | text " | ||
13007 | " | ||
13008 | fontSize 14 | ||
13009 | fontName "Consolas" | ||
13010 | alignment "left" | ||
13011 | anchor "tl" | ||
13012 | borderDistance 6 | ||
13013 | ] | ||
13014 | ] | ||
13015 | |||
13016 | node | ||
13017 | [ | ||
13018 | id 13 | ||
13019 | graphics | ||
13020 | [ | ||
13021 | w 85.80000000000001 | ||
13022 | h 26 | ||
13023 | type "rectangle" | ||
13024 | fill "#FFFFFF" | ||
13025 | fill2 "#FFFFFF" | ||
13026 | outline "#000000" | ||
13027 | ] | ||
13028 | LabelGraphics | ||
13029 | [ | ||
13030 | text "New Reals" | ||
13031 | outline "#000000" | ||
13032 | fill "#FFFFFF" | ||
13033 | fontSize 16 | ||
13034 | fontName "Monospace" | ||
13035 | autoSizePolicy "node_width" | ||
13036 | anchor "t" | ||
13037 | borderDistance 0.0 | ||
13038 | ] | ||
13039 | LabelGraphics | ||
13040 | [ | ||
13041 | text " | ||
13042 | " | ||
13043 | fontSize 14 | ||
13044 | fontName "Consolas" | ||
13045 | alignment "left" | ||
13046 | anchor "tl" | ||
13047 | borderDistance 6 | ||
13048 | ] | ||
13049 | ] | ||
13050 | |||
13051 | node | ||
13052 | [ | ||
13053 | id 14 | ||
13054 | graphics | ||
13055 | [ | ||
13056 | w 103.4 | ||
13057 | h 26 | ||
13058 | type "rectangle" | ||
13059 | fill "#FFFFFF" | ||
13060 | fill2 "#FFFFFF" | ||
13061 | outline "#000000" | ||
13062 | ] | ||
13063 | LabelGraphics | ||
13064 | [ | ||
13065 | text "New Strings" | ||
13066 | outline "#000000" | ||
13067 | fill "#FFFFFF" | ||
13068 | fontSize 16 | ||
13069 | fontName "Monospace" | ||
13070 | autoSizePolicy "node_width" | ||
13071 | anchor "t" | ||
13072 | borderDistance 0.0 | ||
13073 | ] | ||
13074 | LabelGraphics | ||
13075 | [ | ||
13076 | text " | ||
13077 | " | ||
13078 | fontSize 14 | ||
13079 | fontName "Consolas" | ||
13080 | alignment "left" | ||
13081 | anchor "tl" | ||
13082 | borderDistance 6 | ||
13083 | ] | ||
13084 | ] | ||
13085 | |||
13086 | node | ||
13087 | [ | ||
13088 | id 15 | ||
13089 | graphics | ||
13090 | [ | ||
13091 | w 103.4 | ||
13092 | h 26 | ||
13093 | type "rectangle" | ||
13094 | fill "#FFFFFF" | ||
13095 | fill2 "#FFFFFF" | ||
13096 | outline "#000000" | ||
13097 | ] | ||
13098 | LabelGraphics | ||
13099 | [ | ||
13100 | text "New Objects" | ||
13101 | outline "#000000" | ||
13102 | fill "#FFFFFF" | ||
13103 | fontSize 16 | ||
13104 | fontName "Monospace" | ||
13105 | autoSizePolicy "node_width" | ||
13106 | anchor "t" | ||
13107 | borderDistance 0.0 | ||
13108 | ] | ||
13109 | LabelGraphics | ||
13110 | [ | ||
13111 | text " | ||
13112 | " | ||
13113 | fontSize 14 | ||
13114 | fontName "Consolas" | ||
13115 | alignment "left" | ||
13116 | anchor "tl" | ||
13117 | borderDistance 6 | ||
13118 | ] | ||
13119 | ] | ||
13120 | edge | ||
13121 | [ | ||
13122 | source 8 | ||
13123 | target 7 | ||
13124 | graphics | ||
13125 | [ | ||
13126 | fill "#000000" | ||
13127 | targetArrow "standard" | ||
13128 | ] | ||
13129 | LabelGraphics | ||
13130 | [ | ||
13131 | text "from reference InformationLink" | ||
13132 | fontSize 14 | ||
13133 | fontName "Consolas" | ||
13134 | configuration "AutoFlippingLabel" | ||
13135 | model "six_pos" | ||
13136 | position "thead" | ||
13137 | ] | ||
13138 | ] | ||
13139 | edge | ||
13140 | [ | ||
13141 | source 9 | ||
13142 | target 7 | ||
13143 | graphics | ||
13144 | [ | ||
13145 | fill "#000000" | ||
13146 | targetArrow "standard" | ||
13147 | ] | ||
13148 | LabelGraphics | ||
13149 | [ | ||
13150 | text "from reference InformationLink" | ||
13151 | fontSize 14 | ||
13152 | fontName "Consolas" | ||
13153 | configuration "AutoFlippingLabel" | ||
13154 | model "six_pos" | ||
13155 | position "thead" | ||
13156 | ] | ||
13157 | ] | ||
13158 | edge | ||
13159 | [ | ||
13160 | source 11 | ||
13161 | target 7 | ||
13162 | graphics | ||
13163 | [ | ||
13164 | fill "#000000" | ||
13165 | targetArrow "standard" | ||
13166 | ] | ||
13167 | LabelGraphics | ||
13168 | [ | ||
13169 | text "from reference InformationLink" | ||
13170 | fontSize 14 | ||
13171 | fontName "Consolas" | ||
13172 | configuration "AutoFlippingLabel" | ||
13173 | model "six_pos" | ||
13174 | position "thead" | ||
13175 | ] | ||
13176 | ] | ||
13177 | edge | ||
13178 | [ | ||
13179 | source 8 | ||
13180 | target 10 | ||
13181 | graphics | ||
13182 | [ | ||
13183 | fill "#000000" | ||
13184 | targetArrow "standard" | ||
13185 | ] | ||
13186 | LabelGraphics | ||
13187 | [ | ||
13188 | text "to reference InformationLink" | ||
13189 | fontSize 14 | ||
13190 | fontName "Consolas" | ||
13191 | configuration "AutoFlippingLabel" | ||
13192 | model "six_pos" | ||
13193 | position "thead" | ||
13194 | ] | ||
13195 | ] | ||
13196 | edge | ||
13197 | [ | ||
13198 | source 11 | ||
13199 | target 10 | ||
13200 | graphics | ||
13201 | [ | ||
13202 | fill "#000000" | ||
13203 | targetArrow "standard" | ||
13204 | ] | ||
13205 | LabelGraphics | ||
13206 | [ | ||
13207 | text "to reference InformationLink" | ||
13208 | fontSize 14 | ||
13209 | fontName "Consolas" | ||
13210 | configuration "AutoFlippingLabel" | ||
13211 | model "six_pos" | ||
13212 | position "thead" | ||
13213 | ] | ||
13214 | ] | ||
13215 | edge | ||
13216 | [ | ||
13217 | source 9 | ||
13218 | target 10 | ||
13219 | graphics | ||
13220 | [ | ||
13221 | fill "#000000" | ||
13222 | targetArrow "standard" | ||
13223 | ] | ||
13224 | LabelGraphics | ||
13225 | [ | ||
13226 | text "to reference InformationLink" | ||
13227 | fontSize 14 | ||
13228 | fontName "Consolas" | ||
13229 | configuration "AutoFlippingLabel" | ||
13230 | model "six_pos" | ||
13231 | position "thead" | ||
13232 | ] | ||
13233 | ] | ||
13234 | edge | ||
13235 | [ | ||
13236 | source 5 | ||
13237 | target 6 | ||
13238 | graphics | ||
13239 | [ | ||
13240 | fill "#000000" | ||
13241 | width 3 | ||
13242 | targetArrow "standard" | ||
13243 | ] | ||
13244 | LabelGraphics | ||
13245 | [ | ||
13246 | text "data reference FunctionalInterface" | ||
13247 | fontSize 14 | ||
13248 | fontName "Consolas" | ||
13249 | configuration "AutoFlippingLabel" | ||
13250 | model "six_pos" | ||
13251 | position "thead" | ||
13252 | ] | ||
13253 | ] | ||
13254 | edge | ||
13255 | [ | ||
13256 | source 5 | ||
13257 | target 7 | ||
13258 | graphics | ||
13259 | [ | ||
13260 | fill "#000000" | ||
13261 | width 3 | ||
13262 | targetArrow "standard" | ||
13263 | ] | ||
13264 | LabelGraphics | ||
13265 | [ | ||
13266 | text "data reference FunctionalInterface" | ||
13267 | fontSize 14 | ||
13268 | fontName "Consolas" | ||
13269 | configuration "AutoFlippingLabel" | ||
13270 | model "six_pos" | ||
13271 | position "thead" | ||
13272 | ] | ||
13273 | ] | ||
13274 | edge | ||
13275 | [ | ||
13276 | source 5 | ||
13277 | target 10 | ||
13278 | graphics | ||
13279 | [ | ||
13280 | fill "#000000" | ||
13281 | width 3 | ||
13282 | targetArrow "standard" | ||
13283 | ] | ||
13284 | LabelGraphics | ||
13285 | [ | ||
13286 | text "data reference FunctionalInterface" | ||
13287 | fontSize 14 | ||
13288 | fontName "Consolas" | ||
13289 | configuration "AutoFlippingLabel" | ||
13290 | model "six_pos" | ||
13291 | position "thead" | ||
13292 | ] | ||
13293 | ] | ||
13294 | edge | ||
13295 | [ | ||
13296 | source 10 | ||
13297 | target 8 | ||
13298 | graphics | ||
13299 | [ | ||
13300 | fill "#000000" | ||
13301 | targetArrow "standard" | ||
13302 | ] | ||
13303 | LabelGraphics | ||
13304 | [ | ||
13305 | text "IncomingLinks reference FunctionalInput" | ||
13306 | fontSize 14 | ||
13307 | fontName "Consolas" | ||
13308 | configuration "AutoFlippingLabel" | ||
13309 | model "six_pos" | ||
13310 | position "thead" | ||
13311 | ] | ||
13312 | ] | ||
13313 | edge | ||
13314 | [ | ||
13315 | source 10 | ||
13316 | target 11 | ||
13317 | graphics | ||
13318 | [ | ||
13319 | fill "#000000" | ||
13320 | targetArrow "standard" | ||
13321 | ] | ||
13322 | LabelGraphics | ||
13323 | [ | ||
13324 | text "IncomingLinks reference FunctionalInput" | ||
13325 | fontSize 14 | ||
13326 | fontName "Consolas" | ||
13327 | configuration "AutoFlippingLabel" | ||
13328 | model "six_pos" | ||
13329 | position "thead" | ||
13330 | ] | ||
13331 | ] | ||
13332 | edge | ||
13333 | [ | ||
13334 | source 10 | ||
13335 | target 9 | ||
13336 | graphics | ||
13337 | [ | ||
13338 | fill "#000000" | ||
13339 | targetArrow "standard" | ||
13340 | ] | ||
13341 | LabelGraphics | ||
13342 | [ | ||
13343 | text "IncomingLinks reference FunctionalInput" | ||
13344 | fontSize 14 | ||
13345 | fontName "Consolas" | ||
13346 | configuration "AutoFlippingLabel" | ||
13347 | model "six_pos" | ||
13348 | position "thead" | ||
13349 | ] | ||
13350 | ] | ||
13351 | edge | ||
13352 | [ | ||
13353 | source 7 | ||
13354 | target 8 | ||
13355 | graphics | ||
13356 | [ | ||
13357 | fill "#000000" | ||
13358 | width 3 | ||
13359 | targetArrow "standard" | ||
13360 | ] | ||
13361 | LabelGraphics | ||
13362 | [ | ||
13363 | text "outgoingLinks reference FunctionalOutput" | ||
13364 | fontSize 14 | ||
13365 | fontName "Consolas" | ||
13366 | configuration "AutoFlippingLabel" | ||
13367 | model "six_pos" | ||
13368 | position "thead" | ||
13369 | ] | ||
13370 | ] | ||
13371 | edge | ||
13372 | [ | ||
13373 | source 7 | ||
13374 | target 9 | ||
13375 | graphics | ||
13376 | [ | ||
13377 | fill "#000000" | ||
13378 | width 3 | ||
13379 | targetArrow "standard" | ||
13380 | ] | ||
13381 | LabelGraphics | ||
13382 | [ | ||
13383 | text "outgoingLinks reference FunctionalOutput" | ||
13384 | fontSize 14 | ||
13385 | fontName "Consolas" | ||
13386 | configuration "AutoFlippingLabel" | ||
13387 | model "six_pos" | ||
13388 | position "thead" | ||
13389 | ] | ||
13390 | ] | ||
13391 | edge | ||
13392 | [ | ||
13393 | source 7 | ||
13394 | target 11 | ||
13395 | graphics | ||
13396 | [ | ||
13397 | fill "#000000" | ||
13398 | width 3 | ||
13399 | targetArrow "standard" | ||
13400 | ] | ||
13401 | LabelGraphics | ||
13402 | [ | ||
13403 | text "outgoingLinks reference FunctionalOutput" | ||
13404 | fontSize 14 | ||
13405 | fontName "Consolas" | ||
13406 | configuration "AutoFlippingLabel" | ||
13407 | model "six_pos" | ||
13408 | position "thead" | ||
13409 | ] | ||
13410 | ] | ||
13411 | edge | ||
13412 | [ | ||
13413 | source 6 | ||
13414 | target 5 | ||
13415 | graphics | ||
13416 | [ | ||
13417 | fill "#000000" | ||
13418 | targetArrow "standard" | ||
13419 | ] | ||
13420 | LabelGraphics | ||
13421 | [ | ||
13422 | text "interface reference FunctionalData" | ||
13423 | fontSize 14 | ||
13424 | fontName "Consolas" | ||
13425 | configuration "AutoFlippingLabel" | ||
13426 | model "six_pos" | ||
13427 | position "thead" | ||
13428 | ] | ||
13429 | ] | ||
13430 | edge | ||
13431 | [ | ||
13432 | source 7 | ||
13433 | target 5 | ||
13434 | graphics | ||
13435 | [ | ||
13436 | fill "#000000" | ||
13437 | targetArrow "standard" | ||
13438 | ] | ||
13439 | LabelGraphics | ||
13440 | [ | ||
13441 | text "interface reference FunctionalData" | ||
13442 | fontSize 14 | ||
13443 | fontName "Consolas" | ||
13444 | configuration "AutoFlippingLabel" | ||
13445 | model "six_pos" | ||
13446 | position "thead" | ||
13447 | ] | ||
13448 | ] | ||
13449 | edge | ||
13450 | [ | ||
13451 | source 10 | ||
13452 | target 5 | ||
13453 | graphics | ||
13454 | [ | ||
13455 | fill "#000000" | ||
13456 | targetArrow "standard" | ||
13457 | ] | ||
13458 | LabelGraphics | ||
13459 | [ | ||
13460 | text "interface reference FunctionalData" | ||
13461 | fontSize 14 | ||
13462 | fontName "Consolas" | ||
13463 | configuration "AutoFlippingLabel" | ||
13464 | model "six_pos" | ||
13465 | position "thead" | ||
13466 | ] | ||
13467 | ] | ||
13468 | ] | ||
13469 | graph | ||
13470 | [ | ||
13471 | node | ||
13472 | [ | ||
13473 | id 0 | ||
13474 | graphics | ||
13475 | [ | ||
13476 | w 226.60000000000002 | ||
13477 | h 40 | ||
13478 | type "rectangle" | ||
13479 | fill "#FFFFFF" | ||
13480 | fill2 "#FFFFFF" | ||
13481 | outline "#000000" | ||
13482 | ] | ||
13483 | LabelGraphics | ||
13484 | [ | ||
13485 | text "Root literal FunctionType" | ||
13486 | outline "#000000" | ||
13487 | fill "#FFFFFF" | ||
13488 | fontSize 16 | ||
13489 | fontName "Monospace" | ||
13490 | autoSizePolicy "node_width" | ||
13491 | anchor "t" | ||
13492 | borderDistance 0.0 | ||
13493 | ] | ||
13494 | LabelGraphics | ||
13495 | [ | ||
13496 | text " | ||
13497 | FunctionType enum | ||
13498 | " | ||
13499 | fontSize 14 | ||
13500 | fontName "Consolas" | ||
13501 | alignment "left" | ||
13502 | anchor "tl" | ||
13503 | borderDistance 6 | ||
13504 | ] | ||
13505 | ] | ||
13506 | |||
13507 | node | ||
13508 | [ | ||
13509 | id 1 | ||
13510 | graphics | ||
13511 | [ | ||
13512 | w 297.0 | ||
13513 | h 40 | ||
13514 | type "rectangle" | ||
13515 | fill "#FFFFFF" | ||
13516 | fill2 "#FFFFFF" | ||
13517 | outline "#000000" | ||
13518 | ] | ||
13519 | LabelGraphics | ||
13520 | [ | ||
13521 | text "Intermediate literal FunctionType" | ||
13522 | outline "#000000" | ||
13523 | fill "#FFFFFF" | ||
13524 | fontSize 16 | ||
13525 | fontName "Monospace" | ||
13526 | autoSizePolicy "node_width" | ||
13527 | anchor "t" | ||
13528 | borderDistance 0.0 | ||
13529 | ] | ||
13530 | LabelGraphics | ||
13531 | [ | ||
13532 | text " | ||
13533 | FunctionType enum | ||
13534 | " | ||
13535 | fontSize 14 | ||
13536 | fontName "Consolas" | ||
13537 | alignment "left" | ||
13538 | anchor "tl" | ||
13539 | borderDistance 6 | ||
13540 | ] | ||
13541 | ] | ||
13542 | |||
13543 | node | ||
13544 | [ | ||
13545 | id 2 | ||
13546 | graphics | ||
13547 | [ | ||
13548 | w 226.60000000000002 | ||
13549 | h 40 | ||
13550 | type "rectangle" | ||
13551 | fill "#FFFFFF" | ||
13552 | fill2 "#FFFFFF" | ||
13553 | outline "#000000" | ||
13554 | ] | ||
13555 | LabelGraphics | ||
13556 | [ | ||
13557 | text "Leaf literal FunctionType" | ||
13558 | outline "#000000" | ||
13559 | fill "#FFFFFF" | ||
13560 | fontSize 16 | ||
13561 | fontName "Monospace" | ||
13562 | autoSizePolicy "node_width" | ||
13563 | anchor "t" | ||
13564 | borderDistance 0.0 | ||
13565 | ] | ||
13566 | LabelGraphics | ||
13567 | [ | ||
13568 | text " | ||
13569 | FunctionType enum | ||
13570 | " | ||
13571 | fontSize 14 | ||
13572 | fontName "Consolas" | ||
13573 | alignment "left" | ||
13574 | anchor "tl" | ||
13575 | borderDistance 6 | ||
13576 | ] | ||
13577 | ] | ||
13578 | |||
13579 | node | ||
13580 | [ | ||
13581 | id 3 | ||
13582 | graphics | ||
13583 | [ | ||
13584 | w 41.800000000000004 | ||
13585 | h 26 | ||
13586 | type "rectangle" | ||
13587 | fill "#FFFFFF" | ||
13588 | fill2 "#FFFFFF" | ||
13589 | outline "#000000" | ||
13590 | ] | ||
13591 | LabelGraphics | ||
13592 | [ | ||
13593 | text "true" | ||
13594 | outline "#000000" | ||
13595 | fill "#FFFFFF" | ||
13596 | fontSize 16 | ||
13597 | fontName "Monospace" | ||
13598 | autoSizePolicy "node_width" | ||
13599 | anchor "t" | ||
13600 | borderDistance 0.0 | ||
13601 | ] | ||
13602 | LabelGraphics | ||
13603 | [ | ||
13604 | text " | ||
13605 | " | ||
13606 | fontSize 14 | ||
13607 | fontName "Consolas" | ||
13608 | alignment "left" | ||
13609 | anchor "tl" | ||
13610 | borderDistance 6 | ||
13611 | ] | ||
13612 | ] | ||
13613 | |||
13614 | node | ||
13615 | [ | ||
13616 | id 4 | ||
13617 | graphics | ||
13618 | [ | ||
13619 | w 50.6 | ||
13620 | h 26 | ||
13621 | type "rectangle" | ||
13622 | fill "#FFFFFF" | ||
13623 | fill2 "#FFFFFF" | ||
13624 | outline "#000000" | ||
13625 | ] | ||
13626 | LabelGraphics | ||
13627 | [ | ||
13628 | text "false" | ||
13629 | outline "#000000" | ||
13630 | fill "#FFFFFF" | ||
13631 | fontSize 16 | ||
13632 | fontName "Monospace" | ||
13633 | autoSizePolicy "node_width" | ||
13634 | anchor "t" | ||
13635 | borderDistance 0.0 | ||
13636 | ] | ||
13637 | LabelGraphics | ||
13638 | [ | ||
13639 | text " | ||
13640 | " | ||
13641 | fontSize 14 | ||
13642 | fontName "Consolas" | ||
13643 | alignment "left" | ||
13644 | anchor "tl" | ||
13645 | borderDistance 6 | ||
13646 | ] | ||
13647 | ] | ||
13648 | |||
13649 | node | ||
13650 | [ | ||
13651 | id 5 | ||
13652 | graphics | ||
13653 | [ | ||
13654 | w 207.9 | ||
13655 | h 40 | ||
13656 | type "rectangle" | ||
13657 | fill "#FFFFFF" | ||
13658 | fill2 "#FFFFFF" | ||
13659 | outline "#000000" | ||
13660 | ] | ||
13661 | LabelGraphics | ||
13662 | [ | ||
13663 | text "null" | ||
13664 | outline "#000000" | ||
13665 | fill "#FFFFFF" | ||
13666 | fontSize 16 | ||
13667 | fontName "Monospace" | ||
13668 | autoSizePolicy "node_width" | ||
13669 | anchor "t" | ||
13670 | borderDistance 0.0 | ||
13671 | ] | ||
13672 | LabelGraphics | ||
13673 | [ | ||
13674 | text " | ||
13675 | FunctionalInterface class | ||
13676 | " | ||
13677 | fontSize 14 | ||
13678 | fontName "Consolas" | ||
13679 | alignment "left" | ||
13680 | anchor "tl" | ||
13681 | borderDistance 6 | ||
13682 | ] | ||
13683 | ] | ||
13684 | |||
13685 | node | ||
13686 | [ | ||
13687 | id 6 | ||
13688 | graphics | ||
13689 | [ | ||
13690 | w 177.10000000000002 | ||
13691 | h 54 | ||
13692 | type "rectangle" | ||
13693 | fill "#FFFFFF" | ||
13694 | fill2 "#FFFFFF" | ||
13695 | outline "#000000" | ||
13696 | ] | ||
13697 | LabelGraphics | ||
13698 | [ | ||
13699 | text "null" | ||
13700 | outline "#000000" | ||
13701 | fill "#FFFFFF" | ||
13702 | fontSize 16 | ||
13703 | fontName "Monospace" | ||
13704 | autoSizePolicy "node_width" | ||
13705 | anchor "t" | ||
13706 | borderDistance 0.0 | ||
13707 | ] | ||
13708 | LabelGraphics | ||
13709 | [ | ||
13710 | text " | ||
13711 | FunctionalInput class | ||
13712 | FunctionalData class | ||
13713 | " | ||
13714 | fontSize 14 | ||
13715 | fontName "Consolas" | ||
13716 | alignment "left" | ||
13717 | anchor "tl" | ||
13718 | borderDistance 6 | ||
13719 | ] | ||
13720 | ] | ||
13721 | |||
13722 | node | ||
13723 | [ | ||
13724 | id 7 | ||
13725 | graphics | ||
13726 | [ | ||
13727 | w 177.10000000000002 | ||
13728 | h 54 | ||
13729 | type "rectangle" | ||
13730 | fill "#FFFFFF" | ||
13731 | fill2 "#FFFFFF" | ||
13732 | outline "#000000" | ||
13733 | ] | ||
13734 | LabelGraphics | ||
13735 | [ | ||
13736 | text "null" | ||
13737 | outline "#000000" | ||
13738 | fill "#FFFFFF" | ||
13739 | fontSize 16 | ||
13740 | fontName "Monospace" | ||
13741 | autoSizePolicy "node_width" | ||
13742 | anchor "t" | ||
13743 | borderDistance 0.0 | ||
13744 | ] | ||
13745 | LabelGraphics | ||
13746 | [ | ||
13747 | text " | ||
13748 | FunctionalInput class | ||
13749 | FunctionalData class | ||
13750 | " | ||
13751 | fontSize 14 | ||
13752 | fontName "Consolas" | ||
13753 | alignment "left" | ||
13754 | anchor "tl" | ||
13755 | borderDistance 6 | ||
13756 | ] | ||
13757 | ] | ||
13758 | |||
13759 | node | ||
13760 | [ | ||
13761 | id 8 | ||
13762 | graphics | ||
13763 | [ | ||
13764 | w 161.70000000000002 | ||
13765 | h 40 | ||
13766 | type "rectangle" | ||
13767 | fill "#FFFFFF" | ||
13768 | fill2 "#FFFFFF" | ||
13769 | outline "#000000" | ||
13770 | ] | ||
13771 | LabelGraphics | ||
13772 | [ | ||
13773 | text "null" | ||
13774 | outline "#000000" | ||
13775 | fill "#FFFFFF" | ||
13776 | fontSize 16 | ||
13777 | fontName "Monospace" | ||
13778 | autoSizePolicy "node_width" | ||
13779 | anchor "t" | ||
13780 | borderDistance 0.0 | ||
13781 | ] | ||
13782 | LabelGraphics | ||
13783 | [ | ||
13784 | text " | ||
13785 | FAMTerminator class | ||
13786 | " | ||
13787 | fontSize 14 | ||
13788 | fontName "Consolas" | ||
13789 | alignment "left" | ||
13790 | anchor "tl" | ||
13791 | borderDistance 6 | ||
13792 | ] | ||
13793 | ] | ||
13794 | |||
13795 | node | ||
13796 | [ | ||
13797 | id 9 | ||
13798 | graphics | ||
13799 | [ | ||
13800 | w 177.10000000000002 | ||
13801 | h 54 | ||
13802 | type "rectangle" | ||
13803 | fill "#FFFFFF" | ||
13804 | fill2 "#FFFFFF" | ||
13805 | outline "#000000" | ||
13806 | ] | ||
13807 | LabelGraphics | ||
13808 | [ | ||
13809 | text "null" | ||
13810 | outline "#000000" | ||
13811 | fill "#FFFFFF" | ||
13812 | fontSize 16 | ||
13813 | fontName "Monospace" | ||
13814 | autoSizePolicy "node_width" | ||
13815 | anchor "t" | ||
13816 | borderDistance 0.0 | ||
13817 | ] | ||
13818 | LabelGraphics | ||
13819 | [ | ||
13820 | text " | ||
13821 | FunctionalInput class | ||
13822 | FunctionalData class | ||
13823 | " | ||
13824 | fontSize 14 | ||
13825 | fontName "Consolas" | ||
13826 | alignment "left" | ||
13827 | anchor "tl" | ||
13828 | borderDistance 6 | ||
13829 | ] | ||
13830 | ] | ||
13831 | |||
13832 | node | ||
13833 | [ | ||
13834 | id 10 | ||
13835 | graphics | ||
13836 | [ | ||
13837 | w 177.10000000000002 | ||
13838 | h 54 | ||
13839 | type "rectangle" | ||
13840 | fill "#FFFFFF" | ||
13841 | fill2 "#FFFFFF" | ||
13842 | outline "#000000" | ||
13843 | ] | ||
13844 | LabelGraphics | ||
13845 | [ | ||
13846 | text "null" | ||
13847 | outline "#000000" | ||
13848 | fill "#FFFFFF" | ||
13849 | fontSize 16 | ||
13850 | fontName "Monospace" | ||
13851 | autoSizePolicy "node_width" | ||
13852 | anchor "t" | ||
13853 | borderDistance 0.0 | ||
13854 | ] | ||
13855 | LabelGraphics | ||
13856 | [ | ||
13857 | text " | ||
13858 | FunctionalInput class | ||
13859 | FunctionalData class | ||
13860 | " | ||
13861 | fontSize 14 | ||
13862 | fontName "Consolas" | ||
13863 | alignment "left" | ||
13864 | anchor "tl" | ||
13865 | borderDistance 6 | ||
13866 | ] | ||
13867 | ] | ||
13868 | |||
13869 | node | ||
13870 | [ | ||
13871 | id 11 | ||
13872 | graphics | ||
13873 | [ | ||
13874 | w 184.8 | ||
13875 | h 54 | ||
13876 | type "rectangle" | ||
13877 | fill "#FFFFFF" | ||
13878 | fill2 "#FFFFFF" | ||
13879 | outline "#000000" | ||
13880 | ] | ||
13881 | LabelGraphics | ||
13882 | [ | ||
13883 | text "null" | ||
13884 | outline "#000000" | ||
13885 | fill "#FFFFFF" | ||
13886 | fontSize 16 | ||
13887 | fontName "Monospace" | ||
13888 | autoSizePolicy "node_width" | ||
13889 | anchor "t" | ||
13890 | borderDistance 0.0 | ||
13891 | ] | ||
13892 | LabelGraphics | ||
13893 | [ | ||
13894 | text " | ||
13895 | FunctionalOutput class | ||
13896 | FunctionalData class | ||
13897 | " | ||
13898 | fontSize 14 | ||
13899 | fontName "Consolas" | ||
13900 | alignment "left" | ||
13901 | anchor "tl" | ||
13902 | borderDistance 6 | ||
13903 | ] | ||
13904 | ] | ||
13905 | |||
13906 | node | ||
13907 | [ | ||
13908 | id 12 | ||
13909 | graphics | ||
13910 | [ | ||
13911 | w 112.2 | ||
13912 | h 26 | ||
13913 | type "rectangle" | ||
13914 | fill "#FFFFFF" | ||
13915 | fill2 "#FFFFFF" | ||
13916 | outline "#000000" | ||
13917 | ] | ||
13918 | LabelGraphics | ||
13919 | [ | ||
13920 | text "New Integers" | ||
13921 | outline "#000000" | ||
13922 | fill "#FFFFFF" | ||
13923 | fontSize 16 | ||
13924 | fontName "Monospace" | ||
13925 | autoSizePolicy "node_width" | ||
13926 | anchor "t" | ||
13927 | borderDistance 0.0 | ||
13928 | ] | ||
13929 | LabelGraphics | ||
13930 | [ | ||
13931 | text " | ||
13932 | " | ||
13933 | fontSize 14 | ||
13934 | fontName "Consolas" | ||
13935 | alignment "left" | ||
13936 | anchor "tl" | ||
13937 | borderDistance 6 | ||
13938 | ] | ||
13939 | ] | ||
13940 | |||
13941 | node | ||
13942 | [ | ||
13943 | id 13 | ||
13944 | graphics | ||
13945 | [ | ||
13946 | w 85.80000000000001 | ||
13947 | h 26 | ||
13948 | type "rectangle" | ||
13949 | fill "#FFFFFF" | ||
13950 | fill2 "#FFFFFF" | ||
13951 | outline "#000000" | ||
13952 | ] | ||
13953 | LabelGraphics | ||
13954 | [ | ||
13955 | text "New Reals" | ||
13956 | outline "#000000" | ||
13957 | fill "#FFFFFF" | ||
13958 | fontSize 16 | ||
13959 | fontName "Monospace" | ||
13960 | autoSizePolicy "node_width" | ||
13961 | anchor "t" | ||
13962 | borderDistance 0.0 | ||
13963 | ] | ||
13964 | LabelGraphics | ||
13965 | [ | ||
13966 | text " | ||
13967 | " | ||
13968 | fontSize 14 | ||
13969 | fontName "Consolas" | ||
13970 | alignment "left" | ||
13971 | anchor "tl" | ||
13972 | borderDistance 6 | ||
13973 | ] | ||
13974 | ] | ||
13975 | |||
13976 | node | ||
13977 | [ | ||
13978 | id 14 | ||
13979 | graphics | ||
13980 | [ | ||
13981 | w 103.4 | ||
13982 | h 26 | ||
13983 | type "rectangle" | ||
13984 | fill "#FFFFFF" | ||
13985 | fill2 "#FFFFFF" | ||
13986 | outline "#000000" | ||
13987 | ] | ||
13988 | LabelGraphics | ||
13989 | [ | ||
13990 | text "New Strings" | ||
13991 | outline "#000000" | ||
13992 | fill "#FFFFFF" | ||
13993 | fontSize 16 | ||
13994 | fontName "Monospace" | ||
13995 | autoSizePolicy "node_width" | ||
13996 | anchor "t" | ||
13997 | borderDistance 0.0 | ||
13998 | ] | ||
13999 | LabelGraphics | ||
14000 | [ | ||
14001 | text " | ||
14002 | " | ||
14003 | fontSize 14 | ||
14004 | fontName "Consolas" | ||
14005 | alignment "left" | ||
14006 | anchor "tl" | ||
14007 | borderDistance 6 | ||
14008 | ] | ||
14009 | ] | ||
14010 | |||
14011 | node | ||
14012 | [ | ||
14013 | id 15 | ||
14014 | graphics | ||
14015 | [ | ||
14016 | w 103.4 | ||
14017 | h 26 | ||
14018 | type "rectangle" | ||
14019 | fill "#FFFFFF" | ||
14020 | fill2 "#FFFFFF" | ||
14021 | outline "#000000" | ||
14022 | ] | ||
14023 | LabelGraphics | ||
14024 | [ | ||
14025 | text "New Objects" | ||
14026 | outline "#000000" | ||
14027 | fill "#FFFFFF" | ||
14028 | fontSize 16 | ||
14029 | fontName "Monospace" | ||
14030 | autoSizePolicy "node_width" | ||
14031 | anchor "t" | ||
14032 | borderDistance 0.0 | ||
14033 | ] | ||
14034 | LabelGraphics | ||
14035 | [ | ||
14036 | text " | ||
14037 | " | ||
14038 | fontSize 14 | ||
14039 | fontName "Consolas" | ||
14040 | alignment "left" | ||
14041 | anchor "tl" | ||
14042 | borderDistance 6 | ||
14043 | ] | ||
14044 | ] | ||
14045 | edge | ||
14046 | [ | ||
14047 | source 8 | ||
14048 | target 6 | ||
14049 | graphics | ||
14050 | [ | ||
14051 | fill "#000000" | ||
14052 | targetArrow "standard" | ||
14053 | ] | ||
14054 | LabelGraphics | ||
14055 | [ | ||
14056 | text "data reference FAMTerminator" | ||
14057 | fontSize 14 | ||
14058 | fontName "Consolas" | ||
14059 | configuration "AutoFlippingLabel" | ||
14060 | model "six_pos" | ||
14061 | position "thead" | ||
14062 | ] | ||
14063 | ] | ||
14064 | edge | ||
14065 | [ | ||
14066 | source 5 | ||
14067 | target 6 | ||
14068 | graphics | ||
14069 | [ | ||
14070 | fill "#000000" | ||
14071 | width 3 | ||
14072 | targetArrow "standard" | ||
14073 | ] | ||
14074 | LabelGraphics | ||
14075 | [ | ||
14076 | text "data reference FunctionalInterface" | ||
14077 | fontSize 14 | ||
14078 | fontName "Consolas" | ||
14079 | configuration "AutoFlippingLabel" | ||
14080 | model "six_pos" | ||
14081 | position "thead" | ||
14082 | ] | ||
14083 | ] | ||
14084 | edge | ||
14085 | [ | ||
14086 | source 5 | ||
14087 | target 7 | ||
14088 | graphics | ||
14089 | [ | ||
14090 | fill "#000000" | ||
14091 | width 3 | ||
14092 | targetArrow "standard" | ||
14093 | ] | ||
14094 | LabelGraphics | ||
14095 | [ | ||
14096 | text "data reference FunctionalInterface" | ||
14097 | fontSize 14 | ||
14098 | fontName "Consolas" | ||
14099 | configuration "AutoFlippingLabel" | ||
14100 | model "six_pos" | ||
14101 | position "thead" | ||
14102 | ] | ||
14103 | ] | ||
14104 | edge | ||
14105 | [ | ||
14106 | source 5 | ||
14107 | target 9 | ||
14108 | graphics | ||
14109 | [ | ||
14110 | fill "#000000" | ||
14111 | width 3 | ||
14112 | targetArrow "standard" | ||
14113 | ] | ||
14114 | LabelGraphics | ||
14115 | [ | ||
14116 | text "data reference FunctionalInterface" | ||
14117 | fontSize 14 | ||
14118 | fontName "Consolas" | ||
14119 | configuration "AutoFlippingLabel" | ||
14120 | model "six_pos" | ||
14121 | position "thead" | ||
14122 | ] | ||
14123 | ] | ||
14124 | edge | ||
14125 | [ | ||
14126 | source 5 | ||
14127 | target 10 | ||
14128 | graphics | ||
14129 | [ | ||
14130 | fill "#000000" | ||
14131 | width 3 | ||
14132 | targetArrow "standard" | ||
14133 | ] | ||
14134 | LabelGraphics | ||
14135 | [ | ||
14136 | text "data reference FunctionalInterface" | ||
14137 | fontSize 14 | ||
14138 | fontName "Consolas" | ||
14139 | configuration "AutoFlippingLabel" | ||
14140 | model "six_pos" | ||
14141 | position "thead" | ||
14142 | ] | ||
14143 | ] | ||
14144 | edge | ||
14145 | [ | ||
14146 | source 5 | ||
14147 | target 11 | ||
14148 | graphics | ||
14149 | [ | ||
14150 | fill "#000000" | ||
14151 | width 3 | ||
14152 | targetArrow "standard" | ||
14153 | ] | ||
14154 | LabelGraphics | ||
14155 | [ | ||
14156 | text "data reference FunctionalInterface" | ||
14157 | fontSize 14 | ||
14158 | fontName "Consolas" | ||
14159 | configuration "AutoFlippingLabel" | ||
14160 | model "six_pos" | ||
14161 | position "thead" | ||
14162 | ] | ||
14163 | ] | ||
14164 | edge | ||
14165 | [ | ||
14166 | source 6 | ||
14167 | target 8 | ||
14168 | graphics | ||
14169 | [ | ||
14170 | fill "#000000" | ||
14171 | width 3 | ||
14172 | targetArrow "standard" | ||
14173 | ] | ||
14174 | LabelGraphics | ||
14175 | [ | ||
14176 | text "terminator reference FunctionalData" | ||
14177 | fontSize 14 | ||
14178 | fontName "Consolas" | ||
14179 | configuration "AutoFlippingLabel" | ||
14180 | model "six_pos" | ||
14181 | position "thead" | ||
14182 | ] | ||
14183 | ] | ||
14184 | edge | ||
14185 | [ | ||
14186 | source 6 | ||
14187 | target 5 | ||
14188 | graphics | ||
14189 | [ | ||
14190 | fill "#000000" | ||
14191 | targetArrow "standard" | ||
14192 | ] | ||
14193 | LabelGraphics | ||
14194 | [ | ||
14195 | text "interface reference FunctionalData" | ||
14196 | fontSize 14 | ||
14197 | fontName "Consolas" | ||
14198 | configuration "AutoFlippingLabel" | ||
14199 | model "six_pos" | ||
14200 | position "thead" | ||
14201 | ] | ||
14202 | ] | ||
14203 | edge | ||
14204 | [ | ||
14205 | source 7 | ||
14206 | target 5 | ||
14207 | graphics | ||
14208 | [ | ||
14209 | fill "#000000" | ||
14210 | targetArrow "standard" | ||
14211 | ] | ||
14212 | LabelGraphics | ||
14213 | [ | ||
14214 | text "interface reference FunctionalData" | ||
14215 | fontSize 14 | ||
14216 | fontName "Consolas" | ||
14217 | configuration "AutoFlippingLabel" | ||
14218 | model "six_pos" | ||
14219 | position "thead" | ||
14220 | ] | ||
14221 | ] | ||
14222 | edge | ||
14223 | [ | ||
14224 | source 9 | ||
14225 | target 5 | ||
14226 | graphics | ||
14227 | [ | ||
14228 | fill "#000000" | ||
14229 | targetArrow "standard" | ||
14230 | ] | ||
14231 | LabelGraphics | ||
14232 | [ | ||
14233 | text "interface reference FunctionalData" | ||
14234 | fontSize 14 | ||
14235 | fontName "Consolas" | ||
14236 | configuration "AutoFlippingLabel" | ||
14237 | model "six_pos" | ||
14238 | position "thead" | ||
14239 | ] | ||
14240 | ] | ||
14241 | edge | ||
14242 | [ | ||
14243 | source 10 | ||
14244 | target 5 | ||
14245 | graphics | ||
14246 | [ | ||
14247 | fill "#000000" | ||
14248 | targetArrow "standard" | ||
14249 | ] | ||
14250 | LabelGraphics | ||
14251 | [ | ||
14252 | text "interface reference FunctionalData" | ||
14253 | fontSize 14 | ||
14254 | fontName "Consolas" | ||
14255 | configuration "AutoFlippingLabel" | ||
14256 | model "six_pos" | ||
14257 | position "thead" | ||
14258 | ] | ||
14259 | ] | ||
14260 | edge | ||
14261 | [ | ||
14262 | source 11 | ||
14263 | target 5 | ||
14264 | graphics | ||
14265 | [ | ||
14266 | fill "#000000" | ||
14267 | targetArrow "standard" | ||
14268 | ] | ||
14269 | LabelGraphics | ||
14270 | [ | ||
14271 | text "interface reference FunctionalData" | ||
14272 | fontSize 14 | ||
14273 | fontName "Consolas" | ||
14274 | configuration "AutoFlippingLabel" | ||
14275 | model "six_pos" | ||
14276 | position "thead" | ||
14277 | ] | ||
14278 | ] | ||
14279 | ] | ||
14280 | graph | ||
14281 | [ | ||
14282 | node | ||
14283 | [ | ||
14284 | id 0 | ||
14285 | graphics | ||
14286 | [ | ||
14287 | w 226.60000000000002 | ||
14288 | h 40 | ||
14289 | type "rectangle" | ||
14290 | fill "#FFFFFF" | ||
14291 | fill2 "#FFFFFF" | ||
14292 | outline "#000000" | ||
14293 | ] | ||
14294 | LabelGraphics | ||
14295 | [ | ||
14296 | text "Root literal FunctionType" | ||
14297 | outline "#000000" | ||
14298 | fill "#FFFFFF" | ||
14299 | fontSize 16 | ||
14300 | fontName "Monospace" | ||
14301 | autoSizePolicy "node_width" | ||
14302 | anchor "t" | ||
14303 | borderDistance 0.0 | ||
14304 | ] | ||
14305 | LabelGraphics | ||
14306 | [ | ||
14307 | text " | ||
14308 | FunctionType enum | ||
14309 | " | ||
14310 | fontSize 14 | ||
14311 | fontName "Consolas" | ||
14312 | alignment "left" | ||
14313 | anchor "tl" | ||
14314 | borderDistance 6 | ||
14315 | ] | ||
14316 | ] | ||
14317 | |||
14318 | node | ||
14319 | [ | ||
14320 | id 1 | ||
14321 | graphics | ||
14322 | [ | ||
14323 | w 297.0 | ||
14324 | h 40 | ||
14325 | type "rectangle" | ||
14326 | fill "#FFFFFF" | ||
14327 | fill2 "#FFFFFF" | ||
14328 | outline "#000000" | ||
14329 | ] | ||
14330 | LabelGraphics | ||
14331 | [ | ||
14332 | text "Intermediate literal FunctionType" | ||
14333 | outline "#000000" | ||
14334 | fill "#FFFFFF" | ||
14335 | fontSize 16 | ||
14336 | fontName "Monospace" | ||
14337 | autoSizePolicy "node_width" | ||
14338 | anchor "t" | ||
14339 | borderDistance 0.0 | ||
14340 | ] | ||
14341 | LabelGraphics | ||
14342 | [ | ||
14343 | text " | ||
14344 | FunctionType enum | ||
14345 | " | ||
14346 | fontSize 14 | ||
14347 | fontName "Consolas" | ||
14348 | alignment "left" | ||
14349 | anchor "tl" | ||
14350 | borderDistance 6 | ||
14351 | ] | ||
14352 | ] | ||
14353 | |||
14354 | node | ||
14355 | [ | ||
14356 | id 2 | ||
14357 | graphics | ||
14358 | [ | ||
14359 | w 226.60000000000002 | ||
14360 | h 40 | ||
14361 | type "rectangle" | ||
14362 | fill "#FFFFFF" | ||
14363 | fill2 "#FFFFFF" | ||
14364 | outline "#000000" | ||
14365 | ] | ||
14366 | LabelGraphics | ||
14367 | [ | ||
14368 | text "Leaf literal FunctionType" | ||
14369 | outline "#000000" | ||
14370 | fill "#FFFFFF" | ||
14371 | fontSize 16 | ||
14372 | fontName "Monospace" | ||
14373 | autoSizePolicy "node_width" | ||
14374 | anchor "t" | ||
14375 | borderDistance 0.0 | ||
14376 | ] | ||
14377 | LabelGraphics | ||
14378 | [ | ||
14379 | text " | ||
14380 | FunctionType enum | ||
14381 | " | ||
14382 | fontSize 14 | ||
14383 | fontName "Consolas" | ||
14384 | alignment "left" | ||
14385 | anchor "tl" | ||
14386 | borderDistance 6 | ||
14387 | ] | ||
14388 | ] | ||
14389 | |||
14390 | node | ||
14391 | [ | ||
14392 | id 3 | ||
14393 | graphics | ||
14394 | [ | ||
14395 | w 41.800000000000004 | ||
14396 | h 26 | ||
14397 | type "rectangle" | ||
14398 | fill "#FFFFFF" | ||
14399 | fill2 "#FFFFFF" | ||
14400 | outline "#000000" | ||
14401 | ] | ||
14402 | LabelGraphics | ||
14403 | [ | ||
14404 | text "true" | ||
14405 | outline "#000000" | ||
14406 | fill "#FFFFFF" | ||
14407 | fontSize 16 | ||
14408 | fontName "Monospace" | ||
14409 | autoSizePolicy "node_width" | ||
14410 | anchor "t" | ||
14411 | borderDistance 0.0 | ||
14412 | ] | ||
14413 | LabelGraphics | ||
14414 | [ | ||
14415 | text " | ||
14416 | " | ||
14417 | fontSize 14 | ||
14418 | fontName "Consolas" | ||
14419 | alignment "left" | ||
14420 | anchor "tl" | ||
14421 | borderDistance 6 | ||
14422 | ] | ||
14423 | ] | ||
14424 | |||
14425 | node | ||
14426 | [ | ||
14427 | id 4 | ||
14428 | graphics | ||
14429 | [ | ||
14430 | w 50.6 | ||
14431 | h 26 | ||
14432 | type "rectangle" | ||
14433 | fill "#FFFFFF" | ||
14434 | fill2 "#FFFFFF" | ||
14435 | outline "#000000" | ||
14436 | ] | ||
14437 | LabelGraphics | ||
14438 | [ | ||
14439 | text "false" | ||
14440 | outline "#000000" | ||
14441 | fill "#FFFFFF" | ||
14442 | fontSize 16 | ||
14443 | fontName "Monospace" | ||
14444 | autoSizePolicy "node_width" | ||
14445 | anchor "t" | ||
14446 | borderDistance 0.0 | ||
14447 | ] | ||
14448 | LabelGraphics | ||
14449 | [ | ||
14450 | text " | ||
14451 | " | ||
14452 | fontSize 14 | ||
14453 | fontName "Consolas" | ||
14454 | alignment "left" | ||
14455 | anchor "tl" | ||
14456 | borderDistance 6 | ||
14457 | ] | ||
14458 | ] | ||
14459 | |||
14460 | node | ||
14461 | [ | ||
14462 | id 5 | ||
14463 | graphics | ||
14464 | [ | ||
14465 | w 207.9 | ||
14466 | h 40 | ||
14467 | type "rectangle" | ||
14468 | fill "#FFFFFF" | ||
14469 | fill2 "#FFFFFF" | ||
14470 | outline "#000000" | ||
14471 | ] | ||
14472 | LabelGraphics | ||
14473 | [ | ||
14474 | text "null" | ||
14475 | outline "#000000" | ||
14476 | fill "#FFFFFF" | ||
14477 | fontSize 16 | ||
14478 | fontName "Monospace" | ||
14479 | autoSizePolicy "node_width" | ||
14480 | anchor "t" | ||
14481 | borderDistance 0.0 | ||
14482 | ] | ||
14483 | LabelGraphics | ||
14484 | [ | ||
14485 | text " | ||
14486 | FunctionalInterface class | ||
14487 | " | ||
14488 | fontSize 14 | ||
14489 | fontName "Consolas" | ||
14490 | alignment "left" | ||
14491 | anchor "tl" | ||
14492 | borderDistance 6 | ||
14493 | ] | ||
14494 | ] | ||
14495 | |||
14496 | node | ||
14497 | [ | ||
14498 | id 6 | ||
14499 | graphics | ||
14500 | [ | ||
14501 | w 177.10000000000002 | ||
14502 | h 54 | ||
14503 | type "rectangle" | ||
14504 | fill "#FFFFFF" | ||
14505 | fill2 "#FFFFFF" | ||
14506 | outline "#000000" | ||
14507 | ] | ||
14508 | LabelGraphics | ||
14509 | [ | ||
14510 | text "null" | ||
14511 | outline "#000000" | ||
14512 | fill "#FFFFFF" | ||
14513 | fontSize 16 | ||
14514 | fontName "Monospace" | ||
14515 | autoSizePolicy "node_width" | ||
14516 | anchor "t" | ||
14517 | borderDistance 0.0 | ||
14518 | ] | ||
14519 | LabelGraphics | ||
14520 | [ | ||
14521 | text " | ||
14522 | FunctionalInput class | ||
14523 | FunctionalData class | ||
14524 | " | ||
14525 | fontSize 14 | ||
14526 | fontName "Consolas" | ||
14527 | alignment "left" | ||
14528 | anchor "tl" | ||
14529 | borderDistance 6 | ||
14530 | ] | ||
14531 | ] | ||
14532 | |||
14533 | node | ||
14534 | [ | ||
14535 | id 7 | ||
14536 | graphics | ||
14537 | [ | ||
14538 | w 161.70000000000002 | ||
14539 | h 40 | ||
14540 | type "rectangle" | ||
14541 | fill "#FFFFFF" | ||
14542 | fill2 "#FFFFFF" | ||
14543 | outline "#000000" | ||
14544 | ] | ||
14545 | LabelGraphics | ||
14546 | [ | ||
14547 | text "null" | ||
14548 | outline "#000000" | ||
14549 | fill "#FFFFFF" | ||
14550 | fontSize 16 | ||
14551 | fontName "Monospace" | ||
14552 | autoSizePolicy "node_width" | ||
14553 | anchor "t" | ||
14554 | borderDistance 0.0 | ||
14555 | ] | ||
14556 | LabelGraphics | ||
14557 | [ | ||
14558 | text " | ||
14559 | FAMTerminator class | ||
14560 | " | ||
14561 | fontSize 14 | ||
14562 | fontName "Consolas" | ||
14563 | alignment "left" | ||
14564 | anchor "tl" | ||
14565 | borderDistance 6 | ||
14566 | ] | ||
14567 | ] | ||
14568 | |||
14569 | node | ||
14570 | [ | ||
14571 | id 8 | ||
14572 | graphics | ||
14573 | [ | ||
14574 | w 177.10000000000002 | ||
14575 | h 54 | ||
14576 | type "rectangle" | ||
14577 | fill "#FFFFFF" | ||
14578 | fill2 "#FFFFFF" | ||
14579 | outline "#000000" | ||
14580 | ] | ||
14581 | LabelGraphics | ||
14582 | [ | ||
14583 | text "null" | ||
14584 | outline "#000000" | ||
14585 | fill "#FFFFFF" | ||
14586 | fontSize 16 | ||
14587 | fontName "Monospace" | ||
14588 | autoSizePolicy "node_width" | ||
14589 | anchor "t" | ||
14590 | borderDistance 0.0 | ||
14591 | ] | ||
14592 | LabelGraphics | ||
14593 | [ | ||
14594 | text " | ||
14595 | FunctionalInput class | ||
14596 | FunctionalData class | ||
14597 | " | ||
14598 | fontSize 14 | ||
14599 | fontName "Consolas" | ||
14600 | alignment "left" | ||
14601 | anchor "tl" | ||
14602 | borderDistance 6 | ||
14603 | ] | ||
14604 | ] | ||
14605 | |||
14606 | node | ||
14607 | [ | ||
14608 | id 9 | ||
14609 | graphics | ||
14610 | [ | ||
14611 | w 184.8 | ||
14612 | h 54 | ||
14613 | type "rectangle" | ||
14614 | fill "#FFFFFF" | ||
14615 | fill2 "#FFFFFF" | ||
14616 | outline "#000000" | ||
14617 | ] | ||
14618 | LabelGraphics | ||
14619 | [ | ||
14620 | text "null" | ||
14621 | outline "#000000" | ||
14622 | fill "#FFFFFF" | ||
14623 | fontSize 16 | ||
14624 | fontName "Monospace" | ||
14625 | autoSizePolicy "node_width" | ||
14626 | anchor "t" | ||
14627 | borderDistance 0.0 | ||
14628 | ] | ||
14629 | LabelGraphics | ||
14630 | [ | ||
14631 | text " | ||
14632 | FunctionalOutput class | ||
14633 | FunctionalData class | ||
14634 | " | ||
14635 | fontSize 14 | ||
14636 | fontName "Consolas" | ||
14637 | alignment "left" | ||
14638 | anchor "tl" | ||
14639 | borderDistance 6 | ||
14640 | ] | ||
14641 | ] | ||
14642 | |||
14643 | node | ||
14644 | [ | ||
14645 | id 10 | ||
14646 | graphics | ||
14647 | [ | ||
14648 | w 177.10000000000002 | ||
14649 | h 40 | ||
14650 | type "rectangle" | ||
14651 | fill "#FFFFFF" | ||
14652 | fill2 "#FFFFFF" | ||
14653 | outline "#000000" | ||
14654 | ] | ||
14655 | LabelGraphics | ||
14656 | [ | ||
14657 | text "null" | ||
14658 | outline "#000000" | ||
14659 | fill "#FFFFFF" | ||
14660 | fontSize 16 | ||
14661 | fontName "Monospace" | ||
14662 | autoSizePolicy "node_width" | ||
14663 | anchor "t" | ||
14664 | borderDistance 0.0 | ||
14665 | ] | ||
14666 | LabelGraphics | ||
14667 | [ | ||
14668 | text " | ||
14669 | InformationLink class | ||
14670 | " | ||
14671 | fontSize 14 | ||
14672 | fontName "Consolas" | ||
14673 | alignment "left" | ||
14674 | anchor "tl" | ||
14675 | borderDistance 6 | ||
14676 | ] | ||
14677 | ] | ||
14678 | |||
14679 | node | ||
14680 | [ | ||
14681 | id 11 | ||
14682 | graphics | ||
14683 | [ | ||
14684 | w 184.8 | ||
14685 | h 54 | ||
14686 | type "rectangle" | ||
14687 | fill "#FFFFFF" | ||
14688 | fill2 "#FFFFFF" | ||
14689 | outline "#000000" | ||
14690 | ] | ||
14691 | LabelGraphics | ||
14692 | [ | ||
14693 | text "null" | ||
14694 | outline "#000000" | ||
14695 | fill "#FFFFFF" | ||
14696 | fontSize 16 | ||
14697 | fontName "Monospace" | ||
14698 | autoSizePolicy "node_width" | ||
14699 | anchor "t" | ||
14700 | borderDistance 0.0 | ||
14701 | ] | ||
14702 | LabelGraphics | ||
14703 | [ | ||
14704 | text " | ||
14705 | FunctionalOutput class | ||
14706 | FunctionalData class | ||
14707 | " | ||
14708 | fontSize 14 | ||
14709 | fontName "Consolas" | ||
14710 | alignment "left" | ||
14711 | anchor "tl" | ||
14712 | borderDistance 6 | ||
14713 | ] | ||
14714 | ] | ||
14715 | |||
14716 | node | ||
14717 | [ | ||
14718 | id 12 | ||
14719 | graphics | ||
14720 | [ | ||
14721 | w 112.2 | ||
14722 | h 26 | ||
14723 | type "rectangle" | ||
14724 | fill "#FFFFFF" | ||
14725 | fill2 "#FFFFFF" | ||
14726 | outline "#000000" | ||
14727 | ] | ||
14728 | LabelGraphics | ||
14729 | [ | ||
14730 | text "New Integers" | ||
14731 | outline "#000000" | ||
14732 | fill "#FFFFFF" | ||
14733 | fontSize 16 | ||
14734 | fontName "Monospace" | ||
14735 | autoSizePolicy "node_width" | ||
14736 | anchor "t" | ||
14737 | borderDistance 0.0 | ||
14738 | ] | ||
14739 | LabelGraphics | ||
14740 | [ | ||
14741 | text " | ||
14742 | " | ||
14743 | fontSize 14 | ||
14744 | fontName "Consolas" | ||
14745 | alignment "left" | ||
14746 | anchor "tl" | ||
14747 | borderDistance 6 | ||
14748 | ] | ||
14749 | ] | ||
14750 | |||
14751 | node | ||
14752 | [ | ||
14753 | id 13 | ||
14754 | graphics | ||
14755 | [ | ||
14756 | w 85.80000000000001 | ||
14757 | h 26 | ||
14758 | type "rectangle" | ||
14759 | fill "#FFFFFF" | ||
14760 | fill2 "#FFFFFF" | ||
14761 | outline "#000000" | ||
14762 | ] | ||
14763 | LabelGraphics | ||
14764 | [ | ||
14765 | text "New Reals" | ||
14766 | outline "#000000" | ||
14767 | fill "#FFFFFF" | ||
14768 | fontSize 16 | ||
14769 | fontName "Monospace" | ||
14770 | autoSizePolicy "node_width" | ||
14771 | anchor "t" | ||
14772 | borderDistance 0.0 | ||
14773 | ] | ||
14774 | LabelGraphics | ||
14775 | [ | ||
14776 | text " | ||
14777 | " | ||
14778 | fontSize 14 | ||
14779 | fontName "Consolas" | ||
14780 | alignment "left" | ||
14781 | anchor "tl" | ||
14782 | borderDistance 6 | ||
14783 | ] | ||
14784 | ] | ||
14785 | |||
14786 | node | ||
14787 | [ | ||
14788 | id 14 | ||
14789 | graphics | ||
14790 | [ | ||
14791 | w 103.4 | ||
14792 | h 26 | ||
14793 | type "rectangle" | ||
14794 | fill "#FFFFFF" | ||
14795 | fill2 "#FFFFFF" | ||
14796 | outline "#000000" | ||
14797 | ] | ||
14798 | LabelGraphics | ||
14799 | [ | ||
14800 | text "New Strings" | ||
14801 | outline "#000000" | ||
14802 | fill "#FFFFFF" | ||
14803 | fontSize 16 | ||
14804 | fontName "Monospace" | ||
14805 | autoSizePolicy "node_width" | ||
14806 | anchor "t" | ||
14807 | borderDistance 0.0 | ||
14808 | ] | ||
14809 | LabelGraphics | ||
14810 | [ | ||
14811 | text " | ||
14812 | " | ||
14813 | fontSize 14 | ||
14814 | fontName "Consolas" | ||
14815 | alignment "left" | ||
14816 | anchor "tl" | ||
14817 | borderDistance 6 | ||
14818 | ] | ||
14819 | ] | ||
14820 | |||
14821 | node | ||
14822 | [ | ||
14823 | id 15 | ||
14824 | graphics | ||
14825 | [ | ||
14826 | w 103.4 | ||
14827 | h 26 | ||
14828 | type "rectangle" | ||
14829 | fill "#FFFFFF" | ||
14830 | fill2 "#FFFFFF" | ||
14831 | outline "#000000" | ||
14832 | ] | ||
14833 | LabelGraphics | ||
14834 | [ | ||
14835 | text "New Objects" | ||
14836 | outline "#000000" | ||
14837 | fill "#FFFFFF" | ||
14838 | fontSize 16 | ||
14839 | fontName "Monospace" | ||
14840 | autoSizePolicy "node_width" | ||
14841 | anchor "t" | ||
14842 | borderDistance 0.0 | ||
14843 | ] | ||
14844 | LabelGraphics | ||
14845 | [ | ||
14846 | text " | ||
14847 | " | ||
14848 | fontSize 14 | ||
14849 | fontName "Consolas" | ||
14850 | alignment "left" | ||
14851 | anchor "tl" | ||
14852 | borderDistance 6 | ||
14853 | ] | ||
14854 | ] | ||
14855 | edge | ||
14856 | [ | ||
14857 | source 7 | ||
14858 | target 6 | ||
14859 | graphics | ||
14860 | [ | ||
14861 | fill "#000000" | ||
14862 | targetArrow "standard" | ||
14863 | ] | ||
14864 | LabelGraphics | ||
14865 | [ | ||
14866 | text "data reference FAMTerminator" | ||
14867 | fontSize 14 | ||
14868 | fontName "Consolas" | ||
14869 | configuration "AutoFlippingLabel" | ||
14870 | model "six_pos" | ||
14871 | position "thead" | ||
14872 | ] | ||
14873 | ] | ||
14874 | edge | ||
14875 | [ | ||
14876 | source 10 | ||
14877 | target 9 | ||
14878 | graphics | ||
14879 | [ | ||
14880 | fill "#000000" | ||
14881 | targetArrow "standard" | ||
14882 | ] | ||
14883 | LabelGraphics | ||
14884 | [ | ||
14885 | text "from reference InformationLink" | ||
14886 | fontSize 14 | ||
14887 | fontName "Consolas" | ||
14888 | configuration "AutoFlippingLabel" | ||
14889 | model "six_pos" | ||
14890 | position "thead" | ||
14891 | ] | ||
14892 | ] | ||
14893 | edge | ||
14894 | [ | ||
14895 | source 10 | ||
14896 | target 8 | ||
14897 | graphics | ||
14898 | [ | ||
14899 | fill "#000000" | ||
14900 | targetArrow "standard" | ||
14901 | ] | ||
14902 | LabelGraphics | ||
14903 | [ | ||
14904 | text "to reference InformationLink" | ||
14905 | fontSize 14 | ||
14906 | fontName "Consolas" | ||
14907 | configuration "AutoFlippingLabel" | ||
14908 | model "six_pos" | ||
14909 | position "thead" | ||
14910 | ] | ||
14911 | ] | ||
14912 | edge | ||
14913 | [ | ||
14914 | source 5 | ||
14915 | target 6 | ||
14916 | graphics | ||
14917 | [ | ||
14918 | fill "#000000" | ||
14919 | width 3 | ||
14920 | targetArrow "standard" | ||
14921 | ] | ||
14922 | LabelGraphics | ||
14923 | [ | ||
14924 | text "data reference FunctionalInterface" | ||
14925 | fontSize 14 | ||
14926 | fontName "Consolas" | ||
14927 | configuration "AutoFlippingLabel" | ||
14928 | model "six_pos" | ||
14929 | position "thead" | ||
14930 | ] | ||
14931 | ] | ||
14932 | edge | ||
14933 | [ | ||
14934 | source 5 | ||
14935 | target 8 | ||
14936 | graphics | ||
14937 | [ | ||
14938 | fill "#000000" | ||
14939 | width 3 | ||
14940 | targetArrow "standard" | ||
14941 | ] | ||
14942 | LabelGraphics | ||
14943 | [ | ||
14944 | text "data reference FunctionalInterface" | ||
14945 | fontSize 14 | ||
14946 | fontName "Consolas" | ||
14947 | configuration "AutoFlippingLabel" | ||
14948 | model "six_pos" | ||
14949 | position "thead" | ||
14950 | ] | ||
14951 | ] | ||
14952 | edge | ||
14953 | [ | ||
14954 | source 5 | ||
14955 | target 9 | ||
14956 | graphics | ||
14957 | [ | ||
14958 | fill "#000000" | ||
14959 | width 3 | ||
14960 | targetArrow "standard" | ||
14961 | ] | ||
14962 | LabelGraphics | ||
14963 | [ | ||
14964 | text "data reference FunctionalInterface" | ||
14965 | fontSize 14 | ||
14966 | fontName "Consolas" | ||
14967 | configuration "AutoFlippingLabel" | ||
14968 | model "six_pos" | ||
14969 | position "thead" | ||
14970 | ] | ||
14971 | ] | ||
14972 | edge | ||
14973 | [ | ||
14974 | source 5 | ||
14975 | target 11 | ||
14976 | graphics | ||
14977 | [ | ||
14978 | fill "#000000" | ||
14979 | width 3 | ||
14980 | targetArrow "standard" | ||
14981 | ] | ||
14982 | LabelGraphics | ||
14983 | [ | ||
14984 | text "data reference FunctionalInterface" | ||
14985 | fontSize 14 | ||
14986 | fontName "Consolas" | ||
14987 | configuration "AutoFlippingLabel" | ||
14988 | model "six_pos" | ||
14989 | position "thead" | ||
14990 | ] | ||
14991 | ] | ||
14992 | edge | ||
14993 | [ | ||
14994 | source 8 | ||
14995 | target 10 | ||
14996 | graphics | ||
14997 | [ | ||
14998 | fill "#000000" | ||
14999 | targetArrow "standard" | ||
15000 | ] | ||
15001 | LabelGraphics | ||
15002 | [ | ||
15003 | text "IncomingLinks reference FunctionalInput" | ||
15004 | fontSize 14 | ||
15005 | fontName "Consolas" | ||
15006 | configuration "AutoFlippingLabel" | ||
15007 | model "six_pos" | ||
15008 | position "thead" | ||
15009 | ] | ||
15010 | ] | ||
15011 | edge | ||
15012 | [ | ||
15013 | source 9 | ||
15014 | target 10 | ||
15015 | graphics | ||
15016 | [ | ||
15017 | fill "#000000" | ||
15018 | width 3 | ||
15019 | targetArrow "standard" | ||
15020 | ] | ||
15021 | LabelGraphics | ||
15022 | [ | ||
15023 | text "outgoingLinks reference FunctionalOutput" | ||
15024 | fontSize 14 | ||
15025 | fontName "Consolas" | ||
15026 | configuration "AutoFlippingLabel" | ||
15027 | model "six_pos" | ||
15028 | position "thead" | ||
15029 | ] | ||
15030 | ] | ||
15031 | edge | ||
15032 | [ | ||
15033 | source 6 | ||
15034 | target 7 | ||
15035 | graphics | ||
15036 | [ | ||
15037 | fill "#000000" | ||
15038 | width 3 | ||
15039 | targetArrow "standard" | ||
15040 | ] | ||
15041 | LabelGraphics | ||
15042 | [ | ||
15043 | text "terminator reference FunctionalData" | ||
15044 | fontSize 14 | ||
15045 | fontName "Consolas" | ||
15046 | configuration "AutoFlippingLabel" | ||
15047 | model "six_pos" | ||
15048 | position "thead" | ||
15049 | ] | ||
15050 | ] | ||
15051 | edge | ||
15052 | [ | ||
15053 | source 6 | ||
15054 | target 5 | ||
15055 | graphics | ||
15056 | [ | ||
15057 | fill "#000000" | ||
15058 | targetArrow "standard" | ||
15059 | ] | ||
15060 | LabelGraphics | ||
15061 | [ | ||
15062 | text "interface reference FunctionalData" | ||
15063 | fontSize 14 | ||
15064 | fontName "Consolas" | ||
15065 | configuration "AutoFlippingLabel" | ||
15066 | model "six_pos" | ||
15067 | position "thead" | ||
15068 | ] | ||
15069 | ] | ||
15070 | edge | ||
15071 | [ | ||
15072 | source 8 | ||
15073 | target 5 | ||
15074 | graphics | ||
15075 | [ | ||
15076 | fill "#000000" | ||
15077 | targetArrow "standard" | ||
15078 | ] | ||
15079 | LabelGraphics | ||
15080 | [ | ||
15081 | text "interface reference FunctionalData" | ||
15082 | fontSize 14 | ||
15083 | fontName "Consolas" | ||
15084 | configuration "AutoFlippingLabel" | ||
15085 | model "six_pos" | ||
15086 | position "thead" | ||
15087 | ] | ||
15088 | ] | ||
15089 | edge | ||
15090 | [ | ||
15091 | source 9 | ||
15092 | target 5 | ||
15093 | graphics | ||
15094 | [ | ||
15095 | fill "#000000" | ||
15096 | targetArrow "standard" | ||
15097 | ] | ||
15098 | LabelGraphics | ||
15099 | [ | ||
15100 | text "interface reference FunctionalData" | ||
15101 | fontSize 14 | ||
15102 | fontName "Consolas" | ||
15103 | configuration "AutoFlippingLabel" | ||
15104 | model "six_pos" | ||
15105 | position "thead" | ||
15106 | ] | ||
15107 | ] | ||
15108 | edge | ||
15109 | [ | ||
15110 | source 11 | ||
15111 | target 5 | ||
15112 | graphics | ||
15113 | [ | ||
15114 | fill "#000000" | ||
15115 | targetArrow "standard" | ||
15116 | ] | ||
15117 | LabelGraphics | ||
15118 | [ | ||
15119 | text "interface reference FunctionalData" | ||
15120 | fontSize 14 | ||
15121 | fontName "Consolas" | ||
15122 | configuration "AutoFlippingLabel" | ||
15123 | model "six_pos" | ||
15124 | position "thead" | ||
15125 | ] | ||
15126 | ] | ||
15127 | ] | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.png b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.png index 158ebb0f..a5fb7f02 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.png +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.png | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.xmi b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.xmi index 3dcec4a4..ec5dbad1 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.xmi +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/1.xmi | |||
@@ -1,13 +1,11 @@ | |||
1 | <?xml version="1.0" encoding="ASCII"?> | 1 | <?xml version="1.0" encoding="ASCII"?> |
2 | <fam:FunctionalArchitectureModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> | 2 | <fam:FunctionalInterface xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> |
3 | <rootElements xsi:type="fam:Function"> | 3 | <data xsi:type="fam:FunctionalOutput"> |
4 | <interface> | 4 | <outgoingLinks to="//@data.3"/> |
5 | <data xsi:type="fam:FunctionalOutput"> | 5 | </data> |
6 | <terminator/> | 6 | <data xsi:type="fam:FunctionalInput"> |
7 | </data> | 7 | <terminator/> |
8 | <data xsi:type="fam:FunctionalOutput"> | 8 | </data> |
9 | <terminator/> | 9 | <data xsi:type="fam:FunctionalOutput"/> |
10 | </data> | 10 | <data xsi:type="fam:FunctionalInput" IncomingLinks="//@data.0/@outgoingLinks.0"/> |
11 | </interface> | 11 | </fam:FunctionalInterface> |
12 | </rootElements> | ||
13 | </fam:FunctionalArchitectureModel> | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.gml b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.gml index 62441d63..e581a1a4 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.gml +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.gml | |||
@@ -11699,3 +11699,2509 @@ graph | |||
11699 | ] | 11699 | ] |
11700 | ] | 11700 | ] |
11701 | ] | 11701 | ] |
11702 | graph | ||
11703 | [ | ||
11704 | node | ||
11705 | [ | ||
11706 | id 0 | ||
11707 | graphics | ||
11708 | [ | ||
11709 | w 226.60000000000002 | ||
11710 | h 40 | ||
11711 | type "rectangle" | ||
11712 | fill "#FFFFFF" | ||
11713 | fill2 "#FFFFFF" | ||
11714 | outline "#000000" | ||
11715 | ] | ||
11716 | LabelGraphics | ||
11717 | [ | ||
11718 | text "Root literal FunctionType" | ||
11719 | outline "#000000" | ||
11720 | fill "#FFFFFF" | ||
11721 | fontSize 16 | ||
11722 | fontName "Monospace" | ||
11723 | autoSizePolicy "node_width" | ||
11724 | anchor "t" | ||
11725 | borderDistance 0.0 | ||
11726 | ] | ||
11727 | LabelGraphics | ||
11728 | [ | ||
11729 | text " | ||
11730 | FunctionType enum | ||
11731 | " | ||
11732 | fontSize 14 | ||
11733 | fontName "Consolas" | ||
11734 | alignment "left" | ||
11735 | anchor "tl" | ||
11736 | borderDistance 6 | ||
11737 | ] | ||
11738 | ] | ||
11739 | |||
11740 | node | ||
11741 | [ | ||
11742 | id 1 | ||
11743 | graphics | ||
11744 | [ | ||
11745 | w 297.0 | ||
11746 | h 40 | ||
11747 | type "rectangle" | ||
11748 | fill "#FFFFFF" | ||
11749 | fill2 "#FFFFFF" | ||
11750 | outline "#000000" | ||
11751 | ] | ||
11752 | LabelGraphics | ||
11753 | [ | ||
11754 | text "Intermediate literal FunctionType" | ||
11755 | outline "#000000" | ||
11756 | fill "#FFFFFF" | ||
11757 | fontSize 16 | ||
11758 | fontName "Monospace" | ||
11759 | autoSizePolicy "node_width" | ||
11760 | anchor "t" | ||
11761 | borderDistance 0.0 | ||
11762 | ] | ||
11763 | LabelGraphics | ||
11764 | [ | ||
11765 | text " | ||
11766 | FunctionType enum | ||
11767 | " | ||
11768 | fontSize 14 | ||
11769 | fontName "Consolas" | ||
11770 | alignment "left" | ||
11771 | anchor "tl" | ||
11772 | borderDistance 6 | ||
11773 | ] | ||
11774 | ] | ||
11775 | |||
11776 | node | ||
11777 | [ | ||
11778 | id 2 | ||
11779 | graphics | ||
11780 | [ | ||
11781 | w 226.60000000000002 | ||
11782 | h 40 | ||
11783 | type "rectangle" | ||
11784 | fill "#FFFFFF" | ||
11785 | fill2 "#FFFFFF" | ||
11786 | outline "#000000" | ||
11787 | ] | ||
11788 | LabelGraphics | ||
11789 | [ | ||
11790 | text "Leaf literal FunctionType" | ||
11791 | outline "#000000" | ||
11792 | fill "#FFFFFF" | ||
11793 | fontSize 16 | ||
11794 | fontName "Monospace" | ||
11795 | autoSizePolicy "node_width" | ||
11796 | anchor "t" | ||
11797 | borderDistance 0.0 | ||
11798 | ] | ||
11799 | LabelGraphics | ||
11800 | [ | ||
11801 | text " | ||
11802 | FunctionType enum | ||
11803 | " | ||
11804 | fontSize 14 | ||
11805 | fontName "Consolas" | ||
11806 | alignment "left" | ||
11807 | anchor "tl" | ||
11808 | borderDistance 6 | ||
11809 | ] | ||
11810 | ] | ||
11811 | |||
11812 | node | ||
11813 | [ | ||
11814 | id 3 | ||
11815 | graphics | ||
11816 | [ | ||
11817 | w 41.800000000000004 | ||
11818 | h 26 | ||
11819 | type "rectangle" | ||
11820 | fill "#FFFFFF" | ||
11821 | fill2 "#FFFFFF" | ||
11822 | outline "#000000" | ||
11823 | ] | ||
11824 | LabelGraphics | ||
11825 | [ | ||
11826 | text "true" | ||
11827 | outline "#000000" | ||
11828 | fill "#FFFFFF" | ||
11829 | fontSize 16 | ||
11830 | fontName "Monospace" | ||
11831 | autoSizePolicy "node_width" | ||
11832 | anchor "t" | ||
11833 | borderDistance 0.0 | ||
11834 | ] | ||
11835 | LabelGraphics | ||
11836 | [ | ||
11837 | text " | ||
11838 | " | ||
11839 | fontSize 14 | ||
11840 | fontName "Consolas" | ||
11841 | alignment "left" | ||
11842 | anchor "tl" | ||
11843 | borderDistance 6 | ||
11844 | ] | ||
11845 | ] | ||
11846 | |||
11847 | node | ||
11848 | [ | ||
11849 | id 4 | ||
11850 | graphics | ||
11851 | [ | ||
11852 | w 50.6 | ||
11853 | h 26 | ||
11854 | type "rectangle" | ||
11855 | fill "#FFFFFF" | ||
11856 | fill2 "#FFFFFF" | ||
11857 | outline "#000000" | ||
11858 | ] | ||
11859 | LabelGraphics | ||
11860 | [ | ||
11861 | text "false" | ||
11862 | outline "#000000" | ||
11863 | fill "#FFFFFF" | ||
11864 | fontSize 16 | ||
11865 | fontName "Monospace" | ||
11866 | autoSizePolicy "node_width" | ||
11867 | anchor "t" | ||
11868 | borderDistance 0.0 | ||
11869 | ] | ||
11870 | LabelGraphics | ||
11871 | [ | ||
11872 | text " | ||
11873 | " | ||
11874 | fontSize 14 | ||
11875 | fontName "Consolas" | ||
11876 | alignment "left" | ||
11877 | anchor "tl" | ||
11878 | borderDistance 6 | ||
11879 | ] | ||
11880 | ] | ||
11881 | |||
11882 | node | ||
11883 | [ | ||
11884 | id 5 | ||
11885 | graphics | ||
11886 | [ | ||
11887 | w 207.9 | ||
11888 | h 40 | ||
11889 | type "rectangle" | ||
11890 | fill "#FFFFFF" | ||
11891 | fill2 "#FFFFFF" | ||
11892 | outline "#000000" | ||
11893 | ] | ||
11894 | LabelGraphics | ||
11895 | [ | ||
11896 | text "null" | ||
11897 | outline "#000000" | ||
11898 | fill "#FFFFFF" | ||
11899 | fontSize 16 | ||
11900 | fontName "Monospace" | ||
11901 | autoSizePolicy "node_width" | ||
11902 | anchor "t" | ||
11903 | borderDistance 0.0 | ||
11904 | ] | ||
11905 | LabelGraphics | ||
11906 | [ | ||
11907 | text " | ||
11908 | FunctionalInterface class | ||
11909 | " | ||
11910 | fontSize 14 | ||
11911 | fontName "Consolas" | ||
11912 | alignment "left" | ||
11913 | anchor "tl" | ||
11914 | borderDistance 6 | ||
11915 | ] | ||
11916 | ] | ||
11917 | |||
11918 | node | ||
11919 | [ | ||
11920 | id 6 | ||
11921 | graphics | ||
11922 | [ | ||
11923 | w 177.10000000000002 | ||
11924 | h 54 | ||
11925 | type "rectangle" | ||
11926 | fill "#FFFFFF" | ||
11927 | fill2 "#FFFFFF" | ||
11928 | outline "#000000" | ||
11929 | ] | ||
11930 | LabelGraphics | ||
11931 | [ | ||
11932 | text "null" | ||
11933 | outline "#000000" | ||
11934 | fill "#FFFFFF" | ||
11935 | fontSize 16 | ||
11936 | fontName "Monospace" | ||
11937 | autoSizePolicy "node_width" | ||
11938 | anchor "t" | ||
11939 | borderDistance 0.0 | ||
11940 | ] | ||
11941 | LabelGraphics | ||
11942 | [ | ||
11943 | text " | ||
11944 | FunctionalInput class | ||
11945 | FunctionalData class | ||
11946 | " | ||
11947 | fontSize 14 | ||
11948 | fontName "Consolas" | ||
11949 | alignment "left" | ||
11950 | anchor "tl" | ||
11951 | borderDistance 6 | ||
11952 | ] | ||
11953 | ] | ||
11954 | |||
11955 | node | ||
11956 | [ | ||
11957 | id 7 | ||
11958 | graphics | ||
11959 | [ | ||
11960 | w 184.8 | ||
11961 | h 54 | ||
11962 | type "rectangle" | ||
11963 | fill "#FFFFFF" | ||
11964 | fill2 "#FFFFFF" | ||
11965 | outline "#000000" | ||
11966 | ] | ||
11967 | LabelGraphics | ||
11968 | [ | ||
11969 | text "null" | ||
11970 | outline "#000000" | ||
11971 | fill "#FFFFFF" | ||
11972 | fontSize 16 | ||
11973 | fontName "Monospace" | ||
11974 | autoSizePolicy "node_width" | ||
11975 | anchor "t" | ||
11976 | borderDistance 0.0 | ||
11977 | ] | ||
11978 | LabelGraphics | ||
11979 | [ | ||
11980 | text " | ||
11981 | FunctionalOutput class | ||
11982 | FunctionalData class | ||
11983 | " | ||
11984 | fontSize 14 | ||
11985 | fontName "Consolas" | ||
11986 | alignment "left" | ||
11987 | anchor "tl" | ||
11988 | borderDistance 6 | ||
11989 | ] | ||
11990 | ] | ||
11991 | |||
11992 | node | ||
11993 | [ | ||
11994 | id 8 | ||
11995 | graphics | ||
11996 | [ | ||
11997 | w 184.8 | ||
11998 | h 54 | ||
11999 | type "rectangle" | ||
12000 | fill "#FFFFFF" | ||
12001 | fill2 "#FFFFFF" | ||
12002 | outline "#000000" | ||
12003 | ] | ||
12004 | LabelGraphics | ||
12005 | [ | ||
12006 | text "null" | ||
12007 | outline "#000000" | ||
12008 | fill "#FFFFFF" | ||
12009 | fontSize 16 | ||
12010 | fontName "Monospace" | ||
12011 | autoSizePolicy "node_width" | ||
12012 | anchor "t" | ||
12013 | borderDistance 0.0 | ||
12014 | ] | ||
12015 | LabelGraphics | ||
12016 | [ | ||
12017 | text " | ||
12018 | FunctionalOutput class | ||
12019 | FunctionalData class | ||
12020 | " | ||
12021 | fontSize 14 | ||
12022 | fontName "Consolas" | ||
12023 | alignment "left" | ||
12024 | anchor "tl" | ||
12025 | borderDistance 6 | ||
12026 | ] | ||
12027 | ] | ||
12028 | |||
12029 | node | ||
12030 | [ | ||
12031 | id 9 | ||
12032 | graphics | ||
12033 | [ | ||
12034 | w 177.10000000000002 | ||
12035 | h 40 | ||
12036 | type "rectangle" | ||
12037 | fill "#FFFFFF" | ||
12038 | fill2 "#FFFFFF" | ||
12039 | outline "#000000" | ||
12040 | ] | ||
12041 | LabelGraphics | ||
12042 | [ | ||
12043 | text "null" | ||
12044 | outline "#000000" | ||
12045 | fill "#FFFFFF" | ||
12046 | fontSize 16 | ||
12047 | fontName "Monospace" | ||
12048 | autoSizePolicy "node_width" | ||
12049 | anchor "t" | ||
12050 | borderDistance 0.0 | ||
12051 | ] | ||
12052 | LabelGraphics | ||
12053 | [ | ||
12054 | text " | ||
12055 | InformationLink class | ||
12056 | " | ||
12057 | fontSize 14 | ||
12058 | fontName "Consolas" | ||
12059 | alignment "left" | ||
12060 | anchor "tl" | ||
12061 | borderDistance 6 | ||
12062 | ] | ||
12063 | ] | ||
12064 | |||
12065 | node | ||
12066 | [ | ||
12067 | id 10 | ||
12068 | graphics | ||
12069 | [ | ||
12070 | w 161.70000000000002 | ||
12071 | h 40 | ||
12072 | type "rectangle" | ||
12073 | fill "#FFFFFF" | ||
12074 | fill2 "#FFFFFF" | ||
12075 | outline "#000000" | ||
12076 | ] | ||
12077 | LabelGraphics | ||
12078 | [ | ||
12079 | text "null" | ||
12080 | outline "#000000" | ||
12081 | fill "#FFFFFF" | ||
12082 | fontSize 16 | ||
12083 | fontName "Monospace" | ||
12084 | autoSizePolicy "node_width" | ||
12085 | anchor "t" | ||
12086 | borderDistance 0.0 | ||
12087 | ] | ||
12088 | LabelGraphics | ||
12089 | [ | ||
12090 | text " | ||
12091 | FAMTerminator class | ||
12092 | " | ||
12093 | fontSize 14 | ||
12094 | fontName "Consolas" | ||
12095 | alignment "left" | ||
12096 | anchor "tl" | ||
12097 | borderDistance 6 | ||
12098 | ] | ||
12099 | ] | ||
12100 | |||
12101 | node | ||
12102 | [ | ||
12103 | id 11 | ||
12104 | graphics | ||
12105 | [ | ||
12106 | w 184.8 | ||
12107 | h 54 | ||
12108 | type "rectangle" | ||
12109 | fill "#FFFFFF" | ||
12110 | fill2 "#FFFFFF" | ||
12111 | outline "#000000" | ||
12112 | ] | ||
12113 | LabelGraphics | ||
12114 | [ | ||
12115 | text "null" | ||
12116 | outline "#000000" | ||
12117 | fill "#FFFFFF" | ||
12118 | fontSize 16 | ||
12119 | fontName "Monospace" | ||
12120 | autoSizePolicy "node_width" | ||
12121 | anchor "t" | ||
12122 | borderDistance 0.0 | ||
12123 | ] | ||
12124 | LabelGraphics | ||
12125 | [ | ||
12126 | text " | ||
12127 | FunctionalOutput class | ||
12128 | FunctionalData class | ||
12129 | " | ||
12130 | fontSize 14 | ||
12131 | fontName "Consolas" | ||
12132 | alignment "left" | ||
12133 | anchor "tl" | ||
12134 | borderDistance 6 | ||
12135 | ] | ||
12136 | ] | ||
12137 | |||
12138 | node | ||
12139 | [ | ||
12140 | id 12 | ||
12141 | graphics | ||
12142 | [ | ||
12143 | w 112.2 | ||
12144 | h 26 | ||
12145 | type "rectangle" | ||
12146 | fill "#FFFFFF" | ||
12147 | fill2 "#FFFFFF" | ||
12148 | outline "#000000" | ||
12149 | ] | ||
12150 | LabelGraphics | ||
12151 | [ | ||
12152 | text "New Integers" | ||
12153 | outline "#000000" | ||
12154 | fill "#FFFFFF" | ||
12155 | fontSize 16 | ||
12156 | fontName "Monospace" | ||
12157 | autoSizePolicy "node_width" | ||
12158 | anchor "t" | ||
12159 | borderDistance 0.0 | ||
12160 | ] | ||
12161 | LabelGraphics | ||
12162 | [ | ||
12163 | text " | ||
12164 | " | ||
12165 | fontSize 14 | ||
12166 | fontName "Consolas" | ||
12167 | alignment "left" | ||
12168 | anchor "tl" | ||
12169 | borderDistance 6 | ||
12170 | ] | ||
12171 | ] | ||
12172 | |||
12173 | node | ||
12174 | [ | ||
12175 | id 13 | ||
12176 | graphics | ||
12177 | [ | ||
12178 | w 85.80000000000001 | ||
12179 | h 26 | ||
12180 | type "rectangle" | ||
12181 | fill "#FFFFFF" | ||
12182 | fill2 "#FFFFFF" | ||
12183 | outline "#000000" | ||
12184 | ] | ||
12185 | LabelGraphics | ||
12186 | [ | ||
12187 | text "New Reals" | ||
12188 | outline "#000000" | ||
12189 | fill "#FFFFFF" | ||
12190 | fontSize 16 | ||
12191 | fontName "Monospace" | ||
12192 | autoSizePolicy "node_width" | ||
12193 | anchor "t" | ||
12194 | borderDistance 0.0 | ||
12195 | ] | ||
12196 | LabelGraphics | ||
12197 | [ | ||
12198 | text " | ||
12199 | " | ||
12200 | fontSize 14 | ||
12201 | fontName "Consolas" | ||
12202 | alignment "left" | ||
12203 | anchor "tl" | ||
12204 | borderDistance 6 | ||
12205 | ] | ||
12206 | ] | ||
12207 | |||
12208 | node | ||
12209 | [ | ||
12210 | id 14 | ||
12211 | graphics | ||
12212 | [ | ||
12213 | w 103.4 | ||
12214 | h 26 | ||
12215 | type "rectangle" | ||
12216 | fill "#FFFFFF" | ||
12217 | fill2 "#FFFFFF" | ||
12218 | outline "#000000" | ||
12219 | ] | ||
12220 | LabelGraphics | ||
12221 | [ | ||
12222 | text "New Strings" | ||
12223 | outline "#000000" | ||
12224 | fill "#FFFFFF" | ||
12225 | fontSize 16 | ||
12226 | fontName "Monospace" | ||
12227 | autoSizePolicy "node_width" | ||
12228 | anchor "t" | ||
12229 | borderDistance 0.0 | ||
12230 | ] | ||
12231 | LabelGraphics | ||
12232 | [ | ||
12233 | text " | ||
12234 | " | ||
12235 | fontSize 14 | ||
12236 | fontName "Consolas" | ||
12237 | alignment "left" | ||
12238 | anchor "tl" | ||
12239 | borderDistance 6 | ||
12240 | ] | ||
12241 | ] | ||
12242 | |||
12243 | node | ||
12244 | [ | ||
12245 | id 15 | ||
12246 | graphics | ||
12247 | [ | ||
12248 | w 103.4 | ||
12249 | h 26 | ||
12250 | type "rectangle" | ||
12251 | fill "#FFFFFF" | ||
12252 | fill2 "#FFFFFF" | ||
12253 | outline "#000000" | ||
12254 | ] | ||
12255 | LabelGraphics | ||
12256 | [ | ||
12257 | text "New Objects" | ||
12258 | outline "#000000" | ||
12259 | fill "#FFFFFF" | ||
12260 | fontSize 16 | ||
12261 | fontName "Monospace" | ||
12262 | autoSizePolicy "node_width" | ||
12263 | anchor "t" | ||
12264 | borderDistance 0.0 | ||
12265 | ] | ||
12266 | LabelGraphics | ||
12267 | [ | ||
12268 | text " | ||
12269 | " | ||
12270 | fontSize 14 | ||
12271 | fontName "Consolas" | ||
12272 | alignment "left" | ||
12273 | anchor "tl" | ||
12274 | borderDistance 6 | ||
12275 | ] | ||
12276 | ] | ||
12277 | edge | ||
12278 | [ | ||
12279 | source 10 | ||
12280 | target 8 | ||
12281 | graphics | ||
12282 | [ | ||
12283 | fill "#000000" | ||
12284 | targetArrow "standard" | ||
12285 | ] | ||
12286 | LabelGraphics | ||
12287 | [ | ||
12288 | text "data reference FAMTerminator" | ||
12289 | fontSize 14 | ||
12290 | fontName "Consolas" | ||
12291 | configuration "AutoFlippingLabel" | ||
12292 | model "six_pos" | ||
12293 | position "thead" | ||
12294 | ] | ||
12295 | ] | ||
12296 | edge | ||
12297 | [ | ||
12298 | source 9 | ||
12299 | target 8 | ||
12300 | graphics | ||
12301 | [ | ||
12302 | fill "#000000" | ||
12303 | targetArrow "standard" | ||
12304 | ] | ||
12305 | LabelGraphics | ||
12306 | [ | ||
12307 | text "from reference InformationLink" | ||
12308 | fontSize 14 | ||
12309 | fontName "Consolas" | ||
12310 | configuration "AutoFlippingLabel" | ||
12311 | model "six_pos" | ||
12312 | position "thead" | ||
12313 | ] | ||
12314 | ] | ||
12315 | edge | ||
12316 | [ | ||
12317 | source 9 | ||
12318 | target 6 | ||
12319 | graphics | ||
12320 | [ | ||
12321 | fill "#000000" | ||
12322 | targetArrow "standard" | ||
12323 | ] | ||
12324 | LabelGraphics | ||
12325 | [ | ||
12326 | text "to reference InformationLink" | ||
12327 | fontSize 14 | ||
12328 | fontName "Consolas" | ||
12329 | configuration "AutoFlippingLabel" | ||
12330 | model "six_pos" | ||
12331 | position "thead" | ||
12332 | ] | ||
12333 | ] | ||
12334 | edge | ||
12335 | [ | ||
12336 | source 5 | ||
12337 | target 6 | ||
12338 | graphics | ||
12339 | [ | ||
12340 | fill "#000000" | ||
12341 | width 3 | ||
12342 | targetArrow "standard" | ||
12343 | ] | ||
12344 | LabelGraphics | ||
12345 | [ | ||
12346 | text "data reference FunctionalInterface" | ||
12347 | fontSize 14 | ||
12348 | fontName "Consolas" | ||
12349 | configuration "AutoFlippingLabel" | ||
12350 | model "six_pos" | ||
12351 | position "thead" | ||
12352 | ] | ||
12353 | ] | ||
12354 | edge | ||
12355 | [ | ||
12356 | source 5 | ||
12357 | target 7 | ||
12358 | graphics | ||
12359 | [ | ||
12360 | fill "#000000" | ||
12361 | width 3 | ||
12362 | targetArrow "standard" | ||
12363 | ] | ||
12364 | LabelGraphics | ||
12365 | [ | ||
12366 | text "data reference FunctionalInterface" | ||
12367 | fontSize 14 | ||
12368 | fontName "Consolas" | ||
12369 | configuration "AutoFlippingLabel" | ||
12370 | model "six_pos" | ||
12371 | position "thead" | ||
12372 | ] | ||
12373 | ] | ||
12374 | edge | ||
12375 | [ | ||
12376 | source 5 | ||
12377 | target 8 | ||
12378 | graphics | ||
12379 | [ | ||
12380 | fill "#000000" | ||
12381 | width 3 | ||
12382 | targetArrow "standard" | ||
12383 | ] | ||
12384 | LabelGraphics | ||
12385 | [ | ||
12386 | text "data reference FunctionalInterface" | ||
12387 | fontSize 14 | ||
12388 | fontName "Consolas" | ||
12389 | configuration "AutoFlippingLabel" | ||
12390 | model "six_pos" | ||
12391 | position "thead" | ||
12392 | ] | ||
12393 | ] | ||
12394 | edge | ||
12395 | [ | ||
12396 | source 5 | ||
12397 | target 11 | ||
12398 | graphics | ||
12399 | [ | ||
12400 | fill "#000000" | ||
12401 | width 3 | ||
12402 | targetArrow "standard" | ||
12403 | ] | ||
12404 | LabelGraphics | ||
12405 | [ | ||
12406 | text "data reference FunctionalInterface" | ||
12407 | fontSize 14 | ||
12408 | fontName "Consolas" | ||
12409 | configuration "AutoFlippingLabel" | ||
12410 | model "six_pos" | ||
12411 | position "thead" | ||
12412 | ] | ||
12413 | ] | ||
12414 | edge | ||
12415 | [ | ||
12416 | source 6 | ||
12417 | target 9 | ||
12418 | graphics | ||
12419 | [ | ||
12420 | fill "#000000" | ||
12421 | targetArrow "standard" | ||
12422 | ] | ||
12423 | LabelGraphics | ||
12424 | [ | ||
12425 | text "IncomingLinks reference FunctionalInput" | ||
12426 | fontSize 14 | ||
12427 | fontName "Consolas" | ||
12428 | configuration "AutoFlippingLabel" | ||
12429 | model "six_pos" | ||
12430 | position "thead" | ||
12431 | ] | ||
12432 | ] | ||
12433 | edge | ||
12434 | [ | ||
12435 | source 8 | ||
12436 | target 9 | ||
12437 | graphics | ||
12438 | [ | ||
12439 | fill "#000000" | ||
12440 | width 3 | ||
12441 | targetArrow "standard" | ||
12442 | ] | ||
12443 | LabelGraphics | ||
12444 | [ | ||
12445 | text "outgoingLinks reference FunctionalOutput" | ||
12446 | fontSize 14 | ||
12447 | fontName "Consolas" | ||
12448 | configuration "AutoFlippingLabel" | ||
12449 | model "six_pos" | ||
12450 | position "thead" | ||
12451 | ] | ||
12452 | ] | ||
12453 | edge | ||
12454 | [ | ||
12455 | source 8 | ||
12456 | target 10 | ||
12457 | graphics | ||
12458 | [ | ||
12459 | fill "#000000" | ||
12460 | width 3 | ||
12461 | targetArrow "standard" | ||
12462 | ] | ||
12463 | LabelGraphics | ||
12464 | [ | ||
12465 | text "terminator reference FunctionalData" | ||
12466 | fontSize 14 | ||
12467 | fontName "Consolas" | ||
12468 | configuration "AutoFlippingLabel" | ||
12469 | model "six_pos" | ||
12470 | position "thead" | ||
12471 | ] | ||
12472 | ] | ||
12473 | edge | ||
12474 | [ | ||
12475 | source 6 | ||
12476 | target 5 | ||
12477 | graphics | ||
12478 | [ | ||
12479 | fill "#000000" | ||
12480 | targetArrow "standard" | ||
12481 | ] | ||
12482 | LabelGraphics | ||
12483 | [ | ||
12484 | text "interface reference FunctionalData" | ||
12485 | fontSize 14 | ||
12486 | fontName "Consolas" | ||
12487 | configuration "AutoFlippingLabel" | ||
12488 | model "six_pos" | ||
12489 | position "thead" | ||
12490 | ] | ||
12491 | ] | ||
12492 | edge | ||
12493 | [ | ||
12494 | source 7 | ||
12495 | target 5 | ||
12496 | graphics | ||
12497 | [ | ||
12498 | fill "#000000" | ||
12499 | targetArrow "standard" | ||
12500 | ] | ||
12501 | LabelGraphics | ||
12502 | [ | ||
12503 | text "interface reference FunctionalData" | ||
12504 | fontSize 14 | ||
12505 | fontName "Consolas" | ||
12506 | configuration "AutoFlippingLabel" | ||
12507 | model "six_pos" | ||
12508 | position "thead" | ||
12509 | ] | ||
12510 | ] | ||
12511 | edge | ||
12512 | [ | ||
12513 | source 8 | ||
12514 | target 5 | ||
12515 | graphics | ||
12516 | [ | ||
12517 | fill "#000000" | ||
12518 | targetArrow "standard" | ||
12519 | ] | ||
12520 | LabelGraphics | ||
12521 | [ | ||
12522 | text "interface reference FunctionalData" | ||
12523 | fontSize 14 | ||
12524 | fontName "Consolas" | ||
12525 | configuration "AutoFlippingLabel" | ||
12526 | model "six_pos" | ||
12527 | position "thead" | ||
12528 | ] | ||
12529 | ] | ||
12530 | edge | ||
12531 | [ | ||
12532 | source 11 | ||
12533 | target 5 | ||
12534 | graphics | ||
12535 | [ | ||
12536 | fill "#000000" | ||
12537 | targetArrow "standard" | ||
12538 | ] | ||
12539 | LabelGraphics | ||
12540 | [ | ||
12541 | text "interface reference FunctionalData" | ||
12542 | fontSize 14 | ||
12543 | fontName "Consolas" | ||
12544 | configuration "AutoFlippingLabel" | ||
12545 | model "six_pos" | ||
12546 | position "thead" | ||
12547 | ] | ||
12548 | ] | ||
12549 | ] | ||
12550 | graph | ||
12551 | [ | ||
12552 | node | ||
12553 | [ | ||
12554 | id 0 | ||
12555 | graphics | ||
12556 | [ | ||
12557 | w 226.60000000000002 | ||
12558 | h 40 | ||
12559 | type "rectangle" | ||
12560 | fill "#FFFFFF" | ||
12561 | fill2 "#FFFFFF" | ||
12562 | outline "#000000" | ||
12563 | ] | ||
12564 | LabelGraphics | ||
12565 | [ | ||
12566 | text "Root literal FunctionType" | ||
12567 | outline "#000000" | ||
12568 | fill "#FFFFFF" | ||
12569 | fontSize 16 | ||
12570 | fontName "Monospace" | ||
12571 | autoSizePolicy "node_width" | ||
12572 | anchor "t" | ||
12573 | borderDistance 0.0 | ||
12574 | ] | ||
12575 | LabelGraphics | ||
12576 | [ | ||
12577 | text " | ||
12578 | FunctionType enum | ||
12579 | " | ||
12580 | fontSize 14 | ||
12581 | fontName "Consolas" | ||
12582 | alignment "left" | ||
12583 | anchor "tl" | ||
12584 | borderDistance 6 | ||
12585 | ] | ||
12586 | ] | ||
12587 | |||
12588 | node | ||
12589 | [ | ||
12590 | id 1 | ||
12591 | graphics | ||
12592 | [ | ||
12593 | w 297.0 | ||
12594 | h 40 | ||
12595 | type "rectangle" | ||
12596 | fill "#FFFFFF" | ||
12597 | fill2 "#FFFFFF" | ||
12598 | outline "#000000" | ||
12599 | ] | ||
12600 | LabelGraphics | ||
12601 | [ | ||
12602 | text "Intermediate literal FunctionType" | ||
12603 | outline "#000000" | ||
12604 | fill "#FFFFFF" | ||
12605 | fontSize 16 | ||
12606 | fontName "Monospace" | ||
12607 | autoSizePolicy "node_width" | ||
12608 | anchor "t" | ||
12609 | borderDistance 0.0 | ||
12610 | ] | ||
12611 | LabelGraphics | ||
12612 | [ | ||
12613 | text " | ||
12614 | FunctionType enum | ||
12615 | " | ||
12616 | fontSize 14 | ||
12617 | fontName "Consolas" | ||
12618 | alignment "left" | ||
12619 | anchor "tl" | ||
12620 | borderDistance 6 | ||
12621 | ] | ||
12622 | ] | ||
12623 | |||
12624 | node | ||
12625 | [ | ||
12626 | id 2 | ||
12627 | graphics | ||
12628 | [ | ||
12629 | w 226.60000000000002 | ||
12630 | h 40 | ||
12631 | type "rectangle" | ||
12632 | fill "#FFFFFF" | ||
12633 | fill2 "#FFFFFF" | ||
12634 | outline "#000000" | ||
12635 | ] | ||
12636 | LabelGraphics | ||
12637 | [ | ||
12638 | text "Leaf literal FunctionType" | ||
12639 | outline "#000000" | ||
12640 | fill "#FFFFFF" | ||
12641 | fontSize 16 | ||
12642 | fontName "Monospace" | ||
12643 | autoSizePolicy "node_width" | ||
12644 | anchor "t" | ||
12645 | borderDistance 0.0 | ||
12646 | ] | ||
12647 | LabelGraphics | ||
12648 | [ | ||
12649 | text " | ||
12650 | FunctionType enum | ||
12651 | " | ||
12652 | fontSize 14 | ||
12653 | fontName "Consolas" | ||
12654 | alignment "left" | ||
12655 | anchor "tl" | ||
12656 | borderDistance 6 | ||
12657 | ] | ||
12658 | ] | ||
12659 | |||
12660 | node | ||
12661 | [ | ||
12662 | id 3 | ||
12663 | graphics | ||
12664 | [ | ||
12665 | w 41.800000000000004 | ||
12666 | h 26 | ||
12667 | type "rectangle" | ||
12668 | fill "#FFFFFF" | ||
12669 | fill2 "#FFFFFF" | ||
12670 | outline "#000000" | ||
12671 | ] | ||
12672 | LabelGraphics | ||
12673 | [ | ||
12674 | text "true" | ||
12675 | outline "#000000" | ||
12676 | fill "#FFFFFF" | ||
12677 | fontSize 16 | ||
12678 | fontName "Monospace" | ||
12679 | autoSizePolicy "node_width" | ||
12680 | anchor "t" | ||
12681 | borderDistance 0.0 | ||
12682 | ] | ||
12683 | LabelGraphics | ||
12684 | [ | ||
12685 | text " | ||
12686 | " | ||
12687 | fontSize 14 | ||
12688 | fontName "Consolas" | ||
12689 | alignment "left" | ||
12690 | anchor "tl" | ||
12691 | borderDistance 6 | ||
12692 | ] | ||
12693 | ] | ||
12694 | |||
12695 | node | ||
12696 | [ | ||
12697 | id 4 | ||
12698 | graphics | ||
12699 | [ | ||
12700 | w 50.6 | ||
12701 | h 26 | ||
12702 | type "rectangle" | ||
12703 | fill "#FFFFFF" | ||
12704 | fill2 "#FFFFFF" | ||
12705 | outline "#000000" | ||
12706 | ] | ||
12707 | LabelGraphics | ||
12708 | [ | ||
12709 | text "false" | ||
12710 | outline "#000000" | ||
12711 | fill "#FFFFFF" | ||
12712 | fontSize 16 | ||
12713 | fontName "Monospace" | ||
12714 | autoSizePolicy "node_width" | ||
12715 | anchor "t" | ||
12716 | borderDistance 0.0 | ||
12717 | ] | ||
12718 | LabelGraphics | ||
12719 | [ | ||
12720 | text " | ||
12721 | " | ||
12722 | fontSize 14 | ||
12723 | fontName "Consolas" | ||
12724 | alignment "left" | ||
12725 | anchor "tl" | ||
12726 | borderDistance 6 | ||
12727 | ] | ||
12728 | ] | ||
12729 | |||
12730 | node | ||
12731 | [ | ||
12732 | id 5 | ||
12733 | graphics | ||
12734 | [ | ||
12735 | w 207.9 | ||
12736 | h 40 | ||
12737 | type "rectangle" | ||
12738 | fill "#FFFFFF" | ||
12739 | fill2 "#FFFFFF" | ||
12740 | outline "#000000" | ||
12741 | ] | ||
12742 | LabelGraphics | ||
12743 | [ | ||
12744 | text "null" | ||
12745 | outline "#000000" | ||
12746 | fill "#FFFFFF" | ||
12747 | fontSize 16 | ||
12748 | fontName "Monospace" | ||
12749 | autoSizePolicy "node_width" | ||
12750 | anchor "t" | ||
12751 | borderDistance 0.0 | ||
12752 | ] | ||
12753 | LabelGraphics | ||
12754 | [ | ||
12755 | text " | ||
12756 | FunctionalInterface class | ||
12757 | " | ||
12758 | fontSize 14 | ||
12759 | fontName "Consolas" | ||
12760 | alignment "left" | ||
12761 | anchor "tl" | ||
12762 | borderDistance 6 | ||
12763 | ] | ||
12764 | ] | ||
12765 | |||
12766 | node | ||
12767 | [ | ||
12768 | id 6 | ||
12769 | graphics | ||
12770 | [ | ||
12771 | w 177.10000000000002 | ||
12772 | h 54 | ||
12773 | type "rectangle" | ||
12774 | fill "#FFFFFF" | ||
12775 | fill2 "#FFFFFF" | ||
12776 | outline "#000000" | ||
12777 | ] | ||
12778 | LabelGraphics | ||
12779 | [ | ||
12780 | text "null" | ||
12781 | outline "#000000" | ||
12782 | fill "#FFFFFF" | ||
12783 | fontSize 16 | ||
12784 | fontName "Monospace" | ||
12785 | autoSizePolicy "node_width" | ||
12786 | anchor "t" | ||
12787 | borderDistance 0.0 | ||
12788 | ] | ||
12789 | LabelGraphics | ||
12790 | [ | ||
12791 | text " | ||
12792 | FunctionalInput class | ||
12793 | FunctionalData class | ||
12794 | " | ||
12795 | fontSize 14 | ||
12796 | fontName "Consolas" | ||
12797 | alignment "left" | ||
12798 | anchor "tl" | ||
12799 | borderDistance 6 | ||
12800 | ] | ||
12801 | ] | ||
12802 | |||
12803 | node | ||
12804 | [ | ||
12805 | id 7 | ||
12806 | graphics | ||
12807 | [ | ||
12808 | w 177.10000000000002 | ||
12809 | h 54 | ||
12810 | type "rectangle" | ||
12811 | fill "#FFFFFF" | ||
12812 | fill2 "#FFFFFF" | ||
12813 | outline "#000000" | ||
12814 | ] | ||
12815 | LabelGraphics | ||
12816 | [ | ||
12817 | text "null" | ||
12818 | outline "#000000" | ||
12819 | fill "#FFFFFF" | ||
12820 | fontSize 16 | ||
12821 | fontName "Monospace" | ||
12822 | autoSizePolicy "node_width" | ||
12823 | anchor "t" | ||
12824 | borderDistance 0.0 | ||
12825 | ] | ||
12826 | LabelGraphics | ||
12827 | [ | ||
12828 | text " | ||
12829 | FunctionalInput class | ||
12830 | FunctionalData class | ||
12831 | " | ||
12832 | fontSize 14 | ||
12833 | fontName "Consolas" | ||
12834 | alignment "left" | ||
12835 | anchor "tl" | ||
12836 | borderDistance 6 | ||
12837 | ] | ||
12838 | ] | ||
12839 | |||
12840 | node | ||
12841 | [ | ||
12842 | id 8 | ||
12843 | graphics | ||
12844 | [ | ||
12845 | w 161.70000000000002 | ||
12846 | h 40 | ||
12847 | type "rectangle" | ||
12848 | fill "#FFFFFF" | ||
12849 | fill2 "#FFFFFF" | ||
12850 | outline "#000000" | ||
12851 | ] | ||
12852 | LabelGraphics | ||
12853 | [ | ||
12854 | text "null" | ||
12855 | outline "#000000" | ||
12856 | fill "#FFFFFF" | ||
12857 | fontSize 16 | ||
12858 | fontName "Monospace" | ||
12859 | autoSizePolicy "node_width" | ||
12860 | anchor "t" | ||
12861 | borderDistance 0.0 | ||
12862 | ] | ||
12863 | LabelGraphics | ||
12864 | [ | ||
12865 | text " | ||
12866 | FAMTerminator class | ||
12867 | " | ||
12868 | fontSize 14 | ||
12869 | fontName "Consolas" | ||
12870 | alignment "left" | ||
12871 | anchor "tl" | ||
12872 | borderDistance 6 | ||
12873 | ] | ||
12874 | ] | ||
12875 | |||
12876 | node | ||
12877 | [ | ||
12878 | id 9 | ||
12879 | graphics | ||
12880 | [ | ||
12881 | w 177.10000000000002 | ||
12882 | h 54 | ||
12883 | type "rectangle" | ||
12884 | fill "#FFFFFF" | ||
12885 | fill2 "#FFFFFF" | ||
12886 | outline "#000000" | ||
12887 | ] | ||
12888 | LabelGraphics | ||
12889 | [ | ||
12890 | text "null" | ||
12891 | outline "#000000" | ||
12892 | fill "#FFFFFF" | ||
12893 | fontSize 16 | ||
12894 | fontName "Monospace" | ||
12895 | autoSizePolicy "node_width" | ||
12896 | anchor "t" | ||
12897 | borderDistance 0.0 | ||
12898 | ] | ||
12899 | LabelGraphics | ||
12900 | [ | ||
12901 | text " | ||
12902 | FunctionalInput class | ||
12903 | FunctionalData class | ||
12904 | " | ||
12905 | fontSize 14 | ||
12906 | fontName "Consolas" | ||
12907 | alignment "left" | ||
12908 | anchor "tl" | ||
12909 | borderDistance 6 | ||
12910 | ] | ||
12911 | ] | ||
12912 | |||
12913 | node | ||
12914 | [ | ||
12915 | id 10 | ||
12916 | graphics | ||
12917 | [ | ||
12918 | w 177.10000000000002 | ||
12919 | h 54 | ||
12920 | type "rectangle" | ||
12921 | fill "#FFFFFF" | ||
12922 | fill2 "#FFFFFF" | ||
12923 | outline "#000000" | ||
12924 | ] | ||
12925 | LabelGraphics | ||
12926 | [ | ||
12927 | text "null" | ||
12928 | outline "#000000" | ||
12929 | fill "#FFFFFF" | ||
12930 | fontSize 16 | ||
12931 | fontName "Monospace" | ||
12932 | autoSizePolicy "node_width" | ||
12933 | anchor "t" | ||
12934 | borderDistance 0.0 | ||
12935 | ] | ||
12936 | LabelGraphics | ||
12937 | [ | ||
12938 | text " | ||
12939 | FunctionalInput class | ||
12940 | FunctionalData class | ||
12941 | " | ||
12942 | fontSize 14 | ||
12943 | fontName "Consolas" | ||
12944 | alignment "left" | ||
12945 | anchor "tl" | ||
12946 | borderDistance 6 | ||
12947 | ] | ||
12948 | ] | ||
12949 | |||
12950 | node | ||
12951 | [ | ||
12952 | id 11 | ||
12953 | graphics | ||
12954 | [ | ||
12955 | w 161.70000000000002 | ||
12956 | h 40 | ||
12957 | type "rectangle" | ||
12958 | fill "#FFFFFF" | ||
12959 | fill2 "#FFFFFF" | ||
12960 | outline "#000000" | ||
12961 | ] | ||
12962 | LabelGraphics | ||
12963 | [ | ||
12964 | text "null" | ||
12965 | outline "#000000" | ||
12966 | fill "#FFFFFF" | ||
12967 | fontSize 16 | ||
12968 | fontName "Monospace" | ||
12969 | autoSizePolicy "node_width" | ||
12970 | anchor "t" | ||
12971 | borderDistance 0.0 | ||
12972 | ] | ||
12973 | LabelGraphics | ||
12974 | [ | ||
12975 | text " | ||
12976 | FAMTerminator class | ||
12977 | " | ||
12978 | fontSize 14 | ||
12979 | fontName "Consolas" | ||
12980 | alignment "left" | ||
12981 | anchor "tl" | ||
12982 | borderDistance 6 | ||
12983 | ] | ||
12984 | ] | ||
12985 | |||
12986 | node | ||
12987 | [ | ||
12988 | id 12 | ||
12989 | graphics | ||
12990 | [ | ||
12991 | w 112.2 | ||
12992 | h 26 | ||
12993 | type "rectangle" | ||
12994 | fill "#FFFFFF" | ||
12995 | fill2 "#FFFFFF" | ||
12996 | outline "#000000" | ||
12997 | ] | ||
12998 | LabelGraphics | ||
12999 | [ | ||
13000 | text "New Integers" | ||
13001 | outline "#000000" | ||
13002 | fill "#FFFFFF" | ||
13003 | fontSize 16 | ||
13004 | fontName "Monospace" | ||
13005 | autoSizePolicy "node_width" | ||
13006 | anchor "t" | ||
13007 | borderDistance 0.0 | ||
13008 | ] | ||
13009 | LabelGraphics | ||
13010 | [ | ||
13011 | text " | ||
13012 | " | ||
13013 | fontSize 14 | ||
13014 | fontName "Consolas" | ||
13015 | alignment "left" | ||
13016 | anchor "tl" | ||
13017 | borderDistance 6 | ||
13018 | ] | ||
13019 | ] | ||
13020 | |||
13021 | node | ||
13022 | [ | ||
13023 | id 13 | ||
13024 | graphics | ||
13025 | [ | ||
13026 | w 85.80000000000001 | ||
13027 | h 26 | ||
13028 | type "rectangle" | ||
13029 | fill "#FFFFFF" | ||
13030 | fill2 "#FFFFFF" | ||
13031 | outline "#000000" | ||
13032 | ] | ||
13033 | LabelGraphics | ||
13034 | [ | ||
13035 | text "New Reals" | ||
13036 | outline "#000000" | ||
13037 | fill "#FFFFFF" | ||
13038 | fontSize 16 | ||
13039 | fontName "Monospace" | ||
13040 | autoSizePolicy "node_width" | ||
13041 | anchor "t" | ||
13042 | borderDistance 0.0 | ||
13043 | ] | ||
13044 | LabelGraphics | ||
13045 | [ | ||
13046 | text " | ||
13047 | " | ||
13048 | fontSize 14 | ||
13049 | fontName "Consolas" | ||
13050 | alignment "left" | ||
13051 | anchor "tl" | ||
13052 | borderDistance 6 | ||
13053 | ] | ||
13054 | ] | ||
13055 | |||
13056 | node | ||
13057 | [ | ||
13058 | id 14 | ||
13059 | graphics | ||
13060 | [ | ||
13061 | w 103.4 | ||
13062 | h 26 | ||
13063 | type "rectangle" | ||
13064 | fill "#FFFFFF" | ||
13065 | fill2 "#FFFFFF" | ||
13066 | outline "#000000" | ||
13067 | ] | ||
13068 | LabelGraphics | ||
13069 | [ | ||
13070 | text "New Strings" | ||
13071 | outline "#000000" | ||
13072 | fill "#FFFFFF" | ||
13073 | fontSize 16 | ||
13074 | fontName "Monospace" | ||
13075 | autoSizePolicy "node_width" | ||
13076 | anchor "t" | ||
13077 | borderDistance 0.0 | ||
13078 | ] | ||
13079 | LabelGraphics | ||
13080 | [ | ||
13081 | text " | ||
13082 | " | ||
13083 | fontSize 14 | ||
13084 | fontName "Consolas" | ||
13085 | alignment "left" | ||
13086 | anchor "tl" | ||
13087 | borderDistance 6 | ||
13088 | ] | ||
13089 | ] | ||
13090 | |||
13091 | node | ||
13092 | [ | ||
13093 | id 15 | ||
13094 | graphics | ||
13095 | [ | ||
13096 | w 103.4 | ||
13097 | h 26 | ||
13098 | type "rectangle" | ||
13099 | fill "#FFFFFF" | ||
13100 | fill2 "#FFFFFF" | ||
13101 | outline "#000000" | ||
13102 | ] | ||
13103 | LabelGraphics | ||
13104 | [ | ||
13105 | text "New Objects" | ||
13106 | outline "#000000" | ||
13107 | fill "#FFFFFF" | ||
13108 | fontSize 16 | ||
13109 | fontName "Monospace" | ||
13110 | autoSizePolicy "node_width" | ||
13111 | anchor "t" | ||
13112 | borderDistance 0.0 | ||
13113 | ] | ||
13114 | LabelGraphics | ||
13115 | [ | ||
13116 | text " | ||
13117 | " | ||
13118 | fontSize 14 | ||
13119 | fontName "Consolas" | ||
13120 | alignment "left" | ||
13121 | anchor "tl" | ||
13122 | borderDistance 6 | ||
13123 | ] | ||
13124 | ] | ||
13125 | edge | ||
13126 | [ | ||
13127 | source 8 | ||
13128 | target 6 | ||
13129 | graphics | ||
13130 | [ | ||
13131 | fill "#000000" | ||
13132 | targetArrow "standard" | ||
13133 | ] | ||
13134 | LabelGraphics | ||
13135 | [ | ||
13136 | text "data reference FAMTerminator" | ||
13137 | fontSize 14 | ||
13138 | fontName "Consolas" | ||
13139 | configuration "AutoFlippingLabel" | ||
13140 | model "six_pos" | ||
13141 | position "thead" | ||
13142 | ] | ||
13143 | ] | ||
13144 | edge | ||
13145 | [ | ||
13146 | source 11 | ||
13147 | target 7 | ||
13148 | graphics | ||
13149 | [ | ||
13150 | fill "#000000" | ||
13151 | targetArrow "standard" | ||
13152 | ] | ||
13153 | LabelGraphics | ||
13154 | [ | ||
13155 | text "data reference FAMTerminator" | ||
13156 | fontSize 14 | ||
13157 | fontName "Consolas" | ||
13158 | configuration "AutoFlippingLabel" | ||
13159 | model "six_pos" | ||
13160 | position "thead" | ||
13161 | ] | ||
13162 | ] | ||
13163 | edge | ||
13164 | [ | ||
13165 | source 5 | ||
13166 | target 6 | ||
13167 | graphics | ||
13168 | [ | ||
13169 | fill "#000000" | ||
13170 | width 3 | ||
13171 | targetArrow "standard" | ||
13172 | ] | ||
13173 | LabelGraphics | ||
13174 | [ | ||
13175 | text "data reference FunctionalInterface" | ||
13176 | fontSize 14 | ||
13177 | fontName "Consolas" | ||
13178 | configuration "AutoFlippingLabel" | ||
13179 | model "six_pos" | ||
13180 | position "thead" | ||
13181 | ] | ||
13182 | ] | ||
13183 | edge | ||
13184 | [ | ||
13185 | source 5 | ||
13186 | target 7 | ||
13187 | graphics | ||
13188 | [ | ||
13189 | fill "#000000" | ||
13190 | width 3 | ||
13191 | targetArrow "standard" | ||
13192 | ] | ||
13193 | LabelGraphics | ||
13194 | [ | ||
13195 | text "data reference FunctionalInterface" | ||
13196 | fontSize 14 | ||
13197 | fontName "Consolas" | ||
13198 | configuration "AutoFlippingLabel" | ||
13199 | model "six_pos" | ||
13200 | position "thead" | ||
13201 | ] | ||
13202 | ] | ||
13203 | edge | ||
13204 | [ | ||
13205 | source 5 | ||
13206 | target 9 | ||
13207 | graphics | ||
13208 | [ | ||
13209 | fill "#000000" | ||
13210 | width 3 | ||
13211 | targetArrow "standard" | ||
13212 | ] | ||
13213 | LabelGraphics | ||
13214 | [ | ||
13215 | text "data reference FunctionalInterface" | ||
13216 | fontSize 14 | ||
13217 | fontName "Consolas" | ||
13218 | configuration "AutoFlippingLabel" | ||
13219 | model "six_pos" | ||
13220 | position "thead" | ||
13221 | ] | ||
13222 | ] | ||
13223 | edge | ||
13224 | [ | ||
13225 | source 5 | ||
13226 | target 10 | ||
13227 | graphics | ||
13228 | [ | ||
13229 | fill "#000000" | ||
13230 | width 3 | ||
13231 | targetArrow "standard" | ||
13232 | ] | ||
13233 | LabelGraphics | ||
13234 | [ | ||
13235 | text "data reference FunctionalInterface" | ||
13236 | fontSize 14 | ||
13237 | fontName "Consolas" | ||
13238 | configuration "AutoFlippingLabel" | ||
13239 | model "six_pos" | ||
13240 | position "thead" | ||
13241 | ] | ||
13242 | ] | ||
13243 | edge | ||
13244 | [ | ||
13245 | source 6 | ||
13246 | target 8 | ||
13247 | graphics | ||
13248 | [ | ||
13249 | fill "#000000" | ||
13250 | width 3 | ||
13251 | targetArrow "standard" | ||
13252 | ] | ||
13253 | LabelGraphics | ||
13254 | [ | ||
13255 | text "terminator reference FunctionalData" | ||
13256 | fontSize 14 | ||
13257 | fontName "Consolas" | ||
13258 | configuration "AutoFlippingLabel" | ||
13259 | model "six_pos" | ||
13260 | position "thead" | ||
13261 | ] | ||
13262 | ] | ||
13263 | edge | ||
13264 | [ | ||
13265 | source 7 | ||
13266 | target 11 | ||
13267 | graphics | ||
13268 | [ | ||
13269 | fill "#000000" | ||
13270 | width 3 | ||
13271 | targetArrow "standard" | ||
13272 | ] | ||
13273 | LabelGraphics | ||
13274 | [ | ||
13275 | text "terminator reference FunctionalData" | ||
13276 | fontSize 14 | ||
13277 | fontName "Consolas" | ||
13278 | configuration "AutoFlippingLabel" | ||
13279 | model "six_pos" | ||
13280 | position "thead" | ||
13281 | ] | ||
13282 | ] | ||
13283 | edge | ||
13284 | [ | ||
13285 | source 6 | ||
13286 | target 5 | ||
13287 | graphics | ||
13288 | [ | ||
13289 | fill "#000000" | ||
13290 | targetArrow "standard" | ||
13291 | ] | ||
13292 | LabelGraphics | ||
13293 | [ | ||
13294 | text "interface reference FunctionalData" | ||
13295 | fontSize 14 | ||
13296 | fontName "Consolas" | ||
13297 | configuration "AutoFlippingLabel" | ||
13298 | model "six_pos" | ||
13299 | position "thead" | ||
13300 | ] | ||
13301 | ] | ||
13302 | edge | ||
13303 | [ | ||
13304 | source 7 | ||
13305 | target 5 | ||
13306 | graphics | ||
13307 | [ | ||
13308 | fill "#000000" | ||
13309 | targetArrow "standard" | ||
13310 | ] | ||
13311 | LabelGraphics | ||
13312 | [ | ||
13313 | text "interface reference FunctionalData" | ||
13314 | fontSize 14 | ||
13315 | fontName "Consolas" | ||
13316 | configuration "AutoFlippingLabel" | ||
13317 | model "six_pos" | ||
13318 | position "thead" | ||
13319 | ] | ||
13320 | ] | ||
13321 | edge | ||
13322 | [ | ||
13323 | source 9 | ||
13324 | target 5 | ||
13325 | graphics | ||
13326 | [ | ||
13327 | fill "#000000" | ||
13328 | targetArrow "standard" | ||
13329 | ] | ||
13330 | LabelGraphics | ||
13331 | [ | ||
13332 | text "interface reference FunctionalData" | ||
13333 | fontSize 14 | ||
13334 | fontName "Consolas" | ||
13335 | configuration "AutoFlippingLabel" | ||
13336 | model "six_pos" | ||
13337 | position "thead" | ||
13338 | ] | ||
13339 | ] | ||
13340 | edge | ||
13341 | [ | ||
13342 | source 10 | ||
13343 | target 5 | ||
13344 | graphics | ||
13345 | [ | ||
13346 | fill "#000000" | ||
13347 | targetArrow "standard" | ||
13348 | ] | ||
13349 | LabelGraphics | ||
13350 | [ | ||
13351 | text "interface reference FunctionalData" | ||
13352 | fontSize 14 | ||
13353 | fontName "Consolas" | ||
13354 | configuration "AutoFlippingLabel" | ||
13355 | model "six_pos" | ||
13356 | position "thead" | ||
13357 | ] | ||
13358 | ] | ||
13359 | ] | ||
13360 | graph | ||
13361 | [ | ||
13362 | node | ||
13363 | [ | ||
13364 | id 0 | ||
13365 | graphics | ||
13366 | [ | ||
13367 | w 226.60000000000002 | ||
13368 | h 40 | ||
13369 | type "rectangle" | ||
13370 | fill "#FFFFFF" | ||
13371 | fill2 "#FFFFFF" | ||
13372 | outline "#000000" | ||
13373 | ] | ||
13374 | LabelGraphics | ||
13375 | [ | ||
13376 | text "Root literal FunctionType" | ||
13377 | outline "#000000" | ||
13378 | fill "#FFFFFF" | ||
13379 | fontSize 16 | ||
13380 | fontName "Monospace" | ||
13381 | autoSizePolicy "node_width" | ||
13382 | anchor "t" | ||
13383 | borderDistance 0.0 | ||
13384 | ] | ||
13385 | LabelGraphics | ||
13386 | [ | ||
13387 | text " | ||
13388 | FunctionType enum | ||
13389 | " | ||
13390 | fontSize 14 | ||
13391 | fontName "Consolas" | ||
13392 | alignment "left" | ||
13393 | anchor "tl" | ||
13394 | borderDistance 6 | ||
13395 | ] | ||
13396 | ] | ||
13397 | |||
13398 | node | ||
13399 | [ | ||
13400 | id 1 | ||
13401 | graphics | ||
13402 | [ | ||
13403 | w 297.0 | ||
13404 | h 40 | ||
13405 | type "rectangle" | ||
13406 | fill "#FFFFFF" | ||
13407 | fill2 "#FFFFFF" | ||
13408 | outline "#000000" | ||
13409 | ] | ||
13410 | LabelGraphics | ||
13411 | [ | ||
13412 | text "Intermediate literal FunctionType" | ||
13413 | outline "#000000" | ||
13414 | fill "#FFFFFF" | ||
13415 | fontSize 16 | ||
13416 | fontName "Monospace" | ||
13417 | autoSizePolicy "node_width" | ||
13418 | anchor "t" | ||
13419 | borderDistance 0.0 | ||
13420 | ] | ||
13421 | LabelGraphics | ||
13422 | [ | ||
13423 | text " | ||
13424 | FunctionType enum | ||
13425 | " | ||
13426 | fontSize 14 | ||
13427 | fontName "Consolas" | ||
13428 | alignment "left" | ||
13429 | anchor "tl" | ||
13430 | borderDistance 6 | ||
13431 | ] | ||
13432 | ] | ||
13433 | |||
13434 | node | ||
13435 | [ | ||
13436 | id 2 | ||
13437 | graphics | ||
13438 | [ | ||
13439 | w 226.60000000000002 | ||
13440 | h 40 | ||
13441 | type "rectangle" | ||
13442 | fill "#FFFFFF" | ||
13443 | fill2 "#FFFFFF" | ||
13444 | outline "#000000" | ||
13445 | ] | ||
13446 | LabelGraphics | ||
13447 | [ | ||
13448 | text "Leaf literal FunctionType" | ||
13449 | outline "#000000" | ||
13450 | fill "#FFFFFF" | ||
13451 | fontSize 16 | ||
13452 | fontName "Monospace" | ||
13453 | autoSizePolicy "node_width" | ||
13454 | anchor "t" | ||
13455 | borderDistance 0.0 | ||
13456 | ] | ||
13457 | LabelGraphics | ||
13458 | [ | ||
13459 | text " | ||
13460 | FunctionType enum | ||
13461 | " | ||
13462 | fontSize 14 | ||
13463 | fontName "Consolas" | ||
13464 | alignment "left" | ||
13465 | anchor "tl" | ||
13466 | borderDistance 6 | ||
13467 | ] | ||
13468 | ] | ||
13469 | |||
13470 | node | ||
13471 | [ | ||
13472 | id 3 | ||
13473 | graphics | ||
13474 | [ | ||
13475 | w 41.800000000000004 | ||
13476 | h 26 | ||
13477 | type "rectangle" | ||
13478 | fill "#FFFFFF" | ||
13479 | fill2 "#FFFFFF" | ||
13480 | outline "#000000" | ||
13481 | ] | ||
13482 | LabelGraphics | ||
13483 | [ | ||
13484 | text "true" | ||
13485 | outline "#000000" | ||
13486 | fill "#FFFFFF" | ||
13487 | fontSize 16 | ||
13488 | fontName "Monospace" | ||
13489 | autoSizePolicy "node_width" | ||
13490 | anchor "t" | ||
13491 | borderDistance 0.0 | ||
13492 | ] | ||
13493 | LabelGraphics | ||
13494 | [ | ||
13495 | text " | ||
13496 | " | ||
13497 | fontSize 14 | ||
13498 | fontName "Consolas" | ||
13499 | alignment "left" | ||
13500 | anchor "tl" | ||
13501 | borderDistance 6 | ||
13502 | ] | ||
13503 | ] | ||
13504 | |||
13505 | node | ||
13506 | [ | ||
13507 | id 4 | ||
13508 | graphics | ||
13509 | [ | ||
13510 | w 50.6 | ||
13511 | h 26 | ||
13512 | type "rectangle" | ||
13513 | fill "#FFFFFF" | ||
13514 | fill2 "#FFFFFF" | ||
13515 | outline "#000000" | ||
13516 | ] | ||
13517 | LabelGraphics | ||
13518 | [ | ||
13519 | text "false" | ||
13520 | outline "#000000" | ||
13521 | fill "#FFFFFF" | ||
13522 | fontSize 16 | ||
13523 | fontName "Monospace" | ||
13524 | autoSizePolicy "node_width" | ||
13525 | anchor "t" | ||
13526 | borderDistance 0.0 | ||
13527 | ] | ||
13528 | LabelGraphics | ||
13529 | [ | ||
13530 | text " | ||
13531 | " | ||
13532 | fontSize 14 | ||
13533 | fontName "Consolas" | ||
13534 | alignment "left" | ||
13535 | anchor "tl" | ||
13536 | borderDistance 6 | ||
13537 | ] | ||
13538 | ] | ||
13539 | |||
13540 | node | ||
13541 | [ | ||
13542 | id 5 | ||
13543 | graphics | ||
13544 | [ | ||
13545 | w 207.9 | ||
13546 | h 40 | ||
13547 | type "rectangle" | ||
13548 | fill "#FFFFFF" | ||
13549 | fill2 "#FFFFFF" | ||
13550 | outline "#000000" | ||
13551 | ] | ||
13552 | LabelGraphics | ||
13553 | [ | ||
13554 | text "null" | ||
13555 | outline "#000000" | ||
13556 | fill "#FFFFFF" | ||
13557 | fontSize 16 | ||
13558 | fontName "Monospace" | ||
13559 | autoSizePolicy "node_width" | ||
13560 | anchor "t" | ||
13561 | borderDistance 0.0 | ||
13562 | ] | ||
13563 | LabelGraphics | ||
13564 | [ | ||
13565 | text " | ||
13566 | FunctionalInterface class | ||
13567 | " | ||
13568 | fontSize 14 | ||
13569 | fontName "Consolas" | ||
13570 | alignment "left" | ||
13571 | anchor "tl" | ||
13572 | borderDistance 6 | ||
13573 | ] | ||
13574 | ] | ||
13575 | |||
13576 | node | ||
13577 | [ | ||
13578 | id 6 | ||
13579 | graphics | ||
13580 | [ | ||
13581 | w 177.10000000000002 | ||
13582 | h 54 | ||
13583 | type "rectangle" | ||
13584 | fill "#FFFFFF" | ||
13585 | fill2 "#FFFFFF" | ||
13586 | outline "#000000" | ||
13587 | ] | ||
13588 | LabelGraphics | ||
13589 | [ | ||
13590 | text "null" | ||
13591 | outline "#000000" | ||
13592 | fill "#FFFFFF" | ||
13593 | fontSize 16 | ||
13594 | fontName "Monospace" | ||
13595 | autoSizePolicy "node_width" | ||
13596 | anchor "t" | ||
13597 | borderDistance 0.0 | ||
13598 | ] | ||
13599 | LabelGraphics | ||
13600 | [ | ||
13601 | text " | ||
13602 | FunctionalInput class | ||
13603 | FunctionalData class | ||
13604 | " | ||
13605 | fontSize 14 | ||
13606 | fontName "Consolas" | ||
13607 | alignment "left" | ||
13608 | anchor "tl" | ||
13609 | borderDistance 6 | ||
13610 | ] | ||
13611 | ] | ||
13612 | |||
13613 | node | ||
13614 | [ | ||
13615 | id 7 | ||
13616 | graphics | ||
13617 | [ | ||
13618 | w 161.70000000000002 | ||
13619 | h 40 | ||
13620 | type "rectangle" | ||
13621 | fill "#FFFFFF" | ||
13622 | fill2 "#FFFFFF" | ||
13623 | outline "#000000" | ||
13624 | ] | ||
13625 | LabelGraphics | ||
13626 | [ | ||
13627 | text "null" | ||
13628 | outline "#000000" | ||
13629 | fill "#FFFFFF" | ||
13630 | fontSize 16 | ||
13631 | fontName "Monospace" | ||
13632 | autoSizePolicy "node_width" | ||
13633 | anchor "t" | ||
13634 | borderDistance 0.0 | ||
13635 | ] | ||
13636 | LabelGraphics | ||
13637 | [ | ||
13638 | text " | ||
13639 | FAMTerminator class | ||
13640 | " | ||
13641 | fontSize 14 | ||
13642 | fontName "Consolas" | ||
13643 | alignment "left" | ||
13644 | anchor "tl" | ||
13645 | borderDistance 6 | ||
13646 | ] | ||
13647 | ] | ||
13648 | |||
13649 | node | ||
13650 | [ | ||
13651 | id 8 | ||
13652 | graphics | ||
13653 | [ | ||
13654 | w 177.10000000000002 | ||
13655 | h 54 | ||
13656 | type "rectangle" | ||
13657 | fill "#FFFFFF" | ||
13658 | fill2 "#FFFFFF" | ||
13659 | outline "#000000" | ||
13660 | ] | ||
13661 | LabelGraphics | ||
13662 | [ | ||
13663 | text "null" | ||
13664 | outline "#000000" | ||
13665 | fill "#FFFFFF" | ||
13666 | fontSize 16 | ||
13667 | fontName "Monospace" | ||
13668 | autoSizePolicy "node_width" | ||
13669 | anchor "t" | ||
13670 | borderDistance 0.0 | ||
13671 | ] | ||
13672 | LabelGraphics | ||
13673 | [ | ||
13674 | text " | ||
13675 | FunctionalInput class | ||
13676 | FunctionalData class | ||
13677 | " | ||
13678 | fontSize 14 | ||
13679 | fontName "Consolas" | ||
13680 | alignment "left" | ||
13681 | anchor "tl" | ||
13682 | borderDistance 6 | ||
13683 | ] | ||
13684 | ] | ||
13685 | |||
13686 | node | ||
13687 | [ | ||
13688 | id 9 | ||
13689 | graphics | ||
13690 | [ | ||
13691 | w 184.8 | ||
13692 | h 54 | ||
13693 | type "rectangle" | ||
13694 | fill "#FFFFFF" | ||
13695 | fill2 "#FFFFFF" | ||
13696 | outline "#000000" | ||
13697 | ] | ||
13698 | LabelGraphics | ||
13699 | [ | ||
13700 | text "null" | ||
13701 | outline "#000000" | ||
13702 | fill "#FFFFFF" | ||
13703 | fontSize 16 | ||
13704 | fontName "Monospace" | ||
13705 | autoSizePolicy "node_width" | ||
13706 | anchor "t" | ||
13707 | borderDistance 0.0 | ||
13708 | ] | ||
13709 | LabelGraphics | ||
13710 | [ | ||
13711 | text " | ||
13712 | FunctionalOutput class | ||
13713 | FunctionalData class | ||
13714 | " | ||
13715 | fontSize 14 | ||
13716 | fontName "Consolas" | ||
13717 | alignment "left" | ||
13718 | anchor "tl" | ||
13719 | borderDistance 6 | ||
13720 | ] | ||
13721 | ] | ||
13722 | |||
13723 | node | ||
13724 | [ | ||
13725 | id 10 | ||
13726 | graphics | ||
13727 | [ | ||
13728 | w 177.10000000000002 | ||
13729 | h 40 | ||
13730 | type "rectangle" | ||
13731 | fill "#FFFFFF" | ||
13732 | fill2 "#FFFFFF" | ||
13733 | outline "#000000" | ||
13734 | ] | ||
13735 | LabelGraphics | ||
13736 | [ | ||
13737 | text "null" | ||
13738 | outline "#000000" | ||
13739 | fill "#FFFFFF" | ||
13740 | fontSize 16 | ||
13741 | fontName "Monospace" | ||
13742 | autoSizePolicy "node_width" | ||
13743 | anchor "t" | ||
13744 | borderDistance 0.0 | ||
13745 | ] | ||
13746 | LabelGraphics | ||
13747 | [ | ||
13748 | text " | ||
13749 | InformationLink class | ||
13750 | " | ||
13751 | fontSize 14 | ||
13752 | fontName "Consolas" | ||
13753 | alignment "left" | ||
13754 | anchor "tl" | ||
13755 | borderDistance 6 | ||
13756 | ] | ||
13757 | ] | ||
13758 | |||
13759 | node | ||
13760 | [ | ||
13761 | id 11 | ||
13762 | graphics | ||
13763 | [ | ||
13764 | w 184.8 | ||
13765 | h 54 | ||
13766 | type "rectangle" | ||
13767 | fill "#FFFFFF" | ||
13768 | fill2 "#FFFFFF" | ||
13769 | outline "#000000" | ||
13770 | ] | ||
13771 | LabelGraphics | ||
13772 | [ | ||
13773 | text "null" | ||
13774 | outline "#000000" | ||
13775 | fill "#FFFFFF" | ||
13776 | fontSize 16 | ||
13777 | fontName "Monospace" | ||
13778 | autoSizePolicy "node_width" | ||
13779 | anchor "t" | ||
13780 | borderDistance 0.0 | ||
13781 | ] | ||
13782 | LabelGraphics | ||
13783 | [ | ||
13784 | text " | ||
13785 | FunctionalOutput class | ||
13786 | FunctionalData class | ||
13787 | " | ||
13788 | fontSize 14 | ||
13789 | fontName "Consolas" | ||
13790 | alignment "left" | ||
13791 | anchor "tl" | ||
13792 | borderDistance 6 | ||
13793 | ] | ||
13794 | ] | ||
13795 | |||
13796 | node | ||
13797 | [ | ||
13798 | id 12 | ||
13799 | graphics | ||
13800 | [ | ||
13801 | w 112.2 | ||
13802 | h 26 | ||
13803 | type "rectangle" | ||
13804 | fill "#FFFFFF" | ||
13805 | fill2 "#FFFFFF" | ||
13806 | outline "#000000" | ||
13807 | ] | ||
13808 | LabelGraphics | ||
13809 | [ | ||
13810 | text "New Integers" | ||
13811 | outline "#000000" | ||
13812 | fill "#FFFFFF" | ||
13813 | fontSize 16 | ||
13814 | fontName "Monospace" | ||
13815 | autoSizePolicy "node_width" | ||
13816 | anchor "t" | ||
13817 | borderDistance 0.0 | ||
13818 | ] | ||
13819 | LabelGraphics | ||
13820 | [ | ||
13821 | text " | ||
13822 | " | ||
13823 | fontSize 14 | ||
13824 | fontName "Consolas" | ||
13825 | alignment "left" | ||
13826 | anchor "tl" | ||
13827 | borderDistance 6 | ||
13828 | ] | ||
13829 | ] | ||
13830 | |||
13831 | node | ||
13832 | [ | ||
13833 | id 13 | ||
13834 | graphics | ||
13835 | [ | ||
13836 | w 85.80000000000001 | ||
13837 | h 26 | ||
13838 | type "rectangle" | ||
13839 | fill "#FFFFFF" | ||
13840 | fill2 "#FFFFFF" | ||
13841 | outline "#000000" | ||
13842 | ] | ||
13843 | LabelGraphics | ||
13844 | [ | ||
13845 | text "New Reals" | ||
13846 | outline "#000000" | ||
13847 | fill "#FFFFFF" | ||
13848 | fontSize 16 | ||
13849 | fontName "Monospace" | ||
13850 | autoSizePolicy "node_width" | ||
13851 | anchor "t" | ||
13852 | borderDistance 0.0 | ||
13853 | ] | ||
13854 | LabelGraphics | ||
13855 | [ | ||
13856 | text " | ||
13857 | " | ||
13858 | fontSize 14 | ||
13859 | fontName "Consolas" | ||
13860 | alignment "left" | ||
13861 | anchor "tl" | ||
13862 | borderDistance 6 | ||
13863 | ] | ||
13864 | ] | ||
13865 | |||
13866 | node | ||
13867 | [ | ||
13868 | id 14 | ||
13869 | graphics | ||
13870 | [ | ||
13871 | w 103.4 | ||
13872 | h 26 | ||
13873 | type "rectangle" | ||
13874 | fill "#FFFFFF" | ||
13875 | fill2 "#FFFFFF" | ||
13876 | outline "#000000" | ||
13877 | ] | ||
13878 | LabelGraphics | ||
13879 | [ | ||
13880 | text "New Strings" | ||
13881 | outline "#000000" | ||
13882 | fill "#FFFFFF" | ||
13883 | fontSize 16 | ||
13884 | fontName "Monospace" | ||
13885 | autoSizePolicy "node_width" | ||
13886 | anchor "t" | ||
13887 | borderDistance 0.0 | ||
13888 | ] | ||
13889 | LabelGraphics | ||
13890 | [ | ||
13891 | text " | ||
13892 | " | ||
13893 | fontSize 14 | ||
13894 | fontName "Consolas" | ||
13895 | alignment "left" | ||
13896 | anchor "tl" | ||
13897 | borderDistance 6 | ||
13898 | ] | ||
13899 | ] | ||
13900 | |||
13901 | node | ||
13902 | [ | ||
13903 | id 15 | ||
13904 | graphics | ||
13905 | [ | ||
13906 | w 103.4 | ||
13907 | h 26 | ||
13908 | type "rectangle" | ||
13909 | fill "#FFFFFF" | ||
13910 | fill2 "#FFFFFF" | ||
13911 | outline "#000000" | ||
13912 | ] | ||
13913 | LabelGraphics | ||
13914 | [ | ||
13915 | text "New Objects" | ||
13916 | outline "#000000" | ||
13917 | fill "#FFFFFF" | ||
13918 | fontSize 16 | ||
13919 | fontName "Monospace" | ||
13920 | autoSizePolicy "node_width" | ||
13921 | anchor "t" | ||
13922 | borderDistance 0.0 | ||
13923 | ] | ||
13924 | LabelGraphics | ||
13925 | [ | ||
13926 | text " | ||
13927 | " | ||
13928 | fontSize 14 | ||
13929 | fontName "Consolas" | ||
13930 | alignment "left" | ||
13931 | anchor "tl" | ||
13932 | borderDistance 6 | ||
13933 | ] | ||
13934 | ] | ||
13935 | edge | ||
13936 | [ | ||
13937 | source 7 | ||
13938 | target 6 | ||
13939 | graphics | ||
13940 | [ | ||
13941 | fill "#000000" | ||
13942 | targetArrow "standard" | ||
13943 | ] | ||
13944 | LabelGraphics | ||
13945 | [ | ||
13946 | text "data reference FAMTerminator" | ||
13947 | fontSize 14 | ||
13948 | fontName "Consolas" | ||
13949 | configuration "AutoFlippingLabel" | ||
13950 | model "six_pos" | ||
13951 | position "thead" | ||
13952 | ] | ||
13953 | ] | ||
13954 | edge | ||
13955 | [ | ||
13956 | source 10 | ||
13957 | target 9 | ||
13958 | graphics | ||
13959 | [ | ||
13960 | fill "#000000" | ||
13961 | targetArrow "standard" | ||
13962 | ] | ||
13963 | LabelGraphics | ||
13964 | [ | ||
13965 | text "from reference InformationLink" | ||
13966 | fontSize 14 | ||
13967 | fontName "Consolas" | ||
13968 | configuration "AutoFlippingLabel" | ||
13969 | model "six_pos" | ||
13970 | position "thead" | ||
13971 | ] | ||
13972 | ] | ||
13973 | edge | ||
13974 | [ | ||
13975 | source 10 | ||
13976 | target 6 | ||
13977 | graphics | ||
13978 | [ | ||
13979 | fill "#000000" | ||
13980 | targetArrow "standard" | ||
13981 | ] | ||
13982 | LabelGraphics | ||
13983 | [ | ||
13984 | text "to reference InformationLink" | ||
13985 | fontSize 14 | ||
13986 | fontName "Consolas" | ||
13987 | configuration "AutoFlippingLabel" | ||
13988 | model "six_pos" | ||
13989 | position "thead" | ||
13990 | ] | ||
13991 | ] | ||
13992 | edge | ||
13993 | [ | ||
13994 | source 5 | ||
13995 | target 6 | ||
13996 | graphics | ||
13997 | [ | ||
13998 | fill "#000000" | ||
13999 | width 3 | ||
14000 | targetArrow "standard" | ||
14001 | ] | ||
14002 | LabelGraphics | ||
14003 | [ | ||
14004 | text "data reference FunctionalInterface" | ||
14005 | fontSize 14 | ||
14006 | fontName "Consolas" | ||
14007 | configuration "AutoFlippingLabel" | ||
14008 | model "six_pos" | ||
14009 | position "thead" | ||
14010 | ] | ||
14011 | ] | ||
14012 | edge | ||
14013 | [ | ||
14014 | source 5 | ||
14015 | target 8 | ||
14016 | graphics | ||
14017 | [ | ||
14018 | fill "#000000" | ||
14019 | width 3 | ||
14020 | targetArrow "standard" | ||
14021 | ] | ||
14022 | LabelGraphics | ||
14023 | [ | ||
14024 | text "data reference FunctionalInterface" | ||
14025 | fontSize 14 | ||
14026 | fontName "Consolas" | ||
14027 | configuration "AutoFlippingLabel" | ||
14028 | model "six_pos" | ||
14029 | position "thead" | ||
14030 | ] | ||
14031 | ] | ||
14032 | edge | ||
14033 | [ | ||
14034 | source 5 | ||
14035 | target 9 | ||
14036 | graphics | ||
14037 | [ | ||
14038 | fill "#000000" | ||
14039 | width 3 | ||
14040 | targetArrow "standard" | ||
14041 | ] | ||
14042 | LabelGraphics | ||
14043 | [ | ||
14044 | text "data reference FunctionalInterface" | ||
14045 | fontSize 14 | ||
14046 | fontName "Consolas" | ||
14047 | configuration "AutoFlippingLabel" | ||
14048 | model "six_pos" | ||
14049 | position "thead" | ||
14050 | ] | ||
14051 | ] | ||
14052 | edge | ||
14053 | [ | ||
14054 | source 5 | ||
14055 | target 11 | ||
14056 | graphics | ||
14057 | [ | ||
14058 | fill "#000000" | ||
14059 | width 3 | ||
14060 | targetArrow "standard" | ||
14061 | ] | ||
14062 | LabelGraphics | ||
14063 | [ | ||
14064 | text "data reference FunctionalInterface" | ||
14065 | fontSize 14 | ||
14066 | fontName "Consolas" | ||
14067 | configuration "AutoFlippingLabel" | ||
14068 | model "six_pos" | ||
14069 | position "thead" | ||
14070 | ] | ||
14071 | ] | ||
14072 | edge | ||
14073 | [ | ||
14074 | source 6 | ||
14075 | target 10 | ||
14076 | graphics | ||
14077 | [ | ||
14078 | fill "#000000" | ||
14079 | targetArrow "standard" | ||
14080 | ] | ||
14081 | LabelGraphics | ||
14082 | [ | ||
14083 | text "IncomingLinks reference FunctionalInput" | ||
14084 | fontSize 14 | ||
14085 | fontName "Consolas" | ||
14086 | configuration "AutoFlippingLabel" | ||
14087 | model "six_pos" | ||
14088 | position "thead" | ||
14089 | ] | ||
14090 | ] | ||
14091 | edge | ||
14092 | [ | ||
14093 | source 9 | ||
14094 | target 10 | ||
14095 | graphics | ||
14096 | [ | ||
14097 | fill "#000000" | ||
14098 | width 3 | ||
14099 | targetArrow "standard" | ||
14100 | ] | ||
14101 | LabelGraphics | ||
14102 | [ | ||
14103 | text "outgoingLinks reference FunctionalOutput" | ||
14104 | fontSize 14 | ||
14105 | fontName "Consolas" | ||
14106 | configuration "AutoFlippingLabel" | ||
14107 | model "six_pos" | ||
14108 | position "thead" | ||
14109 | ] | ||
14110 | ] | ||
14111 | edge | ||
14112 | [ | ||
14113 | source 6 | ||
14114 | target 7 | ||
14115 | graphics | ||
14116 | [ | ||
14117 | fill "#000000" | ||
14118 | width 3 | ||
14119 | targetArrow "standard" | ||
14120 | ] | ||
14121 | LabelGraphics | ||
14122 | [ | ||
14123 | text "terminator reference FunctionalData" | ||
14124 | fontSize 14 | ||
14125 | fontName "Consolas" | ||
14126 | configuration "AutoFlippingLabel" | ||
14127 | model "six_pos" | ||
14128 | position "thead" | ||
14129 | ] | ||
14130 | ] | ||
14131 | edge | ||
14132 | [ | ||
14133 | source 6 | ||
14134 | target 5 | ||
14135 | graphics | ||
14136 | [ | ||
14137 | fill "#000000" | ||
14138 | targetArrow "standard" | ||
14139 | ] | ||
14140 | LabelGraphics | ||
14141 | [ | ||
14142 | text "interface reference FunctionalData" | ||
14143 | fontSize 14 | ||
14144 | fontName "Consolas" | ||
14145 | configuration "AutoFlippingLabel" | ||
14146 | model "six_pos" | ||
14147 | position "thead" | ||
14148 | ] | ||
14149 | ] | ||
14150 | edge | ||
14151 | [ | ||
14152 | source 8 | ||
14153 | target 5 | ||
14154 | graphics | ||
14155 | [ | ||
14156 | fill "#000000" | ||
14157 | targetArrow "standard" | ||
14158 | ] | ||
14159 | LabelGraphics | ||
14160 | [ | ||
14161 | text "interface reference FunctionalData" | ||
14162 | fontSize 14 | ||
14163 | fontName "Consolas" | ||
14164 | configuration "AutoFlippingLabel" | ||
14165 | model "six_pos" | ||
14166 | position "thead" | ||
14167 | ] | ||
14168 | ] | ||
14169 | edge | ||
14170 | [ | ||
14171 | source 9 | ||
14172 | target 5 | ||
14173 | graphics | ||
14174 | [ | ||
14175 | fill "#000000" | ||
14176 | targetArrow "standard" | ||
14177 | ] | ||
14178 | LabelGraphics | ||
14179 | [ | ||
14180 | text "interface reference FunctionalData" | ||
14181 | fontSize 14 | ||
14182 | fontName "Consolas" | ||
14183 | configuration "AutoFlippingLabel" | ||
14184 | model "six_pos" | ||
14185 | position "thead" | ||
14186 | ] | ||
14187 | ] | ||
14188 | edge | ||
14189 | [ | ||
14190 | source 11 | ||
14191 | target 5 | ||
14192 | graphics | ||
14193 | [ | ||
14194 | fill "#000000" | ||
14195 | targetArrow "standard" | ||
14196 | ] | ||
14197 | LabelGraphics | ||
14198 | [ | ||
14199 | text "interface reference FunctionalData" | ||
14200 | fontSize 14 | ||
14201 | fontName "Consolas" | ||
14202 | configuration "AutoFlippingLabel" | ||
14203 | model "six_pos" | ||
14204 | position "thead" | ||
14205 | ] | ||
14206 | ] | ||
14207 | ] | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.png b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.png index 0222b4b1..25c578df 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.png +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.png | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.xmi b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.xmi index 144e4fc5..16f82b48 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.xmi +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/2.xmi | |||
@@ -1,12 +1,11 @@ | |||
1 | <?xml version="1.0" encoding="ASCII"?> | 1 | <?xml version="1.0" encoding="ASCII"?> |
2 | <fam:FunctionalArchitectureModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> | 2 | <fam:FunctionalInterface xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> |
3 | <rootElements xsi:type="fam:Function"> | 3 | <data xsi:type="fam:FunctionalOutput"> |
4 | <interface> | 4 | <outgoingLinks to="//@data.1"/> |
5 | <data xsi:type="fam:FunctionalOutput"/> | 5 | </data> |
6 | <data xsi:type="fam:FunctionalOutput"/> | 6 | <data xsi:type="fam:FunctionalInput" IncomingLinks="//@data.0/@outgoingLinks.0"> |
7 | <data xsi:type="fam:FunctionalOutput"> | 7 | <terminator/> |
8 | <terminator/> | 8 | </data> |
9 | </data> | 9 | <data xsi:type="fam:FunctionalOutput"/> |
10 | </interface> | 10 | <data xsi:type="fam:FunctionalInput"/> |
11 | </rootElements> | 11 | </fam:FunctionalInterface> |
12 | </fam:FunctionalArchitectureModel> | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.gml b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.gml index e046559b..9ae40173 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.gml +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.gml | |||
@@ -11660,3 +11660,2472 @@ graph | |||
11660 | ] | 11660 | ] |
11661 | ] | 11661 | ] |
11662 | ] | 11662 | ] |
11663 | graph | ||
11664 | [ | ||
11665 | node | ||
11666 | [ | ||
11667 | id 0 | ||
11668 | graphics | ||
11669 | [ | ||
11670 | w 226.60000000000002 | ||
11671 | h 40 | ||
11672 | type "rectangle" | ||
11673 | fill "#FFFFFF" | ||
11674 | fill2 "#FFFFFF" | ||
11675 | outline "#000000" | ||
11676 | ] | ||
11677 | LabelGraphics | ||
11678 | [ | ||
11679 | text "Root literal FunctionType" | ||
11680 | outline "#000000" | ||
11681 | fill "#FFFFFF" | ||
11682 | fontSize 16 | ||
11683 | fontName "Monospace" | ||
11684 | autoSizePolicy "node_width" | ||
11685 | anchor "t" | ||
11686 | borderDistance 0.0 | ||
11687 | ] | ||
11688 | LabelGraphics | ||
11689 | [ | ||
11690 | text " | ||
11691 | FunctionType enum | ||
11692 | " | ||
11693 | fontSize 14 | ||
11694 | fontName "Consolas" | ||
11695 | alignment "left" | ||
11696 | anchor "tl" | ||
11697 | borderDistance 6 | ||
11698 | ] | ||
11699 | ] | ||
11700 | |||
11701 | node | ||
11702 | [ | ||
11703 | id 1 | ||
11704 | graphics | ||
11705 | [ | ||
11706 | w 297.0 | ||
11707 | h 40 | ||
11708 | type "rectangle" | ||
11709 | fill "#FFFFFF" | ||
11710 | fill2 "#FFFFFF" | ||
11711 | outline "#000000" | ||
11712 | ] | ||
11713 | LabelGraphics | ||
11714 | [ | ||
11715 | text "Intermediate literal FunctionType" | ||
11716 | outline "#000000" | ||
11717 | fill "#FFFFFF" | ||
11718 | fontSize 16 | ||
11719 | fontName "Monospace" | ||
11720 | autoSizePolicy "node_width" | ||
11721 | anchor "t" | ||
11722 | borderDistance 0.0 | ||
11723 | ] | ||
11724 | LabelGraphics | ||
11725 | [ | ||
11726 | text " | ||
11727 | FunctionType enum | ||
11728 | " | ||
11729 | fontSize 14 | ||
11730 | fontName "Consolas" | ||
11731 | alignment "left" | ||
11732 | anchor "tl" | ||
11733 | borderDistance 6 | ||
11734 | ] | ||
11735 | ] | ||
11736 | |||
11737 | node | ||
11738 | [ | ||
11739 | id 2 | ||
11740 | graphics | ||
11741 | [ | ||
11742 | w 226.60000000000002 | ||
11743 | h 40 | ||
11744 | type "rectangle" | ||
11745 | fill "#FFFFFF" | ||
11746 | fill2 "#FFFFFF" | ||
11747 | outline "#000000" | ||
11748 | ] | ||
11749 | LabelGraphics | ||
11750 | [ | ||
11751 | text "Leaf literal FunctionType" | ||
11752 | outline "#000000" | ||
11753 | fill "#FFFFFF" | ||
11754 | fontSize 16 | ||
11755 | fontName "Monospace" | ||
11756 | autoSizePolicy "node_width" | ||
11757 | anchor "t" | ||
11758 | borderDistance 0.0 | ||
11759 | ] | ||
11760 | LabelGraphics | ||
11761 | [ | ||
11762 | text " | ||
11763 | FunctionType enum | ||
11764 | " | ||
11765 | fontSize 14 | ||
11766 | fontName "Consolas" | ||
11767 | alignment "left" | ||
11768 | anchor "tl" | ||
11769 | borderDistance 6 | ||
11770 | ] | ||
11771 | ] | ||
11772 | |||
11773 | node | ||
11774 | [ | ||
11775 | id 3 | ||
11776 | graphics | ||
11777 | [ | ||
11778 | w 41.800000000000004 | ||
11779 | h 26 | ||
11780 | type "rectangle" | ||
11781 | fill "#FFFFFF" | ||
11782 | fill2 "#FFFFFF" | ||
11783 | outline "#000000" | ||
11784 | ] | ||
11785 | LabelGraphics | ||
11786 | [ | ||
11787 | text "true" | ||
11788 | outline "#000000" | ||
11789 | fill "#FFFFFF" | ||
11790 | fontSize 16 | ||
11791 | fontName "Monospace" | ||
11792 | autoSizePolicy "node_width" | ||
11793 | anchor "t" | ||
11794 | borderDistance 0.0 | ||
11795 | ] | ||
11796 | LabelGraphics | ||
11797 | [ | ||
11798 | text " | ||
11799 | " | ||
11800 | fontSize 14 | ||
11801 | fontName "Consolas" | ||
11802 | alignment "left" | ||
11803 | anchor "tl" | ||
11804 | borderDistance 6 | ||
11805 | ] | ||
11806 | ] | ||
11807 | |||
11808 | node | ||
11809 | [ | ||
11810 | id 4 | ||
11811 | graphics | ||
11812 | [ | ||
11813 | w 50.6 | ||
11814 | h 26 | ||
11815 | type "rectangle" | ||
11816 | fill "#FFFFFF" | ||
11817 | fill2 "#FFFFFF" | ||
11818 | outline "#000000" | ||
11819 | ] | ||
11820 | LabelGraphics | ||
11821 | [ | ||
11822 | text "false" | ||
11823 | outline "#000000" | ||
11824 | fill "#FFFFFF" | ||
11825 | fontSize 16 | ||
11826 | fontName "Monospace" | ||
11827 | autoSizePolicy "node_width" | ||
11828 | anchor "t" | ||
11829 | borderDistance 0.0 | ||
11830 | ] | ||
11831 | LabelGraphics | ||
11832 | [ | ||
11833 | text " | ||
11834 | " | ||
11835 | fontSize 14 | ||
11836 | fontName "Consolas" | ||
11837 | alignment "left" | ||
11838 | anchor "tl" | ||
11839 | borderDistance 6 | ||
11840 | ] | ||
11841 | ] | ||
11842 | |||
11843 | node | ||
11844 | [ | ||
11845 | id 5 | ||
11846 | graphics | ||
11847 | [ | ||
11848 | w 207.9 | ||
11849 | h 40 | ||
11850 | type "rectangle" | ||
11851 | fill "#FFFFFF" | ||
11852 | fill2 "#FFFFFF" | ||
11853 | outline "#000000" | ||
11854 | ] | ||
11855 | LabelGraphics | ||
11856 | [ | ||
11857 | text "null" | ||
11858 | outline "#000000" | ||
11859 | fill "#FFFFFF" | ||
11860 | fontSize 16 | ||
11861 | fontName "Monospace" | ||
11862 | autoSizePolicy "node_width" | ||
11863 | anchor "t" | ||
11864 | borderDistance 0.0 | ||
11865 | ] | ||
11866 | LabelGraphics | ||
11867 | [ | ||
11868 | text " | ||
11869 | FunctionalInterface class | ||
11870 | " | ||
11871 | fontSize 14 | ||
11872 | fontName "Consolas" | ||
11873 | alignment "left" | ||
11874 | anchor "tl" | ||
11875 | borderDistance 6 | ||
11876 | ] | ||
11877 | ] | ||
11878 | |||
11879 | node | ||
11880 | [ | ||
11881 | id 6 | ||
11882 | graphics | ||
11883 | [ | ||
11884 | w 177.10000000000002 | ||
11885 | h 54 | ||
11886 | type "rectangle" | ||
11887 | fill "#FFFFFF" | ||
11888 | fill2 "#FFFFFF" | ||
11889 | outline "#000000" | ||
11890 | ] | ||
11891 | LabelGraphics | ||
11892 | [ | ||
11893 | text "null" | ||
11894 | outline "#000000" | ||
11895 | fill "#FFFFFF" | ||
11896 | fontSize 16 | ||
11897 | fontName "Monospace" | ||
11898 | autoSizePolicy "node_width" | ||
11899 | anchor "t" | ||
11900 | borderDistance 0.0 | ||
11901 | ] | ||
11902 | LabelGraphics | ||
11903 | [ | ||
11904 | text " | ||
11905 | FunctionalInput class | ||
11906 | FunctionalData class | ||
11907 | " | ||
11908 | fontSize 14 | ||
11909 | fontName "Consolas" | ||
11910 | alignment "left" | ||
11911 | anchor "tl" | ||
11912 | borderDistance 6 | ||
11913 | ] | ||
11914 | ] | ||
11915 | |||
11916 | node | ||
11917 | [ | ||
11918 | id 7 | ||
11919 | graphics | ||
11920 | [ | ||
11921 | w 184.8 | ||
11922 | h 54 | ||
11923 | type "rectangle" | ||
11924 | fill "#FFFFFF" | ||
11925 | fill2 "#FFFFFF" | ||
11926 | outline "#000000" | ||
11927 | ] | ||
11928 | LabelGraphics | ||
11929 | [ | ||
11930 | text "null" | ||
11931 | outline "#000000" | ||
11932 | fill "#FFFFFF" | ||
11933 | fontSize 16 | ||
11934 | fontName "Monospace" | ||
11935 | autoSizePolicy "node_width" | ||
11936 | anchor "t" | ||
11937 | borderDistance 0.0 | ||
11938 | ] | ||
11939 | LabelGraphics | ||
11940 | [ | ||
11941 | text " | ||
11942 | FunctionalOutput class | ||
11943 | FunctionalData class | ||
11944 | " | ||
11945 | fontSize 14 | ||
11946 | fontName "Consolas" | ||
11947 | alignment "left" | ||
11948 | anchor "tl" | ||
11949 | borderDistance 6 | ||
11950 | ] | ||
11951 | ] | ||
11952 | |||
11953 | node | ||
11954 | [ | ||
11955 | id 8 | ||
11956 | graphics | ||
11957 | [ | ||
11958 | w 184.8 | ||
11959 | h 54 | ||
11960 | type "rectangle" | ||
11961 | fill "#FFFFFF" | ||
11962 | fill2 "#FFFFFF" | ||
11963 | outline "#000000" | ||
11964 | ] | ||
11965 | LabelGraphics | ||
11966 | [ | ||
11967 | text "null" | ||
11968 | outline "#000000" | ||
11969 | fill "#FFFFFF" | ||
11970 | fontSize 16 | ||
11971 | fontName "Monospace" | ||
11972 | autoSizePolicy "node_width" | ||
11973 | anchor "t" | ||
11974 | borderDistance 0.0 | ||
11975 | ] | ||
11976 | LabelGraphics | ||
11977 | [ | ||
11978 | text " | ||
11979 | FunctionalOutput class | ||
11980 | FunctionalData class | ||
11981 | " | ||
11982 | fontSize 14 | ||
11983 | fontName "Consolas" | ||
11984 | alignment "left" | ||
11985 | anchor "tl" | ||
11986 | borderDistance 6 | ||
11987 | ] | ||
11988 | ] | ||
11989 | |||
11990 | node | ||
11991 | [ | ||
11992 | id 9 | ||
11993 | graphics | ||
11994 | [ | ||
11995 | w 177.10000000000002 | ||
11996 | h 40 | ||
11997 | type "rectangle" | ||
11998 | fill "#FFFFFF" | ||
11999 | fill2 "#FFFFFF" | ||
12000 | outline "#000000" | ||
12001 | ] | ||
12002 | LabelGraphics | ||
12003 | [ | ||
12004 | text "null" | ||
12005 | outline "#000000" | ||
12006 | fill "#FFFFFF" | ||
12007 | fontSize 16 | ||
12008 | fontName "Monospace" | ||
12009 | autoSizePolicy "node_width" | ||
12010 | anchor "t" | ||
12011 | borderDistance 0.0 | ||
12012 | ] | ||
12013 | LabelGraphics | ||
12014 | [ | ||
12015 | text " | ||
12016 | InformationLink class | ||
12017 | " | ||
12018 | fontSize 14 | ||
12019 | fontName "Consolas" | ||
12020 | alignment "left" | ||
12021 | anchor "tl" | ||
12022 | borderDistance 6 | ||
12023 | ] | ||
12024 | ] | ||
12025 | |||
12026 | node | ||
12027 | [ | ||
12028 | id 10 | ||
12029 | graphics | ||
12030 | [ | ||
12031 | w 161.70000000000002 | ||
12032 | h 40 | ||
12033 | type "rectangle" | ||
12034 | fill "#FFFFFF" | ||
12035 | fill2 "#FFFFFF" | ||
12036 | outline "#000000" | ||
12037 | ] | ||
12038 | LabelGraphics | ||
12039 | [ | ||
12040 | text "null" | ||
12041 | outline "#000000" | ||
12042 | fill "#FFFFFF" | ||
12043 | fontSize 16 | ||
12044 | fontName "Monospace" | ||
12045 | autoSizePolicy "node_width" | ||
12046 | anchor "t" | ||
12047 | borderDistance 0.0 | ||
12048 | ] | ||
12049 | LabelGraphics | ||
12050 | [ | ||
12051 | text " | ||
12052 | FAMTerminator class | ||
12053 | " | ||
12054 | fontSize 14 | ||
12055 | fontName "Consolas" | ||
12056 | alignment "left" | ||
12057 | anchor "tl" | ||
12058 | borderDistance 6 | ||
12059 | ] | ||
12060 | ] | ||
12061 | |||
12062 | node | ||
12063 | [ | ||
12064 | id 11 | ||
12065 | graphics | ||
12066 | [ | ||
12067 | w 177.10000000000002 | ||
12068 | h 54 | ||
12069 | type "rectangle" | ||
12070 | fill "#FFFFFF" | ||
12071 | fill2 "#FFFFFF" | ||
12072 | outline "#000000" | ||
12073 | ] | ||
12074 | LabelGraphics | ||
12075 | [ | ||
12076 | text "null" | ||
12077 | outline "#000000" | ||
12078 | fill "#FFFFFF" | ||
12079 | fontSize 16 | ||
12080 | fontName "Monospace" | ||
12081 | autoSizePolicy "node_width" | ||
12082 | anchor "t" | ||
12083 | borderDistance 0.0 | ||
12084 | ] | ||
12085 | LabelGraphics | ||
12086 | [ | ||
12087 | text " | ||
12088 | FunctionalInput class | ||
12089 | FunctionalData class | ||
12090 | " | ||
12091 | fontSize 14 | ||
12092 | fontName "Consolas" | ||
12093 | alignment "left" | ||
12094 | anchor "tl" | ||
12095 | borderDistance 6 | ||
12096 | ] | ||
12097 | ] | ||
12098 | |||
12099 | node | ||
12100 | [ | ||
12101 | id 12 | ||
12102 | graphics | ||
12103 | [ | ||
12104 | w 112.2 | ||
12105 | h 26 | ||
12106 | type "rectangle" | ||
12107 | fill "#FFFFFF" | ||
12108 | fill2 "#FFFFFF" | ||
12109 | outline "#000000" | ||
12110 | ] | ||
12111 | LabelGraphics | ||
12112 | [ | ||
12113 | text "New Integers" | ||
12114 | outline "#000000" | ||
12115 | fill "#FFFFFF" | ||
12116 | fontSize 16 | ||
12117 | fontName "Monospace" | ||
12118 | autoSizePolicy "node_width" | ||
12119 | anchor "t" | ||
12120 | borderDistance 0.0 | ||
12121 | ] | ||
12122 | LabelGraphics | ||
12123 | [ | ||
12124 | text " | ||
12125 | " | ||
12126 | fontSize 14 | ||
12127 | fontName "Consolas" | ||
12128 | alignment "left" | ||
12129 | anchor "tl" | ||
12130 | borderDistance 6 | ||
12131 | ] | ||
12132 | ] | ||
12133 | |||
12134 | node | ||
12135 | [ | ||
12136 | id 13 | ||
12137 | graphics | ||
12138 | [ | ||
12139 | w 85.80000000000001 | ||
12140 | h 26 | ||
12141 | type "rectangle" | ||
12142 | fill "#FFFFFF" | ||
12143 | fill2 "#FFFFFF" | ||
12144 | outline "#000000" | ||
12145 | ] | ||
12146 | LabelGraphics | ||
12147 | [ | ||
12148 | text "New Reals" | ||
12149 | outline "#000000" | ||
12150 | fill "#FFFFFF" | ||
12151 | fontSize 16 | ||
12152 | fontName "Monospace" | ||
12153 | autoSizePolicy "node_width" | ||
12154 | anchor "t" | ||
12155 | borderDistance 0.0 | ||
12156 | ] | ||
12157 | LabelGraphics | ||
12158 | [ | ||
12159 | text " | ||
12160 | " | ||
12161 | fontSize 14 | ||
12162 | fontName "Consolas" | ||
12163 | alignment "left" | ||
12164 | anchor "tl" | ||
12165 | borderDistance 6 | ||
12166 | ] | ||
12167 | ] | ||
12168 | |||
12169 | node | ||
12170 | [ | ||
12171 | id 14 | ||
12172 | graphics | ||
12173 | [ | ||
12174 | w 103.4 | ||
12175 | h 26 | ||
12176 | type "rectangle" | ||
12177 | fill "#FFFFFF" | ||
12178 | fill2 "#FFFFFF" | ||
12179 | outline "#000000" | ||
12180 | ] | ||
12181 | LabelGraphics | ||
12182 | [ | ||
12183 | text "New Strings" | ||
12184 | outline "#000000" | ||
12185 | fill "#FFFFFF" | ||
12186 | fontSize 16 | ||
12187 | fontName "Monospace" | ||
12188 | autoSizePolicy "node_width" | ||
12189 | anchor "t" | ||
12190 | borderDistance 0.0 | ||
12191 | ] | ||
12192 | LabelGraphics | ||
12193 | [ | ||
12194 | text " | ||
12195 | " | ||
12196 | fontSize 14 | ||
12197 | fontName "Consolas" | ||
12198 | alignment "left" | ||
12199 | anchor "tl" | ||
12200 | borderDistance 6 | ||
12201 | ] | ||
12202 | ] | ||
12203 | |||
12204 | node | ||
12205 | [ | ||
12206 | id 15 | ||
12207 | graphics | ||
12208 | [ | ||
12209 | w 103.4 | ||
12210 | h 26 | ||
12211 | type "rectangle" | ||
12212 | fill "#FFFFFF" | ||
12213 | fill2 "#FFFFFF" | ||
12214 | outline "#000000" | ||
12215 | ] | ||
12216 | LabelGraphics | ||
12217 | [ | ||
12218 | text "New Objects" | ||
12219 | outline "#000000" | ||
12220 | fill "#FFFFFF" | ||
12221 | fontSize 16 | ||
12222 | fontName "Monospace" | ||
12223 | autoSizePolicy "node_width" | ||
12224 | anchor "t" | ||
12225 | borderDistance 0.0 | ||
12226 | ] | ||
12227 | LabelGraphics | ||
12228 | [ | ||
12229 | text " | ||
12230 | " | ||
12231 | fontSize 14 | ||
12232 | fontName "Consolas" | ||
12233 | alignment "left" | ||
12234 | anchor "tl" | ||
12235 | borderDistance 6 | ||
12236 | ] | ||
12237 | ] | ||
12238 | edge | ||
12239 | [ | ||
12240 | source 10 | ||
12241 | target 8 | ||
12242 | graphics | ||
12243 | [ | ||
12244 | fill "#000000" | ||
12245 | targetArrow "standard" | ||
12246 | ] | ||
12247 | LabelGraphics | ||
12248 | [ | ||
12249 | text "data reference FAMTerminator" | ||
12250 | fontSize 14 | ||
12251 | fontName "Consolas" | ||
12252 | configuration "AutoFlippingLabel" | ||
12253 | model "six_pos" | ||
12254 | position "thead" | ||
12255 | ] | ||
12256 | ] | ||
12257 | edge | ||
12258 | [ | ||
12259 | source 9 | ||
12260 | target 8 | ||
12261 | graphics | ||
12262 | [ | ||
12263 | fill "#000000" | ||
12264 | targetArrow "standard" | ||
12265 | ] | ||
12266 | LabelGraphics | ||
12267 | [ | ||
12268 | text "from reference InformationLink" | ||
12269 | fontSize 14 | ||
12270 | fontName "Consolas" | ||
12271 | configuration "AutoFlippingLabel" | ||
12272 | model "six_pos" | ||
12273 | position "thead" | ||
12274 | ] | ||
12275 | ] | ||
12276 | edge | ||
12277 | [ | ||
12278 | source 9 | ||
12279 | target 6 | ||
12280 | graphics | ||
12281 | [ | ||
12282 | fill "#000000" | ||
12283 | targetArrow "standard" | ||
12284 | ] | ||
12285 | LabelGraphics | ||
12286 | [ | ||
12287 | text "to reference InformationLink" | ||
12288 | fontSize 14 | ||
12289 | fontName "Consolas" | ||
12290 | configuration "AutoFlippingLabel" | ||
12291 | model "six_pos" | ||
12292 | position "thead" | ||
12293 | ] | ||
12294 | ] | ||
12295 | edge | ||
12296 | [ | ||
12297 | source 5 | ||
12298 | target 6 | ||
12299 | graphics | ||
12300 | [ | ||
12301 | fill "#000000" | ||
12302 | width 3 | ||
12303 | targetArrow "standard" | ||
12304 | ] | ||
12305 | LabelGraphics | ||
12306 | [ | ||
12307 | text "data reference FunctionalInterface" | ||
12308 | fontSize 14 | ||
12309 | fontName "Consolas" | ||
12310 | configuration "AutoFlippingLabel" | ||
12311 | model "six_pos" | ||
12312 | position "thead" | ||
12313 | ] | ||
12314 | ] | ||
12315 | edge | ||
12316 | [ | ||
12317 | source 5 | ||
12318 | target 7 | ||
12319 | graphics | ||
12320 | [ | ||
12321 | fill "#000000" | ||
12322 | width 3 | ||
12323 | targetArrow "standard" | ||
12324 | ] | ||
12325 | LabelGraphics | ||
12326 | [ | ||
12327 | text "data reference FunctionalInterface" | ||
12328 | fontSize 14 | ||
12329 | fontName "Consolas" | ||
12330 | configuration "AutoFlippingLabel" | ||
12331 | model "six_pos" | ||
12332 | position "thead" | ||
12333 | ] | ||
12334 | ] | ||
12335 | edge | ||
12336 | [ | ||
12337 | source 5 | ||
12338 | target 8 | ||
12339 | graphics | ||
12340 | [ | ||
12341 | fill "#000000" | ||
12342 | width 3 | ||
12343 | targetArrow "standard" | ||
12344 | ] | ||
12345 | LabelGraphics | ||
12346 | [ | ||
12347 | text "data reference FunctionalInterface" | ||
12348 | fontSize 14 | ||
12349 | fontName "Consolas" | ||
12350 | configuration "AutoFlippingLabel" | ||
12351 | model "six_pos" | ||
12352 | position "thead" | ||
12353 | ] | ||
12354 | ] | ||
12355 | edge | ||
12356 | [ | ||
12357 | source 5 | ||
12358 | target 11 | ||
12359 | graphics | ||
12360 | [ | ||
12361 | fill "#000000" | ||
12362 | width 3 | ||
12363 | targetArrow "standard" | ||
12364 | ] | ||
12365 | LabelGraphics | ||
12366 | [ | ||
12367 | text "data reference FunctionalInterface" | ||
12368 | fontSize 14 | ||
12369 | fontName "Consolas" | ||
12370 | configuration "AutoFlippingLabel" | ||
12371 | model "six_pos" | ||
12372 | position "thead" | ||
12373 | ] | ||
12374 | ] | ||
12375 | edge | ||
12376 | [ | ||
12377 | source 6 | ||
12378 | target 9 | ||
12379 | graphics | ||
12380 | [ | ||
12381 | fill "#000000" | ||
12382 | targetArrow "standard" | ||
12383 | ] | ||
12384 | LabelGraphics | ||
12385 | [ | ||
12386 | text "IncomingLinks reference FunctionalInput" | ||
12387 | fontSize 14 | ||
12388 | fontName "Consolas" | ||
12389 | configuration "AutoFlippingLabel" | ||
12390 | model "six_pos" | ||
12391 | position "thead" | ||
12392 | ] | ||
12393 | ] | ||
12394 | edge | ||
12395 | [ | ||
12396 | source 8 | ||
12397 | target 9 | ||
12398 | graphics | ||
12399 | [ | ||
12400 | fill "#000000" | ||
12401 | width 3 | ||
12402 | targetArrow "standard" | ||
12403 | ] | ||
12404 | LabelGraphics | ||
12405 | [ | ||
12406 | text "outgoingLinks reference FunctionalOutput" | ||
12407 | fontSize 14 | ||
12408 | fontName "Consolas" | ||
12409 | configuration "AutoFlippingLabel" | ||
12410 | model "six_pos" | ||
12411 | position "thead" | ||
12412 | ] | ||
12413 | ] | ||
12414 | edge | ||
12415 | [ | ||
12416 | source 8 | ||
12417 | target 10 | ||
12418 | graphics | ||
12419 | [ | ||
12420 | fill "#000000" | ||
12421 | width 3 | ||
12422 | targetArrow "standard" | ||
12423 | ] | ||
12424 | LabelGraphics | ||
12425 | [ | ||
12426 | text "terminator reference FunctionalData" | ||
12427 | fontSize 14 | ||
12428 | fontName "Consolas" | ||
12429 | configuration "AutoFlippingLabel" | ||
12430 | model "six_pos" | ||
12431 | position "thead" | ||
12432 | ] | ||
12433 | ] | ||
12434 | edge | ||
12435 | [ | ||
12436 | source 6 | ||
12437 | target 5 | ||
12438 | graphics | ||
12439 | [ | ||
12440 | fill "#000000" | ||
12441 | targetArrow "standard" | ||
12442 | ] | ||
12443 | LabelGraphics | ||
12444 | [ | ||
12445 | text "interface reference FunctionalData" | ||
12446 | fontSize 14 | ||
12447 | fontName "Consolas" | ||
12448 | configuration "AutoFlippingLabel" | ||
12449 | model "six_pos" | ||
12450 | position "thead" | ||
12451 | ] | ||
12452 | ] | ||
12453 | edge | ||
12454 | [ | ||
12455 | source 7 | ||
12456 | target 5 | ||
12457 | graphics | ||
12458 | [ | ||
12459 | fill "#000000" | ||
12460 | targetArrow "standard" | ||
12461 | ] | ||
12462 | LabelGraphics | ||
12463 | [ | ||
12464 | text "interface reference FunctionalData" | ||
12465 | fontSize 14 | ||
12466 | fontName "Consolas" | ||
12467 | configuration "AutoFlippingLabel" | ||
12468 | model "six_pos" | ||
12469 | position "thead" | ||
12470 | ] | ||
12471 | ] | ||
12472 | edge | ||
12473 | [ | ||
12474 | source 8 | ||
12475 | target 5 | ||
12476 | graphics | ||
12477 | [ | ||
12478 | fill "#000000" | ||
12479 | targetArrow "standard" | ||
12480 | ] | ||
12481 | LabelGraphics | ||
12482 | [ | ||
12483 | text "interface reference FunctionalData" | ||
12484 | fontSize 14 | ||
12485 | fontName "Consolas" | ||
12486 | configuration "AutoFlippingLabel" | ||
12487 | model "six_pos" | ||
12488 | position "thead" | ||
12489 | ] | ||
12490 | ] | ||
12491 | edge | ||
12492 | [ | ||
12493 | source 11 | ||
12494 | target 5 | ||
12495 | graphics | ||
12496 | [ | ||
12497 | fill "#000000" | ||
12498 | targetArrow "standard" | ||
12499 | ] | ||
12500 | LabelGraphics | ||
12501 | [ | ||
12502 | text "interface reference FunctionalData" | ||
12503 | fontSize 14 | ||
12504 | fontName "Consolas" | ||
12505 | configuration "AutoFlippingLabel" | ||
12506 | model "six_pos" | ||
12507 | position "thead" | ||
12508 | ] | ||
12509 | ] | ||
12510 | ] | ||
12511 | graph | ||
12512 | [ | ||
12513 | node | ||
12514 | [ | ||
12515 | id 0 | ||
12516 | graphics | ||
12517 | [ | ||
12518 | w 226.60000000000002 | ||
12519 | h 40 | ||
12520 | type "rectangle" | ||
12521 | fill "#FFFFFF" | ||
12522 | fill2 "#FFFFFF" | ||
12523 | outline "#000000" | ||
12524 | ] | ||
12525 | LabelGraphics | ||
12526 | [ | ||
12527 | text "Root literal FunctionType" | ||
12528 | outline "#000000" | ||
12529 | fill "#FFFFFF" | ||
12530 | fontSize 16 | ||
12531 | fontName "Monospace" | ||
12532 | autoSizePolicy "node_width" | ||
12533 | anchor "t" | ||
12534 | borderDistance 0.0 | ||
12535 | ] | ||
12536 | LabelGraphics | ||
12537 | [ | ||
12538 | text " | ||
12539 | FunctionType enum | ||
12540 | " | ||
12541 | fontSize 14 | ||
12542 | fontName "Consolas" | ||
12543 | alignment "left" | ||
12544 | anchor "tl" | ||
12545 | borderDistance 6 | ||
12546 | ] | ||
12547 | ] | ||
12548 | |||
12549 | node | ||
12550 | [ | ||
12551 | id 1 | ||
12552 | graphics | ||
12553 | [ | ||
12554 | w 297.0 | ||
12555 | h 40 | ||
12556 | type "rectangle" | ||
12557 | fill "#FFFFFF" | ||
12558 | fill2 "#FFFFFF" | ||
12559 | outline "#000000" | ||
12560 | ] | ||
12561 | LabelGraphics | ||
12562 | [ | ||
12563 | text "Intermediate literal FunctionType" | ||
12564 | outline "#000000" | ||
12565 | fill "#FFFFFF" | ||
12566 | fontSize 16 | ||
12567 | fontName "Monospace" | ||
12568 | autoSizePolicy "node_width" | ||
12569 | anchor "t" | ||
12570 | borderDistance 0.0 | ||
12571 | ] | ||
12572 | LabelGraphics | ||
12573 | [ | ||
12574 | text " | ||
12575 | FunctionType enum | ||
12576 | " | ||
12577 | fontSize 14 | ||
12578 | fontName "Consolas" | ||
12579 | alignment "left" | ||
12580 | anchor "tl" | ||
12581 | borderDistance 6 | ||
12582 | ] | ||
12583 | ] | ||
12584 | |||
12585 | node | ||
12586 | [ | ||
12587 | id 2 | ||
12588 | graphics | ||
12589 | [ | ||
12590 | w 226.60000000000002 | ||
12591 | h 40 | ||
12592 | type "rectangle" | ||
12593 | fill "#FFFFFF" | ||
12594 | fill2 "#FFFFFF" | ||
12595 | outline "#000000" | ||
12596 | ] | ||
12597 | LabelGraphics | ||
12598 | [ | ||
12599 | text "Leaf literal FunctionType" | ||
12600 | outline "#000000" | ||
12601 | fill "#FFFFFF" | ||
12602 | fontSize 16 | ||
12603 | fontName "Monospace" | ||
12604 | autoSizePolicy "node_width" | ||
12605 | anchor "t" | ||
12606 | borderDistance 0.0 | ||
12607 | ] | ||
12608 | LabelGraphics | ||
12609 | [ | ||
12610 | text " | ||
12611 | FunctionType enum | ||
12612 | " | ||
12613 | fontSize 14 | ||
12614 | fontName "Consolas" | ||
12615 | alignment "left" | ||
12616 | anchor "tl" | ||
12617 | borderDistance 6 | ||
12618 | ] | ||
12619 | ] | ||
12620 | |||
12621 | node | ||
12622 | [ | ||
12623 | id 3 | ||
12624 | graphics | ||
12625 | [ | ||
12626 | w 41.800000000000004 | ||
12627 | h 26 | ||
12628 | type "rectangle" | ||
12629 | fill "#FFFFFF" | ||
12630 | fill2 "#FFFFFF" | ||
12631 | outline "#000000" | ||
12632 | ] | ||
12633 | LabelGraphics | ||
12634 | [ | ||
12635 | text "true" | ||
12636 | outline "#000000" | ||
12637 | fill "#FFFFFF" | ||
12638 | fontSize 16 | ||
12639 | fontName "Monospace" | ||
12640 | autoSizePolicy "node_width" | ||
12641 | anchor "t" | ||
12642 | borderDistance 0.0 | ||
12643 | ] | ||
12644 | LabelGraphics | ||
12645 | [ | ||
12646 | text " | ||
12647 | " | ||
12648 | fontSize 14 | ||
12649 | fontName "Consolas" | ||
12650 | alignment "left" | ||
12651 | anchor "tl" | ||
12652 | borderDistance 6 | ||
12653 | ] | ||
12654 | ] | ||
12655 | |||
12656 | node | ||
12657 | [ | ||
12658 | id 4 | ||
12659 | graphics | ||
12660 | [ | ||
12661 | w 50.6 | ||
12662 | h 26 | ||
12663 | type "rectangle" | ||
12664 | fill "#FFFFFF" | ||
12665 | fill2 "#FFFFFF" | ||
12666 | outline "#000000" | ||
12667 | ] | ||
12668 | LabelGraphics | ||
12669 | [ | ||
12670 | text "false" | ||
12671 | outline "#000000" | ||
12672 | fill "#FFFFFF" | ||
12673 | fontSize 16 | ||
12674 | fontName "Monospace" | ||
12675 | autoSizePolicy "node_width" | ||
12676 | anchor "t" | ||
12677 | borderDistance 0.0 | ||
12678 | ] | ||
12679 | LabelGraphics | ||
12680 | [ | ||
12681 | text " | ||
12682 | " | ||
12683 | fontSize 14 | ||
12684 | fontName "Consolas" | ||
12685 | alignment "left" | ||
12686 | anchor "tl" | ||
12687 | borderDistance 6 | ||
12688 | ] | ||
12689 | ] | ||
12690 | |||
12691 | node | ||
12692 | [ | ||
12693 | id 5 | ||
12694 | graphics | ||
12695 | [ | ||
12696 | w 207.9 | ||
12697 | h 40 | ||
12698 | type "rectangle" | ||
12699 | fill "#FFFFFF" | ||
12700 | fill2 "#FFFFFF" | ||
12701 | outline "#000000" | ||
12702 | ] | ||
12703 | LabelGraphics | ||
12704 | [ | ||
12705 | text "null" | ||
12706 | outline "#000000" | ||
12707 | fill "#FFFFFF" | ||
12708 | fontSize 16 | ||
12709 | fontName "Monospace" | ||
12710 | autoSizePolicy "node_width" | ||
12711 | anchor "t" | ||
12712 | borderDistance 0.0 | ||
12713 | ] | ||
12714 | LabelGraphics | ||
12715 | [ | ||
12716 | text " | ||
12717 | FunctionalInterface class | ||
12718 | " | ||
12719 | fontSize 14 | ||
12720 | fontName "Consolas" | ||
12721 | alignment "left" | ||
12722 | anchor "tl" | ||
12723 | borderDistance 6 | ||
12724 | ] | ||
12725 | ] | ||
12726 | |||
12727 | node | ||
12728 | [ | ||
12729 | id 6 | ||
12730 | graphics | ||
12731 | [ | ||
12732 | w 177.10000000000002 | ||
12733 | h 54 | ||
12734 | type "rectangle" | ||
12735 | fill "#FFFFFF" | ||
12736 | fill2 "#FFFFFF" | ||
12737 | outline "#000000" | ||
12738 | ] | ||
12739 | LabelGraphics | ||
12740 | [ | ||
12741 | text "null" | ||
12742 | outline "#000000" | ||
12743 | fill "#FFFFFF" | ||
12744 | fontSize 16 | ||
12745 | fontName "Monospace" | ||
12746 | autoSizePolicy "node_width" | ||
12747 | anchor "t" | ||
12748 | borderDistance 0.0 | ||
12749 | ] | ||
12750 | LabelGraphics | ||
12751 | [ | ||
12752 | text " | ||
12753 | FunctionalInput class | ||
12754 | FunctionalData class | ||
12755 | " | ||
12756 | fontSize 14 | ||
12757 | fontName "Consolas" | ||
12758 | alignment "left" | ||
12759 | anchor "tl" | ||
12760 | borderDistance 6 | ||
12761 | ] | ||
12762 | ] | ||
12763 | |||
12764 | node | ||
12765 | [ | ||
12766 | id 7 | ||
12767 | graphics | ||
12768 | [ | ||
12769 | w 177.10000000000002 | ||
12770 | h 54 | ||
12771 | type "rectangle" | ||
12772 | fill "#FFFFFF" | ||
12773 | fill2 "#FFFFFF" | ||
12774 | outline "#000000" | ||
12775 | ] | ||
12776 | LabelGraphics | ||
12777 | [ | ||
12778 | text "null" | ||
12779 | outline "#000000" | ||
12780 | fill "#FFFFFF" | ||
12781 | fontSize 16 | ||
12782 | fontName "Monospace" | ||
12783 | autoSizePolicy "node_width" | ||
12784 | anchor "t" | ||
12785 | borderDistance 0.0 | ||
12786 | ] | ||
12787 | LabelGraphics | ||
12788 | [ | ||
12789 | text " | ||
12790 | FunctionalInput class | ||
12791 | FunctionalData class | ||
12792 | " | ||
12793 | fontSize 14 | ||
12794 | fontName "Consolas" | ||
12795 | alignment "left" | ||
12796 | anchor "tl" | ||
12797 | borderDistance 6 | ||
12798 | ] | ||
12799 | ] | ||
12800 | |||
12801 | node | ||
12802 | [ | ||
12803 | id 8 | ||
12804 | graphics | ||
12805 | [ | ||
12806 | w 161.70000000000002 | ||
12807 | h 40 | ||
12808 | type "rectangle" | ||
12809 | fill "#FFFFFF" | ||
12810 | fill2 "#FFFFFF" | ||
12811 | outline "#000000" | ||
12812 | ] | ||
12813 | LabelGraphics | ||
12814 | [ | ||
12815 | text "null" | ||
12816 | outline "#000000" | ||
12817 | fill "#FFFFFF" | ||
12818 | fontSize 16 | ||
12819 | fontName "Monospace" | ||
12820 | autoSizePolicy "node_width" | ||
12821 | anchor "t" | ||
12822 | borderDistance 0.0 | ||
12823 | ] | ||
12824 | LabelGraphics | ||
12825 | [ | ||
12826 | text " | ||
12827 | FAMTerminator class | ||
12828 | " | ||
12829 | fontSize 14 | ||
12830 | fontName "Consolas" | ||
12831 | alignment "left" | ||
12832 | anchor "tl" | ||
12833 | borderDistance 6 | ||
12834 | ] | ||
12835 | ] | ||
12836 | |||
12837 | node | ||
12838 | [ | ||
12839 | id 9 | ||
12840 | graphics | ||
12841 | [ | ||
12842 | w 177.10000000000002 | ||
12843 | h 54 | ||
12844 | type "rectangle" | ||
12845 | fill "#FFFFFF" | ||
12846 | fill2 "#FFFFFF" | ||
12847 | outline "#000000" | ||
12848 | ] | ||
12849 | LabelGraphics | ||
12850 | [ | ||
12851 | text "null" | ||
12852 | outline "#000000" | ||
12853 | fill "#FFFFFF" | ||
12854 | fontSize 16 | ||
12855 | fontName "Monospace" | ||
12856 | autoSizePolicy "node_width" | ||
12857 | anchor "t" | ||
12858 | borderDistance 0.0 | ||
12859 | ] | ||
12860 | LabelGraphics | ||
12861 | [ | ||
12862 | text " | ||
12863 | FunctionalInput class | ||
12864 | FunctionalData class | ||
12865 | " | ||
12866 | fontSize 14 | ||
12867 | fontName "Consolas" | ||
12868 | alignment "left" | ||
12869 | anchor "tl" | ||
12870 | borderDistance 6 | ||
12871 | ] | ||
12872 | ] | ||
12873 | |||
12874 | node | ||
12875 | [ | ||
12876 | id 10 | ||
12877 | graphics | ||
12878 | [ | ||
12879 | w 177.10000000000002 | ||
12880 | h 54 | ||
12881 | type "rectangle" | ||
12882 | fill "#FFFFFF" | ||
12883 | fill2 "#FFFFFF" | ||
12884 | outline "#000000" | ||
12885 | ] | ||
12886 | LabelGraphics | ||
12887 | [ | ||
12888 | text "null" | ||
12889 | outline "#000000" | ||
12890 | fill "#FFFFFF" | ||
12891 | fontSize 16 | ||
12892 | fontName "Monospace" | ||
12893 | autoSizePolicy "node_width" | ||
12894 | anchor "t" | ||
12895 | borderDistance 0.0 | ||
12896 | ] | ||
12897 | LabelGraphics | ||
12898 | [ | ||
12899 | text " | ||
12900 | FunctionalInput class | ||
12901 | FunctionalData class | ||
12902 | " | ||
12903 | fontSize 14 | ||
12904 | fontName "Consolas" | ||
12905 | alignment "left" | ||
12906 | anchor "tl" | ||
12907 | borderDistance 6 | ||
12908 | ] | ||
12909 | ] | ||
12910 | |||
12911 | node | ||
12912 | [ | ||
12913 | id 11 | ||
12914 | graphics | ||
12915 | [ | ||
12916 | w 177.10000000000002 | ||
12917 | h 54 | ||
12918 | type "rectangle" | ||
12919 | fill "#FFFFFF" | ||
12920 | fill2 "#FFFFFF" | ||
12921 | outline "#000000" | ||
12922 | ] | ||
12923 | LabelGraphics | ||
12924 | [ | ||
12925 | text "null" | ||
12926 | outline "#000000" | ||
12927 | fill "#FFFFFF" | ||
12928 | fontSize 16 | ||
12929 | fontName "Monospace" | ||
12930 | autoSizePolicy "node_width" | ||
12931 | anchor "t" | ||
12932 | borderDistance 0.0 | ||
12933 | ] | ||
12934 | LabelGraphics | ||
12935 | [ | ||
12936 | text " | ||
12937 | FunctionalInput class | ||
12938 | FunctionalData class | ||
12939 | " | ||
12940 | fontSize 14 | ||
12941 | fontName "Consolas" | ||
12942 | alignment "left" | ||
12943 | anchor "tl" | ||
12944 | borderDistance 6 | ||
12945 | ] | ||
12946 | ] | ||
12947 | |||
12948 | node | ||
12949 | [ | ||
12950 | id 12 | ||
12951 | graphics | ||
12952 | [ | ||
12953 | w 112.2 | ||
12954 | h 26 | ||
12955 | type "rectangle" | ||
12956 | fill "#FFFFFF" | ||
12957 | fill2 "#FFFFFF" | ||
12958 | outline "#000000" | ||
12959 | ] | ||
12960 | LabelGraphics | ||
12961 | [ | ||
12962 | text "New Integers" | ||
12963 | outline "#000000" | ||
12964 | fill "#FFFFFF" | ||
12965 | fontSize 16 | ||
12966 | fontName "Monospace" | ||
12967 | autoSizePolicy "node_width" | ||
12968 | anchor "t" | ||
12969 | borderDistance 0.0 | ||
12970 | ] | ||
12971 | LabelGraphics | ||
12972 | [ | ||
12973 | text " | ||
12974 | " | ||
12975 | fontSize 14 | ||
12976 | fontName "Consolas" | ||
12977 | alignment "left" | ||
12978 | anchor "tl" | ||
12979 | borderDistance 6 | ||
12980 | ] | ||
12981 | ] | ||
12982 | |||
12983 | node | ||
12984 | [ | ||
12985 | id 13 | ||
12986 | graphics | ||
12987 | [ | ||
12988 | w 85.80000000000001 | ||
12989 | h 26 | ||
12990 | type "rectangle" | ||
12991 | fill "#FFFFFF" | ||
12992 | fill2 "#FFFFFF" | ||
12993 | outline "#000000" | ||
12994 | ] | ||
12995 | LabelGraphics | ||
12996 | [ | ||
12997 | text "New Reals" | ||
12998 | outline "#000000" | ||
12999 | fill "#FFFFFF" | ||
13000 | fontSize 16 | ||
13001 | fontName "Monospace" | ||
13002 | autoSizePolicy "node_width" | ||
13003 | anchor "t" | ||
13004 | borderDistance 0.0 | ||
13005 | ] | ||
13006 | LabelGraphics | ||
13007 | [ | ||
13008 | text " | ||
13009 | " | ||
13010 | fontSize 14 | ||
13011 | fontName "Consolas" | ||
13012 | alignment "left" | ||
13013 | anchor "tl" | ||
13014 | borderDistance 6 | ||
13015 | ] | ||
13016 | ] | ||
13017 | |||
13018 | node | ||
13019 | [ | ||
13020 | id 14 | ||
13021 | graphics | ||
13022 | [ | ||
13023 | w 103.4 | ||
13024 | h 26 | ||
13025 | type "rectangle" | ||
13026 | fill "#FFFFFF" | ||
13027 | fill2 "#FFFFFF" | ||
13028 | outline "#000000" | ||
13029 | ] | ||
13030 | LabelGraphics | ||
13031 | [ | ||
13032 | text "New Strings" | ||
13033 | outline "#000000" | ||
13034 | fill "#FFFFFF" | ||
13035 | fontSize 16 | ||
13036 | fontName "Monospace" | ||
13037 | autoSizePolicy "node_width" | ||
13038 | anchor "t" | ||
13039 | borderDistance 0.0 | ||
13040 | ] | ||
13041 | LabelGraphics | ||
13042 | [ | ||
13043 | text " | ||
13044 | " | ||
13045 | fontSize 14 | ||
13046 | fontName "Consolas" | ||
13047 | alignment "left" | ||
13048 | anchor "tl" | ||
13049 | borderDistance 6 | ||
13050 | ] | ||
13051 | ] | ||
13052 | |||
13053 | node | ||
13054 | [ | ||
13055 | id 15 | ||
13056 | graphics | ||
13057 | [ | ||
13058 | w 103.4 | ||
13059 | h 26 | ||
13060 | type "rectangle" | ||
13061 | fill "#FFFFFF" | ||
13062 | fill2 "#FFFFFF" | ||
13063 | outline "#000000" | ||
13064 | ] | ||
13065 | LabelGraphics | ||
13066 | [ | ||
13067 | text "New Objects" | ||
13068 | outline "#000000" | ||
13069 | fill "#FFFFFF" | ||
13070 | fontSize 16 | ||
13071 | fontName "Monospace" | ||
13072 | autoSizePolicy "node_width" | ||
13073 | anchor "t" | ||
13074 | borderDistance 0.0 | ||
13075 | ] | ||
13076 | LabelGraphics | ||
13077 | [ | ||
13078 | text " | ||
13079 | " | ||
13080 | fontSize 14 | ||
13081 | fontName "Consolas" | ||
13082 | alignment "left" | ||
13083 | anchor "tl" | ||
13084 | borderDistance 6 | ||
13085 | ] | ||
13086 | ] | ||
13087 | edge | ||
13088 | [ | ||
13089 | source 8 | ||
13090 | target 6 | ||
13091 | graphics | ||
13092 | [ | ||
13093 | fill "#000000" | ||
13094 | targetArrow "standard" | ||
13095 | ] | ||
13096 | LabelGraphics | ||
13097 | [ | ||
13098 | text "data reference FAMTerminator" | ||
13099 | fontSize 14 | ||
13100 | fontName "Consolas" | ||
13101 | configuration "AutoFlippingLabel" | ||
13102 | model "six_pos" | ||
13103 | position "thead" | ||
13104 | ] | ||
13105 | ] | ||
13106 | edge | ||
13107 | [ | ||
13108 | source 5 | ||
13109 | target 6 | ||
13110 | graphics | ||
13111 | [ | ||
13112 | fill "#000000" | ||
13113 | width 3 | ||
13114 | targetArrow "standard" | ||
13115 | ] | ||
13116 | LabelGraphics | ||
13117 | [ | ||
13118 | text "data reference FunctionalInterface" | ||
13119 | fontSize 14 | ||
13120 | fontName "Consolas" | ||
13121 | configuration "AutoFlippingLabel" | ||
13122 | model "six_pos" | ||
13123 | position "thead" | ||
13124 | ] | ||
13125 | ] | ||
13126 | edge | ||
13127 | [ | ||
13128 | source 5 | ||
13129 | target 7 | ||
13130 | graphics | ||
13131 | [ | ||
13132 | fill "#000000" | ||
13133 | width 3 | ||
13134 | targetArrow "standard" | ||
13135 | ] | ||
13136 | LabelGraphics | ||
13137 | [ | ||
13138 | text "data reference FunctionalInterface" | ||
13139 | fontSize 14 | ||
13140 | fontName "Consolas" | ||
13141 | configuration "AutoFlippingLabel" | ||
13142 | model "six_pos" | ||
13143 | position "thead" | ||
13144 | ] | ||
13145 | ] | ||
13146 | edge | ||
13147 | [ | ||
13148 | source 5 | ||
13149 | target 9 | ||
13150 | graphics | ||
13151 | [ | ||
13152 | fill "#000000" | ||
13153 | width 3 | ||
13154 | targetArrow "standard" | ||
13155 | ] | ||
13156 | LabelGraphics | ||
13157 | [ | ||
13158 | text "data reference FunctionalInterface" | ||
13159 | fontSize 14 | ||
13160 | fontName "Consolas" | ||
13161 | configuration "AutoFlippingLabel" | ||
13162 | model "six_pos" | ||
13163 | position "thead" | ||
13164 | ] | ||
13165 | ] | ||
13166 | edge | ||
13167 | [ | ||
13168 | source 5 | ||
13169 | target 10 | ||
13170 | graphics | ||
13171 | [ | ||
13172 | fill "#000000" | ||
13173 | width 3 | ||
13174 | targetArrow "standard" | ||
13175 | ] | ||
13176 | LabelGraphics | ||
13177 | [ | ||
13178 | text "data reference FunctionalInterface" | ||
13179 | fontSize 14 | ||
13180 | fontName "Consolas" | ||
13181 | configuration "AutoFlippingLabel" | ||
13182 | model "six_pos" | ||
13183 | position "thead" | ||
13184 | ] | ||
13185 | ] | ||
13186 | edge | ||
13187 | [ | ||
13188 | source 5 | ||
13189 | target 11 | ||
13190 | graphics | ||
13191 | [ | ||
13192 | fill "#000000" | ||
13193 | width 3 | ||
13194 | targetArrow "standard" | ||
13195 | ] | ||
13196 | LabelGraphics | ||
13197 | [ | ||
13198 | text "data reference FunctionalInterface" | ||
13199 | fontSize 14 | ||
13200 | fontName "Consolas" | ||
13201 | configuration "AutoFlippingLabel" | ||
13202 | model "six_pos" | ||
13203 | position "thead" | ||
13204 | ] | ||
13205 | ] | ||
13206 | edge | ||
13207 | [ | ||
13208 | source 6 | ||
13209 | target 8 | ||
13210 | graphics | ||
13211 | [ | ||
13212 | fill "#000000" | ||
13213 | width 3 | ||
13214 | targetArrow "standard" | ||
13215 | ] | ||
13216 | LabelGraphics | ||
13217 | [ | ||
13218 | text "terminator reference FunctionalData" | ||
13219 | fontSize 14 | ||
13220 | fontName "Consolas" | ||
13221 | configuration "AutoFlippingLabel" | ||
13222 | model "six_pos" | ||
13223 | position "thead" | ||
13224 | ] | ||
13225 | ] | ||
13226 | edge | ||
13227 | [ | ||
13228 | source 6 | ||
13229 | target 5 | ||
13230 | graphics | ||
13231 | [ | ||
13232 | fill "#000000" | ||
13233 | targetArrow "standard" | ||
13234 | ] | ||
13235 | LabelGraphics | ||
13236 | [ | ||
13237 | text "interface reference FunctionalData" | ||
13238 | fontSize 14 | ||
13239 | fontName "Consolas" | ||
13240 | configuration "AutoFlippingLabel" | ||
13241 | model "six_pos" | ||
13242 | position "thead" | ||
13243 | ] | ||
13244 | ] | ||
13245 | edge | ||
13246 | [ | ||
13247 | source 7 | ||
13248 | target 5 | ||
13249 | graphics | ||
13250 | [ | ||
13251 | fill "#000000" | ||
13252 | targetArrow "standard" | ||
13253 | ] | ||
13254 | LabelGraphics | ||
13255 | [ | ||
13256 | text "interface reference FunctionalData" | ||
13257 | fontSize 14 | ||
13258 | fontName "Consolas" | ||
13259 | configuration "AutoFlippingLabel" | ||
13260 | model "six_pos" | ||
13261 | position "thead" | ||
13262 | ] | ||
13263 | ] | ||
13264 | edge | ||
13265 | [ | ||
13266 | source 9 | ||
13267 | target 5 | ||
13268 | graphics | ||
13269 | [ | ||
13270 | fill "#000000" | ||
13271 | targetArrow "standard" | ||
13272 | ] | ||
13273 | LabelGraphics | ||
13274 | [ | ||
13275 | text "interface reference FunctionalData" | ||
13276 | fontSize 14 | ||
13277 | fontName "Consolas" | ||
13278 | configuration "AutoFlippingLabel" | ||
13279 | model "six_pos" | ||
13280 | position "thead" | ||
13281 | ] | ||
13282 | ] | ||
13283 | edge | ||
13284 | [ | ||
13285 | source 10 | ||
13286 | target 5 | ||
13287 | graphics | ||
13288 | [ | ||
13289 | fill "#000000" | ||
13290 | targetArrow "standard" | ||
13291 | ] | ||
13292 | LabelGraphics | ||
13293 | [ | ||
13294 | text "interface reference FunctionalData" | ||
13295 | fontSize 14 | ||
13296 | fontName "Consolas" | ||
13297 | configuration "AutoFlippingLabel" | ||
13298 | model "six_pos" | ||
13299 | position "thead" | ||
13300 | ] | ||
13301 | ] | ||
13302 | edge | ||
13303 | [ | ||
13304 | source 11 | ||
13305 | target 5 | ||
13306 | graphics | ||
13307 | [ | ||
13308 | fill "#000000" | ||
13309 | targetArrow "standard" | ||
13310 | ] | ||
13311 | LabelGraphics | ||
13312 | [ | ||
13313 | text "interface reference FunctionalData" | ||
13314 | fontSize 14 | ||
13315 | fontName "Consolas" | ||
13316 | configuration "AutoFlippingLabel" | ||
13317 | model "six_pos" | ||
13318 | position "thead" | ||
13319 | ] | ||
13320 | ] | ||
13321 | ] | ||
13322 | graph | ||
13323 | [ | ||
13324 | node | ||
13325 | [ | ||
13326 | id 0 | ||
13327 | graphics | ||
13328 | [ | ||
13329 | w 226.60000000000002 | ||
13330 | h 40 | ||
13331 | type "rectangle" | ||
13332 | fill "#FFFFFF" | ||
13333 | fill2 "#FFFFFF" | ||
13334 | outline "#000000" | ||
13335 | ] | ||
13336 | LabelGraphics | ||
13337 | [ | ||
13338 | text "Root literal FunctionType" | ||
13339 | outline "#000000" | ||
13340 | fill "#FFFFFF" | ||
13341 | fontSize 16 | ||
13342 | fontName "Monospace" | ||
13343 | autoSizePolicy "node_width" | ||
13344 | anchor "t" | ||
13345 | borderDistance 0.0 | ||
13346 | ] | ||
13347 | LabelGraphics | ||
13348 | [ | ||
13349 | text " | ||
13350 | FunctionType enum | ||
13351 | " | ||
13352 | fontSize 14 | ||
13353 | fontName "Consolas" | ||
13354 | alignment "left" | ||
13355 | anchor "tl" | ||
13356 | borderDistance 6 | ||
13357 | ] | ||
13358 | ] | ||
13359 | |||
13360 | node | ||
13361 | [ | ||
13362 | id 1 | ||
13363 | graphics | ||
13364 | [ | ||
13365 | w 297.0 | ||
13366 | h 40 | ||
13367 | type "rectangle" | ||
13368 | fill "#FFFFFF" | ||
13369 | fill2 "#FFFFFF" | ||
13370 | outline "#000000" | ||
13371 | ] | ||
13372 | LabelGraphics | ||
13373 | [ | ||
13374 | text "Intermediate literal FunctionType" | ||
13375 | outline "#000000" | ||
13376 | fill "#FFFFFF" | ||
13377 | fontSize 16 | ||
13378 | fontName "Monospace" | ||
13379 | autoSizePolicy "node_width" | ||
13380 | anchor "t" | ||
13381 | borderDistance 0.0 | ||
13382 | ] | ||
13383 | LabelGraphics | ||
13384 | [ | ||
13385 | text " | ||
13386 | FunctionType enum | ||
13387 | " | ||
13388 | fontSize 14 | ||
13389 | fontName "Consolas" | ||
13390 | alignment "left" | ||
13391 | anchor "tl" | ||
13392 | borderDistance 6 | ||
13393 | ] | ||
13394 | ] | ||
13395 | |||
13396 | node | ||
13397 | [ | ||
13398 | id 2 | ||
13399 | graphics | ||
13400 | [ | ||
13401 | w 226.60000000000002 | ||
13402 | h 40 | ||
13403 | type "rectangle" | ||
13404 | fill "#FFFFFF" | ||
13405 | fill2 "#FFFFFF" | ||
13406 | outline "#000000" | ||
13407 | ] | ||
13408 | LabelGraphics | ||
13409 | [ | ||
13410 | text "Leaf literal FunctionType" | ||
13411 | outline "#000000" | ||
13412 | fill "#FFFFFF" | ||
13413 | fontSize 16 | ||
13414 | fontName "Monospace" | ||
13415 | autoSizePolicy "node_width" | ||
13416 | anchor "t" | ||
13417 | borderDistance 0.0 | ||
13418 | ] | ||
13419 | LabelGraphics | ||
13420 | [ | ||
13421 | text " | ||
13422 | FunctionType enum | ||
13423 | " | ||
13424 | fontSize 14 | ||
13425 | fontName "Consolas" | ||
13426 | alignment "left" | ||
13427 | anchor "tl" | ||
13428 | borderDistance 6 | ||
13429 | ] | ||
13430 | ] | ||
13431 | |||
13432 | node | ||
13433 | [ | ||
13434 | id 3 | ||
13435 | graphics | ||
13436 | [ | ||
13437 | w 41.800000000000004 | ||
13438 | h 26 | ||
13439 | type "rectangle" | ||
13440 | fill "#FFFFFF" | ||
13441 | fill2 "#FFFFFF" | ||
13442 | outline "#000000" | ||
13443 | ] | ||
13444 | LabelGraphics | ||
13445 | [ | ||
13446 | text "true" | ||
13447 | outline "#000000" | ||
13448 | fill "#FFFFFF" | ||
13449 | fontSize 16 | ||
13450 | fontName "Monospace" | ||
13451 | autoSizePolicy "node_width" | ||
13452 | anchor "t" | ||
13453 | borderDistance 0.0 | ||
13454 | ] | ||
13455 | LabelGraphics | ||
13456 | [ | ||
13457 | text " | ||
13458 | " | ||
13459 | fontSize 14 | ||
13460 | fontName "Consolas" | ||
13461 | alignment "left" | ||
13462 | anchor "tl" | ||
13463 | borderDistance 6 | ||
13464 | ] | ||
13465 | ] | ||
13466 | |||
13467 | node | ||
13468 | [ | ||
13469 | id 4 | ||
13470 | graphics | ||
13471 | [ | ||
13472 | w 50.6 | ||
13473 | h 26 | ||
13474 | type "rectangle" | ||
13475 | fill "#FFFFFF" | ||
13476 | fill2 "#FFFFFF" | ||
13477 | outline "#000000" | ||
13478 | ] | ||
13479 | LabelGraphics | ||
13480 | [ | ||
13481 | text "false" | ||
13482 | outline "#000000" | ||
13483 | fill "#FFFFFF" | ||
13484 | fontSize 16 | ||
13485 | fontName "Monospace" | ||
13486 | autoSizePolicy "node_width" | ||
13487 | anchor "t" | ||
13488 | borderDistance 0.0 | ||
13489 | ] | ||
13490 | LabelGraphics | ||
13491 | [ | ||
13492 | text " | ||
13493 | " | ||
13494 | fontSize 14 | ||
13495 | fontName "Consolas" | ||
13496 | alignment "left" | ||
13497 | anchor "tl" | ||
13498 | borderDistance 6 | ||
13499 | ] | ||
13500 | ] | ||
13501 | |||
13502 | node | ||
13503 | [ | ||
13504 | id 5 | ||
13505 | graphics | ||
13506 | [ | ||
13507 | w 207.9 | ||
13508 | h 40 | ||
13509 | type "rectangle" | ||
13510 | fill "#FFFFFF" | ||
13511 | fill2 "#FFFFFF" | ||
13512 | outline "#000000" | ||
13513 | ] | ||
13514 | LabelGraphics | ||
13515 | [ | ||
13516 | text "null" | ||
13517 | outline "#000000" | ||
13518 | fill "#FFFFFF" | ||
13519 | fontSize 16 | ||
13520 | fontName "Monospace" | ||
13521 | autoSizePolicy "node_width" | ||
13522 | anchor "t" | ||
13523 | borderDistance 0.0 | ||
13524 | ] | ||
13525 | LabelGraphics | ||
13526 | [ | ||
13527 | text " | ||
13528 | FunctionalInterface class | ||
13529 | " | ||
13530 | fontSize 14 | ||
13531 | fontName "Consolas" | ||
13532 | alignment "left" | ||
13533 | anchor "tl" | ||
13534 | borderDistance 6 | ||
13535 | ] | ||
13536 | ] | ||
13537 | |||
13538 | node | ||
13539 | [ | ||
13540 | id 6 | ||
13541 | graphics | ||
13542 | [ | ||
13543 | w 177.10000000000002 | ||
13544 | h 54 | ||
13545 | type "rectangle" | ||
13546 | fill "#FFFFFF" | ||
13547 | fill2 "#FFFFFF" | ||
13548 | outline "#000000" | ||
13549 | ] | ||
13550 | LabelGraphics | ||
13551 | [ | ||
13552 | text "null" | ||
13553 | outline "#000000" | ||
13554 | fill "#FFFFFF" | ||
13555 | fontSize 16 | ||
13556 | fontName "Monospace" | ||
13557 | autoSizePolicy "node_width" | ||
13558 | anchor "t" | ||
13559 | borderDistance 0.0 | ||
13560 | ] | ||
13561 | LabelGraphics | ||
13562 | [ | ||
13563 | text " | ||
13564 | FunctionalInput class | ||
13565 | FunctionalData class | ||
13566 | " | ||
13567 | fontSize 14 | ||
13568 | fontName "Consolas" | ||
13569 | alignment "left" | ||
13570 | anchor "tl" | ||
13571 | borderDistance 6 | ||
13572 | ] | ||
13573 | ] | ||
13574 | |||
13575 | node | ||
13576 | [ | ||
13577 | id 7 | ||
13578 | graphics | ||
13579 | [ | ||
13580 | w 161.70000000000002 | ||
13581 | h 40 | ||
13582 | type "rectangle" | ||
13583 | fill "#FFFFFF" | ||
13584 | fill2 "#FFFFFF" | ||
13585 | outline "#000000" | ||
13586 | ] | ||
13587 | LabelGraphics | ||
13588 | [ | ||
13589 | text "null" | ||
13590 | outline "#000000" | ||
13591 | fill "#FFFFFF" | ||
13592 | fontSize 16 | ||
13593 | fontName "Monospace" | ||
13594 | autoSizePolicy "node_width" | ||
13595 | anchor "t" | ||
13596 | borderDistance 0.0 | ||
13597 | ] | ||
13598 | LabelGraphics | ||
13599 | [ | ||
13600 | text " | ||
13601 | FAMTerminator class | ||
13602 | " | ||
13603 | fontSize 14 | ||
13604 | fontName "Consolas" | ||
13605 | alignment "left" | ||
13606 | anchor "tl" | ||
13607 | borderDistance 6 | ||
13608 | ] | ||
13609 | ] | ||
13610 | |||
13611 | node | ||
13612 | [ | ||
13613 | id 8 | ||
13614 | graphics | ||
13615 | [ | ||
13616 | w 177.10000000000002 | ||
13617 | h 54 | ||
13618 | type "rectangle" | ||
13619 | fill "#FFFFFF" | ||
13620 | fill2 "#FFFFFF" | ||
13621 | outline "#000000" | ||
13622 | ] | ||
13623 | LabelGraphics | ||
13624 | [ | ||
13625 | text "null" | ||
13626 | outline "#000000" | ||
13627 | fill "#FFFFFF" | ||
13628 | fontSize 16 | ||
13629 | fontName "Monospace" | ||
13630 | autoSizePolicy "node_width" | ||
13631 | anchor "t" | ||
13632 | borderDistance 0.0 | ||
13633 | ] | ||
13634 | LabelGraphics | ||
13635 | [ | ||
13636 | text " | ||
13637 | FunctionalInput class | ||
13638 | FunctionalData class | ||
13639 | " | ||
13640 | fontSize 14 | ||
13641 | fontName "Consolas" | ||
13642 | alignment "left" | ||
13643 | anchor "tl" | ||
13644 | borderDistance 6 | ||
13645 | ] | ||
13646 | ] | ||
13647 | |||
13648 | node | ||
13649 | [ | ||
13650 | id 9 | ||
13651 | graphics | ||
13652 | [ | ||
13653 | w 184.8 | ||
13654 | h 54 | ||
13655 | type "rectangle" | ||
13656 | fill "#FFFFFF" | ||
13657 | fill2 "#FFFFFF" | ||
13658 | outline "#000000" | ||
13659 | ] | ||
13660 | LabelGraphics | ||
13661 | [ | ||
13662 | text "null" | ||
13663 | outline "#000000" | ||
13664 | fill "#FFFFFF" | ||
13665 | fontSize 16 | ||
13666 | fontName "Monospace" | ||
13667 | autoSizePolicy "node_width" | ||
13668 | anchor "t" | ||
13669 | borderDistance 0.0 | ||
13670 | ] | ||
13671 | LabelGraphics | ||
13672 | [ | ||
13673 | text " | ||
13674 | FunctionalOutput class | ||
13675 | FunctionalData class | ||
13676 | " | ||
13677 | fontSize 14 | ||
13678 | fontName "Consolas" | ||
13679 | alignment "left" | ||
13680 | anchor "tl" | ||
13681 | borderDistance 6 | ||
13682 | ] | ||
13683 | ] | ||
13684 | |||
13685 | node | ||
13686 | [ | ||
13687 | id 10 | ||
13688 | graphics | ||
13689 | [ | ||
13690 | w 161.70000000000002 | ||
13691 | h 40 | ||
13692 | type "rectangle" | ||
13693 | fill "#FFFFFF" | ||
13694 | fill2 "#FFFFFF" | ||
13695 | outline "#000000" | ||
13696 | ] | ||
13697 | LabelGraphics | ||
13698 | [ | ||
13699 | text "null" | ||
13700 | outline "#000000" | ||
13701 | fill "#FFFFFF" | ||
13702 | fontSize 16 | ||
13703 | fontName "Monospace" | ||
13704 | autoSizePolicy "node_width" | ||
13705 | anchor "t" | ||
13706 | borderDistance 0.0 | ||
13707 | ] | ||
13708 | LabelGraphics | ||
13709 | [ | ||
13710 | text " | ||
13711 | FAMTerminator class | ||
13712 | " | ||
13713 | fontSize 14 | ||
13714 | fontName "Consolas" | ||
13715 | alignment "left" | ||
13716 | anchor "tl" | ||
13717 | borderDistance 6 | ||
13718 | ] | ||
13719 | ] | ||
13720 | |||
13721 | node | ||
13722 | [ | ||
13723 | id 11 | ||
13724 | graphics | ||
13725 | [ | ||
13726 | w 177.10000000000002 | ||
13727 | h 54 | ||
13728 | type "rectangle" | ||
13729 | fill "#FFFFFF" | ||
13730 | fill2 "#FFFFFF" | ||
13731 | outline "#000000" | ||
13732 | ] | ||
13733 | LabelGraphics | ||
13734 | [ | ||
13735 | text "null" | ||
13736 | outline "#000000" | ||
13737 | fill "#FFFFFF" | ||
13738 | fontSize 16 | ||
13739 | fontName "Monospace" | ||
13740 | autoSizePolicy "node_width" | ||
13741 | anchor "t" | ||
13742 | borderDistance 0.0 | ||
13743 | ] | ||
13744 | LabelGraphics | ||
13745 | [ | ||
13746 | text " | ||
13747 | FunctionalInput class | ||
13748 | FunctionalData class | ||
13749 | " | ||
13750 | fontSize 14 | ||
13751 | fontName "Consolas" | ||
13752 | alignment "left" | ||
13753 | anchor "tl" | ||
13754 | borderDistance 6 | ||
13755 | ] | ||
13756 | ] | ||
13757 | |||
13758 | node | ||
13759 | [ | ||
13760 | id 12 | ||
13761 | graphics | ||
13762 | [ | ||
13763 | w 112.2 | ||
13764 | h 26 | ||
13765 | type "rectangle" | ||
13766 | fill "#FFFFFF" | ||
13767 | fill2 "#FFFFFF" | ||
13768 | outline "#000000" | ||
13769 | ] | ||
13770 | LabelGraphics | ||
13771 | [ | ||
13772 | text "New Integers" | ||
13773 | outline "#000000" | ||
13774 | fill "#FFFFFF" | ||
13775 | fontSize 16 | ||
13776 | fontName "Monospace" | ||
13777 | autoSizePolicy "node_width" | ||
13778 | anchor "t" | ||
13779 | borderDistance 0.0 | ||
13780 | ] | ||
13781 | LabelGraphics | ||
13782 | [ | ||
13783 | text " | ||
13784 | " | ||
13785 | fontSize 14 | ||
13786 | fontName "Consolas" | ||
13787 | alignment "left" | ||
13788 | anchor "tl" | ||
13789 | borderDistance 6 | ||
13790 | ] | ||
13791 | ] | ||
13792 | |||
13793 | node | ||
13794 | [ | ||
13795 | id 13 | ||
13796 | graphics | ||
13797 | [ | ||
13798 | w 85.80000000000001 | ||
13799 | h 26 | ||
13800 | type "rectangle" | ||
13801 | fill "#FFFFFF" | ||
13802 | fill2 "#FFFFFF" | ||
13803 | outline "#000000" | ||
13804 | ] | ||
13805 | LabelGraphics | ||
13806 | [ | ||
13807 | text "New Reals" | ||
13808 | outline "#000000" | ||
13809 | fill "#FFFFFF" | ||
13810 | fontSize 16 | ||
13811 | fontName "Monospace" | ||
13812 | autoSizePolicy "node_width" | ||
13813 | anchor "t" | ||
13814 | borderDistance 0.0 | ||
13815 | ] | ||
13816 | LabelGraphics | ||
13817 | [ | ||
13818 | text " | ||
13819 | " | ||
13820 | fontSize 14 | ||
13821 | fontName "Consolas" | ||
13822 | alignment "left" | ||
13823 | anchor "tl" | ||
13824 | borderDistance 6 | ||
13825 | ] | ||
13826 | ] | ||
13827 | |||
13828 | node | ||
13829 | [ | ||
13830 | id 14 | ||
13831 | graphics | ||
13832 | [ | ||
13833 | w 103.4 | ||
13834 | h 26 | ||
13835 | type "rectangle" | ||
13836 | fill "#FFFFFF" | ||
13837 | fill2 "#FFFFFF" | ||
13838 | outline "#000000" | ||
13839 | ] | ||
13840 | LabelGraphics | ||
13841 | [ | ||
13842 | text "New Strings" | ||
13843 | outline "#000000" | ||
13844 | fill "#FFFFFF" | ||
13845 | fontSize 16 | ||
13846 | fontName "Monospace" | ||
13847 | autoSizePolicy "node_width" | ||
13848 | anchor "t" | ||
13849 | borderDistance 0.0 | ||
13850 | ] | ||
13851 | LabelGraphics | ||
13852 | [ | ||
13853 | text " | ||
13854 | " | ||
13855 | fontSize 14 | ||
13856 | fontName "Consolas" | ||
13857 | alignment "left" | ||
13858 | anchor "tl" | ||
13859 | borderDistance 6 | ||
13860 | ] | ||
13861 | ] | ||
13862 | |||
13863 | node | ||
13864 | [ | ||
13865 | id 15 | ||
13866 | graphics | ||
13867 | [ | ||
13868 | w 103.4 | ||
13869 | h 26 | ||
13870 | type "rectangle" | ||
13871 | fill "#FFFFFF" | ||
13872 | fill2 "#FFFFFF" | ||
13873 | outline "#000000" | ||
13874 | ] | ||
13875 | LabelGraphics | ||
13876 | [ | ||
13877 | text "New Objects" | ||
13878 | outline "#000000" | ||
13879 | fill "#FFFFFF" | ||
13880 | fontSize 16 | ||
13881 | fontName "Monospace" | ||
13882 | autoSizePolicy "node_width" | ||
13883 | anchor "t" | ||
13884 | borderDistance 0.0 | ||
13885 | ] | ||
13886 | LabelGraphics | ||
13887 | [ | ||
13888 | text " | ||
13889 | " | ||
13890 | fontSize 14 | ||
13891 | fontName "Consolas" | ||
13892 | alignment "left" | ||
13893 | anchor "tl" | ||
13894 | borderDistance 6 | ||
13895 | ] | ||
13896 | ] | ||
13897 | edge | ||
13898 | [ | ||
13899 | source 7 | ||
13900 | target 6 | ||
13901 | graphics | ||
13902 | [ | ||
13903 | fill "#000000" | ||
13904 | targetArrow "standard" | ||
13905 | ] | ||
13906 | LabelGraphics | ||
13907 | [ | ||
13908 | text "data reference FAMTerminator" | ||
13909 | fontSize 14 | ||
13910 | fontName "Consolas" | ||
13911 | configuration "AutoFlippingLabel" | ||
13912 | model "six_pos" | ||
13913 | position "thead" | ||
13914 | ] | ||
13915 | ] | ||
13916 | edge | ||
13917 | [ | ||
13918 | source 10 | ||
13919 | target 8 | ||
13920 | graphics | ||
13921 | [ | ||
13922 | fill "#000000" | ||
13923 | targetArrow "standard" | ||
13924 | ] | ||
13925 | LabelGraphics | ||
13926 | [ | ||
13927 | text "data reference FAMTerminator" | ||
13928 | fontSize 14 | ||
13929 | fontName "Consolas" | ||
13930 | configuration "AutoFlippingLabel" | ||
13931 | model "six_pos" | ||
13932 | position "thead" | ||
13933 | ] | ||
13934 | ] | ||
13935 | edge | ||
13936 | [ | ||
13937 | source 5 | ||
13938 | target 6 | ||
13939 | graphics | ||
13940 | [ | ||
13941 | fill "#000000" | ||
13942 | width 3 | ||
13943 | targetArrow "standard" | ||
13944 | ] | ||
13945 | LabelGraphics | ||
13946 | [ | ||
13947 | text "data reference FunctionalInterface" | ||
13948 | fontSize 14 | ||
13949 | fontName "Consolas" | ||
13950 | configuration "AutoFlippingLabel" | ||
13951 | model "six_pos" | ||
13952 | position "thead" | ||
13953 | ] | ||
13954 | ] | ||
13955 | edge | ||
13956 | [ | ||
13957 | source 5 | ||
13958 | target 8 | ||
13959 | graphics | ||
13960 | [ | ||
13961 | fill "#000000" | ||
13962 | width 3 | ||
13963 | targetArrow "standard" | ||
13964 | ] | ||
13965 | LabelGraphics | ||
13966 | [ | ||
13967 | text "data reference FunctionalInterface" | ||
13968 | fontSize 14 | ||
13969 | fontName "Consolas" | ||
13970 | configuration "AutoFlippingLabel" | ||
13971 | model "six_pos" | ||
13972 | position "thead" | ||
13973 | ] | ||
13974 | ] | ||
13975 | edge | ||
13976 | [ | ||
13977 | source 5 | ||
13978 | target 9 | ||
13979 | graphics | ||
13980 | [ | ||
13981 | fill "#000000" | ||
13982 | width 3 | ||
13983 | targetArrow "standard" | ||
13984 | ] | ||
13985 | LabelGraphics | ||
13986 | [ | ||
13987 | text "data reference FunctionalInterface" | ||
13988 | fontSize 14 | ||
13989 | fontName "Consolas" | ||
13990 | configuration "AutoFlippingLabel" | ||
13991 | model "six_pos" | ||
13992 | position "thead" | ||
13993 | ] | ||
13994 | ] | ||
13995 | edge | ||
13996 | [ | ||
13997 | source 5 | ||
13998 | target 11 | ||
13999 | graphics | ||
14000 | [ | ||
14001 | fill "#000000" | ||
14002 | width 3 | ||
14003 | targetArrow "standard" | ||
14004 | ] | ||
14005 | LabelGraphics | ||
14006 | [ | ||
14007 | text "data reference FunctionalInterface" | ||
14008 | fontSize 14 | ||
14009 | fontName "Consolas" | ||
14010 | configuration "AutoFlippingLabel" | ||
14011 | model "six_pos" | ||
14012 | position "thead" | ||
14013 | ] | ||
14014 | ] | ||
14015 | edge | ||
14016 | [ | ||
14017 | source 6 | ||
14018 | target 7 | ||
14019 | graphics | ||
14020 | [ | ||
14021 | fill "#000000" | ||
14022 | width 3 | ||
14023 | targetArrow "standard" | ||
14024 | ] | ||
14025 | LabelGraphics | ||
14026 | [ | ||
14027 | text "terminator reference FunctionalData" | ||
14028 | fontSize 14 | ||
14029 | fontName "Consolas" | ||
14030 | configuration "AutoFlippingLabel" | ||
14031 | model "six_pos" | ||
14032 | position "thead" | ||
14033 | ] | ||
14034 | ] | ||
14035 | edge | ||
14036 | [ | ||
14037 | source 8 | ||
14038 | target 10 | ||
14039 | graphics | ||
14040 | [ | ||
14041 | fill "#000000" | ||
14042 | width 3 | ||
14043 | targetArrow "standard" | ||
14044 | ] | ||
14045 | LabelGraphics | ||
14046 | [ | ||
14047 | text "terminator reference FunctionalData" | ||
14048 | fontSize 14 | ||
14049 | fontName "Consolas" | ||
14050 | configuration "AutoFlippingLabel" | ||
14051 | model "six_pos" | ||
14052 | position "thead" | ||
14053 | ] | ||
14054 | ] | ||
14055 | edge | ||
14056 | [ | ||
14057 | source 6 | ||
14058 | target 5 | ||
14059 | graphics | ||
14060 | [ | ||
14061 | fill "#000000" | ||
14062 | targetArrow "standard" | ||
14063 | ] | ||
14064 | LabelGraphics | ||
14065 | [ | ||
14066 | text "interface reference FunctionalData" | ||
14067 | fontSize 14 | ||
14068 | fontName "Consolas" | ||
14069 | configuration "AutoFlippingLabel" | ||
14070 | model "six_pos" | ||
14071 | position "thead" | ||
14072 | ] | ||
14073 | ] | ||
14074 | edge | ||
14075 | [ | ||
14076 | source 8 | ||
14077 | target 5 | ||
14078 | graphics | ||
14079 | [ | ||
14080 | fill "#000000" | ||
14081 | targetArrow "standard" | ||
14082 | ] | ||
14083 | LabelGraphics | ||
14084 | [ | ||
14085 | text "interface reference FunctionalData" | ||
14086 | fontSize 14 | ||
14087 | fontName "Consolas" | ||
14088 | configuration "AutoFlippingLabel" | ||
14089 | model "six_pos" | ||
14090 | position "thead" | ||
14091 | ] | ||
14092 | ] | ||
14093 | edge | ||
14094 | [ | ||
14095 | source 9 | ||
14096 | target 5 | ||
14097 | graphics | ||
14098 | [ | ||
14099 | fill "#000000" | ||
14100 | targetArrow "standard" | ||
14101 | ] | ||
14102 | LabelGraphics | ||
14103 | [ | ||
14104 | text "interface reference FunctionalData" | ||
14105 | fontSize 14 | ||
14106 | fontName "Consolas" | ||
14107 | configuration "AutoFlippingLabel" | ||
14108 | model "six_pos" | ||
14109 | position "thead" | ||
14110 | ] | ||
14111 | ] | ||
14112 | edge | ||
14113 | [ | ||
14114 | source 11 | ||
14115 | target 5 | ||
14116 | graphics | ||
14117 | [ | ||
14118 | fill "#000000" | ||
14119 | targetArrow "standard" | ||
14120 | ] | ||
14121 | LabelGraphics | ||
14122 | [ | ||
14123 | text "interface reference FunctionalData" | ||
14124 | fontSize 14 | ||
14125 | fontName "Consolas" | ||
14126 | configuration "AutoFlippingLabel" | ||
14127 | model "six_pos" | ||
14128 | position "thead" | ||
14129 | ] | ||
14130 | ] | ||
14131 | ] | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.png b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.png index a551c9fc..61e37719 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.png +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.png | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.xmi b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.xmi index 9e8efc63..fbbc6cb4 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.xmi +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/3.xmi | |||
@@ -1,12 +1,11 @@ | |||
1 | <?xml version="1.0" encoding="ASCII"?> | 1 | <?xml version="1.0" encoding="ASCII"?> |
2 | <fam:FunctionalArchitectureModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> | 2 | <fam:FunctionalInterface xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> |
3 | <rootElements xsi:type="fam:Function"> | 3 | <data xsi:type="fam:FunctionalOutput"/> |
4 | <interface> | 4 | <data xsi:type="fam:FunctionalInput"> |
5 | <data xsi:type="fam:FunctionalOutput"/> | 5 | <terminator/> |
6 | <data xsi:type="fam:FunctionalOutput"> | 6 | </data> |
7 | <terminator/> | 7 | <data xsi:type="fam:FunctionalInput"/> |
8 | </data> | 8 | <data xsi:type="fam:FunctionalInput"> |
9 | <data xsi:type="fam:FunctionalInput"/> | 9 | <terminator/> |
10 | </interface> | 10 | </data> |
11 | </rootElements> | 11 | </fam:FunctionalInterface> |
12 | </fam:FunctionalArchitectureModel> | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.gml b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.gml index f41692fc..8b6731b7 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.gml +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.gml | |||
@@ -11761,3 +11761,2508 @@ graph | |||
11761 | ] | 11761 | ] |
11762 | ] | 11762 | ] |
11763 | ] | 11763 | ] |
11764 | graph | ||
11765 | [ | ||
11766 | node | ||
11767 | [ | ||
11768 | id 0 | ||
11769 | graphics | ||
11770 | [ | ||
11771 | w 226.60000000000002 | ||
11772 | h 40 | ||
11773 | type "rectangle" | ||
11774 | fill "#FFFFFF" | ||
11775 | fill2 "#FFFFFF" | ||
11776 | outline "#000000" | ||
11777 | ] | ||
11778 | LabelGraphics | ||
11779 | [ | ||
11780 | text "Root literal FunctionType" | ||
11781 | outline "#000000" | ||
11782 | fill "#FFFFFF" | ||
11783 | fontSize 16 | ||
11784 | fontName "Monospace" | ||
11785 | autoSizePolicy "node_width" | ||
11786 | anchor "t" | ||
11787 | borderDistance 0.0 | ||
11788 | ] | ||
11789 | LabelGraphics | ||
11790 | [ | ||
11791 | text " | ||
11792 | FunctionType enum | ||
11793 | " | ||
11794 | fontSize 14 | ||
11795 | fontName "Consolas" | ||
11796 | alignment "left" | ||
11797 | anchor "tl" | ||
11798 | borderDistance 6 | ||
11799 | ] | ||
11800 | ] | ||
11801 | |||
11802 | node | ||
11803 | [ | ||
11804 | id 1 | ||
11805 | graphics | ||
11806 | [ | ||
11807 | w 297.0 | ||
11808 | h 40 | ||
11809 | type "rectangle" | ||
11810 | fill "#FFFFFF" | ||
11811 | fill2 "#FFFFFF" | ||
11812 | outline "#000000" | ||
11813 | ] | ||
11814 | LabelGraphics | ||
11815 | [ | ||
11816 | text "Intermediate literal FunctionType" | ||
11817 | outline "#000000" | ||
11818 | fill "#FFFFFF" | ||
11819 | fontSize 16 | ||
11820 | fontName "Monospace" | ||
11821 | autoSizePolicy "node_width" | ||
11822 | anchor "t" | ||
11823 | borderDistance 0.0 | ||
11824 | ] | ||
11825 | LabelGraphics | ||
11826 | [ | ||
11827 | text " | ||
11828 | FunctionType enum | ||
11829 | " | ||
11830 | fontSize 14 | ||
11831 | fontName "Consolas" | ||
11832 | alignment "left" | ||
11833 | anchor "tl" | ||
11834 | borderDistance 6 | ||
11835 | ] | ||
11836 | ] | ||
11837 | |||
11838 | node | ||
11839 | [ | ||
11840 | id 2 | ||
11841 | graphics | ||
11842 | [ | ||
11843 | w 226.60000000000002 | ||
11844 | h 40 | ||
11845 | type "rectangle" | ||
11846 | fill "#FFFFFF" | ||
11847 | fill2 "#FFFFFF" | ||
11848 | outline "#000000" | ||
11849 | ] | ||
11850 | LabelGraphics | ||
11851 | [ | ||
11852 | text "Leaf literal FunctionType" | ||
11853 | outline "#000000" | ||
11854 | fill "#FFFFFF" | ||
11855 | fontSize 16 | ||
11856 | fontName "Monospace" | ||
11857 | autoSizePolicy "node_width" | ||
11858 | anchor "t" | ||
11859 | borderDistance 0.0 | ||
11860 | ] | ||
11861 | LabelGraphics | ||
11862 | [ | ||
11863 | text " | ||
11864 | FunctionType enum | ||
11865 | " | ||
11866 | fontSize 14 | ||
11867 | fontName "Consolas" | ||
11868 | alignment "left" | ||
11869 | anchor "tl" | ||
11870 | borderDistance 6 | ||
11871 | ] | ||
11872 | ] | ||
11873 | |||
11874 | node | ||
11875 | [ | ||
11876 | id 3 | ||
11877 | graphics | ||
11878 | [ | ||
11879 | w 41.800000000000004 | ||
11880 | h 26 | ||
11881 | type "rectangle" | ||
11882 | fill "#FFFFFF" | ||
11883 | fill2 "#FFFFFF" | ||
11884 | outline "#000000" | ||
11885 | ] | ||
11886 | LabelGraphics | ||
11887 | [ | ||
11888 | text "true" | ||
11889 | outline "#000000" | ||
11890 | fill "#FFFFFF" | ||
11891 | fontSize 16 | ||
11892 | fontName "Monospace" | ||
11893 | autoSizePolicy "node_width" | ||
11894 | anchor "t" | ||
11895 | borderDistance 0.0 | ||
11896 | ] | ||
11897 | LabelGraphics | ||
11898 | [ | ||
11899 | text " | ||
11900 | " | ||
11901 | fontSize 14 | ||
11902 | fontName "Consolas" | ||
11903 | alignment "left" | ||
11904 | anchor "tl" | ||
11905 | borderDistance 6 | ||
11906 | ] | ||
11907 | ] | ||
11908 | |||
11909 | node | ||
11910 | [ | ||
11911 | id 4 | ||
11912 | graphics | ||
11913 | [ | ||
11914 | w 50.6 | ||
11915 | h 26 | ||
11916 | type "rectangle" | ||
11917 | fill "#FFFFFF" | ||
11918 | fill2 "#FFFFFF" | ||
11919 | outline "#000000" | ||
11920 | ] | ||
11921 | LabelGraphics | ||
11922 | [ | ||
11923 | text "false" | ||
11924 | outline "#000000" | ||
11925 | fill "#FFFFFF" | ||
11926 | fontSize 16 | ||
11927 | fontName "Monospace" | ||
11928 | autoSizePolicy "node_width" | ||
11929 | anchor "t" | ||
11930 | borderDistance 0.0 | ||
11931 | ] | ||
11932 | LabelGraphics | ||
11933 | [ | ||
11934 | text " | ||
11935 | " | ||
11936 | fontSize 14 | ||
11937 | fontName "Consolas" | ||
11938 | alignment "left" | ||
11939 | anchor "tl" | ||
11940 | borderDistance 6 | ||
11941 | ] | ||
11942 | ] | ||
11943 | |||
11944 | node | ||
11945 | [ | ||
11946 | id 5 | ||
11947 | graphics | ||
11948 | [ | ||
11949 | w 207.9 | ||
11950 | h 40 | ||
11951 | type "rectangle" | ||
11952 | fill "#FFFFFF" | ||
11953 | fill2 "#FFFFFF" | ||
11954 | outline "#000000" | ||
11955 | ] | ||
11956 | LabelGraphics | ||
11957 | [ | ||
11958 | text "null" | ||
11959 | outline "#000000" | ||
11960 | fill "#FFFFFF" | ||
11961 | fontSize 16 | ||
11962 | fontName "Monospace" | ||
11963 | autoSizePolicy "node_width" | ||
11964 | anchor "t" | ||
11965 | borderDistance 0.0 | ||
11966 | ] | ||
11967 | LabelGraphics | ||
11968 | [ | ||
11969 | text " | ||
11970 | FunctionalInterface class | ||
11971 | " | ||
11972 | fontSize 14 | ||
11973 | fontName "Consolas" | ||
11974 | alignment "left" | ||
11975 | anchor "tl" | ||
11976 | borderDistance 6 | ||
11977 | ] | ||
11978 | ] | ||
11979 | |||
11980 | node | ||
11981 | [ | ||
11982 | id 6 | ||
11983 | graphics | ||
11984 | [ | ||
11985 | w 177.10000000000002 | ||
11986 | h 54 | ||
11987 | type "rectangle" | ||
11988 | fill "#FFFFFF" | ||
11989 | fill2 "#FFFFFF" | ||
11990 | outline "#000000" | ||
11991 | ] | ||
11992 | LabelGraphics | ||
11993 | [ | ||
11994 | text "null" | ||
11995 | outline "#000000" | ||
11996 | fill "#FFFFFF" | ||
11997 | fontSize 16 | ||
11998 | fontName "Monospace" | ||
11999 | autoSizePolicy "node_width" | ||
12000 | anchor "t" | ||
12001 | borderDistance 0.0 | ||
12002 | ] | ||
12003 | LabelGraphics | ||
12004 | [ | ||
12005 | text " | ||
12006 | FunctionalInput class | ||
12007 | FunctionalData class | ||
12008 | " | ||
12009 | fontSize 14 | ||
12010 | fontName "Consolas" | ||
12011 | alignment "left" | ||
12012 | anchor "tl" | ||
12013 | borderDistance 6 | ||
12014 | ] | ||
12015 | ] | ||
12016 | |||
12017 | node | ||
12018 | [ | ||
12019 | id 7 | ||
12020 | graphics | ||
12021 | [ | ||
12022 | w 184.8 | ||
12023 | h 54 | ||
12024 | type "rectangle" | ||
12025 | fill "#FFFFFF" | ||
12026 | fill2 "#FFFFFF" | ||
12027 | outline "#000000" | ||
12028 | ] | ||
12029 | LabelGraphics | ||
12030 | [ | ||
12031 | text "null" | ||
12032 | outline "#000000" | ||
12033 | fill "#FFFFFF" | ||
12034 | fontSize 16 | ||
12035 | fontName "Monospace" | ||
12036 | autoSizePolicy "node_width" | ||
12037 | anchor "t" | ||
12038 | borderDistance 0.0 | ||
12039 | ] | ||
12040 | LabelGraphics | ||
12041 | [ | ||
12042 | text " | ||
12043 | FunctionalOutput class | ||
12044 | FunctionalData class | ||
12045 | " | ||
12046 | fontSize 14 | ||
12047 | fontName "Consolas" | ||
12048 | alignment "left" | ||
12049 | anchor "tl" | ||
12050 | borderDistance 6 | ||
12051 | ] | ||
12052 | ] | ||
12053 | |||
12054 | node | ||
12055 | [ | ||
12056 | id 8 | ||
12057 | graphics | ||
12058 | [ | ||
12059 | w 184.8 | ||
12060 | h 54 | ||
12061 | type "rectangle" | ||
12062 | fill "#FFFFFF" | ||
12063 | fill2 "#FFFFFF" | ||
12064 | outline "#000000" | ||
12065 | ] | ||
12066 | LabelGraphics | ||
12067 | [ | ||
12068 | text "null" | ||
12069 | outline "#000000" | ||
12070 | fill "#FFFFFF" | ||
12071 | fontSize 16 | ||
12072 | fontName "Monospace" | ||
12073 | autoSizePolicy "node_width" | ||
12074 | anchor "t" | ||
12075 | borderDistance 0.0 | ||
12076 | ] | ||
12077 | LabelGraphics | ||
12078 | [ | ||
12079 | text " | ||
12080 | FunctionalOutput class | ||
12081 | FunctionalData class | ||
12082 | " | ||
12083 | fontSize 14 | ||
12084 | fontName "Consolas" | ||
12085 | alignment "left" | ||
12086 | anchor "tl" | ||
12087 | borderDistance 6 | ||
12088 | ] | ||
12089 | ] | ||
12090 | |||
12091 | node | ||
12092 | [ | ||
12093 | id 9 | ||
12094 | graphics | ||
12095 | [ | ||
12096 | w 177.10000000000002 | ||
12097 | h 40 | ||
12098 | type "rectangle" | ||
12099 | fill "#FFFFFF" | ||
12100 | fill2 "#FFFFFF" | ||
12101 | outline "#000000" | ||
12102 | ] | ||
12103 | LabelGraphics | ||
12104 | [ | ||
12105 | text "null" | ||
12106 | outline "#000000" | ||
12107 | fill "#FFFFFF" | ||
12108 | fontSize 16 | ||
12109 | fontName "Monospace" | ||
12110 | autoSizePolicy "node_width" | ||
12111 | anchor "t" | ||
12112 | borderDistance 0.0 | ||
12113 | ] | ||
12114 | LabelGraphics | ||
12115 | [ | ||
12116 | text " | ||
12117 | InformationLink class | ||
12118 | " | ||
12119 | fontSize 14 | ||
12120 | fontName "Consolas" | ||
12121 | alignment "left" | ||
12122 | anchor "tl" | ||
12123 | borderDistance 6 | ||
12124 | ] | ||
12125 | ] | ||
12126 | |||
12127 | node | ||
12128 | [ | ||
12129 | id 10 | ||
12130 | graphics | ||
12131 | [ | ||
12132 | w 161.70000000000002 | ||
12133 | h 40 | ||
12134 | type "rectangle" | ||
12135 | fill "#FFFFFF" | ||
12136 | fill2 "#FFFFFF" | ||
12137 | outline "#000000" | ||
12138 | ] | ||
12139 | LabelGraphics | ||
12140 | [ | ||
12141 | text "null" | ||
12142 | outline "#000000" | ||
12143 | fill "#FFFFFF" | ||
12144 | fontSize 16 | ||
12145 | fontName "Monospace" | ||
12146 | autoSizePolicy "node_width" | ||
12147 | anchor "t" | ||
12148 | borderDistance 0.0 | ||
12149 | ] | ||
12150 | LabelGraphics | ||
12151 | [ | ||
12152 | text " | ||
12153 | FAMTerminator class | ||
12154 | " | ||
12155 | fontSize 14 | ||
12156 | fontName "Consolas" | ||
12157 | alignment "left" | ||
12158 | anchor "tl" | ||
12159 | borderDistance 6 | ||
12160 | ] | ||
12161 | ] | ||
12162 | |||
12163 | node | ||
12164 | [ | ||
12165 | id 11 | ||
12166 | graphics | ||
12167 | [ | ||
12168 | w 161.70000000000002 | ||
12169 | h 40 | ||
12170 | type "rectangle" | ||
12171 | fill "#FFFFFF" | ||
12172 | fill2 "#FFFFFF" | ||
12173 | outline "#000000" | ||
12174 | ] | ||
12175 | LabelGraphics | ||
12176 | [ | ||
12177 | text "null" | ||
12178 | outline "#000000" | ||
12179 | fill "#FFFFFF" | ||
12180 | fontSize 16 | ||
12181 | fontName "Monospace" | ||
12182 | autoSizePolicy "node_width" | ||
12183 | anchor "t" | ||
12184 | borderDistance 0.0 | ||
12185 | ] | ||
12186 | LabelGraphics | ||
12187 | [ | ||
12188 | text " | ||
12189 | FAMTerminator class | ||
12190 | " | ||
12191 | fontSize 14 | ||
12192 | fontName "Consolas" | ||
12193 | alignment "left" | ||
12194 | anchor "tl" | ||
12195 | borderDistance 6 | ||
12196 | ] | ||
12197 | ] | ||
12198 | |||
12199 | node | ||
12200 | [ | ||
12201 | id 12 | ||
12202 | graphics | ||
12203 | [ | ||
12204 | w 112.2 | ||
12205 | h 26 | ||
12206 | type "rectangle" | ||
12207 | fill "#FFFFFF" | ||
12208 | fill2 "#FFFFFF" | ||
12209 | outline "#000000" | ||
12210 | ] | ||
12211 | LabelGraphics | ||
12212 | [ | ||
12213 | text "New Integers" | ||
12214 | outline "#000000" | ||
12215 | fill "#FFFFFF" | ||
12216 | fontSize 16 | ||
12217 | fontName "Monospace" | ||
12218 | autoSizePolicy "node_width" | ||
12219 | anchor "t" | ||
12220 | borderDistance 0.0 | ||
12221 | ] | ||
12222 | LabelGraphics | ||
12223 | [ | ||
12224 | text " | ||
12225 | " | ||
12226 | fontSize 14 | ||
12227 | fontName "Consolas" | ||
12228 | alignment "left" | ||
12229 | anchor "tl" | ||
12230 | borderDistance 6 | ||
12231 | ] | ||
12232 | ] | ||
12233 | |||
12234 | node | ||
12235 | [ | ||
12236 | id 13 | ||
12237 | graphics | ||
12238 | [ | ||
12239 | w 85.80000000000001 | ||
12240 | h 26 | ||
12241 | type "rectangle" | ||
12242 | fill "#FFFFFF" | ||
12243 | fill2 "#FFFFFF" | ||
12244 | outline "#000000" | ||
12245 | ] | ||
12246 | LabelGraphics | ||
12247 | [ | ||
12248 | text "New Reals" | ||
12249 | outline "#000000" | ||
12250 | fill "#FFFFFF" | ||
12251 | fontSize 16 | ||
12252 | fontName "Monospace" | ||
12253 | autoSizePolicy "node_width" | ||
12254 | anchor "t" | ||
12255 | borderDistance 0.0 | ||
12256 | ] | ||
12257 | LabelGraphics | ||
12258 | [ | ||
12259 | text " | ||
12260 | " | ||
12261 | fontSize 14 | ||
12262 | fontName "Consolas" | ||
12263 | alignment "left" | ||
12264 | anchor "tl" | ||
12265 | borderDistance 6 | ||
12266 | ] | ||
12267 | ] | ||
12268 | |||
12269 | node | ||
12270 | [ | ||
12271 | id 14 | ||
12272 | graphics | ||
12273 | [ | ||
12274 | w 103.4 | ||
12275 | h 26 | ||
12276 | type "rectangle" | ||
12277 | fill "#FFFFFF" | ||
12278 | fill2 "#FFFFFF" | ||
12279 | outline "#000000" | ||
12280 | ] | ||
12281 | LabelGraphics | ||
12282 | [ | ||
12283 | text "New Strings" | ||
12284 | outline "#000000" | ||
12285 | fill "#FFFFFF" | ||
12286 | fontSize 16 | ||
12287 | fontName "Monospace" | ||
12288 | autoSizePolicy "node_width" | ||
12289 | anchor "t" | ||
12290 | borderDistance 0.0 | ||
12291 | ] | ||
12292 | LabelGraphics | ||
12293 | [ | ||
12294 | text " | ||
12295 | " | ||
12296 | fontSize 14 | ||
12297 | fontName "Consolas" | ||
12298 | alignment "left" | ||
12299 | anchor "tl" | ||
12300 | borderDistance 6 | ||
12301 | ] | ||
12302 | ] | ||
12303 | |||
12304 | node | ||
12305 | [ | ||
12306 | id 15 | ||
12307 | graphics | ||
12308 | [ | ||
12309 | w 103.4 | ||
12310 | h 26 | ||
12311 | type "rectangle" | ||
12312 | fill "#FFFFFF" | ||
12313 | fill2 "#FFFFFF" | ||
12314 | outline "#000000" | ||
12315 | ] | ||
12316 | LabelGraphics | ||
12317 | [ | ||
12318 | text "New Objects" | ||
12319 | outline "#000000" | ||
12320 | fill "#FFFFFF" | ||
12321 | fontSize 16 | ||
12322 | fontName "Monospace" | ||
12323 | autoSizePolicy "node_width" | ||
12324 | anchor "t" | ||
12325 | borderDistance 0.0 | ||
12326 | ] | ||
12327 | LabelGraphics | ||
12328 | [ | ||
12329 | text " | ||
12330 | " | ||
12331 | fontSize 14 | ||
12332 | fontName "Consolas" | ||
12333 | alignment "left" | ||
12334 | anchor "tl" | ||
12335 | borderDistance 6 | ||
12336 | ] | ||
12337 | ] | ||
12338 | edge | ||
12339 | [ | ||
12340 | source 10 | ||
12341 | target 8 | ||
12342 | graphics | ||
12343 | [ | ||
12344 | fill "#000000" | ||
12345 | targetArrow "standard" | ||
12346 | ] | ||
12347 | LabelGraphics | ||
12348 | [ | ||
12349 | text "data reference FAMTerminator" | ||
12350 | fontSize 14 | ||
12351 | fontName "Consolas" | ||
12352 | configuration "AutoFlippingLabel" | ||
12353 | model "six_pos" | ||
12354 | position "thead" | ||
12355 | ] | ||
12356 | ] | ||
12357 | edge | ||
12358 | [ | ||
12359 | source 11 | ||
12360 | target 6 | ||
12361 | graphics | ||
12362 | [ | ||
12363 | fill "#000000" | ||
12364 | targetArrow "standard" | ||
12365 | ] | ||
12366 | LabelGraphics | ||
12367 | [ | ||
12368 | text "data reference FAMTerminator" | ||
12369 | fontSize 14 | ||
12370 | fontName "Consolas" | ||
12371 | configuration "AutoFlippingLabel" | ||
12372 | model "six_pos" | ||
12373 | position "thead" | ||
12374 | ] | ||
12375 | ] | ||
12376 | edge | ||
12377 | [ | ||
12378 | source 9 | ||
12379 | target 8 | ||
12380 | graphics | ||
12381 | [ | ||
12382 | fill "#000000" | ||
12383 | targetArrow "standard" | ||
12384 | ] | ||
12385 | LabelGraphics | ||
12386 | [ | ||
12387 | text "from reference InformationLink" | ||
12388 | fontSize 14 | ||
12389 | fontName "Consolas" | ||
12390 | configuration "AutoFlippingLabel" | ||
12391 | model "six_pos" | ||
12392 | position "thead" | ||
12393 | ] | ||
12394 | ] | ||
12395 | edge | ||
12396 | [ | ||
12397 | source 9 | ||
12398 | target 6 | ||
12399 | graphics | ||
12400 | [ | ||
12401 | fill "#000000" | ||
12402 | targetArrow "standard" | ||
12403 | ] | ||
12404 | LabelGraphics | ||
12405 | [ | ||
12406 | text "to reference InformationLink" | ||
12407 | fontSize 14 | ||
12408 | fontName "Consolas" | ||
12409 | configuration "AutoFlippingLabel" | ||
12410 | model "six_pos" | ||
12411 | position "thead" | ||
12412 | ] | ||
12413 | ] | ||
12414 | edge | ||
12415 | [ | ||
12416 | source 5 | ||
12417 | target 6 | ||
12418 | graphics | ||
12419 | [ | ||
12420 | fill "#000000" | ||
12421 | width 3 | ||
12422 | targetArrow "standard" | ||
12423 | ] | ||
12424 | LabelGraphics | ||
12425 | [ | ||
12426 | text "data reference FunctionalInterface" | ||
12427 | fontSize 14 | ||
12428 | fontName "Consolas" | ||
12429 | configuration "AutoFlippingLabel" | ||
12430 | model "six_pos" | ||
12431 | position "thead" | ||
12432 | ] | ||
12433 | ] | ||
12434 | edge | ||
12435 | [ | ||
12436 | source 5 | ||
12437 | target 7 | ||
12438 | graphics | ||
12439 | [ | ||
12440 | fill "#000000" | ||
12441 | width 3 | ||
12442 | targetArrow "standard" | ||
12443 | ] | ||
12444 | LabelGraphics | ||
12445 | [ | ||
12446 | text "data reference FunctionalInterface" | ||
12447 | fontSize 14 | ||
12448 | fontName "Consolas" | ||
12449 | configuration "AutoFlippingLabel" | ||
12450 | model "six_pos" | ||
12451 | position "thead" | ||
12452 | ] | ||
12453 | ] | ||
12454 | edge | ||
12455 | [ | ||
12456 | source 5 | ||
12457 | target 8 | ||
12458 | graphics | ||
12459 | [ | ||
12460 | fill "#000000" | ||
12461 | width 3 | ||
12462 | targetArrow "standard" | ||
12463 | ] | ||
12464 | LabelGraphics | ||
12465 | [ | ||
12466 | text "data reference FunctionalInterface" | ||
12467 | fontSize 14 | ||
12468 | fontName "Consolas" | ||
12469 | configuration "AutoFlippingLabel" | ||
12470 | model "six_pos" | ||
12471 | position "thead" | ||
12472 | ] | ||
12473 | ] | ||
12474 | edge | ||
12475 | [ | ||
12476 | source 6 | ||
12477 | target 9 | ||
12478 | graphics | ||
12479 | [ | ||
12480 | fill "#000000" | ||
12481 | targetArrow "standard" | ||
12482 | ] | ||
12483 | LabelGraphics | ||
12484 | [ | ||
12485 | text "IncomingLinks reference FunctionalInput" | ||
12486 | fontSize 14 | ||
12487 | fontName "Consolas" | ||
12488 | configuration "AutoFlippingLabel" | ||
12489 | model "six_pos" | ||
12490 | position "thead" | ||
12491 | ] | ||
12492 | ] | ||
12493 | edge | ||
12494 | [ | ||
12495 | source 8 | ||
12496 | target 9 | ||
12497 | graphics | ||
12498 | [ | ||
12499 | fill "#000000" | ||
12500 | width 3 | ||
12501 | targetArrow "standard" | ||
12502 | ] | ||
12503 | LabelGraphics | ||
12504 | [ | ||
12505 | text "outgoingLinks reference FunctionalOutput" | ||
12506 | fontSize 14 | ||
12507 | fontName "Consolas" | ||
12508 | configuration "AutoFlippingLabel" | ||
12509 | model "six_pos" | ||
12510 | position "thead" | ||
12511 | ] | ||
12512 | ] | ||
12513 | edge | ||
12514 | [ | ||
12515 | source 8 | ||
12516 | target 10 | ||
12517 | graphics | ||
12518 | [ | ||
12519 | fill "#000000" | ||
12520 | width 3 | ||
12521 | targetArrow "standard" | ||
12522 | ] | ||
12523 | LabelGraphics | ||
12524 | [ | ||
12525 | text "terminator reference FunctionalData" | ||
12526 | fontSize 14 | ||
12527 | fontName "Consolas" | ||
12528 | configuration "AutoFlippingLabel" | ||
12529 | model "six_pos" | ||
12530 | position "thead" | ||
12531 | ] | ||
12532 | ] | ||
12533 | edge | ||
12534 | [ | ||
12535 | source 6 | ||
12536 | target 11 | ||
12537 | graphics | ||
12538 | [ | ||
12539 | fill "#000000" | ||
12540 | width 3 | ||
12541 | targetArrow "standard" | ||
12542 | ] | ||
12543 | LabelGraphics | ||
12544 | [ | ||
12545 | text "terminator reference FunctionalData" | ||
12546 | fontSize 14 | ||
12547 | fontName "Consolas" | ||
12548 | configuration "AutoFlippingLabel" | ||
12549 | model "six_pos" | ||
12550 | position "thead" | ||
12551 | ] | ||
12552 | ] | ||
12553 | edge | ||
12554 | [ | ||
12555 | source 6 | ||
12556 | target 5 | ||
12557 | graphics | ||
12558 | [ | ||
12559 | fill "#000000" | ||
12560 | targetArrow "standard" | ||
12561 | ] | ||
12562 | LabelGraphics | ||
12563 | [ | ||
12564 | text "interface reference FunctionalData" | ||
12565 | fontSize 14 | ||
12566 | fontName "Consolas" | ||
12567 | configuration "AutoFlippingLabel" | ||
12568 | model "six_pos" | ||
12569 | position "thead" | ||
12570 | ] | ||
12571 | ] | ||
12572 | edge | ||
12573 | [ | ||
12574 | source 7 | ||
12575 | target 5 | ||
12576 | graphics | ||
12577 | [ | ||
12578 | fill "#000000" | ||
12579 | targetArrow "standard" | ||
12580 | ] | ||
12581 | LabelGraphics | ||
12582 | [ | ||
12583 | text "interface reference FunctionalData" | ||
12584 | fontSize 14 | ||
12585 | fontName "Consolas" | ||
12586 | configuration "AutoFlippingLabel" | ||
12587 | model "six_pos" | ||
12588 | position "thead" | ||
12589 | ] | ||
12590 | ] | ||
12591 | edge | ||
12592 | [ | ||
12593 | source 8 | ||
12594 | target 5 | ||
12595 | graphics | ||
12596 | [ | ||
12597 | fill "#000000" | ||
12598 | targetArrow "standard" | ||
12599 | ] | ||
12600 | LabelGraphics | ||
12601 | [ | ||
12602 | text "interface reference FunctionalData" | ||
12603 | fontSize 14 | ||
12604 | fontName "Consolas" | ||
12605 | configuration "AutoFlippingLabel" | ||
12606 | model "six_pos" | ||
12607 | position "thead" | ||
12608 | ] | ||
12609 | ] | ||
12610 | ] | ||
12611 | graph | ||
12612 | [ | ||
12613 | node | ||
12614 | [ | ||
12615 | id 0 | ||
12616 | graphics | ||
12617 | [ | ||
12618 | w 226.60000000000002 | ||
12619 | h 40 | ||
12620 | type "rectangle" | ||
12621 | fill "#FFFFFF" | ||
12622 | fill2 "#FFFFFF" | ||
12623 | outline "#000000" | ||
12624 | ] | ||
12625 | LabelGraphics | ||
12626 | [ | ||
12627 | text "Root literal FunctionType" | ||
12628 | outline "#000000" | ||
12629 | fill "#FFFFFF" | ||
12630 | fontSize 16 | ||
12631 | fontName "Monospace" | ||
12632 | autoSizePolicy "node_width" | ||
12633 | anchor "t" | ||
12634 | borderDistance 0.0 | ||
12635 | ] | ||
12636 | LabelGraphics | ||
12637 | [ | ||
12638 | text " | ||
12639 | FunctionType enum | ||
12640 | " | ||
12641 | fontSize 14 | ||
12642 | fontName "Consolas" | ||
12643 | alignment "left" | ||
12644 | anchor "tl" | ||
12645 | borderDistance 6 | ||
12646 | ] | ||
12647 | ] | ||
12648 | |||
12649 | node | ||
12650 | [ | ||
12651 | id 1 | ||
12652 | graphics | ||
12653 | [ | ||
12654 | w 297.0 | ||
12655 | h 40 | ||
12656 | type "rectangle" | ||
12657 | fill "#FFFFFF" | ||
12658 | fill2 "#FFFFFF" | ||
12659 | outline "#000000" | ||
12660 | ] | ||
12661 | LabelGraphics | ||
12662 | [ | ||
12663 | text "Intermediate literal FunctionType" | ||
12664 | outline "#000000" | ||
12665 | fill "#FFFFFF" | ||
12666 | fontSize 16 | ||
12667 | fontName "Monospace" | ||
12668 | autoSizePolicy "node_width" | ||
12669 | anchor "t" | ||
12670 | borderDistance 0.0 | ||
12671 | ] | ||
12672 | LabelGraphics | ||
12673 | [ | ||
12674 | text " | ||
12675 | FunctionType enum | ||
12676 | " | ||
12677 | fontSize 14 | ||
12678 | fontName "Consolas" | ||
12679 | alignment "left" | ||
12680 | anchor "tl" | ||
12681 | borderDistance 6 | ||
12682 | ] | ||
12683 | ] | ||
12684 | |||
12685 | node | ||
12686 | [ | ||
12687 | id 2 | ||
12688 | graphics | ||
12689 | [ | ||
12690 | w 226.60000000000002 | ||
12691 | h 40 | ||
12692 | type "rectangle" | ||
12693 | fill "#FFFFFF" | ||
12694 | fill2 "#FFFFFF" | ||
12695 | outline "#000000" | ||
12696 | ] | ||
12697 | LabelGraphics | ||
12698 | [ | ||
12699 | text "Leaf literal FunctionType" | ||
12700 | outline "#000000" | ||
12701 | fill "#FFFFFF" | ||
12702 | fontSize 16 | ||
12703 | fontName "Monospace" | ||
12704 | autoSizePolicy "node_width" | ||
12705 | anchor "t" | ||
12706 | borderDistance 0.0 | ||
12707 | ] | ||
12708 | LabelGraphics | ||
12709 | [ | ||
12710 | text " | ||
12711 | FunctionType enum | ||
12712 | " | ||
12713 | fontSize 14 | ||
12714 | fontName "Consolas" | ||
12715 | alignment "left" | ||
12716 | anchor "tl" | ||
12717 | borderDistance 6 | ||
12718 | ] | ||
12719 | ] | ||
12720 | |||
12721 | node | ||
12722 | [ | ||
12723 | id 3 | ||
12724 | graphics | ||
12725 | [ | ||
12726 | w 41.800000000000004 | ||
12727 | h 26 | ||
12728 | type "rectangle" | ||
12729 | fill "#FFFFFF" | ||
12730 | fill2 "#FFFFFF" | ||
12731 | outline "#000000" | ||
12732 | ] | ||
12733 | LabelGraphics | ||
12734 | [ | ||
12735 | text "true" | ||
12736 | outline "#000000" | ||
12737 | fill "#FFFFFF" | ||
12738 | fontSize 16 | ||
12739 | fontName "Monospace" | ||
12740 | autoSizePolicy "node_width" | ||
12741 | anchor "t" | ||
12742 | borderDistance 0.0 | ||
12743 | ] | ||
12744 | LabelGraphics | ||
12745 | [ | ||
12746 | text " | ||
12747 | " | ||
12748 | fontSize 14 | ||
12749 | fontName "Consolas" | ||
12750 | alignment "left" | ||
12751 | anchor "tl" | ||
12752 | borderDistance 6 | ||
12753 | ] | ||
12754 | ] | ||
12755 | |||
12756 | node | ||
12757 | [ | ||
12758 | id 4 | ||
12759 | graphics | ||
12760 | [ | ||
12761 | w 50.6 | ||
12762 | h 26 | ||
12763 | type "rectangle" | ||
12764 | fill "#FFFFFF" | ||
12765 | fill2 "#FFFFFF" | ||
12766 | outline "#000000" | ||
12767 | ] | ||
12768 | LabelGraphics | ||
12769 | [ | ||
12770 | text "false" | ||
12771 | outline "#000000" | ||
12772 | fill "#FFFFFF" | ||
12773 | fontSize 16 | ||
12774 | fontName "Monospace" | ||
12775 | autoSizePolicy "node_width" | ||
12776 | anchor "t" | ||
12777 | borderDistance 0.0 | ||
12778 | ] | ||
12779 | LabelGraphics | ||
12780 | [ | ||
12781 | text " | ||
12782 | " | ||
12783 | fontSize 14 | ||
12784 | fontName "Consolas" | ||
12785 | alignment "left" | ||
12786 | anchor "tl" | ||
12787 | borderDistance 6 | ||
12788 | ] | ||
12789 | ] | ||
12790 | |||
12791 | node | ||
12792 | [ | ||
12793 | id 5 | ||
12794 | graphics | ||
12795 | [ | ||
12796 | w 207.9 | ||
12797 | h 40 | ||
12798 | type "rectangle" | ||
12799 | fill "#FFFFFF" | ||
12800 | fill2 "#FFFFFF" | ||
12801 | outline "#000000" | ||
12802 | ] | ||
12803 | LabelGraphics | ||
12804 | [ | ||
12805 | text "null" | ||
12806 | outline "#000000" | ||
12807 | fill "#FFFFFF" | ||
12808 | fontSize 16 | ||
12809 | fontName "Monospace" | ||
12810 | autoSizePolicy "node_width" | ||
12811 | anchor "t" | ||
12812 | borderDistance 0.0 | ||
12813 | ] | ||
12814 | LabelGraphics | ||
12815 | [ | ||
12816 | text " | ||
12817 | FunctionalInterface class | ||
12818 | " | ||
12819 | fontSize 14 | ||
12820 | fontName "Consolas" | ||
12821 | alignment "left" | ||
12822 | anchor "tl" | ||
12823 | borderDistance 6 | ||
12824 | ] | ||
12825 | ] | ||
12826 | |||
12827 | node | ||
12828 | [ | ||
12829 | id 6 | ||
12830 | graphics | ||
12831 | [ | ||
12832 | w 177.10000000000002 | ||
12833 | h 54 | ||
12834 | type "rectangle" | ||
12835 | fill "#FFFFFF" | ||
12836 | fill2 "#FFFFFF" | ||
12837 | outline "#000000" | ||
12838 | ] | ||
12839 | LabelGraphics | ||
12840 | [ | ||
12841 | text "null" | ||
12842 | outline "#000000" | ||
12843 | fill "#FFFFFF" | ||
12844 | fontSize 16 | ||
12845 | fontName "Monospace" | ||
12846 | autoSizePolicy "node_width" | ||
12847 | anchor "t" | ||
12848 | borderDistance 0.0 | ||
12849 | ] | ||
12850 | LabelGraphics | ||
12851 | [ | ||
12852 | text " | ||
12853 | FunctionalInput class | ||
12854 | FunctionalData class | ||
12855 | " | ||
12856 | fontSize 14 | ||
12857 | fontName "Consolas" | ||
12858 | alignment "left" | ||
12859 | anchor "tl" | ||
12860 | borderDistance 6 | ||
12861 | ] | ||
12862 | ] | ||
12863 | |||
12864 | node | ||
12865 | [ | ||
12866 | id 7 | ||
12867 | graphics | ||
12868 | [ | ||
12869 | w 177.10000000000002 | ||
12870 | h 54 | ||
12871 | type "rectangle" | ||
12872 | fill "#FFFFFF" | ||
12873 | fill2 "#FFFFFF" | ||
12874 | outline "#000000" | ||
12875 | ] | ||
12876 | LabelGraphics | ||
12877 | [ | ||
12878 | text "null" | ||
12879 | outline "#000000" | ||
12880 | fill "#FFFFFF" | ||
12881 | fontSize 16 | ||
12882 | fontName "Monospace" | ||
12883 | autoSizePolicy "node_width" | ||
12884 | anchor "t" | ||
12885 | borderDistance 0.0 | ||
12886 | ] | ||
12887 | LabelGraphics | ||
12888 | [ | ||
12889 | text " | ||
12890 | FunctionalInput class | ||
12891 | FunctionalData class | ||
12892 | " | ||
12893 | fontSize 14 | ||
12894 | fontName "Consolas" | ||
12895 | alignment "left" | ||
12896 | anchor "tl" | ||
12897 | borderDistance 6 | ||
12898 | ] | ||
12899 | ] | ||
12900 | |||
12901 | node | ||
12902 | [ | ||
12903 | id 8 | ||
12904 | graphics | ||
12905 | [ | ||
12906 | w 161.70000000000002 | ||
12907 | h 40 | ||
12908 | type "rectangle" | ||
12909 | fill "#FFFFFF" | ||
12910 | fill2 "#FFFFFF" | ||
12911 | outline "#000000" | ||
12912 | ] | ||
12913 | LabelGraphics | ||
12914 | [ | ||
12915 | text "null" | ||
12916 | outline "#000000" | ||
12917 | fill "#FFFFFF" | ||
12918 | fontSize 16 | ||
12919 | fontName "Monospace" | ||
12920 | autoSizePolicy "node_width" | ||
12921 | anchor "t" | ||
12922 | borderDistance 0.0 | ||
12923 | ] | ||
12924 | LabelGraphics | ||
12925 | [ | ||
12926 | text " | ||
12927 | FAMTerminator class | ||
12928 | " | ||
12929 | fontSize 14 | ||
12930 | fontName "Consolas" | ||
12931 | alignment "left" | ||
12932 | anchor "tl" | ||
12933 | borderDistance 6 | ||
12934 | ] | ||
12935 | ] | ||
12936 | |||
12937 | node | ||
12938 | [ | ||
12939 | id 9 | ||
12940 | graphics | ||
12941 | [ | ||
12942 | w 177.10000000000002 | ||
12943 | h 54 | ||
12944 | type "rectangle" | ||
12945 | fill "#FFFFFF" | ||
12946 | fill2 "#FFFFFF" | ||
12947 | outline "#000000" | ||
12948 | ] | ||
12949 | LabelGraphics | ||
12950 | [ | ||
12951 | text "null" | ||
12952 | outline "#000000" | ||
12953 | fill "#FFFFFF" | ||
12954 | fontSize 16 | ||
12955 | fontName "Monospace" | ||
12956 | autoSizePolicy "node_width" | ||
12957 | anchor "t" | ||
12958 | borderDistance 0.0 | ||
12959 | ] | ||
12960 | LabelGraphics | ||
12961 | [ | ||
12962 | text " | ||
12963 | FunctionalInput class | ||
12964 | FunctionalData class | ||
12965 | " | ||
12966 | fontSize 14 | ||
12967 | fontName "Consolas" | ||
12968 | alignment "left" | ||
12969 | anchor "tl" | ||
12970 | borderDistance 6 | ||
12971 | ] | ||
12972 | ] | ||
12973 | |||
12974 | node | ||
12975 | [ | ||
12976 | id 10 | ||
12977 | graphics | ||
12978 | [ | ||
12979 | w 184.8 | ||
12980 | h 54 | ||
12981 | type "rectangle" | ||
12982 | fill "#FFFFFF" | ||
12983 | fill2 "#FFFFFF" | ||
12984 | outline "#000000" | ||
12985 | ] | ||
12986 | LabelGraphics | ||
12987 | [ | ||
12988 | text "null" | ||
12989 | outline "#000000" | ||
12990 | fill "#FFFFFF" | ||
12991 | fontSize 16 | ||
12992 | fontName "Monospace" | ||
12993 | autoSizePolicy "node_width" | ||
12994 | anchor "t" | ||
12995 | borderDistance 0.0 | ||
12996 | ] | ||
12997 | LabelGraphics | ||
12998 | [ | ||
12999 | text " | ||
13000 | FunctionalOutput class | ||
13001 | FunctionalData class | ||
13002 | " | ||
13003 | fontSize 14 | ||
13004 | fontName "Consolas" | ||
13005 | alignment "left" | ||
13006 | anchor "tl" | ||
13007 | borderDistance 6 | ||
13008 | ] | ||
13009 | ] | ||
13010 | |||
13011 | node | ||
13012 | [ | ||
13013 | id 11 | ||
13014 | graphics | ||
13015 | [ | ||
13016 | w 177.10000000000002 | ||
13017 | h 40 | ||
13018 | type "rectangle" | ||
13019 | fill "#FFFFFF" | ||
13020 | fill2 "#FFFFFF" | ||
13021 | outline "#000000" | ||
13022 | ] | ||
13023 | LabelGraphics | ||
13024 | [ | ||
13025 | text "null" | ||
13026 | outline "#000000" | ||
13027 | fill "#FFFFFF" | ||
13028 | fontSize 16 | ||
13029 | fontName "Monospace" | ||
13030 | autoSizePolicy "node_width" | ||
13031 | anchor "t" | ||
13032 | borderDistance 0.0 | ||
13033 | ] | ||
13034 | LabelGraphics | ||
13035 | [ | ||
13036 | text " | ||
13037 | InformationLink class | ||
13038 | " | ||
13039 | fontSize 14 | ||
13040 | fontName "Consolas" | ||
13041 | alignment "left" | ||
13042 | anchor "tl" | ||
13043 | borderDistance 6 | ||
13044 | ] | ||
13045 | ] | ||
13046 | |||
13047 | node | ||
13048 | [ | ||
13049 | id 12 | ||
13050 | graphics | ||
13051 | [ | ||
13052 | w 112.2 | ||
13053 | h 26 | ||
13054 | type "rectangle" | ||
13055 | fill "#FFFFFF" | ||
13056 | fill2 "#FFFFFF" | ||
13057 | outline "#000000" | ||
13058 | ] | ||
13059 | LabelGraphics | ||
13060 | [ | ||
13061 | text "New Integers" | ||
13062 | outline "#000000" | ||
13063 | fill "#FFFFFF" | ||
13064 | fontSize 16 | ||
13065 | fontName "Monospace" | ||
13066 | autoSizePolicy "node_width" | ||
13067 | anchor "t" | ||
13068 | borderDistance 0.0 | ||
13069 | ] | ||
13070 | LabelGraphics | ||
13071 | [ | ||
13072 | text " | ||
13073 | " | ||
13074 | fontSize 14 | ||
13075 | fontName "Consolas" | ||
13076 | alignment "left" | ||
13077 | anchor "tl" | ||
13078 | borderDistance 6 | ||
13079 | ] | ||
13080 | ] | ||
13081 | |||
13082 | node | ||
13083 | [ | ||
13084 | id 13 | ||
13085 | graphics | ||
13086 | [ | ||
13087 | w 85.80000000000001 | ||
13088 | h 26 | ||
13089 | type "rectangle" | ||
13090 | fill "#FFFFFF" | ||
13091 | fill2 "#FFFFFF" | ||
13092 | outline "#000000" | ||
13093 | ] | ||
13094 | LabelGraphics | ||
13095 | [ | ||
13096 | text "New Reals" | ||
13097 | outline "#000000" | ||
13098 | fill "#FFFFFF" | ||
13099 | fontSize 16 | ||
13100 | fontName "Monospace" | ||
13101 | autoSizePolicy "node_width" | ||
13102 | anchor "t" | ||
13103 | borderDistance 0.0 | ||
13104 | ] | ||
13105 | LabelGraphics | ||
13106 | [ | ||
13107 | text " | ||
13108 | " | ||
13109 | fontSize 14 | ||
13110 | fontName "Consolas" | ||
13111 | alignment "left" | ||
13112 | anchor "tl" | ||
13113 | borderDistance 6 | ||
13114 | ] | ||
13115 | ] | ||
13116 | |||
13117 | node | ||
13118 | [ | ||
13119 | id 14 | ||
13120 | graphics | ||
13121 | [ | ||
13122 | w 103.4 | ||
13123 | h 26 | ||
13124 | type "rectangle" | ||
13125 | fill "#FFFFFF" | ||
13126 | fill2 "#FFFFFF" | ||
13127 | outline "#000000" | ||
13128 | ] | ||
13129 | LabelGraphics | ||
13130 | [ | ||
13131 | text "New Strings" | ||
13132 | outline "#000000" | ||
13133 | fill "#FFFFFF" | ||
13134 | fontSize 16 | ||
13135 | fontName "Monospace" | ||
13136 | autoSizePolicy "node_width" | ||
13137 | anchor "t" | ||
13138 | borderDistance 0.0 | ||
13139 | ] | ||
13140 | LabelGraphics | ||
13141 | [ | ||
13142 | text " | ||
13143 | " | ||
13144 | fontSize 14 | ||
13145 | fontName "Consolas" | ||
13146 | alignment "left" | ||
13147 | anchor "tl" | ||
13148 | borderDistance 6 | ||
13149 | ] | ||
13150 | ] | ||
13151 | |||
13152 | node | ||
13153 | [ | ||
13154 | id 15 | ||
13155 | graphics | ||
13156 | [ | ||
13157 | w 103.4 | ||
13158 | h 26 | ||
13159 | type "rectangle" | ||
13160 | fill "#FFFFFF" | ||
13161 | fill2 "#FFFFFF" | ||
13162 | outline "#000000" | ||
13163 | ] | ||
13164 | LabelGraphics | ||
13165 | [ | ||
13166 | text "New Objects" | ||
13167 | outline "#000000" | ||
13168 | fill "#FFFFFF" | ||
13169 | fontSize 16 | ||
13170 | fontName "Monospace" | ||
13171 | autoSizePolicy "node_width" | ||
13172 | anchor "t" | ||
13173 | borderDistance 0.0 | ||
13174 | ] | ||
13175 | LabelGraphics | ||
13176 | [ | ||
13177 | text " | ||
13178 | " | ||
13179 | fontSize 14 | ||
13180 | fontName "Consolas" | ||
13181 | alignment "left" | ||
13182 | anchor "tl" | ||
13183 | borderDistance 6 | ||
13184 | ] | ||
13185 | ] | ||
13186 | edge | ||
13187 | [ | ||
13188 | source 8 | ||
13189 | target 6 | ||
13190 | graphics | ||
13191 | [ | ||
13192 | fill "#000000" | ||
13193 | targetArrow "standard" | ||
13194 | ] | ||
13195 | LabelGraphics | ||
13196 | [ | ||
13197 | text "data reference FAMTerminator" | ||
13198 | fontSize 14 | ||
13199 | fontName "Consolas" | ||
13200 | configuration "AutoFlippingLabel" | ||
13201 | model "six_pos" | ||
13202 | position "thead" | ||
13203 | ] | ||
13204 | ] | ||
13205 | edge | ||
13206 | [ | ||
13207 | source 11 | ||
13208 | target 10 | ||
13209 | graphics | ||
13210 | [ | ||
13211 | fill "#000000" | ||
13212 | targetArrow "standard" | ||
13213 | ] | ||
13214 | LabelGraphics | ||
13215 | [ | ||
13216 | text "from reference InformationLink" | ||
13217 | fontSize 14 | ||
13218 | fontName "Consolas" | ||
13219 | configuration "AutoFlippingLabel" | ||
13220 | model "six_pos" | ||
13221 | position "thead" | ||
13222 | ] | ||
13223 | ] | ||
13224 | edge | ||
13225 | [ | ||
13226 | source 11 | ||
13227 | target 6 | ||
13228 | graphics | ||
13229 | [ | ||
13230 | fill "#000000" | ||
13231 | targetArrow "standard" | ||
13232 | ] | ||
13233 | LabelGraphics | ||
13234 | [ | ||
13235 | text "to reference InformationLink" | ||
13236 | fontSize 14 | ||
13237 | fontName "Consolas" | ||
13238 | configuration "AutoFlippingLabel" | ||
13239 | model "six_pos" | ||
13240 | position "thead" | ||
13241 | ] | ||
13242 | ] | ||
13243 | edge | ||
13244 | [ | ||
13245 | source 5 | ||
13246 | target 6 | ||
13247 | graphics | ||
13248 | [ | ||
13249 | fill "#000000" | ||
13250 | width 3 | ||
13251 | targetArrow "standard" | ||
13252 | ] | ||
13253 | LabelGraphics | ||
13254 | [ | ||
13255 | text "data reference FunctionalInterface" | ||
13256 | fontSize 14 | ||
13257 | fontName "Consolas" | ||
13258 | configuration "AutoFlippingLabel" | ||
13259 | model "six_pos" | ||
13260 | position "thead" | ||
13261 | ] | ||
13262 | ] | ||
13263 | edge | ||
13264 | [ | ||
13265 | source 5 | ||
13266 | target 7 | ||
13267 | graphics | ||
13268 | [ | ||
13269 | fill "#000000" | ||
13270 | width 3 | ||
13271 | targetArrow "standard" | ||
13272 | ] | ||
13273 | LabelGraphics | ||
13274 | [ | ||
13275 | text "data reference FunctionalInterface" | ||
13276 | fontSize 14 | ||
13277 | fontName "Consolas" | ||
13278 | configuration "AutoFlippingLabel" | ||
13279 | model "six_pos" | ||
13280 | position "thead" | ||
13281 | ] | ||
13282 | ] | ||
13283 | edge | ||
13284 | [ | ||
13285 | source 5 | ||
13286 | target 9 | ||
13287 | graphics | ||
13288 | [ | ||
13289 | fill "#000000" | ||
13290 | width 3 | ||
13291 | targetArrow "standard" | ||
13292 | ] | ||
13293 | LabelGraphics | ||
13294 | [ | ||
13295 | text "data reference FunctionalInterface" | ||
13296 | fontSize 14 | ||
13297 | fontName "Consolas" | ||
13298 | configuration "AutoFlippingLabel" | ||
13299 | model "six_pos" | ||
13300 | position "thead" | ||
13301 | ] | ||
13302 | ] | ||
13303 | edge | ||
13304 | [ | ||
13305 | source 5 | ||
13306 | target 10 | ||
13307 | graphics | ||
13308 | [ | ||
13309 | fill "#000000" | ||
13310 | width 3 | ||
13311 | targetArrow "standard" | ||
13312 | ] | ||
13313 | LabelGraphics | ||
13314 | [ | ||
13315 | text "data reference FunctionalInterface" | ||
13316 | fontSize 14 | ||
13317 | fontName "Consolas" | ||
13318 | configuration "AutoFlippingLabel" | ||
13319 | model "six_pos" | ||
13320 | position "thead" | ||
13321 | ] | ||
13322 | ] | ||
13323 | edge | ||
13324 | [ | ||
13325 | source 6 | ||
13326 | target 11 | ||
13327 | graphics | ||
13328 | [ | ||
13329 | fill "#000000" | ||
13330 | targetArrow "standard" | ||
13331 | ] | ||
13332 | LabelGraphics | ||
13333 | [ | ||
13334 | text "IncomingLinks reference FunctionalInput" | ||
13335 | fontSize 14 | ||
13336 | fontName "Consolas" | ||
13337 | configuration "AutoFlippingLabel" | ||
13338 | model "six_pos" | ||
13339 | position "thead" | ||
13340 | ] | ||
13341 | ] | ||
13342 | edge | ||
13343 | [ | ||
13344 | source 10 | ||
13345 | target 11 | ||
13346 | graphics | ||
13347 | [ | ||
13348 | fill "#000000" | ||
13349 | width 3 | ||
13350 | targetArrow "standard" | ||
13351 | ] | ||
13352 | LabelGraphics | ||
13353 | [ | ||
13354 | text "outgoingLinks reference FunctionalOutput" | ||
13355 | fontSize 14 | ||
13356 | fontName "Consolas" | ||
13357 | configuration "AutoFlippingLabel" | ||
13358 | model "six_pos" | ||
13359 | position "thead" | ||
13360 | ] | ||
13361 | ] | ||
13362 | edge | ||
13363 | [ | ||
13364 | source 6 | ||
13365 | target 8 | ||
13366 | graphics | ||
13367 | [ | ||
13368 | fill "#000000" | ||
13369 | width 3 | ||
13370 | targetArrow "standard" | ||
13371 | ] | ||
13372 | LabelGraphics | ||
13373 | [ | ||
13374 | text "terminator reference FunctionalData" | ||
13375 | fontSize 14 | ||
13376 | fontName "Consolas" | ||
13377 | configuration "AutoFlippingLabel" | ||
13378 | model "six_pos" | ||
13379 | position "thead" | ||
13380 | ] | ||
13381 | ] | ||
13382 | edge | ||
13383 | [ | ||
13384 | source 6 | ||
13385 | target 5 | ||
13386 | graphics | ||
13387 | [ | ||
13388 | fill "#000000" | ||
13389 | targetArrow "standard" | ||
13390 | ] | ||
13391 | LabelGraphics | ||
13392 | [ | ||
13393 | text "interface reference FunctionalData" | ||
13394 | fontSize 14 | ||
13395 | fontName "Consolas" | ||
13396 | configuration "AutoFlippingLabel" | ||
13397 | model "six_pos" | ||
13398 | position "thead" | ||
13399 | ] | ||
13400 | ] | ||
13401 | edge | ||
13402 | [ | ||
13403 | source 7 | ||
13404 | target 5 | ||
13405 | graphics | ||
13406 | [ | ||
13407 | fill "#000000" | ||
13408 | targetArrow "standard" | ||
13409 | ] | ||
13410 | LabelGraphics | ||
13411 | [ | ||
13412 | text "interface reference FunctionalData" | ||
13413 | fontSize 14 | ||
13414 | fontName "Consolas" | ||
13415 | configuration "AutoFlippingLabel" | ||
13416 | model "six_pos" | ||
13417 | position "thead" | ||
13418 | ] | ||
13419 | ] | ||
13420 | edge | ||
13421 | [ | ||
13422 | source 9 | ||
13423 | target 5 | ||
13424 | graphics | ||
13425 | [ | ||
13426 | fill "#000000" | ||
13427 | targetArrow "standard" | ||
13428 | ] | ||
13429 | LabelGraphics | ||
13430 | [ | ||
13431 | text "interface reference FunctionalData" | ||
13432 | fontSize 14 | ||
13433 | fontName "Consolas" | ||
13434 | configuration "AutoFlippingLabel" | ||
13435 | model "six_pos" | ||
13436 | position "thead" | ||
13437 | ] | ||
13438 | ] | ||
13439 | edge | ||
13440 | [ | ||
13441 | source 10 | ||
13442 | target 5 | ||
13443 | graphics | ||
13444 | [ | ||
13445 | fill "#000000" | ||
13446 | targetArrow "standard" | ||
13447 | ] | ||
13448 | LabelGraphics | ||
13449 | [ | ||
13450 | text "interface reference FunctionalData" | ||
13451 | fontSize 14 | ||
13452 | fontName "Consolas" | ||
13453 | configuration "AutoFlippingLabel" | ||
13454 | model "six_pos" | ||
13455 | position "thead" | ||
13456 | ] | ||
13457 | ] | ||
13458 | ] | ||
13459 | graph | ||
13460 | [ | ||
13461 | node | ||
13462 | [ | ||
13463 | id 0 | ||
13464 | graphics | ||
13465 | [ | ||
13466 | w 226.60000000000002 | ||
13467 | h 40 | ||
13468 | type "rectangle" | ||
13469 | fill "#FFFFFF" | ||
13470 | fill2 "#FFFFFF" | ||
13471 | outline "#000000" | ||
13472 | ] | ||
13473 | LabelGraphics | ||
13474 | [ | ||
13475 | text "Root literal FunctionType" | ||
13476 | outline "#000000" | ||
13477 | fill "#FFFFFF" | ||
13478 | fontSize 16 | ||
13479 | fontName "Monospace" | ||
13480 | autoSizePolicy "node_width" | ||
13481 | anchor "t" | ||
13482 | borderDistance 0.0 | ||
13483 | ] | ||
13484 | LabelGraphics | ||
13485 | [ | ||
13486 | text " | ||
13487 | FunctionType enum | ||
13488 | " | ||
13489 | fontSize 14 | ||
13490 | fontName "Consolas" | ||
13491 | alignment "left" | ||
13492 | anchor "tl" | ||
13493 | borderDistance 6 | ||
13494 | ] | ||
13495 | ] | ||
13496 | |||
13497 | node | ||
13498 | [ | ||
13499 | id 1 | ||
13500 | graphics | ||
13501 | [ | ||
13502 | w 297.0 | ||
13503 | h 40 | ||
13504 | type "rectangle" | ||
13505 | fill "#FFFFFF" | ||
13506 | fill2 "#FFFFFF" | ||
13507 | outline "#000000" | ||
13508 | ] | ||
13509 | LabelGraphics | ||
13510 | [ | ||
13511 | text "Intermediate literal FunctionType" | ||
13512 | outline "#000000" | ||
13513 | fill "#FFFFFF" | ||
13514 | fontSize 16 | ||
13515 | fontName "Monospace" | ||
13516 | autoSizePolicy "node_width" | ||
13517 | anchor "t" | ||
13518 | borderDistance 0.0 | ||
13519 | ] | ||
13520 | LabelGraphics | ||
13521 | [ | ||
13522 | text " | ||
13523 | FunctionType enum | ||
13524 | " | ||
13525 | fontSize 14 | ||
13526 | fontName "Consolas" | ||
13527 | alignment "left" | ||
13528 | anchor "tl" | ||
13529 | borderDistance 6 | ||
13530 | ] | ||
13531 | ] | ||
13532 | |||
13533 | node | ||
13534 | [ | ||
13535 | id 2 | ||
13536 | graphics | ||
13537 | [ | ||
13538 | w 226.60000000000002 | ||
13539 | h 40 | ||
13540 | type "rectangle" | ||
13541 | fill "#FFFFFF" | ||
13542 | fill2 "#FFFFFF" | ||
13543 | outline "#000000" | ||
13544 | ] | ||
13545 | LabelGraphics | ||
13546 | [ | ||
13547 | text "Leaf literal FunctionType" | ||
13548 | outline "#000000" | ||
13549 | fill "#FFFFFF" | ||
13550 | fontSize 16 | ||
13551 | fontName "Monospace" | ||
13552 | autoSizePolicy "node_width" | ||
13553 | anchor "t" | ||
13554 | borderDistance 0.0 | ||
13555 | ] | ||
13556 | LabelGraphics | ||
13557 | [ | ||
13558 | text " | ||
13559 | FunctionType enum | ||
13560 | " | ||
13561 | fontSize 14 | ||
13562 | fontName "Consolas" | ||
13563 | alignment "left" | ||
13564 | anchor "tl" | ||
13565 | borderDistance 6 | ||
13566 | ] | ||
13567 | ] | ||
13568 | |||
13569 | node | ||
13570 | [ | ||
13571 | id 3 | ||
13572 | graphics | ||
13573 | [ | ||
13574 | w 41.800000000000004 | ||
13575 | h 26 | ||
13576 | type "rectangle" | ||
13577 | fill "#FFFFFF" | ||
13578 | fill2 "#FFFFFF" | ||
13579 | outline "#000000" | ||
13580 | ] | ||
13581 | LabelGraphics | ||
13582 | [ | ||
13583 | text "true" | ||
13584 | outline "#000000" | ||
13585 | fill "#FFFFFF" | ||
13586 | fontSize 16 | ||
13587 | fontName "Monospace" | ||
13588 | autoSizePolicy "node_width" | ||
13589 | anchor "t" | ||
13590 | borderDistance 0.0 | ||
13591 | ] | ||
13592 | LabelGraphics | ||
13593 | [ | ||
13594 | text " | ||
13595 | " | ||
13596 | fontSize 14 | ||
13597 | fontName "Consolas" | ||
13598 | alignment "left" | ||
13599 | anchor "tl" | ||
13600 | borderDistance 6 | ||
13601 | ] | ||
13602 | ] | ||
13603 | |||
13604 | node | ||
13605 | [ | ||
13606 | id 4 | ||
13607 | graphics | ||
13608 | [ | ||
13609 | w 50.6 | ||
13610 | h 26 | ||
13611 | type "rectangle" | ||
13612 | fill "#FFFFFF" | ||
13613 | fill2 "#FFFFFF" | ||
13614 | outline "#000000" | ||
13615 | ] | ||
13616 | LabelGraphics | ||
13617 | [ | ||
13618 | text "false" | ||
13619 | outline "#000000" | ||
13620 | fill "#FFFFFF" | ||
13621 | fontSize 16 | ||
13622 | fontName "Monospace" | ||
13623 | autoSizePolicy "node_width" | ||
13624 | anchor "t" | ||
13625 | borderDistance 0.0 | ||
13626 | ] | ||
13627 | LabelGraphics | ||
13628 | [ | ||
13629 | text " | ||
13630 | " | ||
13631 | fontSize 14 | ||
13632 | fontName "Consolas" | ||
13633 | alignment "left" | ||
13634 | anchor "tl" | ||
13635 | borderDistance 6 | ||
13636 | ] | ||
13637 | ] | ||
13638 | |||
13639 | node | ||
13640 | [ | ||
13641 | id 5 | ||
13642 | graphics | ||
13643 | [ | ||
13644 | w 207.9 | ||
13645 | h 40 | ||
13646 | type "rectangle" | ||
13647 | fill "#FFFFFF" | ||
13648 | fill2 "#FFFFFF" | ||
13649 | outline "#000000" | ||
13650 | ] | ||
13651 | LabelGraphics | ||
13652 | [ | ||
13653 | text "null" | ||
13654 | outline "#000000" | ||
13655 | fill "#FFFFFF" | ||
13656 | fontSize 16 | ||
13657 | fontName "Monospace" | ||
13658 | autoSizePolicy "node_width" | ||
13659 | anchor "t" | ||
13660 | borderDistance 0.0 | ||
13661 | ] | ||
13662 | LabelGraphics | ||
13663 | [ | ||
13664 | text " | ||
13665 | FunctionalInterface class | ||
13666 | " | ||
13667 | fontSize 14 | ||
13668 | fontName "Consolas" | ||
13669 | alignment "left" | ||
13670 | anchor "tl" | ||
13671 | borderDistance 6 | ||
13672 | ] | ||
13673 | ] | ||
13674 | |||
13675 | node | ||
13676 | [ | ||
13677 | id 6 | ||
13678 | graphics | ||
13679 | [ | ||
13680 | w 177.10000000000002 | ||
13681 | h 54 | ||
13682 | type "rectangle" | ||
13683 | fill "#FFFFFF" | ||
13684 | fill2 "#FFFFFF" | ||
13685 | outline "#000000" | ||
13686 | ] | ||
13687 | LabelGraphics | ||
13688 | [ | ||
13689 | text "null" | ||
13690 | outline "#000000" | ||
13691 | fill "#FFFFFF" | ||
13692 | fontSize 16 | ||
13693 | fontName "Monospace" | ||
13694 | autoSizePolicy "node_width" | ||
13695 | anchor "t" | ||
13696 | borderDistance 0.0 | ||
13697 | ] | ||
13698 | LabelGraphics | ||
13699 | [ | ||
13700 | text " | ||
13701 | FunctionalInput class | ||
13702 | FunctionalData class | ||
13703 | " | ||
13704 | fontSize 14 | ||
13705 | fontName "Consolas" | ||
13706 | alignment "left" | ||
13707 | anchor "tl" | ||
13708 | borderDistance 6 | ||
13709 | ] | ||
13710 | ] | ||
13711 | |||
13712 | node | ||
13713 | [ | ||
13714 | id 7 | ||
13715 | graphics | ||
13716 | [ | ||
13717 | w 161.70000000000002 | ||
13718 | h 40 | ||
13719 | type "rectangle" | ||
13720 | fill "#FFFFFF" | ||
13721 | fill2 "#FFFFFF" | ||
13722 | outline "#000000" | ||
13723 | ] | ||
13724 | LabelGraphics | ||
13725 | [ | ||
13726 | text "null" | ||
13727 | outline "#000000" | ||
13728 | fill "#FFFFFF" | ||
13729 | fontSize 16 | ||
13730 | fontName "Monospace" | ||
13731 | autoSizePolicy "node_width" | ||
13732 | anchor "t" | ||
13733 | borderDistance 0.0 | ||
13734 | ] | ||
13735 | LabelGraphics | ||
13736 | [ | ||
13737 | text " | ||
13738 | FAMTerminator class | ||
13739 | " | ||
13740 | fontSize 14 | ||
13741 | fontName "Consolas" | ||
13742 | alignment "left" | ||
13743 | anchor "tl" | ||
13744 | borderDistance 6 | ||
13745 | ] | ||
13746 | ] | ||
13747 | |||
13748 | node | ||
13749 | [ | ||
13750 | id 8 | ||
13751 | graphics | ||
13752 | [ | ||
13753 | w 177.10000000000002 | ||
13754 | h 54 | ||
13755 | type "rectangle" | ||
13756 | fill "#FFFFFF" | ||
13757 | fill2 "#FFFFFF" | ||
13758 | outline "#000000" | ||
13759 | ] | ||
13760 | LabelGraphics | ||
13761 | [ | ||
13762 | text "null" | ||
13763 | outline "#000000" | ||
13764 | fill "#FFFFFF" | ||
13765 | fontSize 16 | ||
13766 | fontName "Monospace" | ||
13767 | autoSizePolicy "node_width" | ||
13768 | anchor "t" | ||
13769 | borderDistance 0.0 | ||
13770 | ] | ||
13771 | LabelGraphics | ||
13772 | [ | ||
13773 | text " | ||
13774 | FunctionalInput class | ||
13775 | FunctionalData class | ||
13776 | " | ||
13777 | fontSize 14 | ||
13778 | fontName "Consolas" | ||
13779 | alignment "left" | ||
13780 | anchor "tl" | ||
13781 | borderDistance 6 | ||
13782 | ] | ||
13783 | ] | ||
13784 | |||
13785 | node | ||
13786 | [ | ||
13787 | id 9 | ||
13788 | graphics | ||
13789 | [ | ||
13790 | w 184.8 | ||
13791 | h 54 | ||
13792 | type "rectangle" | ||
13793 | fill "#FFFFFF" | ||
13794 | fill2 "#FFFFFF" | ||
13795 | outline "#000000" | ||
13796 | ] | ||
13797 | LabelGraphics | ||
13798 | [ | ||
13799 | text "null" | ||
13800 | outline "#000000" | ||
13801 | fill "#FFFFFF" | ||
13802 | fontSize 16 | ||
13803 | fontName "Monospace" | ||
13804 | autoSizePolicy "node_width" | ||
13805 | anchor "t" | ||
13806 | borderDistance 0.0 | ||
13807 | ] | ||
13808 | LabelGraphics | ||
13809 | [ | ||
13810 | text " | ||
13811 | FunctionalOutput class | ||
13812 | FunctionalData class | ||
13813 | " | ||
13814 | fontSize 14 | ||
13815 | fontName "Consolas" | ||
13816 | alignment "left" | ||
13817 | anchor "tl" | ||
13818 | borderDistance 6 | ||
13819 | ] | ||
13820 | ] | ||
13821 | |||
13822 | node | ||
13823 | [ | ||
13824 | id 10 | ||
13825 | graphics | ||
13826 | [ | ||
13827 | w 161.70000000000002 | ||
13828 | h 40 | ||
13829 | type "rectangle" | ||
13830 | fill "#FFFFFF" | ||
13831 | fill2 "#FFFFFF" | ||
13832 | outline "#000000" | ||
13833 | ] | ||
13834 | LabelGraphics | ||
13835 | [ | ||
13836 | text "null" | ||
13837 | outline "#000000" | ||
13838 | fill "#FFFFFF" | ||
13839 | fontSize 16 | ||
13840 | fontName "Monospace" | ||
13841 | autoSizePolicy "node_width" | ||
13842 | anchor "t" | ||
13843 | borderDistance 0.0 | ||
13844 | ] | ||
13845 | LabelGraphics | ||
13846 | [ | ||
13847 | text " | ||
13848 | FAMTerminator class | ||
13849 | " | ||
13850 | fontSize 14 | ||
13851 | fontName "Consolas" | ||
13852 | alignment "left" | ||
13853 | anchor "tl" | ||
13854 | borderDistance 6 | ||
13855 | ] | ||
13856 | ] | ||
13857 | |||
13858 | node | ||
13859 | [ | ||
13860 | id 11 | ||
13861 | graphics | ||
13862 | [ | ||
13863 | w 184.8 | ||
13864 | h 54 | ||
13865 | type "rectangle" | ||
13866 | fill "#FFFFFF" | ||
13867 | fill2 "#FFFFFF" | ||
13868 | outline "#000000" | ||
13869 | ] | ||
13870 | LabelGraphics | ||
13871 | [ | ||
13872 | text "null" | ||
13873 | outline "#000000" | ||
13874 | fill "#FFFFFF" | ||
13875 | fontSize 16 | ||
13876 | fontName "Monospace" | ||
13877 | autoSizePolicy "node_width" | ||
13878 | anchor "t" | ||
13879 | borderDistance 0.0 | ||
13880 | ] | ||
13881 | LabelGraphics | ||
13882 | [ | ||
13883 | text " | ||
13884 | FunctionalOutput class | ||
13885 | FunctionalData class | ||
13886 | " | ||
13887 | fontSize 14 | ||
13888 | fontName "Consolas" | ||
13889 | alignment "left" | ||
13890 | anchor "tl" | ||
13891 | borderDistance 6 | ||
13892 | ] | ||
13893 | ] | ||
13894 | |||
13895 | node | ||
13896 | [ | ||
13897 | id 12 | ||
13898 | graphics | ||
13899 | [ | ||
13900 | w 112.2 | ||
13901 | h 26 | ||
13902 | type "rectangle" | ||
13903 | fill "#FFFFFF" | ||
13904 | fill2 "#FFFFFF" | ||
13905 | outline "#000000" | ||
13906 | ] | ||
13907 | LabelGraphics | ||
13908 | [ | ||
13909 | text "New Integers" | ||
13910 | outline "#000000" | ||
13911 | fill "#FFFFFF" | ||
13912 | fontSize 16 | ||
13913 | fontName "Monospace" | ||
13914 | autoSizePolicy "node_width" | ||
13915 | anchor "t" | ||
13916 | borderDistance 0.0 | ||
13917 | ] | ||
13918 | LabelGraphics | ||
13919 | [ | ||
13920 | text " | ||
13921 | " | ||
13922 | fontSize 14 | ||
13923 | fontName "Consolas" | ||
13924 | alignment "left" | ||
13925 | anchor "tl" | ||
13926 | borderDistance 6 | ||
13927 | ] | ||
13928 | ] | ||
13929 | |||
13930 | node | ||
13931 | [ | ||
13932 | id 13 | ||
13933 | graphics | ||
13934 | [ | ||
13935 | w 85.80000000000001 | ||
13936 | h 26 | ||
13937 | type "rectangle" | ||
13938 | fill "#FFFFFF" | ||
13939 | fill2 "#FFFFFF" | ||
13940 | outline "#000000" | ||
13941 | ] | ||
13942 | LabelGraphics | ||
13943 | [ | ||
13944 | text "New Reals" | ||
13945 | outline "#000000" | ||
13946 | fill "#FFFFFF" | ||
13947 | fontSize 16 | ||
13948 | fontName "Monospace" | ||
13949 | autoSizePolicy "node_width" | ||
13950 | anchor "t" | ||
13951 | borderDistance 0.0 | ||
13952 | ] | ||
13953 | LabelGraphics | ||
13954 | [ | ||
13955 | text " | ||
13956 | " | ||
13957 | fontSize 14 | ||
13958 | fontName "Consolas" | ||
13959 | alignment "left" | ||
13960 | anchor "tl" | ||
13961 | borderDistance 6 | ||
13962 | ] | ||
13963 | ] | ||
13964 | |||
13965 | node | ||
13966 | [ | ||
13967 | id 14 | ||
13968 | graphics | ||
13969 | [ | ||
13970 | w 103.4 | ||
13971 | h 26 | ||
13972 | type "rectangle" | ||
13973 | fill "#FFFFFF" | ||
13974 | fill2 "#FFFFFF" | ||
13975 | outline "#000000" | ||
13976 | ] | ||
13977 | LabelGraphics | ||
13978 | [ | ||
13979 | text "New Strings" | ||
13980 | outline "#000000" | ||
13981 | fill "#FFFFFF" | ||
13982 | fontSize 16 | ||
13983 | fontName "Monospace" | ||
13984 | autoSizePolicy "node_width" | ||
13985 | anchor "t" | ||
13986 | borderDistance 0.0 | ||
13987 | ] | ||
13988 | LabelGraphics | ||
13989 | [ | ||
13990 | text " | ||
13991 | " | ||
13992 | fontSize 14 | ||
13993 | fontName "Consolas" | ||
13994 | alignment "left" | ||
13995 | anchor "tl" | ||
13996 | borderDistance 6 | ||
13997 | ] | ||
13998 | ] | ||
13999 | |||
14000 | node | ||
14001 | [ | ||
14002 | id 15 | ||
14003 | graphics | ||
14004 | [ | ||
14005 | w 103.4 | ||
14006 | h 26 | ||
14007 | type "rectangle" | ||
14008 | fill "#FFFFFF" | ||
14009 | fill2 "#FFFFFF" | ||
14010 | outline "#000000" | ||
14011 | ] | ||
14012 | LabelGraphics | ||
14013 | [ | ||
14014 | text "New Objects" | ||
14015 | outline "#000000" | ||
14016 | fill "#FFFFFF" | ||
14017 | fontSize 16 | ||
14018 | fontName "Monospace" | ||
14019 | autoSizePolicy "node_width" | ||
14020 | anchor "t" | ||
14021 | borderDistance 0.0 | ||
14022 | ] | ||
14023 | LabelGraphics | ||
14024 | [ | ||
14025 | text " | ||
14026 | " | ||
14027 | fontSize 14 | ||
14028 | fontName "Consolas" | ||
14029 | alignment "left" | ||
14030 | anchor "tl" | ||
14031 | borderDistance 6 | ||
14032 | ] | ||
14033 | ] | ||
14034 | edge | ||
14035 | [ | ||
14036 | source 7 | ||
14037 | target 6 | ||
14038 | graphics | ||
14039 | [ | ||
14040 | fill "#000000" | ||
14041 | targetArrow "standard" | ||
14042 | ] | ||
14043 | LabelGraphics | ||
14044 | [ | ||
14045 | text "data reference FAMTerminator" | ||
14046 | fontSize 14 | ||
14047 | fontName "Consolas" | ||
14048 | configuration "AutoFlippingLabel" | ||
14049 | model "six_pos" | ||
14050 | position "thead" | ||
14051 | ] | ||
14052 | ] | ||
14053 | edge | ||
14054 | [ | ||
14055 | source 10 | ||
14056 | target 8 | ||
14057 | graphics | ||
14058 | [ | ||
14059 | fill "#000000" | ||
14060 | targetArrow "standard" | ||
14061 | ] | ||
14062 | LabelGraphics | ||
14063 | [ | ||
14064 | text "data reference FAMTerminator" | ||
14065 | fontSize 14 | ||
14066 | fontName "Consolas" | ||
14067 | configuration "AutoFlippingLabel" | ||
14068 | model "six_pos" | ||
14069 | position "thead" | ||
14070 | ] | ||
14071 | ] | ||
14072 | edge | ||
14073 | [ | ||
14074 | source 5 | ||
14075 | target 6 | ||
14076 | graphics | ||
14077 | [ | ||
14078 | fill "#000000" | ||
14079 | width 3 | ||
14080 | targetArrow "standard" | ||
14081 | ] | ||
14082 | LabelGraphics | ||
14083 | [ | ||
14084 | text "data reference FunctionalInterface" | ||
14085 | fontSize 14 | ||
14086 | fontName "Consolas" | ||
14087 | configuration "AutoFlippingLabel" | ||
14088 | model "six_pos" | ||
14089 | position "thead" | ||
14090 | ] | ||
14091 | ] | ||
14092 | edge | ||
14093 | [ | ||
14094 | source 5 | ||
14095 | target 8 | ||
14096 | graphics | ||
14097 | [ | ||
14098 | fill "#000000" | ||
14099 | width 3 | ||
14100 | targetArrow "standard" | ||
14101 | ] | ||
14102 | LabelGraphics | ||
14103 | [ | ||
14104 | text "data reference FunctionalInterface" | ||
14105 | fontSize 14 | ||
14106 | fontName "Consolas" | ||
14107 | configuration "AutoFlippingLabel" | ||
14108 | model "six_pos" | ||
14109 | position "thead" | ||
14110 | ] | ||
14111 | ] | ||
14112 | edge | ||
14113 | [ | ||
14114 | source 5 | ||
14115 | target 9 | ||
14116 | graphics | ||
14117 | [ | ||
14118 | fill "#000000" | ||
14119 | width 3 | ||
14120 | targetArrow "standard" | ||
14121 | ] | ||
14122 | LabelGraphics | ||
14123 | [ | ||
14124 | text "data reference FunctionalInterface" | ||
14125 | fontSize 14 | ||
14126 | fontName "Consolas" | ||
14127 | configuration "AutoFlippingLabel" | ||
14128 | model "six_pos" | ||
14129 | position "thead" | ||
14130 | ] | ||
14131 | ] | ||
14132 | edge | ||
14133 | [ | ||
14134 | source 5 | ||
14135 | target 11 | ||
14136 | graphics | ||
14137 | [ | ||
14138 | fill "#000000" | ||
14139 | width 3 | ||
14140 | targetArrow "standard" | ||
14141 | ] | ||
14142 | LabelGraphics | ||
14143 | [ | ||
14144 | text "data reference FunctionalInterface" | ||
14145 | fontSize 14 | ||
14146 | fontName "Consolas" | ||
14147 | configuration "AutoFlippingLabel" | ||
14148 | model "six_pos" | ||
14149 | position "thead" | ||
14150 | ] | ||
14151 | ] | ||
14152 | edge | ||
14153 | [ | ||
14154 | source 6 | ||
14155 | target 7 | ||
14156 | graphics | ||
14157 | [ | ||
14158 | fill "#000000" | ||
14159 | width 3 | ||
14160 | targetArrow "standard" | ||
14161 | ] | ||
14162 | LabelGraphics | ||
14163 | [ | ||
14164 | text "terminator reference FunctionalData" | ||
14165 | fontSize 14 | ||
14166 | fontName "Consolas" | ||
14167 | configuration "AutoFlippingLabel" | ||
14168 | model "six_pos" | ||
14169 | position "thead" | ||
14170 | ] | ||
14171 | ] | ||
14172 | edge | ||
14173 | [ | ||
14174 | source 8 | ||
14175 | target 10 | ||
14176 | graphics | ||
14177 | [ | ||
14178 | fill "#000000" | ||
14179 | width 3 | ||
14180 | targetArrow "standard" | ||
14181 | ] | ||
14182 | LabelGraphics | ||
14183 | [ | ||
14184 | text "terminator reference FunctionalData" | ||
14185 | fontSize 14 | ||
14186 | fontName "Consolas" | ||
14187 | configuration "AutoFlippingLabel" | ||
14188 | model "six_pos" | ||
14189 | position "thead" | ||
14190 | ] | ||
14191 | ] | ||
14192 | edge | ||
14193 | [ | ||
14194 | source 6 | ||
14195 | target 5 | ||
14196 | graphics | ||
14197 | [ | ||
14198 | fill "#000000" | ||
14199 | targetArrow "standard" | ||
14200 | ] | ||
14201 | LabelGraphics | ||
14202 | [ | ||
14203 | text "interface reference FunctionalData" | ||
14204 | fontSize 14 | ||
14205 | fontName "Consolas" | ||
14206 | configuration "AutoFlippingLabel" | ||
14207 | model "six_pos" | ||
14208 | position "thead" | ||
14209 | ] | ||
14210 | ] | ||
14211 | edge | ||
14212 | [ | ||
14213 | source 8 | ||
14214 | target 5 | ||
14215 | graphics | ||
14216 | [ | ||
14217 | fill "#000000" | ||
14218 | targetArrow "standard" | ||
14219 | ] | ||
14220 | LabelGraphics | ||
14221 | [ | ||
14222 | text "interface reference FunctionalData" | ||
14223 | fontSize 14 | ||
14224 | fontName "Consolas" | ||
14225 | configuration "AutoFlippingLabel" | ||
14226 | model "six_pos" | ||
14227 | position "thead" | ||
14228 | ] | ||
14229 | ] | ||
14230 | edge | ||
14231 | [ | ||
14232 | source 9 | ||
14233 | target 5 | ||
14234 | graphics | ||
14235 | [ | ||
14236 | fill "#000000" | ||
14237 | targetArrow "standard" | ||
14238 | ] | ||
14239 | LabelGraphics | ||
14240 | [ | ||
14241 | text "interface reference FunctionalData" | ||
14242 | fontSize 14 | ||
14243 | fontName "Consolas" | ||
14244 | configuration "AutoFlippingLabel" | ||
14245 | model "six_pos" | ||
14246 | position "thead" | ||
14247 | ] | ||
14248 | ] | ||
14249 | edge | ||
14250 | [ | ||
14251 | source 11 | ||
14252 | target 5 | ||
14253 | graphics | ||
14254 | [ | ||
14255 | fill "#000000" | ||
14256 | targetArrow "standard" | ||
14257 | ] | ||
14258 | LabelGraphics | ||
14259 | [ | ||
14260 | text "interface reference FunctionalData" | ||
14261 | fontSize 14 | ||
14262 | fontName "Consolas" | ||
14263 | configuration "AutoFlippingLabel" | ||
14264 | model "six_pos" | ||
14265 | position "thead" | ||
14266 | ] | ||
14267 | ] | ||
14268 | ] | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.png b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.png index c58be27f..b63f378c 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.png +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.png | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.xmi b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.xmi index c5049270..950fe6a2 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.xmi +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/4.xmi | |||
@@ -1,12 +1,11 @@ | |||
1 | <?xml version="1.0" encoding="ASCII"?> | 1 | <?xml version="1.0" encoding="ASCII"?> |
2 | <fam:FunctionalArchitectureModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> | 2 | <fam:FunctionalInterface xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> |
3 | <rootElements xsi:type="fam:Function"/> | 3 | <data xsi:type="fam:FunctionalOutput"/> |
4 | <rootElements xsi:type="fam:Function"> | 4 | <data xsi:type="fam:FunctionalInput"> |
5 | <interface> | 5 | <terminator/> |
6 | <data xsi:type="fam:FunctionalOutput"/> | 6 | </data> |
7 | <data xsi:type="fam:FunctionalOutput"> | 7 | <data xsi:type="fam:FunctionalOutput"/> |
8 | <terminator/> | 8 | <data xsi:type="fam:FunctionalInput"> |
9 | </data> | 9 | <terminator/> |
10 | </interface> | 10 | </data> |
11 | </rootElements> | 11 | </fam:FunctionalInterface> |
12 | </fam:FunctionalArchitectureModel> | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.gml b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.gml index 9bbf93f7..a31b5aea 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.gml +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.gml | |||
@@ -11873,3 +11873,2508 @@ graph | |||
11873 | ] | 11873 | ] |
11874 | ] | 11874 | ] |
11875 | ] | 11875 | ] |
11876 | graph | ||
11877 | [ | ||
11878 | node | ||
11879 | [ | ||
11880 | id 0 | ||
11881 | graphics | ||
11882 | [ | ||
11883 | w 226.60000000000002 | ||
11884 | h 40 | ||
11885 | type "rectangle" | ||
11886 | fill "#FFFFFF" | ||
11887 | fill2 "#FFFFFF" | ||
11888 | outline "#000000" | ||
11889 | ] | ||
11890 | LabelGraphics | ||
11891 | [ | ||
11892 | text "Root literal FunctionType" | ||
11893 | outline "#000000" | ||
11894 | fill "#FFFFFF" | ||
11895 | fontSize 16 | ||
11896 | fontName "Monospace" | ||
11897 | autoSizePolicy "node_width" | ||
11898 | anchor "t" | ||
11899 | borderDistance 0.0 | ||
11900 | ] | ||
11901 | LabelGraphics | ||
11902 | [ | ||
11903 | text " | ||
11904 | FunctionType enum | ||
11905 | " | ||
11906 | fontSize 14 | ||
11907 | fontName "Consolas" | ||
11908 | alignment "left" | ||
11909 | anchor "tl" | ||
11910 | borderDistance 6 | ||
11911 | ] | ||
11912 | ] | ||
11913 | |||
11914 | node | ||
11915 | [ | ||
11916 | id 1 | ||
11917 | graphics | ||
11918 | [ | ||
11919 | w 297.0 | ||
11920 | h 40 | ||
11921 | type "rectangle" | ||
11922 | fill "#FFFFFF" | ||
11923 | fill2 "#FFFFFF" | ||
11924 | outline "#000000" | ||
11925 | ] | ||
11926 | LabelGraphics | ||
11927 | [ | ||
11928 | text "Intermediate literal FunctionType" | ||
11929 | outline "#000000" | ||
11930 | fill "#FFFFFF" | ||
11931 | fontSize 16 | ||
11932 | fontName "Monospace" | ||
11933 | autoSizePolicy "node_width" | ||
11934 | anchor "t" | ||
11935 | borderDistance 0.0 | ||
11936 | ] | ||
11937 | LabelGraphics | ||
11938 | [ | ||
11939 | text " | ||
11940 | FunctionType enum | ||
11941 | " | ||
11942 | fontSize 14 | ||
11943 | fontName "Consolas" | ||
11944 | alignment "left" | ||
11945 | anchor "tl" | ||
11946 | borderDistance 6 | ||
11947 | ] | ||
11948 | ] | ||
11949 | |||
11950 | node | ||
11951 | [ | ||
11952 | id 2 | ||
11953 | graphics | ||
11954 | [ | ||
11955 | w 226.60000000000002 | ||
11956 | h 40 | ||
11957 | type "rectangle" | ||
11958 | fill "#FFFFFF" | ||
11959 | fill2 "#FFFFFF" | ||
11960 | outline "#000000" | ||
11961 | ] | ||
11962 | LabelGraphics | ||
11963 | [ | ||
11964 | text "Leaf literal FunctionType" | ||
11965 | outline "#000000" | ||
11966 | fill "#FFFFFF" | ||
11967 | fontSize 16 | ||
11968 | fontName "Monospace" | ||
11969 | autoSizePolicy "node_width" | ||
11970 | anchor "t" | ||
11971 | borderDistance 0.0 | ||
11972 | ] | ||
11973 | LabelGraphics | ||
11974 | [ | ||
11975 | text " | ||
11976 | FunctionType enum | ||
11977 | " | ||
11978 | fontSize 14 | ||
11979 | fontName "Consolas" | ||
11980 | alignment "left" | ||
11981 | anchor "tl" | ||
11982 | borderDistance 6 | ||
11983 | ] | ||
11984 | ] | ||
11985 | |||
11986 | node | ||
11987 | [ | ||
11988 | id 3 | ||
11989 | graphics | ||
11990 | [ | ||
11991 | w 41.800000000000004 | ||
11992 | h 26 | ||
11993 | type "rectangle" | ||
11994 | fill "#FFFFFF" | ||
11995 | fill2 "#FFFFFF" | ||
11996 | outline "#000000" | ||
11997 | ] | ||
11998 | LabelGraphics | ||
11999 | [ | ||
12000 | text "true" | ||
12001 | outline "#000000" | ||
12002 | fill "#FFFFFF" | ||
12003 | fontSize 16 | ||
12004 | fontName "Monospace" | ||
12005 | autoSizePolicy "node_width" | ||
12006 | anchor "t" | ||
12007 | borderDistance 0.0 | ||
12008 | ] | ||
12009 | LabelGraphics | ||
12010 | [ | ||
12011 | text " | ||
12012 | " | ||
12013 | fontSize 14 | ||
12014 | fontName "Consolas" | ||
12015 | alignment "left" | ||
12016 | anchor "tl" | ||
12017 | borderDistance 6 | ||
12018 | ] | ||
12019 | ] | ||
12020 | |||
12021 | node | ||
12022 | [ | ||
12023 | id 4 | ||
12024 | graphics | ||
12025 | [ | ||
12026 | w 50.6 | ||
12027 | h 26 | ||
12028 | type "rectangle" | ||
12029 | fill "#FFFFFF" | ||
12030 | fill2 "#FFFFFF" | ||
12031 | outline "#000000" | ||
12032 | ] | ||
12033 | LabelGraphics | ||
12034 | [ | ||
12035 | text "false" | ||
12036 | outline "#000000" | ||
12037 | fill "#FFFFFF" | ||
12038 | fontSize 16 | ||
12039 | fontName "Monospace" | ||
12040 | autoSizePolicy "node_width" | ||
12041 | anchor "t" | ||
12042 | borderDistance 0.0 | ||
12043 | ] | ||
12044 | LabelGraphics | ||
12045 | [ | ||
12046 | text " | ||
12047 | " | ||
12048 | fontSize 14 | ||
12049 | fontName "Consolas" | ||
12050 | alignment "left" | ||
12051 | anchor "tl" | ||
12052 | borderDistance 6 | ||
12053 | ] | ||
12054 | ] | ||
12055 | |||
12056 | node | ||
12057 | [ | ||
12058 | id 5 | ||
12059 | graphics | ||
12060 | [ | ||
12061 | w 207.9 | ||
12062 | h 40 | ||
12063 | type "rectangle" | ||
12064 | fill "#FFFFFF" | ||
12065 | fill2 "#FFFFFF" | ||
12066 | outline "#000000" | ||
12067 | ] | ||
12068 | LabelGraphics | ||
12069 | [ | ||
12070 | text "null" | ||
12071 | outline "#000000" | ||
12072 | fill "#FFFFFF" | ||
12073 | fontSize 16 | ||
12074 | fontName "Monospace" | ||
12075 | autoSizePolicy "node_width" | ||
12076 | anchor "t" | ||
12077 | borderDistance 0.0 | ||
12078 | ] | ||
12079 | LabelGraphics | ||
12080 | [ | ||
12081 | text " | ||
12082 | FunctionalInterface class | ||
12083 | " | ||
12084 | fontSize 14 | ||
12085 | fontName "Consolas" | ||
12086 | alignment "left" | ||
12087 | anchor "tl" | ||
12088 | borderDistance 6 | ||
12089 | ] | ||
12090 | ] | ||
12091 | |||
12092 | node | ||
12093 | [ | ||
12094 | id 6 | ||
12095 | graphics | ||
12096 | [ | ||
12097 | w 177.10000000000002 | ||
12098 | h 54 | ||
12099 | type "rectangle" | ||
12100 | fill "#FFFFFF" | ||
12101 | fill2 "#FFFFFF" | ||
12102 | outline "#000000" | ||
12103 | ] | ||
12104 | LabelGraphics | ||
12105 | [ | ||
12106 | text "null" | ||
12107 | outline "#000000" | ||
12108 | fill "#FFFFFF" | ||
12109 | fontSize 16 | ||
12110 | fontName "Monospace" | ||
12111 | autoSizePolicy "node_width" | ||
12112 | anchor "t" | ||
12113 | borderDistance 0.0 | ||
12114 | ] | ||
12115 | LabelGraphics | ||
12116 | [ | ||
12117 | text " | ||
12118 | FunctionalInput class | ||
12119 | FunctionalData class | ||
12120 | " | ||
12121 | fontSize 14 | ||
12122 | fontName "Consolas" | ||
12123 | alignment "left" | ||
12124 | anchor "tl" | ||
12125 | borderDistance 6 | ||
12126 | ] | ||
12127 | ] | ||
12128 | |||
12129 | node | ||
12130 | [ | ||
12131 | id 7 | ||
12132 | graphics | ||
12133 | [ | ||
12134 | w 184.8 | ||
12135 | h 54 | ||
12136 | type "rectangle" | ||
12137 | fill "#FFFFFF" | ||
12138 | fill2 "#FFFFFF" | ||
12139 | outline "#000000" | ||
12140 | ] | ||
12141 | LabelGraphics | ||
12142 | [ | ||
12143 | text "null" | ||
12144 | outline "#000000" | ||
12145 | fill "#FFFFFF" | ||
12146 | fontSize 16 | ||
12147 | fontName "Monospace" | ||
12148 | autoSizePolicy "node_width" | ||
12149 | anchor "t" | ||
12150 | borderDistance 0.0 | ||
12151 | ] | ||
12152 | LabelGraphics | ||
12153 | [ | ||
12154 | text " | ||
12155 | FunctionalOutput class | ||
12156 | FunctionalData class | ||
12157 | " | ||
12158 | fontSize 14 | ||
12159 | fontName "Consolas" | ||
12160 | alignment "left" | ||
12161 | anchor "tl" | ||
12162 | borderDistance 6 | ||
12163 | ] | ||
12164 | ] | ||
12165 | |||
12166 | node | ||
12167 | [ | ||
12168 | id 8 | ||
12169 | graphics | ||
12170 | [ | ||
12171 | w 184.8 | ||
12172 | h 54 | ||
12173 | type "rectangle" | ||
12174 | fill "#FFFFFF" | ||
12175 | fill2 "#FFFFFF" | ||
12176 | outline "#000000" | ||
12177 | ] | ||
12178 | LabelGraphics | ||
12179 | [ | ||
12180 | text "null" | ||
12181 | outline "#000000" | ||
12182 | fill "#FFFFFF" | ||
12183 | fontSize 16 | ||
12184 | fontName "Monospace" | ||
12185 | autoSizePolicy "node_width" | ||
12186 | anchor "t" | ||
12187 | borderDistance 0.0 | ||
12188 | ] | ||
12189 | LabelGraphics | ||
12190 | [ | ||
12191 | text " | ||
12192 | FunctionalOutput class | ||
12193 | FunctionalData class | ||
12194 | " | ||
12195 | fontSize 14 | ||
12196 | fontName "Consolas" | ||
12197 | alignment "left" | ||
12198 | anchor "tl" | ||
12199 | borderDistance 6 | ||
12200 | ] | ||
12201 | ] | ||
12202 | |||
12203 | node | ||
12204 | [ | ||
12205 | id 9 | ||
12206 | graphics | ||
12207 | [ | ||
12208 | w 177.10000000000002 | ||
12209 | h 40 | ||
12210 | type "rectangle" | ||
12211 | fill "#FFFFFF" | ||
12212 | fill2 "#FFFFFF" | ||
12213 | outline "#000000" | ||
12214 | ] | ||
12215 | LabelGraphics | ||
12216 | [ | ||
12217 | text "null" | ||
12218 | outline "#000000" | ||
12219 | fill "#FFFFFF" | ||
12220 | fontSize 16 | ||
12221 | fontName "Monospace" | ||
12222 | autoSizePolicy "node_width" | ||
12223 | anchor "t" | ||
12224 | borderDistance 0.0 | ||
12225 | ] | ||
12226 | LabelGraphics | ||
12227 | [ | ||
12228 | text " | ||
12229 | InformationLink class | ||
12230 | " | ||
12231 | fontSize 14 | ||
12232 | fontName "Consolas" | ||
12233 | alignment "left" | ||
12234 | anchor "tl" | ||
12235 | borderDistance 6 | ||
12236 | ] | ||
12237 | ] | ||
12238 | |||
12239 | node | ||
12240 | [ | ||
12241 | id 10 | ||
12242 | graphics | ||
12243 | [ | ||
12244 | w 161.70000000000002 | ||
12245 | h 40 | ||
12246 | type "rectangle" | ||
12247 | fill "#FFFFFF" | ||
12248 | fill2 "#FFFFFF" | ||
12249 | outline "#000000" | ||
12250 | ] | ||
12251 | LabelGraphics | ||
12252 | [ | ||
12253 | text "null" | ||
12254 | outline "#000000" | ||
12255 | fill "#FFFFFF" | ||
12256 | fontSize 16 | ||
12257 | fontName "Monospace" | ||
12258 | autoSizePolicy "node_width" | ||
12259 | anchor "t" | ||
12260 | borderDistance 0.0 | ||
12261 | ] | ||
12262 | LabelGraphics | ||
12263 | [ | ||
12264 | text " | ||
12265 | FAMTerminator class | ||
12266 | " | ||
12267 | fontSize 14 | ||
12268 | fontName "Consolas" | ||
12269 | alignment "left" | ||
12270 | anchor "tl" | ||
12271 | borderDistance 6 | ||
12272 | ] | ||
12273 | ] | ||
12274 | |||
12275 | node | ||
12276 | [ | ||
12277 | id 11 | ||
12278 | graphics | ||
12279 | [ | ||
12280 | w 177.10000000000002 | ||
12281 | h 40 | ||
12282 | type "rectangle" | ||
12283 | fill "#FFFFFF" | ||
12284 | fill2 "#FFFFFF" | ||
12285 | outline "#000000" | ||
12286 | ] | ||
12287 | LabelGraphics | ||
12288 | [ | ||
12289 | text "null" | ||
12290 | outline "#000000" | ||
12291 | fill "#FFFFFF" | ||
12292 | fontSize 16 | ||
12293 | fontName "Monospace" | ||
12294 | autoSizePolicy "node_width" | ||
12295 | anchor "t" | ||
12296 | borderDistance 0.0 | ||
12297 | ] | ||
12298 | LabelGraphics | ||
12299 | [ | ||
12300 | text " | ||
12301 | InformationLink class | ||
12302 | " | ||
12303 | fontSize 14 | ||
12304 | fontName "Consolas" | ||
12305 | alignment "left" | ||
12306 | anchor "tl" | ||
12307 | borderDistance 6 | ||
12308 | ] | ||
12309 | ] | ||
12310 | |||
12311 | node | ||
12312 | [ | ||
12313 | id 12 | ||
12314 | graphics | ||
12315 | [ | ||
12316 | w 112.2 | ||
12317 | h 26 | ||
12318 | type "rectangle" | ||
12319 | fill "#FFFFFF" | ||
12320 | fill2 "#FFFFFF" | ||
12321 | outline "#000000" | ||
12322 | ] | ||
12323 | LabelGraphics | ||
12324 | [ | ||
12325 | text "New Integers" | ||
12326 | outline "#000000" | ||
12327 | fill "#FFFFFF" | ||
12328 | fontSize 16 | ||
12329 | fontName "Monospace" | ||
12330 | autoSizePolicy "node_width" | ||
12331 | anchor "t" | ||
12332 | borderDistance 0.0 | ||
12333 | ] | ||
12334 | LabelGraphics | ||
12335 | [ | ||
12336 | text " | ||
12337 | " | ||
12338 | fontSize 14 | ||
12339 | fontName "Consolas" | ||
12340 | alignment "left" | ||
12341 | anchor "tl" | ||
12342 | borderDistance 6 | ||
12343 | ] | ||
12344 | ] | ||
12345 | |||
12346 | node | ||
12347 | [ | ||
12348 | id 13 | ||
12349 | graphics | ||
12350 | [ | ||
12351 | w 85.80000000000001 | ||
12352 | h 26 | ||
12353 | type "rectangle" | ||
12354 | fill "#FFFFFF" | ||
12355 | fill2 "#FFFFFF" | ||
12356 | outline "#000000" | ||
12357 | ] | ||
12358 | LabelGraphics | ||
12359 | [ | ||
12360 | text "New Reals" | ||
12361 | outline "#000000" | ||
12362 | fill "#FFFFFF" | ||
12363 | fontSize 16 | ||
12364 | fontName "Monospace" | ||
12365 | autoSizePolicy "node_width" | ||
12366 | anchor "t" | ||
12367 | borderDistance 0.0 | ||
12368 | ] | ||
12369 | LabelGraphics | ||
12370 | [ | ||
12371 | text " | ||
12372 | " | ||
12373 | fontSize 14 | ||
12374 | fontName "Consolas" | ||
12375 | alignment "left" | ||
12376 | anchor "tl" | ||
12377 | borderDistance 6 | ||
12378 | ] | ||
12379 | ] | ||
12380 | |||
12381 | node | ||
12382 | [ | ||
12383 | id 14 | ||
12384 | graphics | ||
12385 | [ | ||
12386 | w 103.4 | ||
12387 | h 26 | ||
12388 | type "rectangle" | ||
12389 | fill "#FFFFFF" | ||
12390 | fill2 "#FFFFFF" | ||
12391 | outline "#000000" | ||
12392 | ] | ||
12393 | LabelGraphics | ||
12394 | [ | ||
12395 | text "New Strings" | ||
12396 | outline "#000000" | ||
12397 | fill "#FFFFFF" | ||
12398 | fontSize 16 | ||
12399 | fontName "Monospace" | ||
12400 | autoSizePolicy "node_width" | ||
12401 | anchor "t" | ||
12402 | borderDistance 0.0 | ||
12403 | ] | ||
12404 | LabelGraphics | ||
12405 | [ | ||
12406 | text " | ||
12407 | " | ||
12408 | fontSize 14 | ||
12409 | fontName "Consolas" | ||
12410 | alignment "left" | ||
12411 | anchor "tl" | ||
12412 | borderDistance 6 | ||
12413 | ] | ||
12414 | ] | ||
12415 | |||
12416 | node | ||
12417 | [ | ||
12418 | id 15 | ||
12419 | graphics | ||
12420 | [ | ||
12421 | w 103.4 | ||
12422 | h 26 | ||
12423 | type "rectangle" | ||
12424 | fill "#FFFFFF" | ||
12425 | fill2 "#FFFFFF" | ||
12426 | outline "#000000" | ||
12427 | ] | ||
12428 | LabelGraphics | ||
12429 | [ | ||
12430 | text "New Objects" | ||
12431 | outline "#000000" | ||
12432 | fill "#FFFFFF" | ||
12433 | fontSize 16 | ||
12434 | fontName "Monospace" | ||
12435 | autoSizePolicy "node_width" | ||
12436 | anchor "t" | ||
12437 | borderDistance 0.0 | ||
12438 | ] | ||
12439 | LabelGraphics | ||
12440 | [ | ||
12441 | text " | ||
12442 | " | ||
12443 | fontSize 14 | ||
12444 | fontName "Consolas" | ||
12445 | alignment "left" | ||
12446 | anchor "tl" | ||
12447 | borderDistance 6 | ||
12448 | ] | ||
12449 | ] | ||
12450 | edge | ||
12451 | [ | ||
12452 | source 10 | ||
12453 | target 8 | ||
12454 | graphics | ||
12455 | [ | ||
12456 | fill "#000000" | ||
12457 | targetArrow "standard" | ||
12458 | ] | ||
12459 | LabelGraphics | ||
12460 | [ | ||
12461 | text "data reference FAMTerminator" | ||
12462 | fontSize 14 | ||
12463 | fontName "Consolas" | ||
12464 | configuration "AutoFlippingLabel" | ||
12465 | model "six_pos" | ||
12466 | position "thead" | ||
12467 | ] | ||
12468 | ] | ||
12469 | edge | ||
12470 | [ | ||
12471 | source 9 | ||
12472 | target 8 | ||
12473 | graphics | ||
12474 | [ | ||
12475 | fill "#000000" | ||
12476 | targetArrow "standard" | ||
12477 | ] | ||
12478 | LabelGraphics | ||
12479 | [ | ||
12480 | text "from reference InformationLink" | ||
12481 | fontSize 14 | ||
12482 | fontName "Consolas" | ||
12483 | configuration "AutoFlippingLabel" | ||
12484 | model "six_pos" | ||
12485 | position "thead" | ||
12486 | ] | ||
12487 | ] | ||
12488 | edge | ||
12489 | [ | ||
12490 | source 11 | ||
12491 | target 7 | ||
12492 | graphics | ||
12493 | [ | ||
12494 | fill "#000000" | ||
12495 | targetArrow "standard" | ||
12496 | ] | ||
12497 | LabelGraphics | ||
12498 | [ | ||
12499 | text "from reference InformationLink" | ||
12500 | fontSize 14 | ||
12501 | fontName "Consolas" | ||
12502 | configuration "AutoFlippingLabel" | ||
12503 | model "six_pos" | ||
12504 | position "thead" | ||
12505 | ] | ||
12506 | ] | ||
12507 | edge | ||
12508 | [ | ||
12509 | source 9 | ||
12510 | target 6 | ||
12511 | graphics | ||
12512 | [ | ||
12513 | fill "#000000" | ||
12514 | targetArrow "standard" | ||
12515 | ] | ||
12516 | LabelGraphics | ||
12517 | [ | ||
12518 | text "to reference InformationLink" | ||
12519 | fontSize 14 | ||
12520 | fontName "Consolas" | ||
12521 | configuration "AutoFlippingLabel" | ||
12522 | model "six_pos" | ||
12523 | position "thead" | ||
12524 | ] | ||
12525 | ] | ||
12526 | edge | ||
12527 | [ | ||
12528 | source 11 | ||
12529 | target 6 | ||
12530 | graphics | ||
12531 | [ | ||
12532 | fill "#000000" | ||
12533 | targetArrow "standard" | ||
12534 | ] | ||
12535 | LabelGraphics | ||
12536 | [ | ||
12537 | text "to reference InformationLink" | ||
12538 | fontSize 14 | ||
12539 | fontName "Consolas" | ||
12540 | configuration "AutoFlippingLabel" | ||
12541 | model "six_pos" | ||
12542 | position "thead" | ||
12543 | ] | ||
12544 | ] | ||
12545 | edge | ||
12546 | [ | ||
12547 | source 5 | ||
12548 | target 6 | ||
12549 | graphics | ||
12550 | [ | ||
12551 | fill "#000000" | ||
12552 | width 3 | ||
12553 | targetArrow "standard" | ||
12554 | ] | ||
12555 | LabelGraphics | ||
12556 | [ | ||
12557 | text "data reference FunctionalInterface" | ||
12558 | fontSize 14 | ||
12559 | fontName "Consolas" | ||
12560 | configuration "AutoFlippingLabel" | ||
12561 | model "six_pos" | ||
12562 | position "thead" | ||
12563 | ] | ||
12564 | ] | ||
12565 | edge | ||
12566 | [ | ||
12567 | source 5 | ||
12568 | target 7 | ||
12569 | graphics | ||
12570 | [ | ||
12571 | fill "#000000" | ||
12572 | width 3 | ||
12573 | targetArrow "standard" | ||
12574 | ] | ||
12575 | LabelGraphics | ||
12576 | [ | ||
12577 | text "data reference FunctionalInterface" | ||
12578 | fontSize 14 | ||
12579 | fontName "Consolas" | ||
12580 | configuration "AutoFlippingLabel" | ||
12581 | model "six_pos" | ||
12582 | position "thead" | ||
12583 | ] | ||
12584 | ] | ||
12585 | edge | ||
12586 | [ | ||
12587 | source 5 | ||
12588 | target 8 | ||
12589 | graphics | ||
12590 | [ | ||
12591 | fill "#000000" | ||
12592 | width 3 | ||
12593 | targetArrow "standard" | ||
12594 | ] | ||
12595 | LabelGraphics | ||
12596 | [ | ||
12597 | text "data reference FunctionalInterface" | ||
12598 | fontSize 14 | ||
12599 | fontName "Consolas" | ||
12600 | configuration "AutoFlippingLabel" | ||
12601 | model "six_pos" | ||
12602 | position "thead" | ||
12603 | ] | ||
12604 | ] | ||
12605 | edge | ||
12606 | [ | ||
12607 | source 6 | ||
12608 | target 9 | ||
12609 | graphics | ||
12610 | [ | ||
12611 | fill "#000000" | ||
12612 | targetArrow "standard" | ||
12613 | ] | ||
12614 | LabelGraphics | ||
12615 | [ | ||
12616 | text "IncomingLinks reference FunctionalInput" | ||
12617 | fontSize 14 | ||
12618 | fontName "Consolas" | ||
12619 | configuration "AutoFlippingLabel" | ||
12620 | model "six_pos" | ||
12621 | position "thead" | ||
12622 | ] | ||
12623 | ] | ||
12624 | edge | ||
12625 | [ | ||
12626 | source 6 | ||
12627 | target 11 | ||
12628 | graphics | ||
12629 | [ | ||
12630 | fill "#000000" | ||
12631 | targetArrow "standard" | ||
12632 | ] | ||
12633 | LabelGraphics | ||
12634 | [ | ||
12635 | text "IncomingLinks reference FunctionalInput" | ||
12636 | fontSize 14 | ||
12637 | fontName "Consolas" | ||
12638 | configuration "AutoFlippingLabel" | ||
12639 | model "six_pos" | ||
12640 | position "thead" | ||
12641 | ] | ||
12642 | ] | ||
12643 | edge | ||
12644 | [ | ||
12645 | source 8 | ||
12646 | target 9 | ||
12647 | graphics | ||
12648 | [ | ||
12649 | fill "#000000" | ||
12650 | width 3 | ||
12651 | targetArrow "standard" | ||
12652 | ] | ||
12653 | LabelGraphics | ||
12654 | [ | ||
12655 | text "outgoingLinks reference FunctionalOutput" | ||
12656 | fontSize 14 | ||
12657 | fontName "Consolas" | ||
12658 | configuration "AutoFlippingLabel" | ||
12659 | model "six_pos" | ||
12660 | position "thead" | ||
12661 | ] | ||
12662 | ] | ||
12663 | edge | ||
12664 | [ | ||
12665 | source 7 | ||
12666 | target 11 | ||
12667 | graphics | ||
12668 | [ | ||
12669 | fill "#000000" | ||
12670 | width 3 | ||
12671 | targetArrow "standard" | ||
12672 | ] | ||
12673 | LabelGraphics | ||
12674 | [ | ||
12675 | text "outgoingLinks reference FunctionalOutput" | ||
12676 | fontSize 14 | ||
12677 | fontName "Consolas" | ||
12678 | configuration "AutoFlippingLabel" | ||
12679 | model "six_pos" | ||
12680 | position "thead" | ||
12681 | ] | ||
12682 | ] | ||
12683 | edge | ||
12684 | [ | ||
12685 | source 8 | ||
12686 | target 10 | ||
12687 | graphics | ||
12688 | [ | ||
12689 | fill "#000000" | ||
12690 | width 3 | ||
12691 | targetArrow "standard" | ||
12692 | ] | ||
12693 | LabelGraphics | ||
12694 | [ | ||
12695 | text "terminator reference FunctionalData" | ||
12696 | fontSize 14 | ||
12697 | fontName "Consolas" | ||
12698 | configuration "AutoFlippingLabel" | ||
12699 | model "six_pos" | ||
12700 | position "thead" | ||
12701 | ] | ||
12702 | ] | ||
12703 | edge | ||
12704 | [ | ||
12705 | source 6 | ||
12706 | target 5 | ||
12707 | graphics | ||
12708 | [ | ||
12709 | fill "#000000" | ||
12710 | targetArrow "standard" | ||
12711 | ] | ||
12712 | LabelGraphics | ||
12713 | [ | ||
12714 | text "interface reference FunctionalData" | ||
12715 | fontSize 14 | ||
12716 | fontName "Consolas" | ||
12717 | configuration "AutoFlippingLabel" | ||
12718 | model "six_pos" | ||
12719 | position "thead" | ||
12720 | ] | ||
12721 | ] | ||
12722 | edge | ||
12723 | [ | ||
12724 | source 7 | ||
12725 | target 5 | ||
12726 | graphics | ||
12727 | [ | ||
12728 | fill "#000000" | ||
12729 | targetArrow "standard" | ||
12730 | ] | ||
12731 | LabelGraphics | ||
12732 | [ | ||
12733 | text "interface reference FunctionalData" | ||
12734 | fontSize 14 | ||
12735 | fontName "Consolas" | ||
12736 | configuration "AutoFlippingLabel" | ||
12737 | model "six_pos" | ||
12738 | position "thead" | ||
12739 | ] | ||
12740 | ] | ||
12741 | edge | ||
12742 | [ | ||
12743 | source 8 | ||
12744 | target 5 | ||
12745 | graphics | ||
12746 | [ | ||
12747 | fill "#000000" | ||
12748 | targetArrow "standard" | ||
12749 | ] | ||
12750 | LabelGraphics | ||
12751 | [ | ||
12752 | text "interface reference FunctionalData" | ||
12753 | fontSize 14 | ||
12754 | fontName "Consolas" | ||
12755 | configuration "AutoFlippingLabel" | ||
12756 | model "six_pos" | ||
12757 | position "thead" | ||
12758 | ] | ||
12759 | ] | ||
12760 | ] | ||
12761 | graph | ||
12762 | [ | ||
12763 | node | ||
12764 | [ | ||
12765 | id 0 | ||
12766 | graphics | ||
12767 | [ | ||
12768 | w 226.60000000000002 | ||
12769 | h 40 | ||
12770 | type "rectangle" | ||
12771 | fill "#FFFFFF" | ||
12772 | fill2 "#FFFFFF" | ||
12773 | outline "#000000" | ||
12774 | ] | ||
12775 | LabelGraphics | ||
12776 | [ | ||
12777 | text "Root literal FunctionType" | ||
12778 | outline "#000000" | ||
12779 | fill "#FFFFFF" | ||
12780 | fontSize 16 | ||
12781 | fontName "Monospace" | ||
12782 | autoSizePolicy "node_width" | ||
12783 | anchor "t" | ||
12784 | borderDistance 0.0 | ||
12785 | ] | ||
12786 | LabelGraphics | ||
12787 | [ | ||
12788 | text " | ||
12789 | FunctionType enum | ||
12790 | " | ||
12791 | fontSize 14 | ||
12792 | fontName "Consolas" | ||
12793 | alignment "left" | ||
12794 | anchor "tl" | ||
12795 | borderDistance 6 | ||
12796 | ] | ||
12797 | ] | ||
12798 | |||
12799 | node | ||
12800 | [ | ||
12801 | id 1 | ||
12802 | graphics | ||
12803 | [ | ||
12804 | w 297.0 | ||
12805 | h 40 | ||
12806 | type "rectangle" | ||
12807 | fill "#FFFFFF" | ||
12808 | fill2 "#FFFFFF" | ||
12809 | outline "#000000" | ||
12810 | ] | ||
12811 | LabelGraphics | ||
12812 | [ | ||
12813 | text "Intermediate literal FunctionType" | ||
12814 | outline "#000000" | ||
12815 | fill "#FFFFFF" | ||
12816 | fontSize 16 | ||
12817 | fontName "Monospace" | ||
12818 | autoSizePolicy "node_width" | ||
12819 | anchor "t" | ||
12820 | borderDistance 0.0 | ||
12821 | ] | ||
12822 | LabelGraphics | ||
12823 | [ | ||
12824 | text " | ||
12825 | FunctionType enum | ||
12826 | " | ||
12827 | fontSize 14 | ||
12828 | fontName "Consolas" | ||
12829 | alignment "left" | ||
12830 | anchor "tl" | ||
12831 | borderDistance 6 | ||
12832 | ] | ||
12833 | ] | ||
12834 | |||
12835 | node | ||
12836 | [ | ||
12837 | id 2 | ||
12838 | graphics | ||
12839 | [ | ||
12840 | w 226.60000000000002 | ||
12841 | h 40 | ||
12842 | type "rectangle" | ||
12843 | fill "#FFFFFF" | ||
12844 | fill2 "#FFFFFF" | ||
12845 | outline "#000000" | ||
12846 | ] | ||
12847 | LabelGraphics | ||
12848 | [ | ||
12849 | text "Leaf literal FunctionType" | ||
12850 | outline "#000000" | ||
12851 | fill "#FFFFFF" | ||
12852 | fontSize 16 | ||
12853 | fontName "Monospace" | ||
12854 | autoSizePolicy "node_width" | ||
12855 | anchor "t" | ||
12856 | borderDistance 0.0 | ||
12857 | ] | ||
12858 | LabelGraphics | ||
12859 | [ | ||
12860 | text " | ||
12861 | FunctionType enum | ||
12862 | " | ||
12863 | fontSize 14 | ||
12864 | fontName "Consolas" | ||
12865 | alignment "left" | ||
12866 | anchor "tl" | ||
12867 | borderDistance 6 | ||
12868 | ] | ||
12869 | ] | ||
12870 | |||
12871 | node | ||
12872 | [ | ||
12873 | id 3 | ||
12874 | graphics | ||
12875 | [ | ||
12876 | w 41.800000000000004 | ||
12877 | h 26 | ||
12878 | type "rectangle" | ||
12879 | fill "#FFFFFF" | ||
12880 | fill2 "#FFFFFF" | ||
12881 | outline "#000000" | ||
12882 | ] | ||
12883 | LabelGraphics | ||
12884 | [ | ||
12885 | text "true" | ||
12886 | outline "#000000" | ||
12887 | fill "#FFFFFF" | ||
12888 | fontSize 16 | ||
12889 | fontName "Monospace" | ||
12890 | autoSizePolicy "node_width" | ||
12891 | anchor "t" | ||
12892 | borderDistance 0.0 | ||
12893 | ] | ||
12894 | LabelGraphics | ||
12895 | [ | ||
12896 | text " | ||
12897 | " | ||
12898 | fontSize 14 | ||
12899 | fontName "Consolas" | ||
12900 | alignment "left" | ||
12901 | anchor "tl" | ||
12902 | borderDistance 6 | ||
12903 | ] | ||
12904 | ] | ||
12905 | |||
12906 | node | ||
12907 | [ | ||
12908 | id 4 | ||
12909 | graphics | ||
12910 | [ | ||
12911 | w 50.6 | ||
12912 | h 26 | ||
12913 | type "rectangle" | ||
12914 | fill "#FFFFFF" | ||
12915 | fill2 "#FFFFFF" | ||
12916 | outline "#000000" | ||
12917 | ] | ||
12918 | LabelGraphics | ||
12919 | [ | ||
12920 | text "false" | ||
12921 | outline "#000000" | ||
12922 | fill "#FFFFFF" | ||
12923 | fontSize 16 | ||
12924 | fontName "Monospace" | ||
12925 | autoSizePolicy "node_width" | ||
12926 | anchor "t" | ||
12927 | borderDistance 0.0 | ||
12928 | ] | ||
12929 | LabelGraphics | ||
12930 | [ | ||
12931 | text " | ||
12932 | " | ||
12933 | fontSize 14 | ||
12934 | fontName "Consolas" | ||
12935 | alignment "left" | ||
12936 | anchor "tl" | ||
12937 | borderDistance 6 | ||
12938 | ] | ||
12939 | ] | ||
12940 | |||
12941 | node | ||
12942 | [ | ||
12943 | id 5 | ||
12944 | graphics | ||
12945 | [ | ||
12946 | w 207.9 | ||
12947 | h 40 | ||
12948 | type "rectangle" | ||
12949 | fill "#FFFFFF" | ||
12950 | fill2 "#FFFFFF" | ||
12951 | outline "#000000" | ||
12952 | ] | ||
12953 | LabelGraphics | ||
12954 | [ | ||
12955 | text "null" | ||
12956 | outline "#000000" | ||
12957 | fill "#FFFFFF" | ||
12958 | fontSize 16 | ||
12959 | fontName "Monospace" | ||
12960 | autoSizePolicy "node_width" | ||
12961 | anchor "t" | ||
12962 | borderDistance 0.0 | ||
12963 | ] | ||
12964 | LabelGraphics | ||
12965 | [ | ||
12966 | text " | ||
12967 | FunctionalInterface class | ||
12968 | " | ||
12969 | fontSize 14 | ||
12970 | fontName "Consolas" | ||
12971 | alignment "left" | ||
12972 | anchor "tl" | ||
12973 | borderDistance 6 | ||
12974 | ] | ||
12975 | ] | ||
12976 | |||
12977 | node | ||
12978 | [ | ||
12979 | id 6 | ||
12980 | graphics | ||
12981 | [ | ||
12982 | w 177.10000000000002 | ||
12983 | h 54 | ||
12984 | type "rectangle" | ||
12985 | fill "#FFFFFF" | ||
12986 | fill2 "#FFFFFF" | ||
12987 | outline "#000000" | ||
12988 | ] | ||
12989 | LabelGraphics | ||
12990 | [ | ||
12991 | text "null" | ||
12992 | outline "#000000" | ||
12993 | fill "#FFFFFF" | ||
12994 | fontSize 16 | ||
12995 | fontName "Monospace" | ||
12996 | autoSizePolicy "node_width" | ||
12997 | anchor "t" | ||
12998 | borderDistance 0.0 | ||
12999 | ] | ||
13000 | LabelGraphics | ||
13001 | [ | ||
13002 | text " | ||
13003 | FunctionalInput class | ||
13004 | FunctionalData class | ||
13005 | " | ||
13006 | fontSize 14 | ||
13007 | fontName "Consolas" | ||
13008 | alignment "left" | ||
13009 | anchor "tl" | ||
13010 | borderDistance 6 | ||
13011 | ] | ||
13012 | ] | ||
13013 | |||
13014 | node | ||
13015 | [ | ||
13016 | id 7 | ||
13017 | graphics | ||
13018 | [ | ||
13019 | w 177.10000000000002 | ||
13020 | h 54 | ||
13021 | type "rectangle" | ||
13022 | fill "#FFFFFF" | ||
13023 | fill2 "#FFFFFF" | ||
13024 | outline "#000000" | ||
13025 | ] | ||
13026 | LabelGraphics | ||
13027 | [ | ||
13028 | text "null" | ||
13029 | outline "#000000" | ||
13030 | fill "#FFFFFF" | ||
13031 | fontSize 16 | ||
13032 | fontName "Monospace" | ||
13033 | autoSizePolicy "node_width" | ||
13034 | anchor "t" | ||
13035 | borderDistance 0.0 | ||
13036 | ] | ||
13037 | LabelGraphics | ||
13038 | [ | ||
13039 | text " | ||
13040 | FunctionalInput class | ||
13041 | FunctionalData class | ||
13042 | " | ||
13043 | fontSize 14 | ||
13044 | fontName "Consolas" | ||
13045 | alignment "left" | ||
13046 | anchor "tl" | ||
13047 | borderDistance 6 | ||
13048 | ] | ||
13049 | ] | ||
13050 | |||
13051 | node | ||
13052 | [ | ||
13053 | id 8 | ||
13054 | graphics | ||
13055 | [ | ||
13056 | w 161.70000000000002 | ||
13057 | h 40 | ||
13058 | type "rectangle" | ||
13059 | fill "#FFFFFF" | ||
13060 | fill2 "#FFFFFF" | ||
13061 | outline "#000000" | ||
13062 | ] | ||
13063 | LabelGraphics | ||
13064 | [ | ||
13065 | text "null" | ||
13066 | outline "#000000" | ||
13067 | fill "#FFFFFF" | ||
13068 | fontSize 16 | ||
13069 | fontName "Monospace" | ||
13070 | autoSizePolicy "node_width" | ||
13071 | anchor "t" | ||
13072 | borderDistance 0.0 | ||
13073 | ] | ||
13074 | LabelGraphics | ||
13075 | [ | ||
13076 | text " | ||
13077 | FAMTerminator class | ||
13078 | " | ||
13079 | fontSize 14 | ||
13080 | fontName "Consolas" | ||
13081 | alignment "left" | ||
13082 | anchor "tl" | ||
13083 | borderDistance 6 | ||
13084 | ] | ||
13085 | ] | ||
13086 | |||
13087 | node | ||
13088 | [ | ||
13089 | id 9 | ||
13090 | graphics | ||
13091 | [ | ||
13092 | w 177.10000000000002 | ||
13093 | h 54 | ||
13094 | type "rectangle" | ||
13095 | fill "#FFFFFF" | ||
13096 | fill2 "#FFFFFF" | ||
13097 | outline "#000000" | ||
13098 | ] | ||
13099 | LabelGraphics | ||
13100 | [ | ||
13101 | text "null" | ||
13102 | outline "#000000" | ||
13103 | fill "#FFFFFF" | ||
13104 | fontSize 16 | ||
13105 | fontName "Monospace" | ||
13106 | autoSizePolicy "node_width" | ||
13107 | anchor "t" | ||
13108 | borderDistance 0.0 | ||
13109 | ] | ||
13110 | LabelGraphics | ||
13111 | [ | ||
13112 | text " | ||
13113 | FunctionalInput class | ||
13114 | FunctionalData class | ||
13115 | " | ||
13116 | fontSize 14 | ||
13117 | fontName "Consolas" | ||
13118 | alignment "left" | ||
13119 | anchor "tl" | ||
13120 | borderDistance 6 | ||
13121 | ] | ||
13122 | ] | ||
13123 | |||
13124 | node | ||
13125 | [ | ||
13126 | id 10 | ||
13127 | graphics | ||
13128 | [ | ||
13129 | w 184.8 | ||
13130 | h 54 | ||
13131 | type "rectangle" | ||
13132 | fill "#FFFFFF" | ||
13133 | fill2 "#FFFFFF" | ||
13134 | outline "#000000" | ||
13135 | ] | ||
13136 | LabelGraphics | ||
13137 | [ | ||
13138 | text "null" | ||
13139 | outline "#000000" | ||
13140 | fill "#FFFFFF" | ||
13141 | fontSize 16 | ||
13142 | fontName "Monospace" | ||
13143 | autoSizePolicy "node_width" | ||
13144 | anchor "t" | ||
13145 | borderDistance 0.0 | ||
13146 | ] | ||
13147 | LabelGraphics | ||
13148 | [ | ||
13149 | text " | ||
13150 | FunctionalOutput class | ||
13151 | FunctionalData class | ||
13152 | " | ||
13153 | fontSize 14 | ||
13154 | fontName "Consolas" | ||
13155 | alignment "left" | ||
13156 | anchor "tl" | ||
13157 | borderDistance 6 | ||
13158 | ] | ||
13159 | ] | ||
13160 | |||
13161 | node | ||
13162 | [ | ||
13163 | id 11 | ||
13164 | graphics | ||
13165 | [ | ||
13166 | w 184.8 | ||
13167 | h 54 | ||
13168 | type "rectangle" | ||
13169 | fill "#FFFFFF" | ||
13170 | fill2 "#FFFFFF" | ||
13171 | outline "#000000" | ||
13172 | ] | ||
13173 | LabelGraphics | ||
13174 | [ | ||
13175 | text "null" | ||
13176 | outline "#000000" | ||
13177 | fill "#FFFFFF" | ||
13178 | fontSize 16 | ||
13179 | fontName "Monospace" | ||
13180 | autoSizePolicy "node_width" | ||
13181 | anchor "t" | ||
13182 | borderDistance 0.0 | ||
13183 | ] | ||
13184 | LabelGraphics | ||
13185 | [ | ||
13186 | text " | ||
13187 | FunctionalOutput class | ||
13188 | FunctionalData class | ||
13189 | " | ||
13190 | fontSize 14 | ||
13191 | fontName "Consolas" | ||
13192 | alignment "left" | ||
13193 | anchor "tl" | ||
13194 | borderDistance 6 | ||
13195 | ] | ||
13196 | ] | ||
13197 | |||
13198 | node | ||
13199 | [ | ||
13200 | id 12 | ||
13201 | graphics | ||
13202 | [ | ||
13203 | w 112.2 | ||
13204 | h 26 | ||
13205 | type "rectangle" | ||
13206 | fill "#FFFFFF" | ||
13207 | fill2 "#FFFFFF" | ||
13208 | outline "#000000" | ||
13209 | ] | ||
13210 | LabelGraphics | ||
13211 | [ | ||
13212 | text "New Integers" | ||
13213 | outline "#000000" | ||
13214 | fill "#FFFFFF" | ||
13215 | fontSize 16 | ||
13216 | fontName "Monospace" | ||
13217 | autoSizePolicy "node_width" | ||
13218 | anchor "t" | ||
13219 | borderDistance 0.0 | ||
13220 | ] | ||
13221 | LabelGraphics | ||
13222 | [ | ||
13223 | text " | ||
13224 | " | ||
13225 | fontSize 14 | ||
13226 | fontName "Consolas" | ||
13227 | alignment "left" | ||
13228 | anchor "tl" | ||
13229 | borderDistance 6 | ||
13230 | ] | ||
13231 | ] | ||
13232 | |||
13233 | node | ||
13234 | [ | ||
13235 | id 13 | ||
13236 | graphics | ||
13237 | [ | ||
13238 | w 85.80000000000001 | ||
13239 | h 26 | ||
13240 | type "rectangle" | ||
13241 | fill "#FFFFFF" | ||
13242 | fill2 "#FFFFFF" | ||
13243 | outline "#000000" | ||
13244 | ] | ||
13245 | LabelGraphics | ||
13246 | [ | ||
13247 | text "New Reals" | ||
13248 | outline "#000000" | ||
13249 | fill "#FFFFFF" | ||
13250 | fontSize 16 | ||
13251 | fontName "Monospace" | ||
13252 | autoSizePolicy "node_width" | ||
13253 | anchor "t" | ||
13254 | borderDistance 0.0 | ||
13255 | ] | ||
13256 | LabelGraphics | ||
13257 | [ | ||
13258 | text " | ||
13259 | " | ||
13260 | fontSize 14 | ||
13261 | fontName "Consolas" | ||
13262 | alignment "left" | ||
13263 | anchor "tl" | ||
13264 | borderDistance 6 | ||
13265 | ] | ||
13266 | ] | ||
13267 | |||
13268 | node | ||
13269 | [ | ||
13270 | id 14 | ||
13271 | graphics | ||
13272 | [ | ||
13273 | w 103.4 | ||
13274 | h 26 | ||
13275 | type "rectangle" | ||
13276 | fill "#FFFFFF" | ||
13277 | fill2 "#FFFFFF" | ||
13278 | outline "#000000" | ||
13279 | ] | ||
13280 | LabelGraphics | ||
13281 | [ | ||
13282 | text "New Strings" | ||
13283 | outline "#000000" | ||
13284 | fill "#FFFFFF" | ||
13285 | fontSize 16 | ||
13286 | fontName "Monospace" | ||
13287 | autoSizePolicy "node_width" | ||
13288 | anchor "t" | ||
13289 | borderDistance 0.0 | ||
13290 | ] | ||
13291 | LabelGraphics | ||
13292 | [ | ||
13293 | text " | ||
13294 | " | ||
13295 | fontSize 14 | ||
13296 | fontName "Consolas" | ||
13297 | alignment "left" | ||
13298 | anchor "tl" | ||
13299 | borderDistance 6 | ||
13300 | ] | ||
13301 | ] | ||
13302 | |||
13303 | node | ||
13304 | [ | ||
13305 | id 15 | ||
13306 | graphics | ||
13307 | [ | ||
13308 | w 103.4 | ||
13309 | h 26 | ||
13310 | type "rectangle" | ||
13311 | fill "#FFFFFF" | ||
13312 | fill2 "#FFFFFF" | ||
13313 | outline "#000000" | ||
13314 | ] | ||
13315 | LabelGraphics | ||
13316 | [ | ||
13317 | text "New Objects" | ||
13318 | outline "#000000" | ||
13319 | fill "#FFFFFF" | ||
13320 | fontSize 16 | ||
13321 | fontName "Monospace" | ||
13322 | autoSizePolicy "node_width" | ||
13323 | anchor "t" | ||
13324 | borderDistance 0.0 | ||
13325 | ] | ||
13326 | LabelGraphics | ||
13327 | [ | ||
13328 | text " | ||
13329 | " | ||
13330 | fontSize 14 | ||
13331 | fontName "Consolas" | ||
13332 | alignment "left" | ||
13333 | anchor "tl" | ||
13334 | borderDistance 6 | ||
13335 | ] | ||
13336 | ] | ||
13337 | edge | ||
13338 | [ | ||
13339 | source 8 | ||
13340 | target 6 | ||
13341 | graphics | ||
13342 | [ | ||
13343 | fill "#000000" | ||
13344 | targetArrow "standard" | ||
13345 | ] | ||
13346 | LabelGraphics | ||
13347 | [ | ||
13348 | text "data reference FAMTerminator" | ||
13349 | fontSize 14 | ||
13350 | fontName "Consolas" | ||
13351 | configuration "AutoFlippingLabel" | ||
13352 | model "six_pos" | ||
13353 | position "thead" | ||
13354 | ] | ||
13355 | ] | ||
13356 | edge | ||
13357 | [ | ||
13358 | source 5 | ||
13359 | target 6 | ||
13360 | graphics | ||
13361 | [ | ||
13362 | fill "#000000" | ||
13363 | width 3 | ||
13364 | targetArrow "standard" | ||
13365 | ] | ||
13366 | LabelGraphics | ||
13367 | [ | ||
13368 | text "data reference FunctionalInterface" | ||
13369 | fontSize 14 | ||
13370 | fontName "Consolas" | ||
13371 | configuration "AutoFlippingLabel" | ||
13372 | model "six_pos" | ||
13373 | position "thead" | ||
13374 | ] | ||
13375 | ] | ||
13376 | edge | ||
13377 | [ | ||
13378 | source 5 | ||
13379 | target 7 | ||
13380 | graphics | ||
13381 | [ | ||
13382 | fill "#000000" | ||
13383 | width 3 | ||
13384 | targetArrow "standard" | ||
13385 | ] | ||
13386 | LabelGraphics | ||
13387 | [ | ||
13388 | text "data reference FunctionalInterface" | ||
13389 | fontSize 14 | ||
13390 | fontName "Consolas" | ||
13391 | configuration "AutoFlippingLabel" | ||
13392 | model "six_pos" | ||
13393 | position "thead" | ||
13394 | ] | ||
13395 | ] | ||
13396 | edge | ||
13397 | [ | ||
13398 | source 5 | ||
13399 | target 9 | ||
13400 | graphics | ||
13401 | [ | ||
13402 | fill "#000000" | ||
13403 | width 3 | ||
13404 | targetArrow "standard" | ||
13405 | ] | ||
13406 | LabelGraphics | ||
13407 | [ | ||
13408 | text "data reference FunctionalInterface" | ||
13409 | fontSize 14 | ||
13410 | fontName "Consolas" | ||
13411 | configuration "AutoFlippingLabel" | ||
13412 | model "six_pos" | ||
13413 | position "thead" | ||
13414 | ] | ||
13415 | ] | ||
13416 | edge | ||
13417 | [ | ||
13418 | source 5 | ||
13419 | target 10 | ||
13420 | graphics | ||
13421 | [ | ||
13422 | fill "#000000" | ||
13423 | width 3 | ||
13424 | targetArrow "standard" | ||
13425 | ] | ||
13426 | LabelGraphics | ||
13427 | [ | ||
13428 | text "data reference FunctionalInterface" | ||
13429 | fontSize 14 | ||
13430 | fontName "Consolas" | ||
13431 | configuration "AutoFlippingLabel" | ||
13432 | model "six_pos" | ||
13433 | position "thead" | ||
13434 | ] | ||
13435 | ] | ||
13436 | edge | ||
13437 | [ | ||
13438 | source 5 | ||
13439 | target 11 | ||
13440 | graphics | ||
13441 | [ | ||
13442 | fill "#000000" | ||
13443 | width 3 | ||
13444 | targetArrow "standard" | ||
13445 | ] | ||
13446 | LabelGraphics | ||
13447 | [ | ||
13448 | text "data reference FunctionalInterface" | ||
13449 | fontSize 14 | ||
13450 | fontName "Consolas" | ||
13451 | configuration "AutoFlippingLabel" | ||
13452 | model "six_pos" | ||
13453 | position "thead" | ||
13454 | ] | ||
13455 | ] | ||
13456 | edge | ||
13457 | [ | ||
13458 | source 6 | ||
13459 | target 8 | ||
13460 | graphics | ||
13461 | [ | ||
13462 | fill "#000000" | ||
13463 | width 3 | ||
13464 | targetArrow "standard" | ||
13465 | ] | ||
13466 | LabelGraphics | ||
13467 | [ | ||
13468 | text "terminator reference FunctionalData" | ||
13469 | fontSize 14 | ||
13470 | fontName "Consolas" | ||
13471 | configuration "AutoFlippingLabel" | ||
13472 | model "six_pos" | ||
13473 | position "thead" | ||
13474 | ] | ||
13475 | ] | ||
13476 | edge | ||
13477 | [ | ||
13478 | source 6 | ||
13479 | target 5 | ||
13480 | graphics | ||
13481 | [ | ||
13482 | fill "#000000" | ||
13483 | targetArrow "standard" | ||
13484 | ] | ||
13485 | LabelGraphics | ||
13486 | [ | ||
13487 | text "interface reference FunctionalData" | ||
13488 | fontSize 14 | ||
13489 | fontName "Consolas" | ||
13490 | configuration "AutoFlippingLabel" | ||
13491 | model "six_pos" | ||
13492 | position "thead" | ||
13493 | ] | ||
13494 | ] | ||
13495 | edge | ||
13496 | [ | ||
13497 | source 7 | ||
13498 | target 5 | ||
13499 | graphics | ||
13500 | [ | ||
13501 | fill "#000000" | ||
13502 | targetArrow "standard" | ||
13503 | ] | ||
13504 | LabelGraphics | ||
13505 | [ | ||
13506 | text "interface reference FunctionalData" | ||
13507 | fontSize 14 | ||
13508 | fontName "Consolas" | ||
13509 | configuration "AutoFlippingLabel" | ||
13510 | model "six_pos" | ||
13511 | position "thead" | ||
13512 | ] | ||
13513 | ] | ||
13514 | edge | ||
13515 | [ | ||
13516 | source 9 | ||
13517 | target 5 | ||
13518 | graphics | ||
13519 | [ | ||
13520 | fill "#000000" | ||
13521 | targetArrow "standard" | ||
13522 | ] | ||
13523 | LabelGraphics | ||
13524 | [ | ||
13525 | text "interface reference FunctionalData" | ||
13526 | fontSize 14 | ||
13527 | fontName "Consolas" | ||
13528 | configuration "AutoFlippingLabel" | ||
13529 | model "six_pos" | ||
13530 | position "thead" | ||
13531 | ] | ||
13532 | ] | ||
13533 | edge | ||
13534 | [ | ||
13535 | source 10 | ||
13536 | target 5 | ||
13537 | graphics | ||
13538 | [ | ||
13539 | fill "#000000" | ||
13540 | targetArrow "standard" | ||
13541 | ] | ||
13542 | LabelGraphics | ||
13543 | [ | ||
13544 | text "interface reference FunctionalData" | ||
13545 | fontSize 14 | ||
13546 | fontName "Consolas" | ||
13547 | configuration "AutoFlippingLabel" | ||
13548 | model "six_pos" | ||
13549 | position "thead" | ||
13550 | ] | ||
13551 | ] | ||
13552 | edge | ||
13553 | [ | ||
13554 | source 11 | ||
13555 | target 5 | ||
13556 | graphics | ||
13557 | [ | ||
13558 | fill "#000000" | ||
13559 | targetArrow "standard" | ||
13560 | ] | ||
13561 | LabelGraphics | ||
13562 | [ | ||
13563 | text "interface reference FunctionalData" | ||
13564 | fontSize 14 | ||
13565 | fontName "Consolas" | ||
13566 | configuration "AutoFlippingLabel" | ||
13567 | model "six_pos" | ||
13568 | position "thead" | ||
13569 | ] | ||
13570 | ] | ||
13571 | ] | ||
13572 | graph | ||
13573 | [ | ||
13574 | node | ||
13575 | [ | ||
13576 | id 0 | ||
13577 | graphics | ||
13578 | [ | ||
13579 | w 226.60000000000002 | ||
13580 | h 40 | ||
13581 | type "rectangle" | ||
13582 | fill "#FFFFFF" | ||
13583 | fill2 "#FFFFFF" | ||
13584 | outline "#000000" | ||
13585 | ] | ||
13586 | LabelGraphics | ||
13587 | [ | ||
13588 | text "Root literal FunctionType" | ||
13589 | outline "#000000" | ||
13590 | fill "#FFFFFF" | ||
13591 | fontSize 16 | ||
13592 | fontName "Monospace" | ||
13593 | autoSizePolicy "node_width" | ||
13594 | anchor "t" | ||
13595 | borderDistance 0.0 | ||
13596 | ] | ||
13597 | LabelGraphics | ||
13598 | [ | ||
13599 | text " | ||
13600 | FunctionType enum | ||
13601 | " | ||
13602 | fontSize 14 | ||
13603 | fontName "Consolas" | ||
13604 | alignment "left" | ||
13605 | anchor "tl" | ||
13606 | borderDistance 6 | ||
13607 | ] | ||
13608 | ] | ||
13609 | |||
13610 | node | ||
13611 | [ | ||
13612 | id 1 | ||
13613 | graphics | ||
13614 | [ | ||
13615 | w 297.0 | ||
13616 | h 40 | ||
13617 | type "rectangle" | ||
13618 | fill "#FFFFFF" | ||
13619 | fill2 "#FFFFFF" | ||
13620 | outline "#000000" | ||
13621 | ] | ||
13622 | LabelGraphics | ||
13623 | [ | ||
13624 | text "Intermediate literal FunctionType" | ||
13625 | outline "#000000" | ||
13626 | fill "#FFFFFF" | ||
13627 | fontSize 16 | ||
13628 | fontName "Monospace" | ||
13629 | autoSizePolicy "node_width" | ||
13630 | anchor "t" | ||
13631 | borderDistance 0.0 | ||
13632 | ] | ||
13633 | LabelGraphics | ||
13634 | [ | ||
13635 | text " | ||
13636 | FunctionType enum | ||
13637 | " | ||
13638 | fontSize 14 | ||
13639 | fontName "Consolas" | ||
13640 | alignment "left" | ||
13641 | anchor "tl" | ||
13642 | borderDistance 6 | ||
13643 | ] | ||
13644 | ] | ||
13645 | |||
13646 | node | ||
13647 | [ | ||
13648 | id 2 | ||
13649 | graphics | ||
13650 | [ | ||
13651 | w 226.60000000000002 | ||
13652 | h 40 | ||
13653 | type "rectangle" | ||
13654 | fill "#FFFFFF" | ||
13655 | fill2 "#FFFFFF" | ||
13656 | outline "#000000" | ||
13657 | ] | ||
13658 | LabelGraphics | ||
13659 | [ | ||
13660 | text "Leaf literal FunctionType" | ||
13661 | outline "#000000" | ||
13662 | fill "#FFFFFF" | ||
13663 | fontSize 16 | ||
13664 | fontName "Monospace" | ||
13665 | autoSizePolicy "node_width" | ||
13666 | anchor "t" | ||
13667 | borderDistance 0.0 | ||
13668 | ] | ||
13669 | LabelGraphics | ||
13670 | [ | ||
13671 | text " | ||
13672 | FunctionType enum | ||
13673 | " | ||
13674 | fontSize 14 | ||
13675 | fontName "Consolas" | ||
13676 | alignment "left" | ||
13677 | anchor "tl" | ||
13678 | borderDistance 6 | ||
13679 | ] | ||
13680 | ] | ||
13681 | |||
13682 | node | ||
13683 | [ | ||
13684 | id 3 | ||
13685 | graphics | ||
13686 | [ | ||
13687 | w 41.800000000000004 | ||
13688 | h 26 | ||
13689 | type "rectangle" | ||
13690 | fill "#FFFFFF" | ||
13691 | fill2 "#FFFFFF" | ||
13692 | outline "#000000" | ||
13693 | ] | ||
13694 | LabelGraphics | ||
13695 | [ | ||
13696 | text "true" | ||
13697 | outline "#000000" | ||
13698 | fill "#FFFFFF" | ||
13699 | fontSize 16 | ||
13700 | fontName "Monospace" | ||
13701 | autoSizePolicy "node_width" | ||
13702 | anchor "t" | ||
13703 | borderDistance 0.0 | ||
13704 | ] | ||
13705 | LabelGraphics | ||
13706 | [ | ||
13707 | text " | ||
13708 | " | ||
13709 | fontSize 14 | ||
13710 | fontName "Consolas" | ||
13711 | alignment "left" | ||
13712 | anchor "tl" | ||
13713 | borderDistance 6 | ||
13714 | ] | ||
13715 | ] | ||
13716 | |||
13717 | node | ||
13718 | [ | ||
13719 | id 4 | ||
13720 | graphics | ||
13721 | [ | ||
13722 | w 50.6 | ||
13723 | h 26 | ||
13724 | type "rectangle" | ||
13725 | fill "#FFFFFF" | ||
13726 | fill2 "#FFFFFF" | ||
13727 | outline "#000000" | ||
13728 | ] | ||
13729 | LabelGraphics | ||
13730 | [ | ||
13731 | text "false" | ||
13732 | outline "#000000" | ||
13733 | fill "#FFFFFF" | ||
13734 | fontSize 16 | ||
13735 | fontName "Monospace" | ||
13736 | autoSizePolicy "node_width" | ||
13737 | anchor "t" | ||
13738 | borderDistance 0.0 | ||
13739 | ] | ||
13740 | LabelGraphics | ||
13741 | [ | ||
13742 | text " | ||
13743 | " | ||
13744 | fontSize 14 | ||
13745 | fontName "Consolas" | ||
13746 | alignment "left" | ||
13747 | anchor "tl" | ||
13748 | borderDistance 6 | ||
13749 | ] | ||
13750 | ] | ||
13751 | |||
13752 | node | ||
13753 | [ | ||
13754 | id 5 | ||
13755 | graphics | ||
13756 | [ | ||
13757 | w 207.9 | ||
13758 | h 40 | ||
13759 | type "rectangle" | ||
13760 | fill "#FFFFFF" | ||
13761 | fill2 "#FFFFFF" | ||
13762 | outline "#000000" | ||
13763 | ] | ||
13764 | LabelGraphics | ||
13765 | [ | ||
13766 | text "null" | ||
13767 | outline "#000000" | ||
13768 | fill "#FFFFFF" | ||
13769 | fontSize 16 | ||
13770 | fontName "Monospace" | ||
13771 | autoSizePolicy "node_width" | ||
13772 | anchor "t" | ||
13773 | borderDistance 0.0 | ||
13774 | ] | ||
13775 | LabelGraphics | ||
13776 | [ | ||
13777 | text " | ||
13778 | FunctionalInterface class | ||
13779 | " | ||
13780 | fontSize 14 | ||
13781 | fontName "Consolas" | ||
13782 | alignment "left" | ||
13783 | anchor "tl" | ||
13784 | borderDistance 6 | ||
13785 | ] | ||
13786 | ] | ||
13787 | |||
13788 | node | ||
13789 | [ | ||
13790 | id 6 | ||
13791 | graphics | ||
13792 | [ | ||
13793 | w 177.10000000000002 | ||
13794 | h 54 | ||
13795 | type "rectangle" | ||
13796 | fill "#FFFFFF" | ||
13797 | fill2 "#FFFFFF" | ||
13798 | outline "#000000" | ||
13799 | ] | ||
13800 | LabelGraphics | ||
13801 | [ | ||
13802 | text "null" | ||
13803 | outline "#000000" | ||
13804 | fill "#FFFFFF" | ||
13805 | fontSize 16 | ||
13806 | fontName "Monospace" | ||
13807 | autoSizePolicy "node_width" | ||
13808 | anchor "t" | ||
13809 | borderDistance 0.0 | ||
13810 | ] | ||
13811 | LabelGraphics | ||
13812 | [ | ||
13813 | text " | ||
13814 | FunctionalInput class | ||
13815 | FunctionalData class | ||
13816 | " | ||
13817 | fontSize 14 | ||
13818 | fontName "Consolas" | ||
13819 | alignment "left" | ||
13820 | anchor "tl" | ||
13821 | borderDistance 6 | ||
13822 | ] | ||
13823 | ] | ||
13824 | |||
13825 | node | ||
13826 | [ | ||
13827 | id 7 | ||
13828 | graphics | ||
13829 | [ | ||
13830 | w 161.70000000000002 | ||
13831 | h 40 | ||
13832 | type "rectangle" | ||
13833 | fill "#FFFFFF" | ||
13834 | fill2 "#FFFFFF" | ||
13835 | outline "#000000" | ||
13836 | ] | ||
13837 | LabelGraphics | ||
13838 | [ | ||
13839 | text "null" | ||
13840 | outline "#000000" | ||
13841 | fill "#FFFFFF" | ||
13842 | fontSize 16 | ||
13843 | fontName "Monospace" | ||
13844 | autoSizePolicy "node_width" | ||
13845 | anchor "t" | ||
13846 | borderDistance 0.0 | ||
13847 | ] | ||
13848 | LabelGraphics | ||
13849 | [ | ||
13850 | text " | ||
13851 | FAMTerminator class | ||
13852 | " | ||
13853 | fontSize 14 | ||
13854 | fontName "Consolas" | ||
13855 | alignment "left" | ||
13856 | anchor "tl" | ||
13857 | borderDistance 6 | ||
13858 | ] | ||
13859 | ] | ||
13860 | |||
13861 | node | ||
13862 | [ | ||
13863 | id 8 | ||
13864 | graphics | ||
13865 | [ | ||
13866 | w 177.10000000000002 | ||
13867 | h 54 | ||
13868 | type "rectangle" | ||
13869 | fill "#FFFFFF" | ||
13870 | fill2 "#FFFFFF" | ||
13871 | outline "#000000" | ||
13872 | ] | ||
13873 | LabelGraphics | ||
13874 | [ | ||
13875 | text "null" | ||
13876 | outline "#000000" | ||
13877 | fill "#FFFFFF" | ||
13878 | fontSize 16 | ||
13879 | fontName "Monospace" | ||
13880 | autoSizePolicy "node_width" | ||
13881 | anchor "t" | ||
13882 | borderDistance 0.0 | ||
13883 | ] | ||
13884 | LabelGraphics | ||
13885 | [ | ||
13886 | text " | ||
13887 | FunctionalInput class | ||
13888 | FunctionalData class | ||
13889 | " | ||
13890 | fontSize 14 | ||
13891 | fontName "Consolas" | ||
13892 | alignment "left" | ||
13893 | anchor "tl" | ||
13894 | borderDistance 6 | ||
13895 | ] | ||
13896 | ] | ||
13897 | |||
13898 | node | ||
13899 | [ | ||
13900 | id 9 | ||
13901 | graphics | ||
13902 | [ | ||
13903 | w 184.8 | ||
13904 | h 54 | ||
13905 | type "rectangle" | ||
13906 | fill "#FFFFFF" | ||
13907 | fill2 "#FFFFFF" | ||
13908 | outline "#000000" | ||
13909 | ] | ||
13910 | LabelGraphics | ||
13911 | [ | ||
13912 | text "null" | ||
13913 | outline "#000000" | ||
13914 | fill "#FFFFFF" | ||
13915 | fontSize 16 | ||
13916 | fontName "Monospace" | ||
13917 | autoSizePolicy "node_width" | ||
13918 | anchor "t" | ||
13919 | borderDistance 0.0 | ||
13920 | ] | ||
13921 | LabelGraphics | ||
13922 | [ | ||
13923 | text " | ||
13924 | FunctionalOutput class | ||
13925 | FunctionalData class | ||
13926 | " | ||
13927 | fontSize 14 | ||
13928 | fontName "Consolas" | ||
13929 | alignment "left" | ||
13930 | anchor "tl" | ||
13931 | borderDistance 6 | ||
13932 | ] | ||
13933 | ] | ||
13934 | |||
13935 | node | ||
13936 | [ | ||
13937 | id 10 | ||
13938 | graphics | ||
13939 | [ | ||
13940 | w 161.70000000000002 | ||
13941 | h 40 | ||
13942 | type "rectangle" | ||
13943 | fill "#FFFFFF" | ||
13944 | fill2 "#FFFFFF" | ||
13945 | outline "#000000" | ||
13946 | ] | ||
13947 | LabelGraphics | ||
13948 | [ | ||
13949 | text "null" | ||
13950 | outline "#000000" | ||
13951 | fill "#FFFFFF" | ||
13952 | fontSize 16 | ||
13953 | fontName "Monospace" | ||
13954 | autoSizePolicy "node_width" | ||
13955 | anchor "t" | ||
13956 | borderDistance 0.0 | ||
13957 | ] | ||
13958 | LabelGraphics | ||
13959 | [ | ||
13960 | text " | ||
13961 | FAMTerminator class | ||
13962 | " | ||
13963 | fontSize 14 | ||
13964 | fontName "Consolas" | ||
13965 | alignment "left" | ||
13966 | anchor "tl" | ||
13967 | borderDistance 6 | ||
13968 | ] | ||
13969 | ] | ||
13970 | |||
13971 | node | ||
13972 | [ | ||
13973 | id 11 | ||
13974 | graphics | ||
13975 | [ | ||
13976 | w 161.70000000000002 | ||
13977 | h 40 | ||
13978 | type "rectangle" | ||
13979 | fill "#FFFFFF" | ||
13980 | fill2 "#FFFFFF" | ||
13981 | outline "#000000" | ||
13982 | ] | ||
13983 | LabelGraphics | ||
13984 | [ | ||
13985 | text "null" | ||
13986 | outline "#000000" | ||
13987 | fill "#FFFFFF" | ||
13988 | fontSize 16 | ||
13989 | fontName "Monospace" | ||
13990 | autoSizePolicy "node_width" | ||
13991 | anchor "t" | ||
13992 | borderDistance 0.0 | ||
13993 | ] | ||
13994 | LabelGraphics | ||
13995 | [ | ||
13996 | text " | ||
13997 | FAMTerminator class | ||
13998 | " | ||
13999 | fontSize 14 | ||
14000 | fontName "Consolas" | ||
14001 | alignment "left" | ||
14002 | anchor "tl" | ||
14003 | borderDistance 6 | ||
14004 | ] | ||
14005 | ] | ||
14006 | |||
14007 | node | ||
14008 | [ | ||
14009 | id 12 | ||
14010 | graphics | ||
14011 | [ | ||
14012 | w 112.2 | ||
14013 | h 26 | ||
14014 | type "rectangle" | ||
14015 | fill "#FFFFFF" | ||
14016 | fill2 "#FFFFFF" | ||
14017 | outline "#000000" | ||
14018 | ] | ||
14019 | LabelGraphics | ||
14020 | [ | ||
14021 | text "New Integers" | ||
14022 | outline "#000000" | ||
14023 | fill "#FFFFFF" | ||
14024 | fontSize 16 | ||
14025 | fontName "Monospace" | ||
14026 | autoSizePolicy "node_width" | ||
14027 | anchor "t" | ||
14028 | borderDistance 0.0 | ||
14029 | ] | ||
14030 | LabelGraphics | ||
14031 | [ | ||
14032 | text " | ||
14033 | " | ||
14034 | fontSize 14 | ||
14035 | fontName "Consolas" | ||
14036 | alignment "left" | ||
14037 | anchor "tl" | ||
14038 | borderDistance 6 | ||
14039 | ] | ||
14040 | ] | ||
14041 | |||
14042 | node | ||
14043 | [ | ||
14044 | id 13 | ||
14045 | graphics | ||
14046 | [ | ||
14047 | w 85.80000000000001 | ||
14048 | h 26 | ||
14049 | type "rectangle" | ||
14050 | fill "#FFFFFF" | ||
14051 | fill2 "#FFFFFF" | ||
14052 | outline "#000000" | ||
14053 | ] | ||
14054 | LabelGraphics | ||
14055 | [ | ||
14056 | text "New Reals" | ||
14057 | outline "#000000" | ||
14058 | fill "#FFFFFF" | ||
14059 | fontSize 16 | ||
14060 | fontName "Monospace" | ||
14061 | autoSizePolicy "node_width" | ||
14062 | anchor "t" | ||
14063 | borderDistance 0.0 | ||
14064 | ] | ||
14065 | LabelGraphics | ||
14066 | [ | ||
14067 | text " | ||
14068 | " | ||
14069 | fontSize 14 | ||
14070 | fontName "Consolas" | ||
14071 | alignment "left" | ||
14072 | anchor "tl" | ||
14073 | borderDistance 6 | ||
14074 | ] | ||
14075 | ] | ||
14076 | |||
14077 | node | ||
14078 | [ | ||
14079 | id 14 | ||
14080 | graphics | ||
14081 | [ | ||
14082 | w 103.4 | ||
14083 | h 26 | ||
14084 | type "rectangle" | ||
14085 | fill "#FFFFFF" | ||
14086 | fill2 "#FFFFFF" | ||
14087 | outline "#000000" | ||
14088 | ] | ||
14089 | LabelGraphics | ||
14090 | [ | ||
14091 | text "New Strings" | ||
14092 | outline "#000000" | ||
14093 | fill "#FFFFFF" | ||
14094 | fontSize 16 | ||
14095 | fontName "Monospace" | ||
14096 | autoSizePolicy "node_width" | ||
14097 | anchor "t" | ||
14098 | borderDistance 0.0 | ||
14099 | ] | ||
14100 | LabelGraphics | ||
14101 | [ | ||
14102 | text " | ||
14103 | " | ||
14104 | fontSize 14 | ||
14105 | fontName "Consolas" | ||
14106 | alignment "left" | ||
14107 | anchor "tl" | ||
14108 | borderDistance 6 | ||
14109 | ] | ||
14110 | ] | ||
14111 | |||
14112 | node | ||
14113 | [ | ||
14114 | id 15 | ||
14115 | graphics | ||
14116 | [ | ||
14117 | w 103.4 | ||
14118 | h 26 | ||
14119 | type "rectangle" | ||
14120 | fill "#FFFFFF" | ||
14121 | fill2 "#FFFFFF" | ||
14122 | outline "#000000" | ||
14123 | ] | ||
14124 | LabelGraphics | ||
14125 | [ | ||
14126 | text "New Objects" | ||
14127 | outline "#000000" | ||
14128 | fill "#FFFFFF" | ||
14129 | fontSize 16 | ||
14130 | fontName "Monospace" | ||
14131 | autoSizePolicy "node_width" | ||
14132 | anchor "t" | ||
14133 | borderDistance 0.0 | ||
14134 | ] | ||
14135 | LabelGraphics | ||
14136 | [ | ||
14137 | text " | ||
14138 | " | ||
14139 | fontSize 14 | ||
14140 | fontName "Consolas" | ||
14141 | alignment "left" | ||
14142 | anchor "tl" | ||
14143 | borderDistance 6 | ||
14144 | ] | ||
14145 | ] | ||
14146 | edge | ||
14147 | [ | ||
14148 | source 7 | ||
14149 | target 6 | ||
14150 | graphics | ||
14151 | [ | ||
14152 | fill "#000000" | ||
14153 | targetArrow "standard" | ||
14154 | ] | ||
14155 | LabelGraphics | ||
14156 | [ | ||
14157 | text "data reference FAMTerminator" | ||
14158 | fontSize 14 | ||
14159 | fontName "Consolas" | ||
14160 | configuration "AutoFlippingLabel" | ||
14161 | model "six_pos" | ||
14162 | position "thead" | ||
14163 | ] | ||
14164 | ] | ||
14165 | edge | ||
14166 | [ | ||
14167 | source 10 | ||
14168 | target 8 | ||
14169 | graphics | ||
14170 | [ | ||
14171 | fill "#000000" | ||
14172 | targetArrow "standard" | ||
14173 | ] | ||
14174 | LabelGraphics | ||
14175 | [ | ||
14176 | text "data reference FAMTerminator" | ||
14177 | fontSize 14 | ||
14178 | fontName "Consolas" | ||
14179 | configuration "AutoFlippingLabel" | ||
14180 | model "six_pos" | ||
14181 | position "thead" | ||
14182 | ] | ||
14183 | ] | ||
14184 | edge | ||
14185 | [ | ||
14186 | source 11 | ||
14187 | target 9 | ||
14188 | graphics | ||
14189 | [ | ||
14190 | fill "#000000" | ||
14191 | targetArrow "standard" | ||
14192 | ] | ||
14193 | LabelGraphics | ||
14194 | [ | ||
14195 | text "data reference FAMTerminator" | ||
14196 | fontSize 14 | ||
14197 | fontName "Consolas" | ||
14198 | configuration "AutoFlippingLabel" | ||
14199 | model "six_pos" | ||
14200 | position "thead" | ||
14201 | ] | ||
14202 | ] | ||
14203 | edge | ||
14204 | [ | ||
14205 | source 5 | ||
14206 | target 6 | ||
14207 | graphics | ||
14208 | [ | ||
14209 | fill "#000000" | ||
14210 | width 3 | ||
14211 | targetArrow "standard" | ||
14212 | ] | ||
14213 | LabelGraphics | ||
14214 | [ | ||
14215 | text "data reference FunctionalInterface" | ||
14216 | fontSize 14 | ||
14217 | fontName "Consolas" | ||
14218 | configuration "AutoFlippingLabel" | ||
14219 | model "six_pos" | ||
14220 | position "thead" | ||
14221 | ] | ||
14222 | ] | ||
14223 | edge | ||
14224 | [ | ||
14225 | source 5 | ||
14226 | target 8 | ||
14227 | graphics | ||
14228 | [ | ||
14229 | fill "#000000" | ||
14230 | width 3 | ||
14231 | targetArrow "standard" | ||
14232 | ] | ||
14233 | LabelGraphics | ||
14234 | [ | ||
14235 | text "data reference FunctionalInterface" | ||
14236 | fontSize 14 | ||
14237 | fontName "Consolas" | ||
14238 | configuration "AutoFlippingLabel" | ||
14239 | model "six_pos" | ||
14240 | position "thead" | ||
14241 | ] | ||
14242 | ] | ||
14243 | edge | ||
14244 | [ | ||
14245 | source 5 | ||
14246 | target 9 | ||
14247 | graphics | ||
14248 | [ | ||
14249 | fill "#000000" | ||
14250 | width 3 | ||
14251 | targetArrow "standard" | ||
14252 | ] | ||
14253 | LabelGraphics | ||
14254 | [ | ||
14255 | text "data reference FunctionalInterface" | ||
14256 | fontSize 14 | ||
14257 | fontName "Consolas" | ||
14258 | configuration "AutoFlippingLabel" | ||
14259 | model "six_pos" | ||
14260 | position "thead" | ||
14261 | ] | ||
14262 | ] | ||
14263 | edge | ||
14264 | [ | ||
14265 | source 6 | ||
14266 | target 7 | ||
14267 | graphics | ||
14268 | [ | ||
14269 | fill "#000000" | ||
14270 | width 3 | ||
14271 | targetArrow "standard" | ||
14272 | ] | ||
14273 | LabelGraphics | ||
14274 | [ | ||
14275 | text "terminator reference FunctionalData" | ||
14276 | fontSize 14 | ||
14277 | fontName "Consolas" | ||
14278 | configuration "AutoFlippingLabel" | ||
14279 | model "six_pos" | ||
14280 | position "thead" | ||
14281 | ] | ||
14282 | ] | ||
14283 | edge | ||
14284 | [ | ||
14285 | source 8 | ||
14286 | target 10 | ||
14287 | graphics | ||
14288 | [ | ||
14289 | fill "#000000" | ||
14290 | width 3 | ||
14291 | targetArrow "standard" | ||
14292 | ] | ||
14293 | LabelGraphics | ||
14294 | [ | ||
14295 | text "terminator reference FunctionalData" | ||
14296 | fontSize 14 | ||
14297 | fontName "Consolas" | ||
14298 | configuration "AutoFlippingLabel" | ||
14299 | model "six_pos" | ||
14300 | position "thead" | ||
14301 | ] | ||
14302 | ] | ||
14303 | edge | ||
14304 | [ | ||
14305 | source 9 | ||
14306 | target 11 | ||
14307 | graphics | ||
14308 | [ | ||
14309 | fill "#000000" | ||
14310 | width 3 | ||
14311 | targetArrow "standard" | ||
14312 | ] | ||
14313 | LabelGraphics | ||
14314 | [ | ||
14315 | text "terminator reference FunctionalData" | ||
14316 | fontSize 14 | ||
14317 | fontName "Consolas" | ||
14318 | configuration "AutoFlippingLabel" | ||
14319 | model "six_pos" | ||
14320 | position "thead" | ||
14321 | ] | ||
14322 | ] | ||
14323 | edge | ||
14324 | [ | ||
14325 | source 6 | ||
14326 | target 5 | ||
14327 | graphics | ||
14328 | [ | ||
14329 | fill "#000000" | ||
14330 | targetArrow "standard" | ||
14331 | ] | ||
14332 | LabelGraphics | ||
14333 | [ | ||
14334 | text "interface reference FunctionalData" | ||
14335 | fontSize 14 | ||
14336 | fontName "Consolas" | ||
14337 | configuration "AutoFlippingLabel" | ||
14338 | model "six_pos" | ||
14339 | position "thead" | ||
14340 | ] | ||
14341 | ] | ||
14342 | edge | ||
14343 | [ | ||
14344 | source 8 | ||
14345 | target 5 | ||
14346 | graphics | ||
14347 | [ | ||
14348 | fill "#000000" | ||
14349 | targetArrow "standard" | ||
14350 | ] | ||
14351 | LabelGraphics | ||
14352 | [ | ||
14353 | text "interface reference FunctionalData" | ||
14354 | fontSize 14 | ||
14355 | fontName "Consolas" | ||
14356 | configuration "AutoFlippingLabel" | ||
14357 | model "six_pos" | ||
14358 | position "thead" | ||
14359 | ] | ||
14360 | ] | ||
14361 | edge | ||
14362 | [ | ||
14363 | source 9 | ||
14364 | target 5 | ||
14365 | graphics | ||
14366 | [ | ||
14367 | fill "#000000" | ||
14368 | targetArrow "standard" | ||
14369 | ] | ||
14370 | LabelGraphics | ||
14371 | [ | ||
14372 | text "interface reference FunctionalData" | ||
14373 | fontSize 14 | ||
14374 | fontName "Consolas" | ||
14375 | configuration "AutoFlippingLabel" | ||
14376 | model "six_pos" | ||
14377 | position "thead" | ||
14378 | ] | ||
14379 | ] | ||
14380 | ] | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.png b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.png index a141edb0..c45fa07b 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.png +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.png | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.xmi b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.xmi index c5049270..777693ab 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.xmi +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/models/5.xmi | |||
@@ -1,12 +1,12 @@ | |||
1 | <?xml version="1.0" encoding="ASCII"?> | 1 | <?xml version="1.0" encoding="ASCII"?> |
2 | <fam:FunctionalArchitectureModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> | 2 | <fam:FunctionalInterface xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fam="FamMetamodel"> |
3 | <rootElements xsi:type="fam:Function"/> | 3 | <data xsi:type="fam:FunctionalOutput"> |
4 | <rootElements xsi:type="fam:Function"> | 4 | <terminator/> |
5 | <interface> | 5 | </data> |
6 | <data xsi:type="fam:FunctionalOutput"/> | 6 | <data xsi:type="fam:FunctionalInput"> |
7 | <data xsi:type="fam:FunctionalOutput"> | 7 | <terminator/> |
8 | <terminator/> | 8 | </data> |
9 | </data> | 9 | <data xsi:type="fam:FunctionalInput"> |
10 | </interface> | 10 | <terminator/> |
11 | </rootElements> | 11 | </data> |
12 | </fam:FunctionalArchitectureModel> | 12 | </fam:FunctionalInterface> |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/statistics.csv b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/statistics.csv index 9f61f0e9..71fff7c5 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/statistics.csv +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/outputs/fam/statistics.csv | |||
@@ -26,3 +26,9 @@ Task;Run;Result;Domain to logic transformation time;Logic to solver transformati | |||
26 | 1;1;ModelResultImpl;16;1673;1881;10488189500;142;240;275;311;375;191;21;7;0;5 | 26 | 1;1;ModelResultImpl;16;1673;1881;10488189500;142;240;275;311;375;191;21;7;0;5 |
27 | Task;Run;Result;Domain to logic transformation time;Logic to solver transformation time;Solver time;Postprocessing time;_Solution0FoundAt;_Solution1FoundAt;_Solution2FoundAt;_Solution3FoundAt;_Solution4FoundAt;TransformationExecutionTime;TypeAnalysisTime;StateCoderTime;StateCoderFailCount;SolutionCopyTime | 27 | Task;Run;Result;Domain to logic transformation time;Logic to solver transformation time;Solver time;Postprocessing time;_Solution0FoundAt;_Solution1FoundAt;_Solution2FoundAt;_Solution3FoundAt;_Solution4FoundAt;TransformationExecutionTime;TypeAnalysisTime;StateCoderTime;StateCoderFailCount;SolutionCopyTime |
28 | 1;1;ModelResultImpl;47;1835;2309;9517642900;281;405;544;574;580;325;17;13;0;6 | 28 | 1;1;ModelResultImpl;47;1835;2309;9517642900;281;405;544;574;580;325;17;13;0;6 |
29 | Task;Run;Result;Domain to logic transformation time;Logic to solver transformation time;Solver time;Postprocessing time;_Solution0FoundAt;_Solution1FoundAt;_Solution2FoundAt;_Solution3FoundAt;_Solution4FoundAt;TransformationExecutionTime;TypeAnalysisTime;StateCoderTime;StateCoderFailCount;SolutionCopyTime | ||
30 | 1;1;ModelResultImpl;1139;4621;3347;14457060200;924;988;1031;1071;1121;689;564;74;0;9 | ||
31 | Task;Run;Result;Domain to logic transformation time;Logic to solver transformation time;Solver time;Postprocessing time;_Solution0FoundAt;_Solution1FoundAt;_Solution2FoundAt;_Solution3FoundAt;_Solution4FoundAt;TransformationExecutionTime;TypeAnalysisTime;StateCoderTime;StateCoderFailCount;SolutionCopyTime | ||
32 | 1;1;ModelResultImpl;4;2111;1772;15065362500;113;152;185;238;303;159;18;7;0;5 | ||
33 | Task;Run;Result;Domain to logic transformation time;Logic to solver transformation time;Solver time;Postprocessing time;_Solution0FoundAt;_Solution1FoundAt;_Solution2FoundAt;_Solution3FoundAt;_Solution4FoundAt;TransformationExecutionTime;TypeAnalysisTime;StateCoderTime;StateCoderFailCount;SolutionCopyTime | ||
34 | 1;1;ModelResultImpl;3;1388;1240;8813500300;67;71;96;122;145;86;7;3;0;3 | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/output/FAMTest/Fam.logicproblem b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/output/FAMTest/Fam.logicproblem index f86a2f3c..48991faa 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/output/FAMTest/Fam.logicproblem +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/output/FAMTest/Fam.logicproblem | |||
@@ -1,7 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="ASCII"?> | 1 | <?xml version="1.0" encoding="ASCII"?> |
2 | <language:LogicProblem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore2logicannotations="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language/ecore2logicannotation" xmlns:language="http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" xmlns:language_1="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language"> | 2 | <language:LogicProblem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore2logicannotations="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language/ecore2logicannotation" xmlns:language="http://www.bme.hu/mit/inf/dslreasoner/logic/model/problem" xmlns:language_1="http://www.bme.hu/mit/inf/dslreasoner/logic/model/language"> |
3 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalElement class" subtypes="//@types.2" isAbstract="true"/> | 3 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalElement class" subtypes="//@types.2" isAbstract="true"/> |
4 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalArchitectureModel class" subtypes="//@types.10 //@types.11" isAbstract="true"/> | 4 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalArchitectureModel class"/> |
5 | <types xsi:type="language_1:TypeDeclaration" name="Function class" supertypes="//@types.0"/> | 5 | <types xsi:type="language_1:TypeDeclaration" name="Function class" supertypes="//@types.0"/> |
6 | <types xsi:type="language_1:TypeDeclaration" name="FAMTerminator class"/> | 6 | <types xsi:type="language_1:TypeDeclaration" name="FAMTerminator class"/> |
7 | <types xsi:type="language_1:TypeDeclaration" name="InformationLink class"/> | 7 | <types xsi:type="language_1:TypeDeclaration" name="InformationLink class"/> |
@@ -10,8 +10,6 @@ | |||
10 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalOutput class" supertypes="//@types.8"/> | 10 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalOutput class" supertypes="//@types.8"/> |
11 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalData class" subtypes="//@types.6 //@types.7" isAbstract="true"/> | 11 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalData class" subtypes="//@types.6 //@types.7" isAbstract="true"/> |
12 | <types xsi:type="language_1:TypeDefinition" name="FunctionType enum" elements="//@elements.0 //@elements.1 //@elements.2"/> | 12 | <types xsi:type="language_1:TypeDefinition" name="FunctionType enum" elements="//@elements.0 //@elements.1 //@elements.2"/> |
13 | <types xsi:type="language_1:TypeDefinition" name="FunctionalArchitectureModel class DefinedPart" supertypes="//@types.1" elements="//@elements.3"/> | ||
14 | <types xsi:type="language_1:TypeDeclaration" name="FunctionalArchitectureModel class UndefinedPart" supertypes="//@types.1"/> | ||
15 | <assertions name="upperMultiplicity interface FunctionalElement" annotations="//@annotations.0"> | 13 | <assertions name="upperMultiplicity interface FunctionalElement" annotations="//@annotations.0"> |
16 | <value xsi:type="language_1:Forall"> | 14 | <value xsi:type="language_1:Forall"> |
17 | <quantifiedVariables name="src"> | 15 | <quantifiedVariables name="src"> |
@@ -496,6 +494,55 @@ | |||
496 | </expression> | 494 | </expression> |
497 | </value> | 495 | </value> |
498 | </assertions> | 496 | </assertions> |
497 | <assertions name="lowerMultiplicity value FunctionalData" annotations="//@annotations.19"> | ||
498 | <value xsi:type="language_1:Forall"> | ||
499 | <quantifiedVariables name="src"> | ||
500 | <range xsi:type="language_1:ComplexTypeReference" referred="//@types.8"/> | ||
501 | </quantifiedVariables> | ||
502 | <expression xsi:type="language_1:Exists"> | ||
503 | <quantifiedVariables name="trg 1"> | ||
504 | <range xsi:type="language_1:IntTypeReference"/> | ||
505 | </quantifiedVariables> | ||
506 | <expression xsi:type="language_1:And"> | ||
507 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15"> | ||
508 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.19/@value/@quantifiedVariables.0"/> | ||
509 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.19/@value/@expression/@quantifiedVariables.0"/> | ||
510 | </operands> | ||
511 | </expression> | ||
512 | </expression> | ||
513 | </value> | ||
514 | </assertions> | ||
515 | <assertions name="upperMultiplicity value FunctionalData" annotations="//@annotations.20"> | ||
516 | <value xsi:type="language_1:Forall"> | ||
517 | <quantifiedVariables name="src"> | ||
518 | <range xsi:type="language_1:ComplexTypeReference" referred="//@types.8"/> | ||
519 | </quantifiedVariables> | ||
520 | <quantifiedVariables name="trg 1"> | ||
521 | <range xsi:type="language_1:IntTypeReference"/> | ||
522 | </quantifiedVariables> | ||
523 | <quantifiedVariables name="trg 2"> | ||
524 | <range xsi:type="language_1:IntTypeReference"/> | ||
525 | </quantifiedVariables> | ||
526 | <expression xsi:type="language_1:Impl"> | ||
527 | <leftOperand xsi:type="language_1:And"> | ||
528 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15"> | ||
529 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.20/@value/@quantifiedVariables.0"/> | ||
530 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.20/@value/@quantifiedVariables.1"/> | ||
531 | </operands> | ||
532 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@relations.15"> | ||
533 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.20/@value/@quantifiedVariables.0"/> | ||
534 | <parameterSubstitutions xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.20/@value/@quantifiedVariables.2"/> | ||
535 | </operands> | ||
536 | </leftOperand> | ||
537 | <rightOperand xsi:type="language_1:Not"> | ||
538 | <operand xsi:type="language_1:Distinct"> | ||
539 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.20/@value/@quantifiedVariables.1"/> | ||
540 | <operands xsi:type="language_1:SymbolicValue" symbolicReference="//@assertions.20/@value/@quantifiedVariables.2"/> | ||
541 | </operand> | ||
542 | </rightOperand> | ||
543 | </expression> | ||
544 | </value> | ||
545 | </assertions> | ||
499 | <relations xsi:type="language_1:RelationDeclaration" name="interface reference FunctionalElement"> | 546 | <relations xsi:type="language_1:RelationDeclaration" name="interface reference FunctionalElement"> |
500 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.0"/> | 547 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.0"/> |
501 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.5"/> | 548 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.5"/> |
@@ -556,11 +603,14 @@ | |||
556 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.2"/> | 603 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.2"/> |
557 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.9"/> | 604 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.9"/> |
558 | </relations> | 605 | </relations> |
606 | <relations xsi:type="language_1:RelationDeclaration" name="value attribute FunctionalData"> | ||
607 | <parameters xsi:type="language_1:ComplexTypeReference" referred="//@types.8"/> | ||
608 | <parameters xsi:type="language_1:IntTypeReference"/> | ||
609 | </relations> | ||
559 | <elements name="Root literal FunctionType" definedInType="//@types.9"/> | 610 | <elements name="Root literal FunctionType" definedInType="//@types.9"/> |
560 | <elements name="Intermediate literal FunctionType" definedInType="//@types.9"/> | 611 | <elements name="Intermediate literal FunctionType" definedInType="//@types.9"/> |
561 | <elements name="Leaf literal FunctionType" definedInType="//@types.9"/> | 612 | <elements name="Leaf literal FunctionType" definedInType="//@types.9"/> |
562 | <elements name="o 1" definedInType="//@types.10"/> | 613 | <containmentHierarchies typesOrderedInHierarchy="//@types.2 //@types.3 //@types.4 //@types.7 //@types.0 //@types.6 //@types.1 //@types.5 //@types.8" containmentRelations="//@relations.0 //@relations.3 //@relations.4 //@relations.8 //@relations.11 //@relations.12"/> |
563 | <containmentHierarchies typesOrderedInHierarchy="//@types.4 //@types.5 //@types.2 //@types.3 //@types.7 //@types.6 //@types.8 //@types.0 //@types.1 //@types.10 //@types.11" containmentRelations="//@relations.0 //@relations.3 //@relations.4 //@relations.8 //@relations.11 //@relations.12"/> | ||
564 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.0" relation="//@relations.0" upper="1"/> | 614 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.0" relation="//@relations.0" upper="1"/> |
565 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.1" relation="//@relations.1" lower="1"/> | 615 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.1" relation="//@relations.1" lower="1"/> |
566 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.2" relation="//@relations.1" upper="1"/> | 616 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.2" relation="//@relations.1" upper="1"/> |
@@ -580,4 +630,6 @@ | |||
580 | <annotations xsi:type="ecore2logicannotations:InverseRelationAssertion" target="//@assertions.16" inverseA="//@relations.8" inverseB="//@relations.13"/> | 630 | <annotations xsi:type="ecore2logicannotations:InverseRelationAssertion" target="//@assertions.16" inverseA="//@relations.8" inverseB="//@relations.13"/> |
581 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.17" relation="//@relations.14" lower="1"/> | 631 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.17" relation="//@relations.14" lower="1"/> |
582 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.18" relation="//@relations.14" upper="1"/> | 632 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.18" relation="//@relations.14" upper="1"/> |
633 | <annotations xsi:type="ecore2logicannotations:LowerMultiplicityAssertion" target="//@assertions.19" relation="//@relations.15" lower="1"/> | ||
634 | <annotations xsi:type="ecore2logicannotations:UpperMultiplicityAssertion" target="//@assertions.20" relation="//@relations.15" upper="1"/> | ||
583 | </language:LogicProblem> | 635 | </language:LogicProblem> |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/FAMTest.xtend b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/FAMTest.xtend index a7da818c..17f9ae5e 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/FAMTest.xtend +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/src/ca/mcgill/ecse/dslreasoner/vampire/icse/FAMTest.xtend | |||
@@ -1,5 +1,6 @@ | |||
1 | package ca.mcgill.ecse.dslreasoner.vampire.icse | 1 | package ca.mcgill.ecse.dslreasoner.vampire.icse |
2 | 2 | ||
3 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.BackendSolver | ||
3 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolver | 4 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolver |
4 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolverConfiguration | 5 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolverConfiguration |
5 | import functionalarchitecture.FAMTerminator | 6 | import functionalarchitecture.FAMTerminator |
@@ -8,7 +9,6 @@ import functionalarchitecture.FunctionalArchitectureModel | |||
8 | import functionalarchitecture.FunctionalInterface | 9 | import functionalarchitecture.FunctionalInterface |
9 | import functionalarchitecture.FunctionalOutput | 10 | import functionalarchitecture.FunctionalOutput |
10 | import functionalarchitecture.FunctionalarchitecturePackage | 11 | import functionalarchitecture.FunctionalarchitecturePackage |
11 | //import hu.bme.mit.inf.dslreasoner.domains.transima.fam.FamPatterns | ||
12 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2Logic | 12 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2Logic |
13 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2LogicConfiguration | 13 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2LogicConfiguration |
14 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.DocumentationLevel | 14 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.DocumentationLevel |
@@ -16,7 +16,6 @@ import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicResult | |||
16 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.ModelResult | 16 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.ModelResult |
17 | import hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore | 17 | import hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore |
18 | import hu.bme.mit.inf.dslreasoner.viatra2logic.Viatra2Logic | 18 | import hu.bme.mit.inf.dslreasoner.viatra2logic.Viatra2Logic |
19 | import hu.bme.mit.inf.dslreasoner.viatra2logic.Viatra2LogicConfiguration | ||
20 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic.InstanceModel2Logic | 19 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic.InstanceModel2Logic |
21 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic.InstanceModel2PartialInterpretation | 20 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic.InstanceModel2PartialInterpretation |
22 | import hu.bme.mit.inf.dslreasoner.workspace.FileSystemWorkspace | 21 | import hu.bme.mit.inf.dslreasoner.workspace.FileSystemWorkspace |
@@ -46,7 +45,7 @@ class FAMTest { | |||
46 | 45 | ||
47 | // Load DSL | 46 | // Load DSL |
48 | val metamodel = GeneralTest.loadMetamodel(FunctionalarchitecturePackage.eINSTANCE) | 47 | val metamodel = GeneralTest.loadMetamodel(FunctionalarchitecturePackage.eINSTANCE) |
49 | val partialModel = GeneralTest.loadPartialModel(inputs, "FAM/FaModel.xmi") | 48 | // val partialModel = GeneralTest.loadPartialModel(inputs, "FAM/FaModel.xmi") |
50 | // val queries = GeneralTest.loadQueries(metamodel, FamPatterns.instance) | 49 | // val queries = GeneralTest.loadQueries(metamodel, FamPatterns.instance) |
51 | val queries = null | 50 | val queries = null |
52 | 51 | ||
@@ -54,7 +53,7 @@ class FAMTest { | |||
54 | 53 | ||
55 | val modelGenerationProblem = ecore2Logic.transformMetamodel(metamodel, new Ecore2LogicConfiguration()) | 54 | val modelGenerationProblem = ecore2Logic.transformMetamodel(metamodel, new Ecore2LogicConfiguration()) |
56 | var problem = modelGenerationProblem.output | 55 | var problem = modelGenerationProblem.output |
57 | problem = instanceModel2Logic.transform(modelGenerationProblem, partialModel).output | 56 | // problem = instanceModel2Logic.transform(modelGenerationProblem, partialModel).output |
58 | // problem = viatra2Logic.transformQueries(queries, modelGenerationProblem, new Viatra2LogicConfiguration).output | 57 | // problem = viatra2Logic.transformQueries(queries, modelGenerationProblem, new Viatra2LogicConfiguration).output |
59 | workspace.writeModel(problem, "Fam.logicproblem") | 58 | workspace.writeModel(problem, "Fam.logicproblem") |
60 | 59 | ||
@@ -96,6 +95,7 @@ class FAMTest { | |||
96 | it.typeScopes.maxNewElements = 10//25 | 95 | it.typeScopes.maxNewElements = 10//25 |
97 | // if(typeMapMin.size != 0) it.typeScopes.minNewElementsByType = typeMapMin | 96 | // if(typeMapMin.size != 0) it.typeScopes.minNewElementsByType = typeMapMin |
98 | // if(typeMapMax.size != 0) it.typeScopes.maxNewElementsByType = typeMapMax | 97 | // if(typeMapMax.size != 0) it.typeScopes.maxNewElementsByType = typeMapMax |
98 | it.solver = BackendSolver::LOCVAMP | ||
99 | it.contCycleLevel = 5 | 99 | it.contCycleLevel = 5 |
100 | it.uniquenessDuplicates = false | 100 | it.uniquenessDuplicates = false |
101 | ] | 101 | ] |
@@ -110,25 +110,25 @@ class FAMTest { | |||
110 | // Literal(modelGenerationProblem.trace, ecore2Logic.allLiteralsInScope(modelGenerationProblem.trace).get(0) ) | 110 | // Literal(modelGenerationProblem.trace, ecore2Logic.allLiteralsInScope(modelGenerationProblem.trace).get(0) ) |
111 | // ) | 111 | // ) |
112 | // println((ecore2Logic.allAttributesInScope(modelGenerationProblem.trace)).get(0).EAttributeType) | 112 | // println((ecore2Logic.allAttributesInScope(modelGenerationProblem.trace)).get(0).EAttributeType) |
113 | print(interpretations.class) | 113 | // print(interpretations.class) |
114 | for (interpretation : interpretations) { | 114 | // for (interpretation : interpretations) { |
115 | val model = logic2Ecore.transformInterpretation(interpretation, modelGenerationProblem.trace) | 115 | // val model = logic2Ecore.transformInterpretation(interpretation, modelGenerationProblem.trace) |
116 | workspace.writeModel(model, "model.xmi") | 116 | // workspace.writeModel(model, "model.xmi") |
117 | |||
118 | // val representation = im2pi.transform(modelGenerationProblem, model.eAllContents.toList, false)//solution.representation.get(0) // TODO: fix for multiple represenations | ||
119 | // if (representation instanceof PartialInterpretation) { | ||
120 | // val vis1 = new PartialInterpretation2Gml | ||
121 | // val gml = vis1.transform(representation) | ||
122 | // workspace.writeText("model.gml", gml) | ||
123 | // | 117 | // |
124 | // val vis2 = new GraphvizVisualiser | 118 | //// val representation = im2pi.transform(modelGenerationProblem, model.eAllContents.toList, false)//solution.representation.get(0) // TODO: fix for multiple represenations |
125 | // val dot = vis2.visualiseConcretization(representation) | 119 | //// if (representation instanceof PartialInterpretation) { |
126 | // dot.writeToFile(workspace, "model.png") | 120 | //// val vis1 = new PartialInterpretation2Gml |
127 | // } else { | 121 | //// val gml = vis1.transform(representation) |
128 | // println("ERROR") | 122 | //// workspace.writeText("model.gml", gml) |
129 | // } | 123 | //// |
130 | // look here: hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor | 124 | //// val vis2 = new GraphvizVisualiser |
131 | } | 125 | //// val dot = vis2.visualiseConcretization(representation) |
126 | //// dot.writeToFile(workspace, "model.png") | ||
127 | //// } else { | ||
128 | //// println("ERROR") | ||
129 | //// } | ||
130 | //// look here: hu.bme.mit.inf.dslreasoner.application.execution.GenerationTaskExecutor | ||
131 | // } | ||
132 | 132 | ||
133 | // transform interpretation to ecore, and it is easy from there | 133 | // transform interpretation to ecore, and it is easy from there |
134 | /*/ | 134 | /*/ |
@@ -147,7 +147,6 @@ class FAMTest { | |||
147 | var totalTimeMin = (System.currentTimeMillis - startTime) / 60000 | 147 | var totalTimeMin = (System.currentTimeMillis - startTime) / 60000 |
148 | var totalTimeSec = ((System.currentTimeMillis - startTime) / 1000) % 60 | 148 | var totalTimeSec = ((System.currentTimeMillis - startTime) / 1000) % 60 |
149 | 149 | ||
150 | println("Problem solved") | ||
151 | println("Time was: " + totalTimeMin + ":" + totalTimeSec) | 150 | println("Time was: " + totalTimeMin + ":" + totalTimeSec) |
152 | } | 151 | } |
153 | 152 | ||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.EcoreTest.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.EcoreTest.xtendbin index 197ef5c9..7ccbe59f 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.EcoreTest.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.EcoreTest.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.FAMTest.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.FAMTest.xtendbin index 52c819c4..b03f527f 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.FAMTest.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.FAMTest.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.FileSystemTest.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.FileSystemTest.xtendbin index b3b15fba..6bc303df 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.FileSystemTest.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.FileSystemTest.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.GeneralTest.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.GeneralTest.xtendbin index 03bcbad7..a34d7d3b 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.GeneralTest.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.GeneralTest.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.YakinduTest.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.YakinduTest.xtendbin index 0f06a39a..a8c5f173 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.YakinduTest.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/.YakinduTest.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/FAMTest.java b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/FAMTest.java index 8cd08fd8..cd9ba3c1 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/FAMTest.java +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/icse/FAMTest.java | |||
@@ -1,6 +1,7 @@ | |||
1 | package ca.mcgill.ecse.dslreasoner.vampire.icse; | 1 | package ca.mcgill.ecse.dslreasoner.vampire.icse; |
2 | 2 | ||
3 | import ca.mcgill.ecse.dslreasoner.vampire.icse.GeneralTest; | 3 | import ca.mcgill.ecse.dslreasoner.vampire.icse.GeneralTest; |
4 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.BackendSolver; | ||
4 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolver; | 5 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolver; |
5 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolverConfiguration; | 6 | import ca.mcgill.ecse.dslreasoner.vampire.reasoner.VampireSolverConfiguration; |
6 | import functionalarchitecture.FAMTerminator; | 7 | import functionalarchitecture.FAMTerminator; |
@@ -27,8 +28,6 @@ import hu.bme.mit.inf.dslreasoner.workspace.FileSystemWorkspace; | |||
27 | import java.util.HashMap; | 28 | import java.util.HashMap; |
28 | import java.util.List; | 29 | import java.util.List; |
29 | import java.util.Map; | 30 | import java.util.Map; |
30 | import org.eclipse.emf.common.util.EList; | ||
31 | import org.eclipse.emf.ecore.EObject; | ||
32 | import org.eclipse.emf.ecore.resource.Resource; | 31 | import org.eclipse.emf.ecore.resource.Resource; |
33 | import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; | 32 | import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; |
34 | import org.eclipse.xtend2.lib.StringConcatenation; | 33 | import org.eclipse.xtend2.lib.StringConcatenation; |
@@ -59,13 +58,11 @@ public class FAMTest { | |||
59 | map.put("logicproblem", _xMIResourceFactoryImpl); | 58 | map.put("logicproblem", _xMIResourceFactoryImpl); |
60 | InputOutput.<String>println("Input and output workspaces are created"); | 59 | InputOutput.<String>println("Input and output workspaces are created"); |
61 | final EcoreMetamodelDescriptor metamodel = GeneralTest.loadMetamodel(FunctionalarchitecturePackage.eINSTANCE); | 60 | final EcoreMetamodelDescriptor metamodel = GeneralTest.loadMetamodel(FunctionalarchitecturePackage.eINSTANCE); |
62 | final EList<EObject> partialModel = GeneralTest.loadPartialModel(inputs, "FAM/FaModel.xmi"); | ||
63 | final Object queries = null; | 61 | final Object queries = null; |
64 | InputOutput.<String>println("DSL loaded"); | 62 | InputOutput.<String>println("DSL loaded"); |
65 | Ecore2LogicConfiguration _ecore2LogicConfiguration = new Ecore2LogicConfiguration(); | 63 | Ecore2LogicConfiguration _ecore2LogicConfiguration = new Ecore2LogicConfiguration(); |
66 | final TracedOutput<LogicProblem, Ecore2Logic_Trace> modelGenerationProblem = ecore2Logic.transformMetamodel(metamodel, _ecore2LogicConfiguration); | 64 | final TracedOutput<LogicProblem, Ecore2Logic_Trace> modelGenerationProblem = ecore2Logic.transformMetamodel(metamodel, _ecore2LogicConfiguration); |
67 | LogicProblem problem = modelGenerationProblem.getOutput(); | 65 | LogicProblem problem = modelGenerationProblem.getOutput(); |
68 | problem = instanceModel2Logic.transform(modelGenerationProblem, partialModel).getOutput(); | ||
69 | workspace.writeModel(problem, "Fam.logicproblem"); | 66 | workspace.writeModel(problem, "Fam.logicproblem"); |
70 | InputOutput.<String>println("Problem created"); | 67 | InputOutput.<String>println("Problem created"); |
71 | long startTime = System.currentTimeMillis(); | 68 | long startTime = System.currentTimeMillis(); |
@@ -86,6 +83,7 @@ public class FAMTest { | |||
86 | it.documentationLevel = DocumentationLevel.FULL; | 83 | it.documentationLevel = DocumentationLevel.FULL; |
87 | it.typeScopes.minNewElements = 8; | 84 | it.typeScopes.minNewElements = 8; |
88 | it.typeScopes.maxNewElements = 10; | 85 | it.typeScopes.maxNewElements = 10; |
86 | it.solver = BackendSolver.LOCVAMP; | ||
89 | it.contCycleLevel = 5; | 87 | it.contCycleLevel = 5; |
90 | it.uniquenessDuplicates = false; | 88 | it.uniquenessDuplicates = false; |
91 | }; | 89 | }; |
@@ -93,13 +91,6 @@ public class FAMTest { | |||
93 | LogicResult solution = reasoner.solve(problem, vampireConfig, workspace); | 91 | LogicResult solution = reasoner.solve(problem, vampireConfig, workspace); |
94 | InputOutput.<String>println("Problem solved"); | 92 | InputOutput.<String>println("Problem solved"); |
95 | List<? extends LogicModelInterpretation> interpretations = reasoner.getInterpretations(((ModelResult) solution)); | 93 | List<? extends LogicModelInterpretation> interpretations = reasoner.getInterpretations(((ModelResult) solution)); |
96 | InputOutput.<Class<? extends List>>print(interpretations.getClass()); | ||
97 | for (final LogicModelInterpretation interpretation : interpretations) { | ||
98 | { | ||
99 | final EObject model = logic2Ecore.transformInterpretation(interpretation, modelGenerationProblem.getTrace()); | ||
100 | workspace.writeModel(model, "model.xmi"); | ||
101 | } | ||
102 | } | ||
103 | long _currentTimeMillis = System.currentTimeMillis(); | 94 | long _currentTimeMillis = System.currentTimeMillis(); |
104 | long _minus = (_currentTimeMillis - startTime); | 95 | long _minus = (_currentTimeMillis - startTime); |
105 | long totalTimeMin = (_minus / 60000); | 96 | long totalTimeMin = (_minus / 60000); |
@@ -107,7 +98,6 @@ public class FAMTest { | |||
107 | long _minus_1 = (_currentTimeMillis_1 - startTime); | 98 | long _minus_1 = (_currentTimeMillis_1 - startTime); |
108 | long _divide = (_minus_1 / 1000); | 99 | long _divide = (_minus_1 / 1000); |
109 | long totalTimeSec = (_divide % 60); | 100 | long totalTimeSec = (_divide % 60); |
110 | InputOutput.<String>println("Problem solved"); | ||
111 | InputOutput.<String>println(((("Time was: " + Long.valueOf(totalTimeMin)) + ":") + Long.valueOf(totalTimeSec))); | 101 | InputOutput.<String>println(((("Time was: " + Long.valueOf(totalTimeMin)) + ":") + Long.valueOf(totalTimeSec))); |
112 | } catch (Throwable _e) { | 102 | } catch (Throwable _e) { |
113 | throw Exceptions.sneakyThrow(_e); | 103 | throw Exceptions.sneakyThrow(_e); |
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.MedicalSystem.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.MedicalSystem.xtendbin index 5dcd3133..9a2c84d7 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.MedicalSystem.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.MedicalSystem.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.SimpleRun.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.SimpleRun.xtendbin index 68ade593..f39505b0 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.SimpleRun.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.SimpleRun.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.VampireTest.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.VampireTest.xtendbin index 80e7ebe0..51d32da7 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.VampireTest.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.vampire.test/xtend-gen/ca/mcgill/ecse/dslreasoner/vampire/test/.VampireTest.xtendbin | |||
Binary files differ | |||
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.yakindu.test/xtend-gen/ca/mcgill/ecse/dslreasoner/yakindu/test/.YakinduTest.xtendbin b/Tests/ca.mcgill.ecse.dslreasoner.yakindu.test/xtend-gen/ca/mcgill/ecse/dslreasoner/yakindu/test/.YakinduTest.xtendbin index 139dcdc7..0278755b 100644 --- a/Tests/ca.mcgill.ecse.dslreasoner.yakindu.test/xtend-gen/ca/mcgill/ecse/dslreasoner/yakindu/test/.YakinduTest.xtendbin +++ b/Tests/ca.mcgill.ecse.dslreasoner.yakindu.test/xtend-gen/ca/mcgill/ecse/dslreasoner/yakindu/test/.YakinduTest.xtendbin | |||
Binary files differ | |||