Interface TemporalDecomposition<T extends Segment>

All Superinterfaces:
XmlElement
All Known Implementing Classes:
TemporalDecompositionImpl

public interface TemporalDecomposition<T extends Segment> extends XmlElement
This interface describes that basis for a temporal decomposition of an audio, video or audiovisual content element.
  • Method Details

    • setGap

      void setGap(boolean hasGap)
      Set the hasGap property indicating that there may be gaps in between the segments.
      Parameters:
      hasGap - true if there are gaps
    • hasGap

      boolean hasGap()
      Returns true if the segment has a gap.
      Returns:
      true if the segment has a gap
    • setOverlapping

      void setOverlapping(boolean isOverlapping)
      Set the isOverlapping property indicating that some segments may be overlapping.
      Parameters:
      isOverlapping - true if elements are overlapping
    • isOverlapping

      boolean isOverlapping()
      Returns true if the segment overlaps with another one.
      Returns:
      true if the segment overlaps
    • setCriteria

      void setCriteria(TemporalDecomposition.DecompositionCriteria criteria)
      Sets the decomposition criteria.
      Parameters:
      criteria - the criteria
    • getCriteria

      Returns the decomposition criteria.
      Returns:
      the criteria
    • createSegment

      T createSegment(String id)
      Creates a new segment and returns it.
      Parameters:
      id - the segment identifier
      Returns:
      the new segment
    • hasSegments

      boolean hasSegments()
      Returns true if the composition actually contains segments.
      Returns:
      true if there are segments
    • segments

      Iterator<T> segments()
      Returns an iteration of the video's segments.
      Returns:
      the video segments
    • getSegmentById

      T getSegmentById(String segmentId)
      Returns the segment with the given identifier or null if the segment does not exist.
      Parameters:
      segmentId - the segment identifier
      Returns:
      the segment