// Path: src/com/metamolecular/mx/calc/DefaultMeasurement.java
// public class DefaultMeasurement implements Measurement
// {
//   private double value;
//   private double error;
//   private String units;
//   
//   public DefaultMeasurement(double value, double error, String units)
//   {
//     this.value = value;
//     this.error = error;
//     this.units = units;
//   }
//   
//   public double getError()
//   {
//     return error;
//   }
// 
//   public String getUnits()
//   {
//     return units;
//   }
// 
//   public double getValue()
//   {
//     return value;
//   }
// }
// 
// Path: src/com/metamolecular/mx/calc/Measurement.java
// public interface Measurement
// {
//   public double getValue();
//   
//   public double getError();
//   
//   public String getUnits();
// }


import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.metamolecular.mx.calc.DefaultMeasurement;
import com.metamolecular.mx.calc.Measurement;
import java.io.InputStream;
import java.util.ArrayList;

    NodeList nodes = document.getElementsByTagName("entry");

    for (int i = 0; i < nodes.getLength(); i++)
    {
      Node node = nodes.item(i);

      String symbol = node.getAttributes().getNamedItem("symbol").getNodeValue();

      entries.put(symbol, new Entry(node));
    }
  }

  private Entry getEntry(String symbol)
  {
    Entry entry = entries.get(symbol);

    if (entry == null)
    {
      throw new IllegalArgumentException("No such element: " + symbol);
    }

    return entry;
  }

  private Measurement createMeasurement(Node node, String units)
  {
    double value = Double.parseDouble(node.getAttributes().getNamedItem("value").getNodeValue());
    double error = Double.parseDouble(node.getAttributes().getNamedItem("error").getNodeValue());
    
// Path: src/com/metamolecular/mx/calc/DefaultMeasurement.java
// public class DefaultMeasurement implements Measurement
// {
//   private double value;
//   private double error;
//   private String units;
//   
//   public DefaultMeasurement(double value, double error, String units)
//   {
//     this.value = value;
//     this.error = error;
//     this.units = units;
//   }
//   
//   public double getError()
//   {
//     return error;
//   }
// 
//   public String getUnits()
//   {
//     return units;
//   }
// 
//   public double getValue()
//   {
//     return value;
//   }
// }
// 
// Path: src/com/metamolecular/mx/calc/Measurement.java
// public interface Measurement
// {
//   public double getValue();
//   
//   public double getError();
//   
//   public String getUnits();
// }


// Path: src/com/metamolecular/mx/model/AtomicSystem.java
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.metamolecular.mx.calc.DefaultMeasurement;
import com.metamolecular.mx.calc.Measurement;
import java.io.InputStream;
import java.util.ArrayList;


    NodeList nodes = document.getElementsByTagName("entry");

    for (int i = 0; i < nodes.getLength(); i++)
    {
      Node node = nodes.item(i);

      String symbol = node.getAttributes().getNamedItem("symbol").getNodeValue();

      entries.put(symbol, new Entry(node));
    }
  }

  private Entry getEntry(String symbol)
  {
    Entry entry = entries.get(symbol);

    if (entry == null)
    {
      throw new IllegalArgumentException("No such element: " + symbol);
    }

    return entry;
  }

  private Measurement createMeasurement(Node node, String units)
  {
    double value = Double.parseDouble(node.getAttributes().getNamedItem("value").getNodeValue());
    double error = Double.parseDouble(node.getAttributes().getNamedItem("error").getNodeValue());
    
    return new DefaultMeasurement(value, error, units);