--- a/platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/historic/model/RascalHistoricMetrics.emf
+++ b/platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/DatetimeMeasurement.java
@@ -1,9 +1,35 @@
-package org.ossmeter.metricprovider.rascal.historic.model;
+package org.ossmeter.metricprovider.rascal.trans.model;
-import "platform:/resource/org.ossmeter.platform-extensions.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/RascalMetrics.ecore";
+import com.googlecode.pongo.runtime.querying.NumericalQueryProducer;
+import com.googlecode.pongo.runtime.querying.StringQueryProducer;
-@db(qualifiedCollectionNames="true")
-@customize
-class RascalHistoricMetrics {
- val org.ossmeter.metricprovider.rascal.trans.model.Measurement[*] measurements;
-}
+
+public class DatetimeMeasurement extends Measurement {
+
+
+
+ public DatetimeMeasurement() {
+ super();
+ super.setSuperTypes("org.ossmeter.metricprovider.rascal.trans.model.Measurement");
+ URI.setOwningType("org.ossmeter.metricprovider.rascal.trans.model.DatetimeMeasurement");
+ VALUE.setOwningType("org.ossmeter.metricprovider.rascal.trans.model.DatetimeMeasurement");
+ }
+
+ public static StringQueryProducer URI = new StringQueryProducer("uri");
+ public static NumericalQueryProducer VALUE = new NumericalQueryProducer("value");
+
+
+ public long getValue() {
+ return parseLong(dbObject.get("value")+"", 0);
+ }
+
+ public DatetimeMeasurement setValue(long value) {
+ dbObject.put("value", value);
+ notifyChanged();
+ return this;
+ }
+
+
+
+
+}