/*-------------------------------------------------------------------------
//                           UNCLASSIFIED
/*-------------------------------------------------------------------------
RAYTHEON PROPRIETARY: THIS DOCUMENT CONTAINS DATA OR INFORMATION
PROPRIETARY TO RAYTHEON COMPANY AND IS RESTRICTED TO USE ONLY BY PERSONS
AUTHORIZED BY RAYTHEON COMPANY IN WRITING TO USE IT. DISCLOSURE TO
UNAUTHORIZED PERSONS WOULD LIKELY CAUSE SUBSTANTIAL COMPETITIVE HARM TO
RAYTHEON COMPANY'S BUSINESS POSITION. NEITHER SAID DOCUMENT NOR ITS
CONTENTS SHALL BE FURNISHED OR DISCLOSED TO OR COPIED OR USED BY PERSONS
OUTSIDE RAYTHEON COMPANY WITHOUT THE EXPRESS WRITTEN APPROVAL OF RAYTHEON
COMPANY.

THIS PROPRIETARY NOTICE IS NOT APPLICABLE IF DELIVERED TO THE U.S.
GOVERNMENT.

UNPUBLISHED WORK - COPYRIGHT RAYTHEON COMPANY.
-------------------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Raytheon.Instruments.PowerSupply
{
   public class PowerSupplyModuleInfo
   {
      public PowerSupplyModuleInfo()
      {
         overCurrentProtection_ = -1.0;
         overVoltageProtection_ = -1.0;
         voltageSetpoint_ = -1.0;
         voltageSlewRate_ = -1.0;
         voltageLowerLimit_ = -1.0;
         voltageUpperLimit_ = -1.0;
         currentLowerLimit_ = -1.0;
         currentUpperLimit_ = -1.0;
         isOn_ = false;
         faultStatus = -1;
      }

      public PowerSupplyModuleInfo(int moduleIndex, double overCurrentProtection, double overVoltageProtection, double voltageSetpoint, double voltageSlewRate, double minVoltage, double maxVoltage)
      {
         overCurrentProtection_ = overCurrentProtection;
         overVoltageProtection_ = overVoltageProtection;
         voltageSetpoint_ = voltageSetpoint;
         voltageSlewRate_ = voltageSlewRate;
         voltageLowerLimit_ = minVoltage;
         voltageUpperLimit_ = maxVoltage;
         isOn_ = false;
         faultStatus = -1;

         moduleNameFormat = $"(@{moduleIndex})";
      }

      public string moduleNameFormat;
      public double overCurrentProtection_;
      public double overVoltageProtection_;
      public double voltageLowerLimit_;
      public double voltageUpperLimit_;
      public double currentLowerLimit_;
      public double currentUpperLimit_;
      public double voltageSetpoint_;
      public double voltageSlewRate_;
      public bool isOn_;
      public int faultStatus;
   }
}
