public static IAtomContainerSet getAllProducts ( IReaction reaction ) { IAtomContainerSet moleculeSet = reaction . getBuilder ( ) . newInstance ( IAtomContainerSet . class ) ; IAtomContainerSet products = reaction . getProducts ( ) ; for ( int i = 0 ; i < products . getAtomContainerCount ( ) ; i ++ ) { moleculeSet . addAtomContainer ( products . getAtomContainer ( i ) ) ; } return moleculeSet ; }
get all products of a IReaction