Class PSymbols

java.lang.Object
chemaxon.pharmacophore.PSymbols

@PublicApi public class PSymbols extends Object
Class storing and sorting pharmacophore symbols.
Since:
JChem 2.0
  • Constructor Details

    • PSymbols

      public PSymbols(String[] psymbols)
      Constructor. Sorts and sets the symbols.
      Parameters:
      psymbols - is the symbol array
    • PSymbols

      public PSymbols(Collection<String> psymbols)
      Constructor. Sorts and sets the symbols.
      Parameters:
      psymbols - is the symbol collection
  • Method Details

    • getSymbolCount

      public int getSymbolCount()
      returns the number of symbols
      Returns:
      the number of symbols
    • getSymbol

      public String getSymbol(int i)
      Gets the symbol at the given index.
      Parameters:
      i - is the symbol index
      Returns:
      the symbol string
      Throws:
      IllegalArgumentException - if the symbol index is out-of-range
    • getIndex

      public int getIndex(String symbol)
      Gets the index associated of the specified symbol.
      Parameters:
      symbol - pharmacophore property (feature) symbol
      Returns:
      the index of the feature
      Throws:
      IllegalArgumentException - if the symbol is not found
    • toString

      public String toString()
      Overrides:
      toString in class Object