#PLEASE DO NOT EDIT THIS CODE
#This code was generated using the UMPLE @UMPLE_VERSION@ modeling language!


class student():
    #------------------------
    # MEMBER VARIABLES
    #------------------------
    #student Attributes
    #------------------------
    # CONSTRUCTOR
    #------------------------
    def __init__(self, aAge, aWeight):
        self._weight = None
        self._age = None
        self._age = aAge
        self._weight = aWeight
        if (aAge > 18) :
            raise RuntimeError ("Please provide a valid age [age<=18]")

    #------------------------
    # INTERFACE
    #------------------------
    def setAge(self, aAge):
        wasSet = False
        if (aAge <= 18) :
            self._age = aAge
            wasSet = True
        return wasSet

    def setWeight(self, aWeight):
        wasSet = False
        self._weight = aWeight
        wasSet = True
        return wasSet

    def getAge(self):
        return self._age

    def getWeight(self):
        return self._weight

    def delete(self):
        pass

    def __str__(self):
        return str(super().__str__()) + "[" + "age" + ":" + str(self.getAge()) + "," + "weight" + ":" + str(self.getWeight()) + "]"

