* @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;
}