From 21d836576a3f13d6d211cacb9fb7e24515e3b962 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Thu, 11 Aug 2016 17:29:21 +0200 Subject: [PATCH] [TASK] Add ontology, fix crash not resetting speed to zero. --- data/carSimulationOntology.owl | 150 ++++++++++++++++++ .../java/lu/jpt/csparqltest/rentacar/Car.java | 1 + 2 files changed, 151 insertions(+) create mode 100644 data/carSimulationOntology.owl diff --git a/data/carSimulationOntology.owl b/data/carSimulationOntology.owl new file mode 100644 index 0000000..169db57 --- /dev/null +++ b/data/carSimulationOntology.owl @@ -0,0 +1,150 @@ + + + + Beispielhafte Ontologie für die Autosimulation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4500 + 3.5 + 800 + 2.9 + + + + + + + diff --git a/src/main/java/lu/jpt/csparqltest/rentacar/Car.java b/src/main/java/lu/jpt/csparqltest/rentacar/Car.java index adb74fa..78e1a67 100644 --- a/src/main/java/lu/jpt/csparqltest/rentacar/Car.java +++ b/src/main/java/lu/jpt/csparqltest/rentacar/Car.java @@ -179,6 +179,7 @@ public class Car { this.currentState = CarState.WRECKED; this.motorOn = false; this.motorRpm = 0; + this.speed = 0; break; case NONE: break;