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)] ); }
public ScienceNode getRoot() { ScienceNode tmp = this; while (tmp.parent != null) { tmp = tmp.parent; } return(tmp); }
static BiologyTree() { root = ScienceNode.scienceNodeInst[typeof(Darwin)]; }
public void AddChild(ScienceNode child) { children.Add(child); child.parent = this; }
static private void createNode(ScienceNode node, int dbId) { scienceNodeDbIds.Add(node, dbId); scienceNodeInst.Add(node.GetType(), node); }
private static void createNode(ScienceNode node, int dbId) { scienceNodeDbIds.Add(node, dbId); scienceNodeInst.Add(node.GetType(), node); }
public void AddChild(ScienceNode child) { children.Add(child); child.parent = this; }
static ChemistryTree() { root = ScienceNode.scienceNodeInst[typeof(Mendeleev)]; }