chemaxon.formats.recognizer
Class CubeRecognizer
java.lang.Object
chemaxon.formats.recognizer.Recognizer
chemaxon.formats.recognizer.XYZRecognizer
chemaxon.formats.recognizer.CubeRecognizer
public class CubeRecognizer
- extends chemaxon.formats.recognizer.XYZRecognizer
Gaussian Cube format recognizer.
- Since:
- Marvin 5.0, 06/08/2007
- Version:
- 5.0, 10/15/2007
- Author:
- Peter Csizmadia
|
Constructor Summary |
CubeRecognizer(java.lang.String fmt)
Creates a Gaussian Cube format recognizer. |
|
Method Summary |
static boolean |
isCubeLine(java.lang.String line,
int count)
Checks if it is a cube line:
an integer followed by floats. |
void |
tryToRecognize(java.lang.String line,
int linenum,
RecognizerList reclist)
Tries to recognize a line. |
| Methods inherited from class chemaxon.formats.recognizer.XYZRecognizer |
findNonWS, findReals, findWS, isXYZAtomLine, isXYZCountLine, needsMore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CubeRecognizer
public CubeRecognizer(java.lang.String fmt)
- Creates a Gaussian Cube format recognizer.
- Parameters:
fmt - the codename of the format
tryToRecognize
public void tryToRecognize(java.lang.String line,
int linenum,
RecognizerList reclist)
- Tries to recognize a line. If a format becomes impossible, then it
is removed from the set of possible formats.
- Overrides:
tryToRecognize in class chemaxon.formats.recognizer.XYZRecognizer
- Parameters:
line - the linelinenum - the line numberreclist - the list of recognizers
isCubeLine
public static boolean isCubeLine(java.lang.String line,
int count)
- Checks if it is a cube line:
an integer followed by floats.
- Parameters:
line - the input linecount - the number of floats
- Returns:
true if the line can be a cube line,
false otherwise