MUM.metadataService.metadata
Class Metadata

java.lang.Object
  extended byMUM.metadataService.metadata.Metadata
All Implemented Interfaces:
IMetadata, java.io.Serializable

public class Metadata
extends java.lang.Object
implements IMetadata

This class describe a metadata about a presentation and some useful methods to manage this ADT.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface MUM.metadataService.metadata.IMetadata
HIGH_QUALITY, LOW_QUALITY, MEDIUM_QUALITY
 
Constructor Summary
Metadata()
          Constructors
Metadata(java.lang.String title, java.lang.String creator, java.lang.String subject, java.lang.String description, java.lang.String identifier, java.lang.String language, java.lang.String rights, MediaLocator mediaLocator, MediaTime mediaTime, MediaFormat mediaFormat, TemporalDecomposition temporalDecomposition, Presentation presentation, javax.media.format.VideoFormat format, javax.media.Time duration, java.util.Hashtable cpuRequests, java.lang.Integer quality, java.lang.Float band)
           
 
Method Summary
 java.lang.Integer getBand()
          This method returns the required bandwidth
 java.lang.Integer getCpuRequestForCapability(java.lang.String capability)
          This method returns the required bandwidth for the machine with the capability passed as parameter.
 java.lang.String getCreator()
           
 java.lang.String getDescription()
           
 javax.media.Time getDuration()
          Selector: returns the duration of this presentation
 javax.media.Format getFormat()
          Selector format
 java.awt.Dimension getFrameDimension()
          gets the Dimension of the frame
 java.lang.String getIdentifier()
           
 java.lang.String getLanguage()
           
 MediaFormat getMediaFormat()
           
 MediaLocator getMediaLocator()
           
 MediaTime getMediaTime()
           
 Presentation getPresentation()
          Selector presentation
 java.lang.Integer getQuality()
          gets the quality of the presentation: low, medium, high in this first version
 java.lang.String getRights()
           
 java.lang.String getSubject()
           
 TemporalDecomposition getTemporalDecomposition()
           
 java.lang.String getTitle()
           
 java.lang.String toString()
           
 void writeToXML(java.lang.String fileName)
          This method write the metadata to an XML file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Metadata

public Metadata()
Constructors


Metadata

public Metadata(java.lang.String title,
                java.lang.String creator,
                java.lang.String subject,
                java.lang.String description,
                java.lang.String identifier,
                java.lang.String language,
                java.lang.String rights,
                MediaLocator mediaLocator,
                MediaTime mediaTime,
                MediaFormat mediaFormat,
                TemporalDecomposition temporalDecomposition,
                Presentation presentation,
                javax.media.format.VideoFormat format,
                javax.media.Time duration,
                java.util.Hashtable cpuRequests,
                java.lang.Integer quality,
                java.lang.Float band)
Method Detail

getCreator

public java.lang.String getCreator()
Returns:

getDescription

public java.lang.String getDescription()
Returns:

getIdentifier

public java.lang.String getIdentifier()
Returns:

getLanguage

public java.lang.String getLanguage()
Returns:

getMediaFormat

public MediaFormat getMediaFormat()
Returns:

getMediaLocator

public MediaLocator getMediaLocator()
Specified by:
getMediaLocator in interface IMetadata
Returns:

getMediaTime

public MediaTime getMediaTime()
Returns:

getRights

public java.lang.String getRights()
Returns:

getSubject

public java.lang.String getSubject()
Returns:

getTemporalDecomposition

public TemporalDecomposition getTemporalDecomposition()
Returns:

getTitle

public java.lang.String getTitle()
Returns:

toString

public java.lang.String toString()

writeToXML

public void writeToXML(java.lang.String fileName)
Description copied from interface: IMetadata
This method write the metadata to an XML file

Specified by:
writeToXML in interface IMetadata
Parameters:
fileName - Absolute name of file

getPresentation

public Presentation getPresentation()
Selector presentation

Specified by:
getPresentation in interface IMetadata

getFormat

public javax.media.Format getFormat()
Selector format

Specified by:
getFormat in interface IMetadata

getDuration

public javax.media.Time getDuration()
Selector: returns the duration of this presentation

Specified by:
getDuration in interface IMetadata

getQuality

public java.lang.Integer getQuality()
gets the quality of the presentation: low, medium, high in this first version

Specified by:
getQuality in interface IMetadata

getCpuRequestForCapability

public java.lang.Integer getCpuRequestForCapability(java.lang.String capability)
                                             throws ResourceBookingException
This method returns the required bandwidth for the machine with the capability passed as parameter. Throws an exception if the method cannot recognize the capability passed as parameter.

Specified by:
getCpuRequestForCapability in interface IMetadata
Throws:
ResourceBookingException

getBand

public java.lang.Integer getBand()
This method returns the required bandwidth

Specified by:
getBand in interface IMetadata

getFrameDimension

public java.awt.Dimension getFrameDimension()
gets the Dimension of the frame



Copyright © 2004 Luca Foschini