chemaxon.formats.recognizer
Class CubeRecognizer

java.lang.Object
  extended by chemaxon.formats.recognizer.Recognizer
      extended by chemaxon.formats.recognizer.XYZRecognizer
          extended by 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 chemaxon.formats.recognizer.Recognizer
getLastProcessedLineNum, getPriority, isLastLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubeRecognizer

public CubeRecognizer(java.lang.String fmt)
Creates a Gaussian Cube format recognizer.

Parameters:
fmt - the codename of the format
Method Detail

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 line
linenum - the line number
reclist - 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 line
count - the number of floats
Returns:
true if the line can be a cube line, false otherwise