Package musicbrainz2 :: Module wsxml :: Class TrackResult
[frames | no frames]

Type TrackResult

object --+
         |
        TrackResult


Represents a track result.

A TrackResult consists of a score and a track. The score is a number between 0 and 100, where a higher number indicates a better match.
Method Summary
  __init__(self, track, score)
  getScore(self)
Returns the result score.
  getTrack(self)
Returns a Track object.
  setScore(self, score)
  setTrack(self, track)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  score: The relevance score.
  track: A Track object.

Method Details

getScore(self)

Returns the result score.

The score indicates how good this result matches the search parameters. The higher the value, the better the match.
Returns:
an int between 0 and 100 (both inclusive), or None

getTrack(self)

Returns a Track object.
Returns:
a musicbrainz2.model.Track object

Property Details

score

The relevance score.
Get Method:
getScore(self)
Set Method:
setScore(self, score)

track

A Track object.
Get Method:
getTrack(self)
Set Method:
setTrack(self, track)

Generated by Epydoc 2.1 on Wed Dec 20 18:19:28 2006 http://epydoc.sf.net