On Oct 21, 2004, at 12:31 PM, Miguel wrote:
I have a bit of a problem.
I noticed that in the SmarterModelAdapter the AtomSetCollection that is
generated by the openBufferedReader (i.e., the
ModelResolver.resolveModel result), is not stored as a field in the
class.
This, I assume, is the reason that all the get methods have the Object clientFile as an argument.
Correct.
There is only one instance of the SmarterModelAdapter, but it can read read multiple files. Therefore the bufferedReader is not stored.
I wasn't refering to the bufferedReader, but the AtomSetCollection itself (i.e., the data that is read from the file).
I had to do the same for the getAtomSetName, so I wrote the method as:
public String getAtomSetName(Object clientFile, int atomSetIndex) {
return ((AtomSetCollection)clientFile).getAtomSetName(atomSetIndex);
}
I'm lost
Or am I missing something here?
I think so :-)
Maybe we should keep an instance of it in the SmarterModelAdapter class?
I did commit what I did, so you can see it.
OK, I will take a look.
I may make some changes and check them in ... so you should refrain from
making any more mods until I send you another email.
OK
Ren�
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
