Exemple #1
0
 /**
  * Convenience method to remove the first occurence of the MapNode from the nodes list. Null parameters are not allowed.
  * If the list is null, just return false.
  *
  *
  * @return True if removed. False otherwise
  * @param node The MapNode to remove from the nodes list
  * @throws ArgumentNullException If node is null
  */
 public bool RemoveNode(MapNode node)
 {
     return(nodes.Remove(node));
 }
Exemple #2
0
 /**
  * Convenience method to remove the first occurence of the MapNode from the containedNodes list. Null parameters are not allowed.
  * If the list is null, just return false.
  *
  *
  * @return True if removed. False otherwise
  * @param node The MapNode to remove from the containedNodes list
  * @throws ArgumentNullException If node is null
  */
 public bool RemoveContainedNode(MapNode node)
 {
     return(containedNodes.Remove(node));
 }
Exemple #3
0
 /**
  * Convenience method to add a MapNode to the nodes list. Null parameters are not allowed.
  * If the list is null, just create a new instance and add to it.
  *
  *
  * @param node The MapNode to add to the nodes list
  * @throws ArgumentNullException If node is null
  */
 public void AddNode(MapNode node)
 {
     nodes.Add(node);
 }
Exemple #4
0
 /**
  * Convenience method to add a MapNode to the containedNodes list. Null parameters are not allowed.
  * If the list is null, just create a new instance and add to it.
  *
  *
  * @param node The MapNode to add to the containedNodes list
  * @throws ArgumentNullException If node is null
  */
 public void AddContainedNode(MapNode node)
 {
     containedNodes.Add(node);
 }