/** * aspirin.java * Copyright (c) 1997 Will Ware, all rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * or its derived works must display the following acknowledgement: * This product includes software developed by Will Ware. * * This software is provided "as is" and any express or implied warranties, * including, but not limited to, the implied warranties of merchantability * or fitness for any particular purpose are disclaimed. In no event shall * Will Ware be liable for any direct, indirect, incidental, special, * exemplary, or consequential damages (including, but not limited to, * procurement of substitute goods or services; loss of use, data, or * profits; or business interruption) however caused and on any theory of * liability, whether in contract, strict liability, or tort (including * negligence or otherwise) arising in any way out of the use of this * software, even if advised of the possibility of such damage. */ import java.awt.Panel; import group; public class aspirin extends group { public static final String rcsid = "$Id: aspirin.java,v 1.5 1997/08/12 04:07:36 wware Exp $"; public aspirin (Panel p) { mypanel = p; addAtom (new carbon (atom.SP2, 1.9679431737741, 1.5787411641255, 1.7255957457766)); addAtom (new carbon (atom.SP2, 1.2815655982578, 0.26430525784048, 1.3959657835247)); addAtom (new carbon (atom.SP2, 0.35918331078117, 0.14012758949582, 0.20895615654433)); addAtom (new carbon (atom.SP2, 0.030123552848702, 1.392623552348, -0.6526334937145)); addAtom (new carbon (atom.SP2, 0.78768964461369, 2.695808229525, -0.29873001441719)); addAtom (new carbon (atom.SP2, 1.7087498113237, 2.787253652815, 0.88268534694797)); addAtom (new carbon (atom.SP2, -1.2122200586085, -2.2169402725705, 0.093621667869318)); addAtom (new carbon (atom.SP3, -0.8504150178776, -3.8046443634203, 0.36080603404333)); addAtom (new carbon (atom.SP2, -0.99057310370259, 1.4189988664329, -1.7727372700666)); addAtom (new oxygen (atom.SP2, -1.44417255048, 2.68688595905, -2.3602261885569)); addAtom (new oxygen (atom.SP3, -1.5489598842007, 0.20166930803558, -2.4136789975825)); addAtom (new oxygen (atom.SP3, -0.11264091125768, -1.2468929650062, -0.2006985628706)); addAtom (new oxygen (atom.SP2, -2.5719902517912, -1.788533659853, 0.074237814910344)); addAtom (new hydrogen (0.34468296874765, -3.9823057021639, 0.80105792819886)); addAtom (new hydrogen (-1.6889492442405, -4.3279626438414, 1.2609597303231)); addAtom (new hydrogen (-0.99205726525771, -4.5100727297664, -0.73581998973848)); addAtom (new hydrogen (-2.402087189644, 0.088349431701486, -3.4554390102047)); addAtom (new hydrogen (0.65011321293797, 3.8230591309431, -1.1128475515158)); addAtom (new hydrogen (2.3209617155984, 4.00730812754, 1.1959277182511)); addAtom (new hydrogen (2.8674634287753, 1.6477816577445, 2.8093189664943)); addAtom (new hydrogen (1.5404602478801, -0.85555959097536, 2.1936781857832)); addBond (7, 15); addBond (7, 14); addBond (7, 13); addBond (6, 7); addBond (11, 6); addBond (2, 11); addBond (1, 2); addBond (20, 1); addBond (10, 16); addBond (8, 10); addBond (3, 8); addBond (4, 3); addBond (17, 4); addBond (5, 18); addBond (0, 5); addBond (19, 0); addBond (8, 9); addBond (6, 12); addBond (2, 3); addBond (5, 4); addBond (0, 1); } }