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
ConstructorsConstructorDescriptionConstructor for SimulationFilter. -
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
-
SimulationFilter
Constructor for SimulationFilter.- Parameters:
sys- aSimulationDefinitionobject.m- aMolecularAssemblyobject.
-
-
Method Details
-
closeReader
public void closeReader()Description copied from class:SystemFilterAttempts 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) Description copied from class:SystemFilterReads 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) Description copied from class:SystemFilterReads 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) Description copied from class:SystemFilterReads 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()Description copied from class:SystemFilterReads 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.
-