Class NetworkList

java.lang.Object
QueueNet.NetworkList

public class NetworkList extends Object
This class implements a network list. Note that only classes of QueueNet package can add or remove objects to/from the list.
Author:
Francesco Radaelli, Bertoli Marco
  • Method Details

    • getFirst

      public QueueNetwork getFirst()
      Gets first network in the list.
      Returns:
      First network in the list.
    • getLast

      public QueueNetwork getLast()
      Gets last network in the list.
      Returns:
      Last network in the list.
    • get

      public QueueNetwork get(int index)
      Gets i-th network in the list.
      Parameters:
      index - the index
      Returns:
      Index-th network in the list.
    • get

      public QueueNetwork get(String name)
      Gets the network in the list, if it exists, which has the specified Name.
      Parameters:
      name - the name
      Returns:
      The network called "Name". Returns Null if it does not exist.
    • size

      public int size()
      Gets list size.
      Returns:
      Number of networks in the list.
    • listIterator

      public ListIterator<QueueNetwork> listIterator()
      Gets a list iterator