Class RemoteScopInstallation

  • All Implemented Interfaces:
    ScopDatabase

    public class RemoteScopInstallation
    extends Object
    implements ScopDatabase
    A class that fetches information about SCOP from a remote data-source. It requires port 80 to open for HTTP connection.
    Author:
    Andreas Prlic
    • Constructor Detail

      • RemoteScopInstallation

        public RemoteScopInstallation()
    • Method Detail

      • main

        public static void main​(String[] args)
      • getServer

        public String getServer()
      • setServer

        public void setServer​(String server)
      • getTree

        public List<ScopNode> getTree​(ScopDomain domain)
        Description copied from interface: ScopDatabase
        get the SCOP sub-tree for a particular domain.
        Specified by:
        getTree in interface ScopDatabase
        Returns:
        list of ScopNodes providing the path to this domain
      • filterByDomainName

        public List<ScopDomain> filterByDomainName​(String query)
        Description copied from interface: ScopDatabase
        search through SCOP and filter based on domain name
        Specified by:
        filterByDomainName in interface ScopDatabase
        Parameters:
        query - a (part) of a name
        Returns:
        list of matchin ScopDomains
      • getDomainsForPDB

        public List<ScopDomain> getDomainsForPDB​(String pdbId)
        Description copied from interface: ScopDatabase
        Get a list of ScopDomains that have been assigned to a PDB ID
        Specified by:
        getDomainsForPDB in interface ScopDatabase
        Parameters:
        pdbId - the PDB entry
        Returns:
        a list of ScopDomains
      • getDomainByScopID

        public ScopDomain getDomainByScopID​(String scopId)
        Description copied from interface: ScopDatabase
        get a ScopDomain by its SCOP ID (warning, they are not stable between releases!)
        Specified by:
        getDomainByScopID in interface ScopDatabase
        Parameters:
        scopId - e.g. d2bq6a1
        Returns:
        a ScopDomain or null if no domain with the particular ID could be found
      • getScopNode

        public ScopNode getScopNode​(int sunid)
        Description copied from interface: ScopDatabase
        Access a particular ScopNode. The scopNode then allows to traverse through the scop hierarchy...
        Specified by:
        getScopNode in interface ScopDatabase
        Parameters:
        sunid - the scop unique id
        Returns:
        a ScopNode that matches this sunid