From: lehtonen Date: Wed, 18 Aug 2010 09:01:12 +0000 (+0000) Subject: Moved os.sysdyn.ontology from /foundation/ontologies/trunk to /sysdyn/trunk. X-Git-Tag: simantics-1.2.0~102 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=ebb12280ea1ba8f4e2e2a2a538f1598e7170ce9a;p=simantics%2Fsysdyn.git Moved os.sysdyn.ontology from /foundation/ontologies/trunk to /sysdyn/trunk. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17319 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ontology/.classpath b/org.simantics.sysdyn.ontology/.classpath new file mode 100644 index 00000000..8a8f1668 --- /dev/null +++ b/org.simantics.sysdyn.ontology/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/org.simantics.sysdyn.ontology/.project b/org.simantics.sysdyn.ontology/.project new file mode 100644 index 00000000..b975ea97 --- /dev/null +++ b/org.simantics.sysdyn.ontology/.project @@ -0,0 +1,34 @@ + + + org.simantics.sysdyn.ontology + + + + + + org.simantics.graph.builder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.simantics.graph.nature + + diff --git a/org.simantics.sysdyn.ontology/.settings/org.eclipse.jdt.core.prefs b/org.simantics.sysdyn.ontology/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..888b17ed --- /dev/null +++ b/org.simantics.sysdyn.ontology/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#Thu Jul 22 15:15:41 EEST 2010 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/org.simantics.sysdyn.ontology/META-INF/MANIFEST.MF b/org.simantics.sysdyn.ontology/META-INF/MANIFEST.MF new file mode 100644 index 00000000..02e12cc9 --- /dev/null +++ b/org.simantics.sysdyn.ontology/META-INF/MANIFEST.MF @@ -0,0 +1,10 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Sysdyn Ontology +Bundle-SymbolicName: org.simantics.sysdyn.ontology +Bundle-Version: 1.0.0.qualifier +Require-Bundle: org.simantics.layer0, + org.simantics.diagram.ontology;bundle-version="1.0.0", + org.simantics.structural.ontology;bundle-version="1.0.0" +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Export-Package: org.simantics.sysdyn diff --git a/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource$1.class b/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource$1.class new file mode 100644 index 00000000..7016dbad Binary files /dev/null and b/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource$1.class differ diff --git a/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource$URIs.class b/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource$URIs.class new file mode 100644 index 00000000..d025875e Binary files /dev/null and b/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource$URIs.class differ diff --git a/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource.class b/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource.class new file mode 100644 index 00000000..2313dac0 Binary files /dev/null and b/org.simantics.sysdyn.ontology/bin/org/simantics/sysdyn/SysdynResource.class differ diff --git a/org.simantics.sysdyn.ontology/build.properties b/org.simantics.sysdyn.ontology/build.properties new file mode 100644 index 00000000..15454c69 --- /dev/null +++ b/org.simantics.sysdyn.ontology/build.properties @@ -0,0 +1,7 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + graphs/*.tg,\ + graph.tg +src.includes = graph/ diff --git a/org.simantics.sysdyn.ontology/graph.tg b/org.simantics.sysdyn.ontology/graph.tg new file mode 100644 index 00000000..36b1abec Binary files /dev/null and b/org.simantics.sysdyn.ontology/graph.tg differ diff --git a/org.simantics.sysdyn.ontology/graph/Sysdyn.pgraph b/org.simantics.sysdyn.ontology/graph/Sysdyn.pgraph new file mode 100644 index 00000000..ff8714b3 --- /dev/null +++ b/org.simantics.sysdyn.ontology/graph/Sysdyn.pgraph @@ -0,0 +1,391 @@ +L0 = +G2D = +STR = +DIA = +SIMU = +MOD = +PROJ = +WORKBENCH = + +//##################################################################### +// Defines ontology and attaches it to SimanticsDomain +//##################################################################### + +SYSDYN = : L0.Ontology + @L0.new + L0.HasResourceClass "org.simantics.sysdyn.SysdynResource" + +SYSDYN.SysdynProject : PROJ.Feature + @L0.tag PROJ.LifecycleFeature + L0.HasLabel "System Dynamics Project" + L0.HasDescription """System dynamics modelling project. Create system dynamics models and simulate them with OpenModelica.""" + PROJ.HasInstallableUnit "org.simantics.sysdyn.feature.group" + L0.PartOf SYSDYN + PROJ.IsFeatureIn PROJ.PublishedProjectFeatures + PROJ.RequiresFeature + ImportedOntologies : PROJ.OntologyRequirementValidationFeature + L0.HasDescription "Specifies the ontologies required by a Sysdyn project." + PROJ.RequiresNamespace + "http://www.simantics.org/Sysdyn-1.0" : L0.URI + WORKBENCH.Features.SymbolManager + PROJ.Features.ExperimentControl + SYSDYN.SysdynModelManager : PROJ.Feature + L0.HasLabel "Sysdyn Model Manager" + L0.HasDescription "Sysdyn Model Manager." + PROJ.RequiresFeature MOD.ModelingProject + PROJ.RequiresFeature PROJ.Features.ExperimentControl + + +SYSDYN.SysdynModuleTestProject : PROJ.Project + PROJ.HasFeature SYSDYN.SysdynProject + // L0.PartOf L0.Projects + +//##################################################################### +// Model +//##################################################################### + +SYSDYN.SysdynModel +G2D = +STR = +DIA = +SIMU = +MOD = +SYSDYN = +PROJ = + +//###################################################################### +//# Example work model with two modules +//###################################################################### + +/* +WM = : PROJ.Project + PROJ.HasFeature SYSDYN.SysdynProject + L0.PartOf +*/ + +WM = : PROJ.Project + PROJ.HasFeature SYSDYN.SysdynProject + L0.PartOf + +TAGS = WM.Tags : L0.Library + + +WM.dependency : L0.Template + @template %type %head %tail %angle + %type + @L0.tag TAGS.AdminIsVisible + @L0.tag TAGS.AdminIsFocusable + STR.HasConnectionType SYSDYN.SysdynConnectionType + SYSDYN.angle %angle + DIA.HasArrowConnector _ : DIA.Connector + SYSDYN.HasHeadTerminal %head + DIA.AreConnected _ : DIA.Connector + SYSDYN.HasTailTerminal %tail + DIA.IsPlainConnectorOf %type + +WM.flow : L0.Template + @template %type %head %tail + %type + @L0.tag TAGS.AdminIsVisible + @L0.tag TAGS.AdminIsFocusable + STR.HasConnectionType SYSDYN.SysdynConnectionType + DIA.HasArrowConnector _ : DIA.Connector + SYSDYN.HasHeadTerminal %head + DIA.AreConnected _ : DIA.Connector + SYSDYN.HasTailTerminal %tail + DIA.IsPlainConnectorOf %type + +WM.conf_dependency : L0.Template + @template %type %head %tail + %type + @L0.tag MOD.Mapped + SYSDYN.HasHead %head + SYSDYN.HasTail %tail + +WM.conf_dependency_ref : L0.Template + @template %type %head %tail %ref + %type + @L0.tag MOD.Mapped + SYSDYN.HasHead %head + SYSDYN.HasTail %tail + SYSDYN.RefersTo %ref + + + +WM.WorkSymbol () { + public SysdynResource perform(ReadGraph graph) throws DatabaseException { + return new SysdynResource(graph); + } + }); + session.registerService(SysdynResource.class, ret); + } + return ret; + } + +} +