Class ScopFactory


  • public class ScopFactory
    extends Object
    Controls the global ScopDatabase being used.

    Defaults to a RemoteScopInstallation, which is fast for small numbers of queries. For many queries, using getSCOP(version,true) may be faster, since it makes only one network request.

    Example: Fetch the structure corresponding to an old version of scop

     ScopInstallation scop = new ScopInstallation();
     scop.setScopVersion("1.69");
     ScopFactory.setScopDatabase(scop);
     AtomCache cache = new AtomCache();
     cache.setFetchFileEvenIfObsolete(true); //fetch older PDBs
     cache.setStrictSCOP(false); // correct simple errors in domain names
     Structure s = cache.getStructure("d3hbia_");
    Author:
    sbliven