/** The formalCharge on the object. * NOT the calculated charge or oxidation state. No formal default, but assumed to be zero if omitted. It may become good practice to include it. * @return int */ public int getFormalCharge() { IntSTAttribute att = (IntSTAttribute) this.getFormalChargeAttribute(); if (att == null) { throw new RuntimeException("int attribute is unset: formalCharge"); } return att.getInt(); } /** The formalCharge on the object.