java.lang.Object
org.scictrl.mp.orbitcorrect.model.optics.HashList<T>
org.scictrl.mp.orbitcorrect.model.optics.ElementList<T>
Type Parameters:
T - elements type
All Implemented Interfaces:
Cloneable, Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>

public class ElementList<T extends AbstractDataBushElement> extends HashList<T>
This class contains DoubleList and therefore collection of SimpleElements. It has Inner Class to support iterator.
Author:
igor@scictrl.com
See Also:
  • Constructor Details

    • ElementList

      public ElementList()
      Default constructor.
    • ElementList

      public ElementList(T[] el) throws DataBushInitializationException
      This constructor constructs ElementList from Array of DataBushElements.
      Parameters:
      el - an array of T[] objects
      Throws:
      DataBushInitializationException - if any.
    • ElementList

      public ElementList(ElementList<T> el) throws DataBushInitializationException
      This constructor constructs ElementList from Array of DataBushElements.
      Parameters:
      el - a ElementList object
      Throws:
      DataBushInitializationException - if any.
    • ElementList

      public ElementList(int initialCapacity)
      This constructor constructs ElementList with specified initial capacity.
      Parameters:
      initialCapacity - int
    • ElementList

      public ElementList(int initialCapacity, float loadFactor) throws IllegalArgumentException
      This constructor constructs ElementList with specified initial capacity and load factor.
      Parameters:
      initialCapacity - int
      loadFactor - float
      Throws:
      IllegalArgumentException - if any.
  • Method Details

    • getDataBushInfo

      public DataBushInfo[] getDataBushInfo()
      This method return array of DataBushInfo elements, contained by ElementList. If none is contained, it return void array whose size is 1.
      Returns:
      an array of DataBushInfo objects
    • getRFGenerator

      public RFGenerator[] getRFGenerator()
      This method return array of DataBushInfo elements, contained by ElementList. If none is contained, it return void array whose size is 1.
      Returns:
      an array of RFGenerator objects