public class ParmedParser
extends java.lang.Object
ParmedStructure objects by invoking
the ParmEd library and serializing its
Structure object using JSON.ParmedStructure| Constructor | Description |
|---|---|
ParmedParser() |
| Modifier and Type | Method | Description |
|---|---|---|
static ParmedStructure |
parseGromacs(java.io.File topFile,
java.io.File groFile) |
|
static ParmedStructure |
parseGromacsResourceFiles(java.lang.String topFileName,
java.lang.String groFileName) |
Convenience method to parse gromacs files located in the
etomica-core/src/main/resources directory. |
public static ParmedStructure parseGromacs(java.io.File topFile, java.io.File groFile) throws java.io.IOException
topFile - File object containing the path to a Gromacs .top filegroFile - File object containing the path to a Gromacs .gro fileParmedStructure for extracting Etomica simulation components from the ParmEd Structure objectjava.io.IOExceptionpublic static ParmedStructure parseGromacsResourceFiles(java.lang.String topFileName, java.lang.String groFileName) throws java.io.IOException
etomica-core/src/main/resources directory.topFileName - the plain name of the .top file, e.g. "test.top"groFileName - the plain name of the .gro file, e.g. "test.gro"ParmedStructure containing the parsed data.java.io.IOException - if the files do not exist.