Exemplo n.º 1
0
        public PowerSystemData(PowerSystemData other)
        {
            ReportDateTime          = DateTimeOffset.Now;
            Status                  = other.Status;
            ShuntStatus             = other.ShuntStatus;
            SolarArrayRotation      = other.SolarArrayRotation;
            SolarRotationIncreasing = other.SolarRotationIncreasing;
            SolarArrayVoltage       = other.SolarArrayVoltage;
            SolarDeployed           = other.SolarDeployed;
            BatteryVoltage          = other.BatteryVoltage;
            BatteryChargeLevel      = other.BatteryChargeLevel;

            // for creating rudimentory sun/eclipse cycles
            inEclipse    = other.inEclipse;
            eclipseCount = other.eclipseCount;
        }
Exemplo n.º 2
0
 public bool Equals(PowerSystemData other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(this.ReportDateTime.Equals(other.ReportDateTime) &&
            this.Status == other.Status &&
            this.ShuntStatus == other.ShuntStatus &&
            this.SolarArrayRotation == other.SolarArrayRotation &&
            this.SolarRotationIncreasing == other.SolarRotationIncreasing &&
            this.SolarArrayVoltage == other.SolarArrayVoltage &&
            this.SolarDeployed == other.SolarDeployed &&
            this.BatteryTemperature == other.BatteryTemperature &&
            this.BatteryChargeLevel == other.BatteryChargeLevel &&
            this.BatteryVoltage == other.BatteryVoltage);
 }