Module org.refcodes.serial
Package org.refcodes.serial
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ChildrenAccessor
org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<T extends Object,B extends org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<T, B>>, org.refcodes.mixin.ChildrenAccessor.ChildrenMutator<T extends Object>, org.refcodes.mixin.ChildrenAccessor.ChildrenProperty<T extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.LengthAccessor
org.refcodes.mixin.LengthAccessor.LengthBuilder<B extends org.refcodes.mixin.LengthAccessor.LengthBuilder<B>>, org.refcodes.mixin.LengthAccessor.LengthMutator, org.refcodes.mixin.LengthAccessor.LengthPropertyNested classes/interfaces inherited from interface org.refcodes.serial.Transmission
Transmission.TransmissionMixin -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs an emptyAbstractTransmissionCompositefor sub-classes to use having the responsibility to set the children by themselves.AbstractTransmissionComposite(CHILD... aSegments) Constructs aAbstractTransmissionCompositecontaining the providedSegmentelements. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.refcodes.serial.Transmission
transmitTo, transmitTo, transmitToMethods inherited from interface org.refcodes.serial.TransmissionComposite
getLength, toSchema, toSequence, toSimpleTypeMap
-
Field Details
-
_children
-
-
Constructor Details
-
AbstractTransmissionComposite
protected AbstractTransmissionComposite()Constructs an emptyAbstractTransmissionCompositefor sub-classes to use having the responsibility to set the children by themselves. -
AbstractTransmissionComposite
Constructs aAbstractTransmissionCompositecontaining the providedSegmentelements.- Parameters:
aSegments- TheSegmentelements being contained in this instance.
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<CHILD extends Transmission>
-
getChildren
- Specified by:
getChildrenin interfaceorg.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. theTransmissionMetrics).- Specified by:
resetin interfaceorg.refcodes.mixin.Resetable- Specified by:
resetin interfaceTransmission
-
toString
-