Esempio n. 1
0
    def lexpand(self, val):

        var = "lexpand"

        if not isinstance(val, oda.oneDimArray):
            if not (isinstance(val, list) or ti.is_boolean(val)):
                errorMessage = logging.multidimensional_error("lexpand", False)
                self.__changeLog.append(
                    logging.changelog_entry(self.__location, "lexpand", False,
                                            repr(getattr(self, "lexpand")),
                                            repr(val), errorMessage))
                self.__errorLog.append(
                    logging.errorlog_entry("Setter", errorMessage))
            else:
                if not isinstance(val, list):
                    val = [val]
                myODA = oda.oneDimArray.listToODA(val,
                                                  errorLog=self.__errorLog,
                                                  changeLog=self.__changeLog,
                                                  location=self.__location,
                                                  var=var)
                self.__changeLog.append(
                    logging.changelog_entry(self.__location, "lexpand", False,
                                            repr(getattr(self, "lexpand")),
                                            repr(val), None))
                self.__lexpand = myODA
        else:
            self.__changeLog.append(
                logging.changelog_entry(self.__location, "lexpand", False,
                                        repr(getattr(self, "lexpand")),
                                        repr(val), None))
            self.__lexpand = val
Esempio n. 2
0
    def pmeemt(self, val):

        var = "pmeemt"

        if not isinstance(val, oda.oneDimArray):
            if not (isinstance(val, list) or ti.is_probability(val)):
                errorMessage = logging.multidimensional_error("pmeemt", True)
                self.__changeLog.append(
                    logging.changelog_entry(self.__location, "pmeemt", False,
                                            repr(getattr(self, "pmeemt")),
                                            repr(val), errorMessage))
                self.__errorLog.append(
                    logging.errorlog_entry("Setter", errorMessage))
            else:
                if not isinstance(val, list):
                    val = [val]
                myODA = oda.oneDimArray.listToODA(val,
                                                  errorLog=self.__errorLog,
                                                  changeLog=self.__changeLog,
                                                  location=self.__location,
                                                  var=var)
                self.__changeLog.append(
                    logging.changelog_entry(self.__location, "pmeemt", False,
                                            repr(getattr(self, "pmeemt")),
                                            repr(val), None))
                self.__pmeemt = myODA
        else:
            self.__changeLog.append(
                logging.changelog_entry(self.__location, "pmeemt", False,
                                        repr(getattr(self, "pmeemt")),
                                        repr(val), None))
            self.__pmeemt = val
Esempio n. 3
0
    def nchoiq(self, val):

        var = "nchoiq"

        if not isinstance(val, oda.oneDimArray):
            if not (isinstance(val, list) or ti.is_positive_integer(val)):
                errorMessage = logging.multidimensional_error("nchoiq", False)
                self.__changeLog.append(
                    logging.changelog_entry(self.__location, "nchoiq", False,
                                            repr(getattr(self, "nchoiq")),
                                            repr(val), errorMessage))
                self.__errorLog.append(
                    logging.errorlog_entry("Setter", errorMessage))
            else:
                if not isinstance(val, list):
                    val = [val]
                myODA = oda.oneDimArray.listToODA(val,
                                                  errorLog=self.__errorLog,
                                                  changeLog=self.__changeLog,
                                                  location=self.__location,
                                                  var=var)
                self.__changeLog.append(
                    logging.changelog_entry(self.__location, "nchoiq", False,
                                            repr(getattr(self, "nchoiq")),
                                            repr(val), None))
                self.__nchoiq = myODA
        else:
            self.__changeLog.append(
                logging.changelog_entry(self.__location, "nchoiq", False,
                                        repr(getattr(self, "nchoiq")),
                                        repr(val), None))
            self.__nchoiq = val
Esempio n. 4
0
 def pmexpc1(self, val):
     if not ti.is_probability(val):
         errorMessage = "pmexpc1 failed test_instance.is_probability check."
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "pmexpc1", False,
                                     repr(getattr(self, "pmexpc1")),
                                     repr(val), errorMessage))
         self.__errorLog.append(
             logging.errorlog_entry("Setter", errorMessage))
     else:
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "pmexpc1", False,
                                     repr(getattr(self, "pmexpc1")),
                                     repr(val), None))
         self.__pmexpc1 = val
Esempio n. 5
0
 def ndumph(self, val):
     if not ti.is_positive_integer(val):
         errorMessage = "ndumph failed test_instance.is_positive_integer check."
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "ndumph", False,
                                     repr(getattr(self, "ndumph")),
                                     repr(val), errorMessage))
         self.__errorLog.append(
             logging.errorlog_entry("Setter", errorMessage))
     else:
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "ndumph", False,
                                     repr(getattr(self, "ndumph")),
                                     repr(val), None))
         self.__ndumph = val
Esempio n. 6
0
 def fqtemp(self, val):
     if not ti.is_number(val):
         errorMessage = "fqtemp failed test_instance.is_number check."
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "fqtemp", False,
                                     repr(getattr(self, "fqtemp")),
                                     repr(val), errorMessage))
         self.__errorLog.append(
             logging.errorlog_entry("Setter", errorMessage))
     else:
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "fqtemp", False,
                                     repr(getattr(self, "fqtemp")),
                                     repr(val), None))
         self.__fqtemp = val
Esempio n. 7
0
 def rmflucq(self, val):
     if not ti.is_positive_number(val):
         errorMessage = "rmflucq failed test_instance.is_positive_number check."
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "rmflucq", False,
                                     repr(getattr(self, "rmflucq")),
                                     repr(val), errorMessage))
         self.__errorLog.append(
             logging.errorlog_entry("Setter", errorMessage))
     else:
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "rmflucq", False,
                                     repr(getattr(self, "rmflucq")),
                                     repr(val), None))
         self.__rmflucq = val
Esempio n. 8
0
 def avbmc_version(self, val):
     if not ti.is_integer(val):
         errorMessage = "avbmc_version failed test_instance.is_integer check."
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "avbmc_version",
                                     False,
                                     repr(getattr(self, "avbmc_version")),
                                     repr(val), errorMessage))
         self.__errorLog.append(
             logging.errorlog_entry("Setter", errorMessage))
     else:
         self.__changeLog.append(
             logging.changelog_entry(self.__location, "avbmc_version",
                                     False,
                                     repr(getattr(self, "avbmc_version")),
                                     repr(val), None))
         self.__avbmc_version = val
Esempio n. 9
0
 def l_bilayer(self,val):
     if not ti.is_boolean(val):
         errorMessage = "l_bilayer failed test_instance.is_boolean check."
         self.__changeLog.append(
             logging.changelog_entry(
                 self.__location, "l_bilayer", False, repr(getattr(self, "l_bilayer")), repr(val),
                  errorMessage
            )
         )
         self.__errorLog.append(
             logging.errorlog_entry("Setter", errorMessage)
         )
     else:
         self.__changeLog.append(
             logging.changelog_entry(
                 self.__location, "l_bilayer", False, repr(getattr(self, "l_bilayer")), repr(val),
                 None
             )
         )
         self.__l_bilayer = val
Esempio n. 10
0
 def allow_cutoff_failure(self,val):
     if not ti.is_integer(val):
         errorMessage = "allow_cutoff_failure failed test_instance.is_integer check."
         self.__changeLog.append(
             logging.changelog_entry(
                 self.__location, "allow_cutoff_failure", False, repr(getattr(self, "allow_cutoff_failure")), repr(val),
                  errorMessage
            )
         )
         self.__errorLog.append(
             logging.errorlog_entry("Setter", errorMessage)
         )
     else:
         self.__changeLog.append(
             logging.changelog_entry(
                 self.__location, "allow_cutoff_failure", False, repr(getattr(self, "allow_cutoff_failure")), repr(val),
                 None
             )
         )
         self.__allow_cutoff_failure = val