def doMessageInMyClass(self, spec, theID): # Build an envelope envelope = dict() envelope['destination'] = spec # Build an ID theID = self.buildNodeId(theID, "11111111") # Check if it's right return ClassLookup.messageInMyClass(theID, envelope)
def doGetNextHop(self, spec, theID, uniqBits, expectedClassValue, expectedUniqBits): # Build an envelope envelope = dict() envelope['destination'] = spec # Build an ID theID = self.buildNodeId(theID, uniqBits) nextID = ClassLookup.getNextHop(theID, envelope) return str(nextID)