Package demo

Class DemoFetchElectronDensity

java.lang.Object
demo.DemoFetchElectronDensity

public class DemoFetchElectronDensity extends Object
Fetches electron density and cryo-EM maps, printing which source answered.

The three entries chosen exercise the three outcomes the fallback chain has to handle:

  • 1cbs — an X-ray structure with deposited structure factors, served by the first source tried.
  • 6hu9 — a cryo-EM structure. Every X-ray source has nothing for it, so the chain resolves the associated EMDB entry instead and picks up the author-recommended contour level along the way.
  • 4hhb — deposited in 1984 without structure factors, so no source has anything. This is a normal outcome, not an error, and the exception says which sources were tried and why each declined.
Since:
7.3.0
Author:
Amr ALHOSSARY
  • Constructor Details

    • DemoFetchElectronDensity

      public DemoFetchElectronDensity()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Parameters:
      args - ignored
      Throws:
      IOException - if a server could not be reached at all