00001 package com.graphbuilder.math; 00002 00006 public class ValNode extends Expression { 00007 00008 protected double val = 0.0; 00009 00010 public ValNode(double d) { 00011 val = d; 00012 } 00013 00017 public double eval(VarMap v, FuncMap f) { 00018 return val; 00019 } 00020 00021 public double getValue() { 00022 return val; 00023 } 00024 00025 public void setValue(double d) { 00026 val = d; 00027 } 00028 }