Skip to content

Commit

Permalink
Allowing setting of stereochemistry.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed May 10, 2015
1 parent 5052ad9 commit 4090895
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Expand Up @@ -91,6 +91,11 @@ public Stereo getStereo() {
return stereo;
}

/** {@inheritDoc} */
@Override public void setStereo(Stereo stereo) {
this.stereo = stereo;
}

/**
* Sets a new {@link IChemObjectBuilder}.
*
Expand Down
Expand Up @@ -43,7 +43,7 @@ public interface ITetrahedralChirality extends IStereoElement {
/**
* Enumeration that defines the two possible chiralities for this stereochemistry type.
*/
public enum Stereo {
enum Stereo {
CLOCKWISE, ANTI_CLOCKWISE;

/**
Expand All @@ -70,21 +70,28 @@ public Stereo invert() {
*
* @return an array of four {@link IAtom}s.
*/
public IAtom[] getLigands();
IAtom[] getLigands();

/**
* Atom that is the chirality center.
*
* @return the chiral {@link IAtom}.
*/
public IAtom getChiralAtom();
IAtom getChiralAtom();

/**
* Defines the stereochemistry around the chiral atom. The value depends on the order of ligand atoms.
*
* @return the {@link Stereo} for this stereo element.
*/
public Stereo getStereo();
Stereo getStereo();

/**
* Set the stereochemistry of this tetrahedral centre.
*
* @param stereo the new stereo assignment
*/
void setStereo(Stereo stereo);

/**
* @inheritDoc
Expand Down

0 comments on commit 4090895

Please sign in to comment.