org.mindswap.multimedia
Interface Video

All Superinterfaces:
DigitalMedia
All Known Implementing Classes:
VideoImpl

public interface Video
extends DigitalMedia

Title: Video

Description: An implementation of the DigitalMedia class specific to the Mindswap multimedia ontology concept Video

Copyright: Copyright (c) 2005

Company: Mindswap (http://www.mindswap.org)


Field Summary
static int NO_DURATION
          Const for when a video has no duration
static int NO_FRAMES
          Const for when a video has no frames
 
Method Summary
 Video addFrame(VideoFrame theFrame)
          Adds the specified frame to the video
 Video addSegment(VideoSegment theSegment)
          Adds a segement to this video
 int hasDurationSeconds()
          Returns the total duration of the video in seconds
 int hasTotalFrames()
          Returns the total number of frames in the video
 StmtIterator listFrames()
          Returns all the frames that are known to make up this video
 StmtIterator listSegments()
          List all the segments of this video
 Video removeFrame(VideoFrame theFrame)
          Removes the specified frame from the video
 Video removeSegment(VideoSegment theSegment)
          Removes a segment from this video
 
Methods inherited from interface org.mindswap.multimedia.DigitalMedia
addDepicts, listDepicts, removeDepicts
 

Field Detail

NO_FRAMES

public static final int NO_FRAMES
Const for when a video has no frames

See Also:
Constant Field Values

NO_DURATION

public static final int NO_DURATION
Const for when a video has no duration

See Also:
Constant Field Values
Method Detail

hasTotalFrames

public int hasTotalFrames()
Returns the total number of frames in the video

Returns:
int the total number of frames, or NO_FRAMES if the total number cannot be found

hasDurationSeconds

public int hasDurationSeconds()
Returns the total duration of the video in seconds

Returns:
int the duration of the video in seconds or NO_DURATION if the value is not known

listFrames

public StmtIterator listFrames()
Returns all the frames that are known to make up this video

Returns:
StmtIterator a list of statements with the VideoFrame as the object

addFrame

public Video addFrame(VideoFrame theFrame)
Adds the specified frame to the video

Parameters:
theFrame - VideoFrame the frame to add
Returns:
Video returns this video

removeFrame

public Video removeFrame(VideoFrame theFrame)
Removes the specified frame from the video

Parameters:
theFrame - VideoFrame the frame to remove
Returns:
Video returns this video

listSegments

public StmtIterator listSegments()
List all the segments of this video

Returns:
StmtIterator an iterator over the segment statements of this video

addSegment

public Video addSegment(VideoSegment theSegment)
Adds a segement to this video

Parameters:
theSegment - VideoSegment the new segment to add
Returns:
Video this video

removeSegment

public Video removeSegment(VideoSegment theSegment)
Removes a segment from this video

Parameters:
theSegment - VideoSegment the new segment to remove
Returns:
Video this video