Package moss

Class SLN

All Implemented Interfaces:
Serializable

public class SLN extends MoleculeNtn
Class for the SYBYL line notation (SLN, Tripos, Inc.).
Since:
2006.08.12
See Also:
  • Constructor Details

    • SLN

      public SLN()
      Create a SYBYL line notation object.
      Since:
      2006.08.12 (Christian Borgelt)
  • Method Details

    • isLine

      public boolean isLine()
      Whether this is a line notation (single line description).
      Specified by:
      isLine in class Notation
      Returns:
      true, since SLN is a line notation
      Since:
      2007.03.04 (Christian Borgelt)
    • parse

      public Graph parse(Reader reader) throws IOException
      Parse a description of a molecule.
      Specified by:
      parse in class Notation
      Parameters:
      reader - the reader to read from
      Returns:
      the parsed molecule
      Throws:
      IOException - if a parse error or an i/o error occurs
      Since:
      2006.08.12 (Christian Borgelt)
    • describe

      public String describe(Graph mol)
      Create a description of a given molecule.
      Specified by:
      describe in class Notation
      Parameters:
      mol - the molecule to describe
      Returns:
      a description of the given molecule
      Since:
      2006.08.12 (Christian Borgelt)
    • main

      public static void main(String[] args)
      Main function for testing basic functionality.

      It is tried to parse the first argument as an SLN description of a molecule. If this is successful, the parsed molecule is printed using the function describe().

      Parameters:
      args - the command line arguments
      Since:
      2006.08.12 (Christian Borgelt)