@staticmethod<EOL><INDENT>def getMaxDelay(inferences):<DEDENT>
maxDelay = <NUM_LIT:0><EOL>for inferenceElement, inference in inferences.iteritems():<EOL><INDENT>if isinstance(inference, dict):<EOL><INDENT>for key in inference.iterkeys():<EOL><INDENT>maxDelay = max(InferenceElement.getTemporalDelay(inferenceElement,<EOL>key),<EOL>maxDelay)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>maxDelay = max(InferenceElement.getTemporalDelay(inferenceElement),<EOL>maxDelay)<EOL><DEDENT><DEDENT>return maxDelay<EOL>
Returns the maximum delay for the InferenceElements in the inference
dictionary

Parameters:
-----------------------------------------------------------------------
inferences:   A dictionary where the keys are InferenceElements