code: def distanceTo(self, tree):
          '''
          Calculates the distance between the current state and the tree passed as argument.
  
          @type tree: list of Views
          @param tree: Tree of Views
          @return: the distance
          '''
          return ViewClient.distance(ViewClient.__pickleable(self.views), treef distanceTo(self, tree):
          '''
          Calculates the distance between the current state and the tree passed as argument.
  
          @type tree: list of Views
          @param tree: Tree of Views
          @return: the distance
          '''
          return ViewClient.distance(ViewClient.__pickleable(self.views), tree)
docs: Calculates the distance between the current state and the tree passed as argument.
  
          @type tree: list of Views
          @param tree: Tree of Views
          @return: the distance