def METHOD_NAME(self, track):
    assert self.__debugPrint("setTrack(track=%s)"%(track,))
    if self.track is not None:
        self.track.pause()
        self.track = None
    if track is not None:
        track.start(self.stateTime)
        self.track = track