Package ffx.potential.parsers
Class MergeFilter
java.lang.Object
ffx.potential.parsers.SystemFilter
ffx.potential.parsers.MergeFilter
The MergeFilter class allows Force Field X to treat merging of Systems just like opening a file
from a hard disk or socket.
- 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
ConstructorsConstructorDescriptionMergeFilter(MolecularAssembly f, ArrayList<Atom> a, ArrayList<Bond> b) Constructor for MergeFilter. -
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
-
MergeFilter
Constructor for MergeFilter.- Parameters:
f- aMolecularAssemblyobject.a- aArrayListobject.b- aArrayListobject.
-
-
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.- Specified by:
readFilein classSystemFilter- Returns:
- a boolean.
-
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.
-