Interface FileOpener

All Superinterfaces:
Runnable
All Known Implementing Classes:
PotentialsFileOpener, UIFileOpener

public interface FileOpener extends Runnable
The FileOpener interface specifies Runnable objects which can return one or more MolecularAssemblies. Implementing classes should not be constructed except by a class implementing PotentialsFunctions; one should pass that class the File to be opened, which constructs an implementation of FileOpener.

To some extent, this interface is legacy code of when I was trying to implement the open() methods from MainPanel instead of openWait(); it should be possible to simply wrap the methods into the classes implementing PotentialsFunctions.

Author:
Jacob M. Litman, Michael J. Schnieders
  • Method Details

    • getAllAssemblies

      MolecularAssembly[] getAllAssemblies()
      getAllAssemblies.
      Returns:
      an array of MolecularAssembly objects.
    • getAllProperties

      org.apache.commons.configuration2.CompositeConfiguration[] getAllProperties()
      getAllProperties.
      Returns:
      an array of CompositeConfiguration objects.
    • getAssembly

      MolecularAssembly getAssembly()
      getAssembly.
      Returns:
      a MolecularAssembly object.
    • getProperties

      org.apache.commons.configuration2.CompositeConfiguration getProperties()
      getProperties.
      Returns:
      a CompositeConfiguration object.
    • run

      void run()
      Specified by:
      run in interface Runnable