Пример #1
0
        public override void CreateUserQuestions(List <ExtendedDictionary> i_QuestionsDictionary)
        {
            base.CreateUserQuestions(i_QuestionsDictionary);
            ExtendedDictionary cargoVolume = new ExtendedDictionary("CargoVolume", k_TruckCargoMsg, eAnswerTypes.Float);
            int firstValidIndex            = EnumManager.FirstEnumIndex <eTruckCooled>();
            int lastValidIndex             = EnumManager.LastEnumIndex <eTruckCooled>();
            ExtendedDictionary isCooled    = new ExtendedDictionary("IsCooled", m_TruckCooledMsg, eAnswerTypes.Enum, firstValidIndex, lastValidIndex);

            i_QuestionsDictionary.Add(cargoVolume);
            i_QuestionsDictionary.Add(isCooled);
        }
Пример #2
0
        public override void CreateUserQuestions(List <ExtendedDictionary> i_QuestionsDictionary)
        {
            base.CreateUserQuestions(i_QuestionsDictionary);
            int firstValidIndex             = EnumManager.FirstEnumIndex <eLicenseTypes>();
            int lastValidIndex              = EnumManager.LastEnumIndex <eLicenseTypes>();
            ExtendedDictionary licenseType  = new ExtendedDictionary("LicenseType", m_LicenseMsg, eAnswerTypes.Enum, firstValidIndex, lastValidIndex);
            ExtendedDictionary engineVolume = new ExtendedDictionary("EngineVolume", k_EngineMsg, eAnswerTypes.Integer);

            i_QuestionsDictionary.Add(licenseType);
            i_QuestionsDictionary.Add(engineVolume);
        }
Пример #3
0
        public virtual void CreateUserQuestions(List <ExtendedDictionary> i_QuestionsDictionary)
        {
            ExtendedDictionary model             = new ExtendedDictionary("Model", k_ModelMsg, eAnswerTypes.String);
            ExtendedDictionary remainingEnergy   = new ExtendedDictionary("RemainingEnergy", k_EnergyMsg, eAnswerTypes.FloatHasMax, r_MaxEnergyCapacity);
            ExtendedDictionary wheelManufacturer = new ExtendedDictionary("WheelManufacturer", k_WheelMsg, eAnswerTypes.String);
            ExtendedDictionary airPressure       = new ExtendedDictionary("CurrentAirPressure", k_CurrentAirMsg, eAnswerTypes.FloatHasMax, r_MaxAirPressure);

            i_QuestionsDictionary.Add(model);
            i_QuestionsDictionary.Add(remainingEnergy);
            i_QuestionsDictionary.Add(wheelManufacturer);
            i_QuestionsDictionary.Add(airPressure);
        }
Пример #4
0
        public override void CreateUserQuestions(List <ExtendedDictionary> i_QuestionsDictionary)
        {
            base.CreateUserQuestions(i_QuestionsDictionary);
            int firstValidIndex         = EnumManager.FirstEnumIndex <eNumberOfDoors>();
            int lastValidIndex          = EnumManager.LastEnumIndex <eNumberOfDoors>();
            ExtendedDictionary carDoors = new ExtendedDictionary("CarDoors", k_CarDoorsMsg, eAnswerTypes.Enum, firstValidIndex, lastValidIndex);

            firstValidIndex = EnumManager.FirstEnumIndex <eCarColor>();
            lastValidIndex  = EnumManager.LastEnumIndex <eCarColor>();
            ExtendedDictionary carColor = new ExtendedDictionary("CarColor", m_CarColorMsg, eAnswerTypes.Enum, firstValidIndex, lastValidIndex);

            i_QuestionsDictionary.Add(carDoors);
            i_QuestionsDictionary.Add(carColor);
        }