Package ffx.potential.parsers
Class INTFilter
java.lang.Object
ffx.potential.parsers.SystemFilter
ffx.potential.parsers.INTFilter
The INTFilter class parses TINKER internal coordinate (*.INT) files.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Nested Class Summary
Nested classes/interfaces inherited from class ffx.potential.parsers.SystemFilter
SystemFilter.Versioning
-
Field Summary
Fields inherited from class ffx.potential.parsers.SystemFilter
atomList, bondList, dieOnMissingAtom, fileRead, files, fileType, forceField, lambdaPattern, properties, standardizeAtomNames, systems, vdwH
-
Constructor Summary
ConstructorDescriptionINTFilter
(File file, MolecularAssembly molecularAssembly, ForceField forceField, org.apache.commons.configuration2.CompositeConfiguration properties) Constructor for INTFilter.INTFilter
(List<File> files, MolecularAssembly molecularAssembly, ForceField forceField, org.apache.commons.configuration2.CompositeConfiguration properties) Constructor for INTFilter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Attempts to close any open resources associated with the underlying file; primarily to be used when finished reading a trajectory.boolean
readFile()
This method is different for each subclass and must be overridden.boolean
readNext()
Reads the next model if applicable (currently, ARC and PDB files only).boolean
readNext
(boolean resetPosition) Reads the next model if applicable (currently, ARC files only).boolean
readNext
(boolean resetPosition, boolean print) Reads the next model if applicable (currently, ARC files only).boolean
readNext
(boolean resetPosition, boolean print, boolean parse) Reads the next model if applicable (currently, ARC files only).boolean
This method is different for each subclass and must be overridden.Methods inherited from class ffx.potential.parsers.SystemFilter
applyAtomProperties, atomListToSet, countNumModels, fileRead, getActiveMolecularSystem, getAtomList, getFile, getFiles, getLastReadLambda, getMolecularAssemblyArray, getRemarkLines, getSnapshot, getType, previousVersion, setFile, setFileRead, setFiles, setForceField, setProperties, setType, setVersioning, version, writeFile
-
Constructor Details
-
INTFilter
public INTFilter(List<File> files, MolecularAssembly molecularAssembly, ForceField forceField, org.apache.commons.configuration2.CompositeConfiguration properties) Constructor for INTFilter.- Parameters:
files
- aList
object.molecularAssembly
- aMolecularAssembly
object.forceField
- aForceField
object.properties
- aCompositeConfiguration
object.
-
INTFilter
public INTFilter(File file, MolecularAssembly molecularAssembly, ForceField forceField, org.apache.commons.configuration2.CompositeConfiguration properties) Constructor for INTFilter.- Parameters:
file
- aFile
object.molecularAssembly
- aMolecularAssembly
object.forceField
- aForceField
object.properties
- aCompositeConfiguration
object.
-
-
Method Details
-
closeReader
public void closeReader()Attempts to close any open resources associated with the underlying file; primarily to be used when finished reading a trajectory.- Specified by:
closeReader
in classSystemFilter
-
readFile
public boolean readFile()This method is different for each subclass and must be overridden.Parse the INT File.
- Specified by:
readFile
in classSystemFilter
- Returns:
- a boolean.
- Since:
- 1.0
-
readNext
public boolean readNext(boolean resetPosition) Reads the next model if applicable (currently, ARC files only).- Specified by:
readNext
in classSystemFilter
- Parameters:
resetPosition
- Resets to first frame.- Returns:
- If next model read.
-
readNext
public boolean readNext(boolean resetPosition, boolean print) Reads the next model if applicable (currently, ARC files only).- Specified by:
readNext
in classSystemFilter
- Parameters:
resetPosition
- Resets to first frame.print
- Flag to print.- Returns:
- If next model read.
-
readNext
public boolean readNext(boolean resetPosition, boolean print, boolean parse) Reads the next model if applicable (currently, ARC files only).- Specified by:
readNext
in classSystemFilter
- Parameters:
resetPosition
- Resets to first frame.print
- Flag to print.parse
- Parse data in file. May want to skip structures for parallel jobs.- Returns:
- If next model read.
-
readNext
public boolean readNext()Reads the next model if applicable (currently, ARC and PDB files only).- Specified by:
readNext
in classSystemFilter
- Returns:
- If next model read.
-
writeFile
This method is different for each subclass and must be overridden.If the append flag is true, "saveFile" will be appended to. Otherwise, the default versioning scheme will be applied.
- Specified by:
writeFile
in classSystemFilter
- Parameters:
saveFile
- aFile
object.append
- a boolean.extraLines
- Additional lines to append to a comments section, or null.- Returns:
- a boolean.
-