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

Class TrackResult

source code

    object --+    
             |    
AbstractResult --+
                 |
                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.

Instance Methods
 
__init__(self, track, score)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getTrack(self)
Returns a Track object.
source code
 
setTrack(self, track) source code

Inherited from AbstractResult: getScore, setScore

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
  track
A Track object.

Inherited from AbstractResult: score

Inherited from object: __class__

Method Details

__init__(self, track, score)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: AbstractResult.__init__

getTrack(self)

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

Property Details

track

A Track object.
Get Method:
musicbrainz2.wsxml.TrackResult.getTrack(self) - Returns a Track object.
Set Method:
musicbrainz2.wsxml.TrackResult.setTrack(self, track)