Menu

JDecisiontableLib / Blog: Recent posts

Java 11 ready

Build the project with OpenJDK 11 on Linux. After some fixes on the pom.xml: No problems.

Posted by Michael Groß 2018-12-04

Where is the documentation?

The documentation for JDecisiontableLib was moved to the project JDecisiontable. Either download the released binary or go to the sources: The documents are in the folder "Help".

Posted by Michael Groß 2016-07-17

Released version 2.1.1

JDecisiontableLib 2.1.1 is available.
The only change is that I added the subproject name to group id.

The maven coordinates for this release are:

<dependency>
  <groupId>de.mgmechanics.jdecisiontablelib</groupId>
  <artifactId>JDecisiontableLib</artifactId>
  <version>2.1.1</version>
</dependency>

See https://oss.sonatype.org/#nexus-search;quick~de.mgmechanics

Posted by Michael Groß 2016-07-17

Repackaged version 2.1.0

Today I repackaged version 2.1.0 and uploaded everything to Maven Central again. The reason is that I found out that the sources.jar file I downloaded from Maven Central did not contain any files and that indeed the test source files do no belong into the sources jar, thus it needed another folder structure.

There is no change of the source code of course!

Posted by Michael Groß 2016-03-06


JDecisiontable is available via Maven Central

This release (2.1.0) of JDecisiontable is now available via Sonatype Maven Central. Now you can include this library in you pom file as any other dependency.

I included the signature files in the zip file.

Posted by Michael Groß 2014-09-12

Re-packed archive JDecisiontableLib_2.1.0

I just re-packed archive JDecisiontableLib_2.1.0 to match the requirements of Sonatype Central Maven Repository, http://central.sonatype.org/.

I am struggling only with a missing signature file yet. I plan to sign all program files in my releases but such a signature is quite expensive.

Posted by Michael Groß 2014-09-12

JDecisiontableLib will be continued using Java!

JDecisiontableLib will be continued using Java!

Posted by Michael Groß 2014-08-14

Added some missing branches for earlier versions

It should be possible to get the source code for any release by check out from the repository. This should be done by providing a branch for each release. For some earlier releases there were only tags, no branches.

So I added the missing branches i.e. version__1.1.0 for tag version1.1. Tags and branches can not have same names in git so I mainly added underscores. In this single case I added trailing ".0" too.

Posted by Michael Groß 2014-06-04

Removed one old branch

I removed the old branch checkNodeHasYesInValidRule.

Posted by Michael Groß 2014-06-04

Release of JDecisiontableLib 2.1.0

The main reason to release JDecisiontableLib 2.1.0 is that I missed read-only interfaces for the mutable classes Decisiontable, Node and Rule (all in package de.mgmechanics.jdecisiontablelib.dt).

These interfaces, named IRo.* ("Interface for Read-Only access") provide access to all methods which do not alter the state of an object. So these interfaces provide a view to these objects. Using these interfaces you render instances of these classes immutable.... read more

Posted by Michael Groß 2014-06-04

Release of JDecisiontableLib 2.0.0

Today I can release JDecisiontableLib 2.0.0!

There are some changes which breaks API compatibility, therefore the new major version. Changes affect the API (easier to use/less confusing now) and the code quality but not the domain-specific algorithms. These remains unchanged!

A major change is the remove of the facility to serialise instances of JDecisiontableLib to JSON. Now, I consider it a mistake to add this facility in a library. Because of some fields changed their names compatibilty to release 1.3.1 would be broken. But I added some interfaces ("ISer.*") and factory methods to enable you to write an adapter to read data serialised that way. You may have a look at JDecisiontable 2.1.0 to see how it could be done.

Posted by Michael Groß 2014-05-14

Work in progress

Recently I started to develop with Eclipse Kepler (version 4.2). I was quite astonished how much warnings it showed up for my code. Usually I trusted on the default configuration of Netbeans. Now I learned that for Netbeans I have to enable additional warnings. Like the javac compiler warnings which I found to be switched off.

I enabled these and moreover I checked my code with PMD and FindBugs. That brought more interesting hints. I improved one weakness after another. Now Findbugs doesn't show up weak points - in the default configuration. I have to learn about this.... read more

Posted by Michael Groß 2014-03-05

Merry Christmas - developing goes on!

Merry and peaceful Christmas to you all!

The developing process in this project goes on. As you see in Code I already made first steps towards a Version 2.0.0.

So I refactored the classes Node, Rule and Decisiontable mostly to get rid of the non-obvious need to run the checks first and then request the recent results. Now these check methods always return a set (and never null). If the set is empty the check was successful.... read more

Posted by Michael Groß 2013-12-21

MIT licence

I decided to apply the MIT licence after reading this helpful article: Closing the Loophole: Open Source Licensing & the Implied Patent License written by Christian H. Nadan.

Posted by Michael Groß 2013-03-15

JDecisiontableLib 1.3.1 released

This release was necessary because of a bugfix. The bug was that it limited the number of decimal places for the probability in the string tables to 3. Becuase probability is measured in percent that means you got 12.3 % where a value of 12.34 % was provided. This doesn't affect the JSON strings. These keep the value with full precision.

Posted by Michael Groß 2013-02-14

Released version 1.3.0

Here is JDecisiontableLib 1.3.0.

Main reason for this release are useable facilities for internatinalization (abbr. I18N). This affects only the classes Decisiontable2Table and Testspecification2Table. They got constructors which take custom strings as parameters used as string representations for the objects i.e. "x" for boolean isCondition=true or "" for boolean isCondition=false. The idea behind is that the client application take these strings from property file and provide it via these constructors to JDecisiontableLib.... read more

Posted by Michael Groß 2013-02-03

What I am doing at time

Making JDecisiontableLib ready for I18N.

For this purpose I am adding some new constructors to provide strings to override default values used to display internal objects i.e. "Y" for Decision.Yes, ">" for Comparison.GT or just the "x" used for Node.isCondition.

The idea behind is, that the client application i.e JDecisiontable will read a property file with language-specific strings and give these strings via the new constructors to JDecisiontableLib.... read more

Posted by Michael Groß 2013-01-30

JDecsiontableLib version 1.2.2 released

Delivered! Today I released version 1.2.2 of JDecsiontableLib. As promised in the last blog entry you may create a new decision table by providing a list of node names (= called description in JDecsiontable). Second argument for the new constructor is the number of rules you want.

Furthermore 2 of 3 constructors of class Decisiontable check their arguments before creating the new object and may throw an IllegalArgumentException if the values doesn't fit. The Exception is thrown in a safer way following The CERT Oracle Secure Coding Standard for Java in OBJ11-J.... read more

Posted by Michael Groß 2013-01-08

Whats going on?

Currently I'm adding a facility to make creating decision tables from existing work easier.

There are only two options to get a decision table now: 1) create a blank decision table or 2) load a decision table made with this library. What about if you have already a decision table as spreadsheet or have at least the names/descriptions for the nodes a text in some document? Do you really need to copy-and-past each one?... read more

Posted by Michael Groß 2013-01-05

JDecsiontableLib version 1.2.1 released

Today I released version 1.2.1 of de.mgmechanics.JDecsiontableLib. These are the improvements in brief:

checkFailed flag was not reset automatically for nodes
" 1) BUGFIX: Decisiontable.checkNoNodeWithDontcareOnly() did not reset checkFailed flag automatically before doing the check. This affected also Decisiontable.checkNumberOfRules() and Decisiontable.runAllChecks() because they call Decisiontable.checkNoNodeWithDontcareOnly()." Version 1.2.0 is - as an exception - still available in folder "Legacy" because some methode were deprecated in version 1.2.1.... read more

Posted by Michael Groß 2012-12-09

Paths in "File" changed

To keep things more obvious I removed the folder "Help" and created the folder "Legacy".

The folder Legacy will contain all versions but the last version and version which had bugs. There will be also documentation for this versions tagged with version number. Versions with bugs will be removed from download.

The root folder will contain always the latest version together with documentation and essential text files. Please note that there is much more documentation regarding this library in the project JDecisiontable!... read more

Posted by Michael Groß 2012-11-28

Released version 1.2.0

The most important change is change 5:

The flag Rule.isDisjunctCheckFailed is now transient, that means it will appear NO LONGER in the JSON string. Thus, the JSON strings generated by this library are - for same decision table - different to the JSON strings generated by version 1.1 and 1.1.1 of this library.

But you should get valid objects for any version this library using JSON strings prepared with any version of this library. This was successfully tested with JSON strings made with version 1.0, 1.1 and 1.2.0.... read more

Posted by Michael Groß 2012-11-28

Released version 1.1.1

Today I released version 1.1.1.

Main reason for this release is this bugfix:

Decisiontable.getRulesNotDisjunct() did not report - as expected the first two rules which are not unique (if such rules were found by Decisiontable.checkRulesForBeingDisjunct() - but the first two rules being disjunct! Was were no testcases to cover this usecase? - Of course there was (and still are)! But this bug would not discovered by this testcases because they was wrong. The author apologize for any inconvienance! This happened around inverting the meaning of the flag which is handled by Rule.getDisjunctCheckFailed() / Rule.setDisjunctCheckFailed(). The author apologizes for any inconvenience.... read more

Posted by Michael Groß 2012-11-05

Released version 1.1

Today I released version 1.1.

Main reason for this release is the ability to return the numbers of first two rules which are not disjunct after the check if all rules are disjunct was done.

This feature is used by JDecisiontable version 1.1 which uses this library in version 1.1.

Please not that this ability requires a new flag in the class Rule which necessarily results in a different JSON string which results in a different file format. But the Version 1.1 can deal with all files created by version 1.0 - I have tested this.... read more

Posted by Michael Groß 2012-10-31