Package ffx.utilities
Class TinkerUtils
java.lang.Object
ffx.utilities.TinkerUtils
A collection of Utility methods for compatibility with Tinker.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Method Summary
Modifier and TypeMethodDescriptionparseTinkerAtomList
(List<String> tokens, int offset, int maxEntries) Parse a Tinker selection list.static File
previousVersion
(File file) Get the previous file based on the TINKER scheme.static File
This follows the TINKER file versioning scheme.
-
Method Details
-
parseTinkerAtomList
Parse a Tinker selection list. No checking is done to make sure range i- Parameters:
tokens
- A list of tokens to parse.offset
- A constant offset that is added to each selected integer (i.e. an offset of -1 will index atoms from 0 to n-1).maxEntries
- The maximum number of entries to parse (e.g. "4 -9 17 23" is 3 entries). A value less than 1 includes all entries.- Returns:
- A list of selected integers.
-
previousVersion
Get the previous file based on the TINKER scheme.- Parameters:
file
- Root file.- Returns:
- New File created previously to the passed file.
-
version
This follows the TINKER file versioning scheme.- Parameters:
file
- File to find a version for.- Returns:
- File Versioned File.
-