Interface TemporalDecomposition<T extends Segment>
- All Superinterfaces:
XmlElement
- All Known Implementing Classes:
TemporalDecompositionImpl
This interface describes that basis for a temporal decomposition of an audio, video or audiovisual content element.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumCriteria of decomposition. -
Method Summary
Modifier and TypeMethodDescriptioncreateSegment(String id) Creates a new segment and returns it.Returns the decomposition criteria.getSegmentById(String segmentId) Returns the segment with the given identifier ornullif the segment does not exist.booleanhasGap()Returnstrueif the segment has a gap.booleanReturnstrueif the composition actually contains segments.booleanReturnstrueif the segment overlaps with another one.segments()Returns an iteration of the video's segments.voidSets the decomposition criteria.voidsetGap(boolean hasGap) Set thehasGapproperty indicating that there may be gaps in between the segments.voidsetOverlapping(boolean isOverlapping) Set theisOverlappingproperty indicating that some segments may be overlapping.Methods inherited from interface org.opencastproject.mediapackage.XmlElement
toXml
-
Method Details
-
setGap
void setGap(boolean hasGap) Set thehasGapproperty indicating that there may be gaps in between the segments.- Parameters:
hasGap-trueif there are gaps
-
hasGap
boolean hasGap()Returnstrueif the segment has a gap.- Returns:
trueif the segment has a gap
-
setOverlapping
void setOverlapping(boolean isOverlapping) Set theisOverlappingproperty indicating that some segments may be overlapping.- Parameters:
isOverlapping-trueif elements are overlapping
-
isOverlapping
boolean isOverlapping()Returnstrueif the segment overlaps with another one.- Returns:
trueif the segment overlaps
-
setCriteria
Sets the decomposition criteria.- Parameters:
criteria- the criteria
-
getCriteria
TemporalDecomposition.DecompositionCriteria getCriteria()Returns the decomposition criteria.- Returns:
- the criteria
-
createSegment
Creates a new segment and returns it.- Parameters:
id- the segment identifier- Returns:
- the new segment
-
hasSegments
boolean hasSegments()Returnstrueif the composition actually contains segments.- Returns:
trueif there are segments
-
segments
Returns an iteration of the video's segments.- Returns:
- the video segments
-
getSegmentById
Returns the segment with the given identifier ornullif the segment does not exist.- Parameters:
segmentId- the segment identifier- Returns:
- the segment
-