def printInsAttr(self): print("@relation = " + self.__relationName) print("Number of attributes: " + str(len(self.__attributes))) for i in range(0, len(self.__attributes)): att = Attribute(self.__attributes[i]) if (att.getDirectionAttribute() == Attribute.INPUT): print(" > INPUT ATTRIBUTE: ") elif (att.getDirectionAttribute() == Attribute.OUTPUT): print(" > OUTPUT ATTRIBUTE: ") else: print(" > UNDEFINED ATTRIBUTE: ") att.printAttr()
def searchUndefPosition(self, attToDel): undefCount = 0, count = 0 att_aux = Attribute(self.__attributes[count]) while (attToDel != att_aux): if (att_aux.getDirectionAttribute() == Attribute.DIR_NOT_DEF): undefCount += 1 count += 1 att_aux = Attribute(self.__attributes[count]) return undefCount