parameters: (self, index)
return_statement: return IntervalVar(self.__model, index, None, None, None, None)
docstring: Returns an already created interval variable from its index.
docstring_summary: Returns an already created interval variable from its index.
docstring_tokens: Returns an already created interval variable from its index .
function: def GetIntervalVarFromProtoIndex(self, index):
          """Returns an already created interval variable from its index."""
          if index < 0 or index >= len(self.__model.constraints):
              raise ValueError(
                  f'GetIntervalVarFromProtoIndex: out of bound index {index}')
          ct = self.__model.constraints[index]
          if not ct.HasField('interval'):
              raise ValueError(
                  f'GetIntervalVarFromProtoIndex: index {index} does not reference an'
                  + ' interval variable')
  
          return IntervalVar(self.__model, index, None, None, None, None)
function_tokens: def GetIntervalVarFromProtoIndex ( self , index ) : if index < 0 or index >= len ( self . __model . constraints ) : raise ValueError ( f'GetIntervalVarFromProtoIndex: out of bound index {index}' ) ct = self . __model . constraints [ index ] if not ct . HasField ( 'interval' ) : raise ValueError ( f'GetIntervalVarFromProtoIndex: index {index} does not reference an' + ' interval variable' ) return IntervalVar ( self . __model , index , None , None , None , None )