DataModel model = new FileDataModel(new File("./data/test.txt"));
//just to make sure it loads the model
model.getNumItems();
System.out.println(model.getMaxPreference());
this prints out a NaN
because you have maxPreference/minPreference calculated when it creates
the inner DataModel (a variable called delegate), but it is not in the
wrapper class FileDataModel.
On 15/08/2010 21:54, Sean Owen wrote:
What do you mean by this? I'm not clear yet.
On Sun, Aug 15, 2010 at 1:09 PM, Tamas Jambor<[email protected]> wrote:
Hi,
One more possible bug, in FileDataModel, there is nothing to make sure that
the superclass - AbstractDataModel gets the value for maxPreference and
minPreference.
Tamas