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.CompositeConfiguration
getProperties.void
run()
-
Constructor Details
-
PotentialsFileOpener
Constructor for PotentialsFileOpener.- Parameters:
file
- aFile
object.
-
-
Method Details
-
getAllAssemblies
getAllAssemblies.Returns all MolecularAssembly objects created by this opener.
- Specified by:
getAllAssemblies
in interfaceFileOpener
- Returns:
- an array of
MolecularAssembly
objects.
-
getAllProperties
public org.apache.commons.configuration2.CompositeConfiguration[] getAllProperties()getAllProperties.Returns the properties of all MolecularAssembly objects created by this opener.
- Specified by:
getAllProperties
in interfaceFileOpener
- Returns:
- an array of
CompositeConfiguration
objects.
-
getAssembly
getAssembly.Returns the first MolecularAssembly created by the run() function.
- Specified by:
getAssembly
in interfaceFileOpener
- Returns:
- a
MolecularAssembly
object.
-
getFilter
Getter for the fieldfilter
.- Returns:
- a
SystemFilter
object.
-
getProperties
public org.apache.commons.configuration2.CompositeConfiguration getProperties()getProperties.Returns the properties associated with the first MolecularAssembly.
- Specified by:
getProperties
in interfaceFileOpener
- Returns:
- a
CompositeConfiguration
object.
-
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:
run
in interfaceFileOpener
- Specified by:
run
in interfaceRunnable
-