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
ConstructorsConstructorDescriptionINTFilter(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 TypeMethodDescriptionvoidAttempts to close any open resources associated with the underlying file; primarily to be used when finished reading a trajectory.booleanreadFile()This method is different for each subclass and must be overridden.booleanreadNext()Reads the next model if applicable (currently, ARC and PDB files only).booleanreadNext(boolean resetPosition) Reads the next model if applicable (currently, ARC files only).booleanreadNext(boolean resetPosition, boolean print) Reads the next model if applicable (currently, ARC files only).booleanreadNext(boolean resetPosition, boolean print, boolean parse) Reads the next model if applicable (currently, ARC files only).booleanThis 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- aListobject.molecularAssembly- aMolecularAssemblyobject.forceField- aForceFieldobject.properties- aCompositeConfigurationobject.
-
INTFilter
public INTFilter(File file, MolecularAssembly molecularAssembly, ForceField forceField, org.apache.commons.configuration2.CompositeConfiguration properties) Constructor for INTFilter.- Parameters:
file- aFileobject.molecularAssembly- aMolecularAssemblyobject.forceField- aForceFieldobject.properties- aCompositeConfigurationobject.
-
-
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:
closeReaderin classSystemFilter
-
readFile
public boolean readFile()This method is different for each subclass and must be overridden.Parse the INT File.
- Specified by:
readFilein 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:
readNextin 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:
readNextin 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:
readNextin 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:
readNextin 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:
writeFilein classSystemFilter- Parameters:
saveFile- aFileobject.append- a boolean.extraLines- Additional lines to append to a comments section, or null.- Returns:
- a boolean.
-