Package org.sbml.jsbml

Examples of org.sbml.jsbml.Quantity


   * @see org.sbml.jsbml.util.compilers.ASTNodeCompiler#compile(org.sbml.jsbml.CallableSBase)
   */
  public ASTNodeValue compile(CallableSBase variable) {
    ASTNodeValue value = new ASTNodeValue(variable, this);
    if (variable instanceof Quantity) {
      Quantity q = (Quantity) variable;
      if (q.isSetValue()) {
        value.setValue(Double.valueOf(q.getValue()));
      }
    }
    value.setUnits(variable.getDerivedUnitDefinition());
    return value;
  }
View Full Code Here


   * CallableSBase)
   */
  public ASTNodeValue compile(CallableSBase variable) {
    ASTNodeValue value = new ASTNodeValue(variable, this);
    if (variable instanceof Quantity) {
      Quantity q = (Quantity) variable;
      if (q.isSetValue()) {
        value.setValue(Double.valueOf(q.getValue()));
      }
    }
    value.setUnits(variable.getDerivedUnitDefinition());
    return value;
  }
View Full Code Here

   * CallableSBase)
   */
  public ASTNodeValue compile(CallableSBase variable) {
    ASTNodeValue value = new ASTNodeValue(variable, this);
    if (variable instanceof Quantity) {
      Quantity q = (Quantity) variable;
      if (q.isSetValue()) {
        value.setValue(Double.valueOf(q.getValue()));
      }
    }
    value.setUnits(variable.getDerivedUnitDefinition());
    return value;
  }
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.Quantity

Copyright © 2018 www.massapicom. 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.