예제 #1
0
파일: numl.cs 프로젝트: miguelalba/pmfml_cs
 public NuMLDocument(ConcentrationOntology concOntology, TimeOntology timeOntology,
                     ResultComponent resultComponent)
 {
     this.concOntology    = concOntology;
     this.timeOntology    = timeOntology;
     this.resultComponent = resultComponent;
 }
예제 #2
0
파일: numl.cs 프로젝트: miguelalba/pmfml_cs
        public NuMLDocument(XmlElement element)
        {
            // Gets concentration and time ontologies
            concOntology = new ConcentrationOntology((XmlElement)element.ChildNodes[0]);
            timeOntology = new TimeOntology((XmlElement)element.ChildNodes[1]);

            // Gets the result component
            XmlElement rcElement = (XmlElement)element.SelectSingleNode(NuMLTags.RESULT_COMPONENT);

            resultComponent = new ResultComponent(rcElement);
        }