public override void OnSave(ConfigNode node)
 {
     try{
         if (node == null)
         {
             NE_Helper.logError("OnSave: node is NULL!");
             //return;
         }
         base.OnSave(node);
         node.AddNode(expData.getNode());
     } catch (NullReferenceException nre) {
         NE_Helper.logError("ExperimentStorage.OnSave - NullReferenceException:\n"
                            + nre.StackTrace);
     }
 }
        public ConfigNode getNode()
        {
            ConfigNode node = new ConfigNode(CONFIG_NODE_NAME);

            node.AddValue(ABB_VALUE, abb);
            node.AddValue(NAME_VALUE, name);
            node.AddValue(MASS_VALUE, mass);
            node.AddValue(TYPE_VALUE, type.ToString());

            node.AddValue(PRODUCT_VALUE, product);
            node.AddValue(PRODUCT_PER_HOUR_VALUE, productPerHour);

            node.AddValue(REACTANT_VALUE, reactant);
            node.AddValue(REACTANT_PER_PRODUCT_VALUE, reactantPerProduct);

            if (exp != null)
            {
                node.AddNode(exp.getNode());
            }

            return(node);
        }
 public override void OnSave(ConfigNode node)
 {
     base.OnSave(node);
     node.AddNode(expData.getNode());
 }