public CalcAutoDevDto([NotNull] string name, [NotNull] CalcProfileDto calcProfile, [NotNull] string loadTypeName, StrGuid loadtypeGuid,
                       [ItemNotNull][NotNull] List <CalcDeviceLoadDto> loads, double timeStandardDeviation,
                       StrGuid deviceCategoryGuid,
                       [NotNull] HouseholdKey householdKey, double multiplier,
                       [NotNull] string calclocationName, StrGuid calcLocationGuid,
                       //[CanBeNull] string variableName, double variableValue, VariableCondition variableCondition,
                       [NotNull] string deviceCategoryFullPath, StrGuid guid, [NotNull] AvailabilityDataReferenceDto busyArr,
                       //string variableGuid,
                       [ItemNotNull][NotNull] List <VariableRequirementDto> requirements,
                       [NotNull] string deviceCategoryName) :
     base(name, deviceCategoryGuid, householdKey, OefcDeviceType.AutonomousDevice,
          deviceCategoryName, "", guid, calcLocationGuid, calclocationName)
 {
     CalcProfile           = calcProfile;
     LoadTypeName          = loadTypeName;
     LoadtypeGuid          = loadtypeGuid;
     Loads                 = loads;
     TimeStandardDeviation = timeStandardDeviation;
     DeviceCategoryGuid    = deviceCategoryGuid;
     HouseholdKey          = householdKey;
     Multiplier            = multiplier;
     CalclocationName      = calclocationName;
     CalcLocationGuid      = calcLocationGuid;
     //VariableName = variableName;
     //VariableValue = variableValue;
     //VariableCondition = variableCondition;
     DeviceCategoryFullPath = deviceCategoryFullPath;
     Guid    = guid;
     BusyArr = busyArr; //busyArr;
     //VariableGuid = variableGuid;
     Requirements = requirements;
 }
Ejemplo n.º 2
0
        public DeviceEnergyProfileTupleDto([NotNull] string calcDeviceName, StrGuid calcDeviceGuid, [NotNull]  CalcProfileDto ep, [NotNull] string calcLoadTypeName,
                                           StrGuid calcLoadTypeGuid, decimal timeOffset,
                                           TimeSpan stepsize, double multiplier, double probability)
        {
            CalcDeviceName   = calcDeviceName;
            CalcDeviceGuid   = calcDeviceGuid;
            TimeProfile      = ep;
            CalcLoadTypeName = calcLoadTypeName;
            CalcLoadTypeGuid = calcLoadTypeGuid;
            TimeOffset       = timeOffset;
            Multiplier       = multiplier;
            var minutesperstep = (decimal)stepsize.TotalMinutes;

            TimeOffsetInSteps = (int)(timeOffset / minutesperstep);
            Probability       = probability;
        }
Ejemplo n.º 3
0
 public CalcAffordanceDto([NotNull] string name, int id, [NotNull] CalcProfileDto personProfile, [NotNull] string calcLocationName,
                          StrGuid calcLocationGuid, bool randomEffect,
                          [ItemNotNull][NotNull] List <CalcDesireDto> satisfactionvalues, int miniumAge, int maximumAge,
                          PermittedGender permittedGender,
                          bool needsLight, double timeStandardDeviation, byte colorR, byte colorG, byte colorB, [NotNull] string affCategory,
                          bool isInterruptable, bool isInterrupting, [ItemNotNull][NotNull] List <CalcAffordanceVariableOpDto> variableOps,
                          [ItemNotNull][NotNull] List <VariableRequirementDto> variableRequirements,
                          ActionAfterInterruption actionAfterInterruption, [NotNull] string timeLimitName, int weight,
                          bool requireAllDesires, [NotNull] string srcTrait,
                          StrGuid guid, [NotNull] AvailabilityDataReferenceDto isBusyArray,
                          [NotNull] HouseholdKey householdKey, BodilyActivityLevel bodilyActivityLevel)
 {
     Name                    = name;
     ID                      = id;
     PersonProfile           = personProfile;
     CalcLocationName        = calcLocationName;
     CalcLocationGuid        = calcLocationGuid;
     RandomEffect            = randomEffect;
     Satisfactionvalues      = satisfactionvalues;
     MiniumAge               = miniumAge;
     MaximumAge              = maximumAge;
     PermittedGender         = permittedGender;
     NeedsLight              = needsLight;
     TimeStandardDeviation   = timeStandardDeviation;
     ColorR                  = colorR;
     ColorG                  = colorG;
     ColorB                  = colorB;
     AffCategory             = affCategory;
     IsInterruptable         = isInterruptable;
     IsInterrupting          = isInterrupting;
     VariableOps             = variableOps;
     VariableRequirements    = variableRequirements;
     ActionAfterInterruption = actionAfterInterruption;
     TimeLimitName           = timeLimitName;
     Weight                  = weight;
     RequireAllDesires       = requireAllDesires;
     SrcTrait                = srcTrait;
     Guid                    = guid;
     IsBusyArray             = isBusyArray;
     HouseholdKey            = householdKey;
     BodilyActivityLevel     = bodilyActivityLevel;
 }
Ejemplo n.º 4
0
        public void AddDeviceTuple([NotNull] string calcDeviceName, StrGuid calcDeviceGuid, [NotNull]
                                   CalcProfileDto newprof, [NotNull] string calcLoadTypeName, StrGuid calcLoadtypeGuid, decimal timeoffset,
                                   TimeSpan internalstepsize, double multiplier, double probability)
        {
            var calctup = new DeviceEnergyProfileTupleDto(calcDeviceName, calcDeviceGuid, newprof, calcLoadTypeName, calcLoadtypeGuid, timeoffset,
                                                          internalstepsize, multiplier, probability);

            Energyprofiles.Add(calctup);
        }