Package ffx.ui.commands
Class SimulationFilter
java.lang.Object
ffx.potential.parsers.SystemFilter
ffx.ui.commands.SimulationFilter
The SimulationFilter class parses system data sent by FFXServer to FFXClient.
- 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
ConstructorDescriptionConstructor for SimulationFilter. -
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
-
SimulationFilter
Constructor for SimulationFilter.- Parameters:
sys
- aSimulationDefinition
object.m
- aMolecularAssembly
object.
-
-
Method Details
-
closeReader
public void closeReader()Description copied from class:SystemFilter
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.- Specified by:
readFile
in classSystemFilter
- Returns:
- a boolean.
-
readNext
public boolean readNext(boolean resetPosition) Description copied from class:SystemFilter
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) Description copied from class:SystemFilter
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) Description copied from class:SystemFilter
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()Description copied from class:SystemFilter
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.
-