1 package JSci.chemistry; 2 3 6 public class CovalentBond extends Bond { 7 8 public static final int SINGLE = 1; 9 10 public static final int DOUBLE = 2; 11 12 public static final int TRIPLE = 3; 13 14 private final int type; 15 18 public CovalentBond(Atom a, Atom b) { 19 this(a, b, SINGLE); 20 } 21 25 public CovalentBond(Atom a, Atom b, int bondType) { 26 super(a, b); 27 type = bondType; 28 } 29 } 30 31 | Popular Tags |