Interface StereoEncoder


public interface StereoEncoder
An encoder for stereo chemistry. The stereo configuration is encoded by checking the current[] invariant values. If there is a configuration then the appropriate value is the next[] is modified.
Author:
John May
Belongs to CDK module:
hash
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final StereoEncoder
    empty stereo encoder when no stereo can be perceived
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    encode(long[] current, long[] next)
    Encode one or more stereo elements based on the current invariants.
    void
    Reset the stereo-encoders, any currently perceived configurations will be re-activated.
  • Field Details

    • EMPTY

      static final StereoEncoder EMPTY
      empty stereo encoder when no stereo can be perceived
  • Method Details

    • encode

      boolean encode(long[] current, long[] next)
      Encode one or more stereo elements based on the current invariants. If any stereo element are uncovered then the corresponding value in the next[] array is modified.
      Parameters:
      current - current invariants
      next - next invariants
      Returns:
      whether any stereo configurations were encoded
    • reset

      void reset()
      Reset the stereo-encoders, any currently perceived configurations will be re-activated.