java.lang.Object
ntnu.idatt2104.madlads.nodeServerAPI.model.NodeList

public class NodeList extends Object
  • Constructor Details

    • NodeList

      public NodeList()
      Constructor
  • Method Details

    • getListOfAllNodes

      public ArrayList<Node> getListOfAllNodes()
      Returns all nodes as an ArrayList
      Returns:
      ArrayList
    • addNode

      public boolean addNode(Node node)
      Checks if a node already exists and adds it if it doesn't
      Parameters:
      node - Node object
      Returns:
      Boolean
    • removeNode

      public boolean removeNode(Node node)
      Checks if node exists and removes it if it does
      Parameters:
      node - Node
      Returns:
      Boolean
    • removeAllNodes

      public void removeAllNodes()