[Biojava-l] Going in circles (again)!

Mark Schreiber mark_s@sanger.otago.ac.nz
Fri, 7 Sep 2001 15:44:11 +1200 (NZST)


Hi -

I am in the process of making CircularLocations more compatible with the
biojava 1.2 api. I have made good progress but I have run aground with
LocationTools.handleDecorations() which doesn't.

Is this method intended as a hospital pass? or should it be used by
decorated methods when performing logical operations?

In biojava 1.1 the old CircularRangeLocation and CircularPointLocation
classes implemented the old requirements for Union/Intersection methods
etc, is there any reason why these could not be used in LocationTools.

Also would the LocationTools.isDecorated() method be more efficient if it
had the following signature

protected static boolean isDecorated(Location loc){
  return (loc instanceof AbstractLocationDecorator);
}

Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark Schreiber			Ph: 64 3 4797875
Rm 218				email mark_s@sanger.otago.ac.nz
Department of Biochemistry	email m.schreiber@clear.net.nz
University of Otago		
PO Box 56
Dunedin
New Zealand
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~