Package ffx.potential.utils
Class PotentialsFileOpener
java.lang.Object
ffx.potential.utils.PotentialsFileOpener
- All Implemented Interfaces:
FileOpener,Runnable
The PotentialsFileOpener class specifies a Runnable object which is constructed with a File and,
when run, allows returning any opened MolecularAssembly objects and their associated properties.
- Since:
- 1.0
- Author:
- Jacob M. Litman, Michael J. Schnieders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllAssemblies.org.apache.commons.configuration2.CompositeConfiguration[]getAllProperties.getAssembly.Getter for the fieldfilter.org.apache.commons.configuration2.CompositeConfigurationgetProperties.voidrun()
-
Constructor Details
-
PotentialsFileOpener
Constructor for PotentialsFileOpener.- Parameters:
file- aFileobject.
-
-
Method Details
-
getAllAssemblies
getAllAssemblies.Returns all MolecularAssembly objects created by this opener.
- Specified by:
getAllAssembliesin interfaceFileOpener- Returns:
- an array of
MolecularAssemblyobjects.
-
getAllProperties
public org.apache.commons.configuration2.CompositeConfiguration[] getAllProperties()getAllProperties.Returns the properties of all MolecularAssembly objects created by this opener.
- Specified by:
getAllPropertiesin interfaceFileOpener- Returns:
- an array of
CompositeConfigurationobjects.
-
getAssembly
getAssembly.Returns the first MolecularAssembly created by the run() function.
- Specified by:
getAssemblyin interfaceFileOpener- Returns:
- a
MolecularAssemblyobject.
-
getFilter
Getter for the fieldfilter.- Returns:
- a
SystemFilterobject.
-
getProperties
public org.apache.commons.configuration2.CompositeConfiguration getProperties()getProperties.Returns the properties associated with the first MolecularAssembly.
- Specified by:
getPropertiesin interfaceFileOpener- Returns:
- a
CompositeConfigurationobject.
-
run
public void run()At present, parses the PDB, XYZ, INT, or ARC file from the constructor and creates MolecularAssembly and properties objects.
- Specified by:
runin interfaceFileOpener- Specified by:
runin interfaceRunnable
-