Class AbstractTransmissionComposite<CHILD extends Transmission>

java.lang.Object
org.refcodes.serial.AbstractTransmissionComposite<CHILD>
Type Parameters:
CHILD - The type of the child elements to be contained in this instance.
All Implemented Interfaces:
Serializable, Iterable<CHILD>, org.refcodes.mixin.ChildrenAccessor<CHILD[]>, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.Resetable, org.refcodes.schema.Schemable, Transmission, TransmissionComposite<CHILD>
Direct Known Subclasses:
SegmentComposite

public abstract class AbstractTransmissionComposite<CHILD extends Transmission> extends Object implements Transmission, TransmissionComposite<CHILD>, Iterable<CHILD>
A AbstractTransmissionComposite is a Transmission consisting of Transmission elements with each element.
See Also:
  • Field Details

  • Constructor Details

    • AbstractTransmissionComposite

      protected AbstractTransmissionComposite()
      Constructs an empty AbstractTransmissionComposite for sub-classes to use having the responsibility to set the children by themselves.
    • AbstractTransmissionComposite

      @SafeVarargs public AbstractTransmissionComposite(CHILD... aSegments)
      Constructs a AbstractTransmissionComposite containing the provided Segment elements.
      Parameters:
      aSegments - The Segment elements being contained in this instance.
  • Method Details

    • iterator

      public Iterator<CHILD> iterator()
      Specified by:
      iterator in interface Iterable<CHILD extends Transmission>
    • getChildren

      public CHILD[] getChildren()
      Specified by:
      getChildren in interface org.refcodes.mixin.ChildrenAccessor<CHILD extends Transmission>
    • reset

      public void reset()
      Resets any dynamic data (e.g. values such as payloads or checksums) and must not(!) reset any configurations or settings required to produce the dynamic data (e.g. the TransmissionMetrics).
      Specified by:
      reset in interface org.refcodes.mixin.Resetable
      Specified by:
      reset in interface Transmission
    • toString

      public String toString()
      Overrides:
      toString in class Object