Skip to content

Commit

Permalink
79: More energy demos
Browse files Browse the repository at this point in the history
Task-Url: #79
  • Loading branch information
keilw committed Jul 21, 2020
1 parent cce566e commit 3ecf523
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

/**
* Carbon Footprint calculator for cars
* @author Werner
* @author Werner Keil
* @author Andi Huber
* @see <a href="https://spritrechner.biz/co2-rechner-fuer-autos.html">CO2-Rechner für Autos (DE)</a>
* @version 1.7
Expand Down Expand Up @@ -92,8 +92,7 @@ private static interface SpecificCarbonEmission extends Quantity<SpecificCarbonE
private static void print(String format, Object ...args) {
System.out.println(String.format(format, args));
}



private static void usage() {
System.out.println("Usage: CO2CarDemo <Car> <FuelType> (PETROL/DIESEL) <Consumption per 100 km> <Distance in km>");
}
Expand All @@ -110,7 +109,6 @@ private FuelType(double factor) {
@Override
public double getFactor() {
return factor;
}

}
}
}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<maven.compile.targetLevel>${jdkVersion}</maven.compile.targetLevel>
<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel>
<jsr.version>2.0</jsr.version>
<ri.version>2.0.3</ri.version>
<lib.version>2.0</lib.version>
<ri.version>2.0.4-SNAPSHOT</ri.version>
<lib.version>2.0.1-SNAPSHOT</lib.version>
<si.version>2.0.2-SNAPSHOT</si.version>
<systems.version>2.0.2</systems.version>
</properties>
Expand Down
2 changes: 2 additions & 0 deletions src/etc/CO2CarDemo (Ferrari Enzo 6 DAV-STO).launch
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_EXCLUDE_TEST_CODE" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.m2e.launchconfig.classpathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-9"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="tech.uom.demo.energy.CO2CarDemo"/>
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="uom-energy-demos"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="Ferrari-Enzo6 PETROL 23 1888.9"/>
Expand Down

0 comments on commit 3ecf523

Please sign in to comment.