void PostPutFile(Node.Method m, string filename) { Document doc; using (FileStream fs = new FileStream(filename, FileMode.Open)) { doc = Document.FromStream(fs); } if (m == Node.Method.Put) { KeySelection ks = new KeySelection(GetKeys()); ks.ShowDialog(); if (ks.Selection == "") { return; } doc.id = ks.Selection; } OpenNode.PostDocument(doc, curLog, Guid.NewGuid().ToString()); }
public DijkstraAlgorithm(Agent agent, Model model, Node.Method fovMethod) { this.agent = agent; this.model = model; this.fovMethod = fovMethod; open = new List<Node>(); closed = new List<Node>(); neighbors = new List<Node>(); }
public AStarAlgorithm(Agent agent, Model model, Node.Method heuristicMethod, Node.Method fovMethod) { this.agent = agent; this.model = model; this.heuristicMethod = heuristicMethod; this.fovMethod = fovMethod; open = new List<Node>(); closed = new List<Node>(); neighbors = new List<Node>(); }
public void setHeuristicMethod(Node.Method method) { this.heuristicMethod = method; }
public void setFieldOfViewMethod(Node.Method method) { this.fieldOfViewMethod = method; }