Package org.jamesii.core.math.parsetree.math

Examples of org.jamesii.core.math.parsetree.math.AbsNode


    return null;
  }

  @Override
  protected AbsNode getInstance(INode content) {
    return new AbsNode(content);
  }
View Full Code Here


public class TestNodeFactory extends TestCase {

  public void testCreateNode() {
    NodeFactory nf = new NodeFactory();
    AbsNode n = nf.createNode(AbsNode.class, new ValueNode<>(-2));

    ValueNode<Double> resAbs = n.calc(null);

    assertTrue(resAbs.getValue().compareTo(2.) == 0);

    MultNode m =
        nf.createNode(MultNode.class, new ValueNode<>(-2), new ValueNode<>(3.));
View Full Code Here

TOP

Related Classes of org.jamesii.core.math.parsetree.math.AbsNode

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.