chemaxon.pharmacophore
Class PSymbols

java.lang.Object
  extended by chemaxon.pharmacophore.PSymbols

public class PSymbols
extends java.lang.Object

Class storing and sorting pharmacophore symbols.

Since:
JChem 2.0
Author:
Nora Mate

Constructor Summary
PSymbols(java.util.Collection psymbols)
          Constructor.
PSymbols(java.lang.String[] psymbols)
          Constructor.
 
Method Summary
 int getIndex(java.lang.String symbol)
          Gets the index associated of the specified symbol.
 java.lang.String getSymbol(int i)
          Gets the symbol at the given index.
 int getSymbolCount()
          returns the number of symbols
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSymbols

public PSymbols(java.lang.String[] psymbols)
Constructor. Sorts and sets the symbols.

Parameters:
psymbols - is the symbol array

PSymbols

public PSymbols(java.util.Collection psymbols)
Constructor. Sorts and sets the symbols.

Parameters:
psymbols - is the symbol collection
Method Detail

getSymbolCount

public int getSymbolCount()
returns the number of symbols

Returns:
the number of symbols

getSymbol

public java.lang.String getSymbol(int i)
Gets the symbol at the given index.

Parameters:
i - is the symbol index
Returns:
the symbol string
Throws:
java.lang.IllegalArgumentException - if the symbol index is out-of-range

getIndex

public int getIndex(java.lang.String symbol)
Gets the index associated of the specified symbol.

Parameters:
symbol - pharmacophore property (feature) symbol
Returns:
the index of the feature
Throws:
java.lang.IllegalArgumentException - if the symbol is not found