def computeLocDiff(self, tdiff, diff, pdiff):
        # tdiff: difficulty from the location's access point to the location's room
        # diff: difficulty to reach the item in the location's room
        # pdiff: difficulty of the path from the current access point to the location's access point
        # in output we need the global difficulty but we also need to separate pdiff and (tdiff + diff)

        locDiff = SMBool.wandmax(tdiff, diff)
        allDiff = SMBool.wandmax(locDiff, pdiff)

        return (allDiff, locDiff)
 def getAvailAPPaths(self, availAccessPoints, locsAPs):
     paths = {}
     for ap in availAccessPoints:
         if ap.Name in locsAPs:
             path = self.getPath(ap, availAccessPoints)
             pdiff = SMBool.wandmax(*(availAccessPoints[ap]['difficulty'] for ap in path))
             paths[ap.Name] = Path(path, pdiff, len(path))
     return paths
 def computeLocDiff(self, tdiff, diff, pdiff):
     allDiff = SMBool.wandmax(tdiff, diff, pdiff)
     return (allDiff, None)