Examples of UnitDefinition


Examples of org.sbml.jsbml.UnitDefinition

   * @return
   * @throws SBMLException
   */
  private ASTNodeValue root(double rootExponent, ASTNodeValue radiant)
      throws SBMLException {
    UnitDefinition ud = radiant.getUnits().clone();
    for (Unit u : ud.getListOfUnits()) {
      if ((((u.getExponent() / rootExponent) % 1d) != 0d) && !u.isDimensionless() && !u.isInvalid()) {
            new UnitException(String.format(
                "Cannot perform power or root operation due to incompatibility with a unit exponent. Given are %s and %s.",
                StringTools.toString(u.getExponent()), StringTools.toString(rootExponent)));
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.