Exemple #1
0
 static PhysicsTree()
 {
     root = ScienceNode.scienceNodeInst[typeof(Newton)];
     root.AddChild( ScienceNode.scienceNodeInst[typeof(Gauss)] );
     //root.AddChild( ScienceNode.scienceNodeInst[typeof(Einstain)] );
     //root.children[1].AddChild( ScienceNode.scienceNodeInst[typeof(Fourier)] );
     //root.children[1].children[0].AddChild( ScienceNode.scienceNodeInst[typeof(Fatos)] );
 }
Exemple #2
0
        public ScienceNode getRoot()
        {
            ScienceNode tmp = this;

            while (tmp.parent != null)
            {
                tmp = tmp.parent;
            }

            return(tmp);
        }
Exemple #3
0
 static BiologyTree()
 {
     root = ScienceNode.scienceNodeInst[typeof(Darwin)];
 }
Exemple #4
0
 public void AddChild(ScienceNode child)
 {
     children.Add(child);
     child.parent = this;
 }
Exemple #5
0
 static private void createNode(ScienceNode node, int dbId)
 {
     scienceNodeDbIds.Add(node, dbId);
     scienceNodeInst.Add(node.GetType(), node);
 }
Exemple #6
0
 private static void createNode(ScienceNode node, int dbId)
 {
     scienceNodeDbIds.Add(node, dbId);
     scienceNodeInst.Add(node.GetType(), node);
 }
Exemple #7
0
 public void AddChild(ScienceNode child)
 {
     children.Add(child);
     child.parent = this;
 }
 static ChemistryTree()
 {
     root = ScienceNode.scienceNodeInst[typeof(Mendeleev)];
 }