Commit 549ccad2 authored by Kai-Holger Brassel's avatar Kai-Holger Brassel
Browse files

City Units with UOM/Indriya imported via custom P2 repo.

(Tests not working yet)
No related merge requests found
Showing with 551 additions and 3 deletions
+551 -3
.gitignore 0 → 100644
# Created by https://www.gitignore.io/api/java,maven,macos,linux,eclipse,windows,netbeans,intellij
# Edit at https://www.gitignore.io/?templates=java,maven,macos,linux,eclipse,windows,netbeans,intellij
### User specific ###
.sonarlint/
Servers/
RemoteSystemsTempFiles/
farFieldObstructions.txt
farFieldOcclPatchFraction.txt
/tmpdeploy/
/SimStadtTestReports/
### Eclipse ###
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# PyDev specific (Python IDE for Eclipse)
*.pydevproject
# CDT-specific (C/C++ Development Tooling)
.cproject
# CDT- autotools
.autotools
# Java annotation processor (APT)
.factorypath
# PDT-specific (PHP Development Tools)
.buildpath
# sbteclipse plugin
.target
# Tern plugin
.tern-project
# TeXlipse plugin
.texlipse
# STS (Spring Tool Suite)
.springBeans
# Code Recommenders
.recommenders/
# Annotation Processing
.apt_generated/
# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
### Eclipse Patch ###
# Annotation Processing
.apt_generated
.sts4-cache/
### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr
# Sonarlint plugin
.idea/sonarlint
### Java ###
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
### Linux ###
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Maven ###
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
### NetBeans ###
**/nbproject/private/
**/nbproject/Makefile-*.mk
**/nbproject/Package-*.bash
build/
nbbuild/
dist/
nbdist/
.nb-gradle/
### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# End of https://www.gitignore.io/api/java,maven,macos,linux,eclipse,windows,netbeans,intellij
\ No newline at end of file
.project 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>de.hft-stuttgart.cityunits.parent</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
FROM maven:3.6.3-adoptopenjdk-15
WORKDIR /home/projects
COPY ./ ./
RUN mvn clean install
# de.hft-stuttgart.cityunits
Ecore types for modeling quantities with units of mesurement (JSR-385) and Indriya reference implementation.
Add also units especially useful for urban simulation.
Create Eclipse P2 repository with Ecore data types for units based on Indriya reference implementation. Provide special units for urban simulation.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>de.hft-stuttgart.cityunits.feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>
bin.includes = feature.xml
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="de.hft-stuttgart.cityunits.feature"
label="City Units"
version="1.0.0"
provider-name="HfT Stuttgart">
<description url="http://www.example.com/description">
Provides Indriya reference implementation of units of masurement
(JSR 385) together with required dependencies and extensions
that introduces Ecore data types for double and long valued units.
Certain units relevant to City simulations are also added.
</description>
<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
<requires>
<import plugin="org.eclipse.emf.ecore"/>
<import plugin="de.hft-stuttgart.cityunits" version="1.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.emf.edit" version="2.8.0" match="compatible"/>
<import plugin="org.eclipse.core.runtime" version="3.8.0" match="compatible"/>
<import plugin="org.eclipse.emf.databinding" version="1.3.0" match="compatible"/>
<import plugin="org.eclipse.jface"/>
<import plugin="javax.inject"/>
<import plugin="org.eclipse.emfforms.common"/>
<import plugin="org.eclipse.swt"/>
<import plugin="tech.units.indriya" version="2.1.1" match="compatible"/>
<import plugin="javax.measure.unit-api" version="2.1.1" match="compatible"/>
<import plugin="uom-lib-common" version="2.1.0" match="compatible"/>
<import plugin="org.eclipse.emf.ecp.edit.swt" version="1.24.0" match="compatible"/>
<import plugin="org.eclipse.emf.ecp.ui.view.swt" version="1.24.0" match="compatible"/>
<import plugin="org.eclipse.emf.ecp.view.core.swt" version="1.24.0" match="compatible"/>
<import plugin="org.eclipse.emf.ecp.view.template.model" version="1.24.0" match="compatible"/>
<import plugin="org.eclipse.emfforms.core.services.editsupport" version="1.24.0" match="compatible"/>
<import plugin="org.eclipse.emfforms.swt.core.di" version="1.24.0" match="compatible"/>
<import plugin="org.eclipse.emfforms.localization" version="1.24.0" match="compatible"/>
</requires>
<plugin
id="de.hft-stuttgart.cityunits.model"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="de.hft-stuttgart.cityunits.ui.renderer"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
</feature>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>de.hft-stuttgart.cityunits.feature</artifactId>
<packaging>eclipse-feature</packaging>
<name>City Units Feature</name>
<parent>
<groupId>de.hft-stuttgart</groupId>
<artifactId>de.hft-stuttgart.cityunits</artifactId>
<version>1.0.0</version>
</parent>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>de.hft-stuttgart.cityunits.model</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: CityUnits
Bundle-SymbolicName: de.hft-stuttgart.cityunits.model;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: HfT Stuttgart
Bundle-Localization: plugin
Automatic-Module-Name: de.hft-stuttgart.cityunits.model
Require-Bundle: tech.units.indriya;bundle-version="[2.1.1,3.0.0)",
javax.measure.unit-api;bundle-version="[2.1.1,3.0.0)",
org.eclipse.emf.ecore;visibility:=reexport,
uom-lib-common;bundle-version="[2.1.0,3.0.0)"
Bundle-ActivationPolicy: lazy
Export-Package: de.hftstuttgart.cityunits.model;uses:="javax.measure,javax.measure.spi,tech.units.indriya",
de.hftstuttgart.cityunits.model.quantities;uses:="org.eclipse.emf.ecore"
#
bin.includes = .,\
model/,\
META-INF/,\
plugin.xml,\
plugin.properties
jars.compile.order = .
source.. = src/
bin.excludes = model/Quantities.genmodel
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="quantities" nsURI="https://www.hft-stuttgart.de/quantities"
nsPrefix="quant">
<eClassifiers xsi:type="ecore:EDataType" name="QuantityDouble" instanceClassName="de.hftstuttgart.cityunits.NullableQuantity"/>
<eClassifiers xsi:type="ecore:EDataType" name="QuantityLong" instanceClassName="de.hftstuttgart.cityunits.NullableQuantity"/>
</ecore:EPackage>
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel"
modelDirectory="/de.hft-stuttgart.cityunits/src" modelPluginID="de.hft-stuttgart.cityunits"
modelName="Quantities" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false"
operationReflection="true" importOrganizing="true">
<foreignModel>Quantities.ecore</foreignModel>
<genPackages prefix="Quantities" basePackage="de.hftstuttgart.cityunits" disposableProviderFactory="true"
ecorePackage="Quantities.ecore#/">
<genDataTypes ecoreDataType="Quantities.ecore#//QuantityDouble"/>
<genDataTypes ecoreDataType="Quantities.ecore#//QuantityLong"/>
</genPackages>
</genmodel:GenModel>
#
pluginName = City Units
providerName = HfT Stuttgart
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
-->
<plugin>
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated Quantities -->
<package
uri="https://www.hft-stuttgart.de/quantities"
class="de.hftstuttgart.cityunits.quantities.QuantitiesPackage"
genModel="model/Quantities.genmodel"/>
</extension>
</plugin>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>de.hft-stuttgart.cityunits.model</artifactId>
<packaging>eclipse-plugin</packaging>
<name>City Units</name>
<parent>
<groupId>de.hft-stuttgart</groupId>
<artifactId>de.hft-stuttgart.cityunits</artifactId>
<version>1.0.0</version>
</parent>
</project>
\ No newline at end of file
package de.hftstuttgart.cityunits.model;
import javax.measure.Quantity;
/**
* This interface represents the intensity dimension.
*/
public interface Dollar extends Quantity<Dollar>
{
}
\ No newline at end of file
package de.hftstuttgart.cityunits.model;
import javax.measure.Quantity;
/**
* This interface represents the intensity dimension.
*/
public interface Euro extends Quantity<Euro>
{
}
\ No newline at end of file
package de.hftstuttgart.cityunits.model;
import javax.measure.Quantity;
/**
* This interface represents the intensity dimension.
*/
public interface Intensity extends Quantity<Intensity>
{
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment