The following document contains the listing of user tags found in the code. Below is the summary of the occurrences per tag.
Tag Class | Total number of occurrences | Tag strings used by tag class |
---|---|---|
Open issues in the code | 24 | TODO, FIXME, XXX |
Each tag is detailed below:
Number of occurrences found in the code: 24
org.djunits.unit.AngleUnitTest | Line |
---|---|
Check two conversions between non-standard Angle units assertEquals("one GRAD is about 54 ARCMINUTE", 54, getMultiplicationFactorTo(AngleUnit.GRAD, AngleUnit.ARCMINUTE), 0.5); assertEquals("one ARCMINUTE is about 0.0185 GRAD", 0.0185, getMultiplicationFactorTo(AngleUnit.ARCMINUTE, AngleUnit.GRAD), 0.0001); Check conversion factor to standard unit for all remaining time units | 73 |
org.djunits.unit.DefinesSITest | Line |
Test for SI for relative classes; BASE for absolute classes | 52 |
org.djunits.unit.MoneyUnit | Line |
allow for static conversion factors between MoneyUnits. | 21 |
allow for dynamic conversion factors between MoneyUnits. | 22 |
org.djunits.unit.SIUnit | Line |
this is horrible / PK We need a better way to determine if a unit is supposed to have localization information. | 53 |
org.djunits.unit.Unit | Line |
professional logging of errors | 102 |
call static method from the instance method? The two are now too similar. | 260 |
call other static method? The two are now too similar. | 387 |
org.djunits.unit.VolumeUnitTest | Line |
checkUnitRatioNameAndAbbreviation(VolumeUnit.OUNCE_IMP_FLUID, .00002841306, 0.00000000001, "horsepower (metric)", "hp(M)"); | 66 |
checkUnitRatioNameAndAbbreviation(VolumeUnit.PINT_US_FLUID, 0.000473176473, 0.0000000000001, "pt(US fl)", "hp(M)"); | 68 |
checkUnitRatioNameAndAbbreviation(VolumeUnit.PINT_IMP, 735.49875, 0.00001, "horsepower (metric)", "hp(M)"); | 70 |
checkUnitRatioNameAndAbbreviation(VolumeUnit.QUART_US_FLUID, 0.000946353, 0.0000000001, "qt(US fl)", "hp(M)"); | 71 |
checkUnitRatioNameAndAbbreviation(VolumeUnit.QUART_IMP, 0.00113652, 0.000005, "quart (imperial)", "qt (imp)"); | 72 |
org.djunits.value.ScalarOperationsTest | Line |
Probably we exclude too much here for the tests... | 661 |
org.djunits.value.VectorOperationsTest | Line |
multiplyBy and divideBy are currently only available for a non mutable argument. Next if statement is always taken. It is quite possible that multiplyBy will be restricted to Dimensionless vector arguments. | 232 |
Check for BASE field in absolutes, SI field in relatives | 370 |
- Peter does not know how to write this with generics... Does not work yet because mixed mutable immutable minus does not exist yet Object right = findAndExecuteConstructor(vectorClass, new Object[] { thirdValue, getSIUnitInstance(getUnitClass(vectorClass)), storageType }, abs, doubleType); System.out.println("left : " + left.getClass() + " right : " + right.getClass()); System.out.println(Arrays.toString(left.getClass().ClassUtil.resolveMethod(left.getClass(), s()).replaceAll(" org", "\norg")); System.out.println("super class " + right.getClass().getSuperclass()); Method minus = left.getClass().getMethod("minus", new Class<?>[] { right.getClass().getSuperclass() }); result = minus.invoke(left, right); result = left.minus(right); verifyAbsRelPrecisionAndValues(false, doubleType, storageType, result, twoThirdValue, 0.0001); | 812 |
- Peter does not know how to write this with generics... Does not work yet because mixed mutable immutable minus does not exist yet Object right = findAndExecuteConstructor(vectorClass, new Object[] { thirdValue, getSIUnitInstance(getUnitClass(vectorClass)), storageType }, abs, doubleType); System.out.println("left : " + left.getClass() + " right : " + right.getClass()); System.out.println(Arrays.toString(left.getClass().getMethods()).replaceAll(" org", "\norg")); System.out.println("super class " + right.getClass().getSuperclass()); Method minus = ClassUtil.resolveMethod(left.getClass(), "minus", new Class<?>[] { right.getClass().getSuperclass() }); result = minus.invoke(left, right); result = left.minus(right); verifyAbsRelPrecisionAndValues(false, doubleType, storageType, result, twoThirdValue, 0.0001); | 846 |
this should not be necessary | 1352 |
this should not be necessary | 1373 |
Probably we exclude too much here for the tests... | 1463 |
should also work for mutable and mix of mutable and immutable System.out.println("Type of right is " + compatibleRight.getClass()); | 1500 |
interpolate is not yet generated by the code generator ... Method interpolate = ClassUtil.resolveMethod(vectorClass, "interpolate", vectorClass, vectorClass, double.class); AbstractDoubleScalar<?, ?> result; result = (AbstractDoubleScalar<?, ?>) interpolate.invoke(null, zero, one, ratio); verifyAbsRelPrecisionAndValues(abs, doubleType, result, expectedResult, 0.01); | 1617 |
org.djunits.value.formatter.Format | Line |
check how to always format numbers corresponding to the Locale used. <p> This file was generated by the djunits value classes generator, 26 jun, 2015 <p> Copyright (c) 2015-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> BSD-style license. See <a href="http://djunits.org/docs/license.html">DJUNITS License</a>. <p> $LastChangedDate: 2018-01-28 03:17:44 +0100 (Sun, 28 Jan 2018) $, @version $Revision: 256 $, by $Author: averbraeck $, initial version 26 jun, 2015 <br> | 7 |