MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / distanceTo

Method distanceTo

src/com/dtmilano/android/viewclient.py:4516–4524  ·  view source on GitHub ↗

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

(self, tree)

Source from the content-addressed store, hash-verified

4514 return treeCopy
4515
4516 def distanceTo(self, tree):
4517 """
4518 Calculates the distance between the current state and the tree passed as argument.
4519
4520 @type tree: list of Views
4521 @param tree: Tree of Views
4522 @return: the distance
4523 """
4524 return ViewClient.distance(ViewClient.__pickleable(self.views), tree)
4525
4526 @staticmethod
4527 def distance(tree1, tree2):

Callers

nothing calls this directly

Calls 2

distanceMethod · 0.80
__pickleableMethod · 0.80

Tested by

no test coverage detected