﻿using System.Collections.Generic;

namespace Polymeres.Compute.MacroMolecules
{
    public class AtomicNode
    {
        public List<Atom> Atoms = new List<Atom>();
        /// <summary>
        /// Parses the AtomicNode to populate with Atom
        /// TODO: Improve parsing: tell difference between Cl, HO, Cl2, HXX, TAMERE, H2-O etc
        /// </summary>
        /// <param name="atomicNode"></param>
        public AtomicNode(string atomicNode)
        {
            foreach (var a in atomicNode)
            {
                var atom = new Atom(a);
                Atoms.Add(atom);
            }
        }
    }
}
