#NEWLINE# def _can_enter_state( self , related_ids , state ) : #NEWLINE# #INDENT# "\n        This is a tri-state check. Returns ``True`` if related cpu states allow transition\n        into this state, ``False`` if related cpu states don't allow transition into this\n        state, and ``None`` if at least one of the related cpus is in an unknown state\n        (so the decision of whether a transition is possible cannot be made).\n\n        " #NEWLINE# for rid in related_ids : #NEWLINE# #INDENT# rid_requested_state = self . requested_states [ rid ] #NEWLINE# rid_current_state = self . cpu_states [ rid ] . idle_state #NEWLINE# if ( rid_current_state is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( ( rid_current_state < state ) and ( rid_requested_state < state ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True