Miguel,

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.

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);
  }

Or am I missing something here?
Maybe we should keep an instance of it in the SmarterModelAdapter class?

I did commit what I did, so you can see it.

Also I added some javadoc stuff in my files.

Ren�

On Oct 20, 2004, at 6:18 PM, Miguel wrote:


You are basically adding the method
public String getAtomSetName(int atomSetIndex) {
   return "AtomSet "+atomSetIndex;
}
which I will override in the SmarterModelAdapter.
At this point it wouldn't require anything besides that, and would not
even enforce me to override it  by not making it an abstract method.
Right?

Exactly.



------------------------------------------------------- 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

Reply via email to