//                           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.Runtime.Serialization;

namespace Raytheon.Instruments.PowerSupply
{

	/// <summary>
	/// A container for holding power supply data
	/// </summary>

	[Serializable]
	[DataContract]
	public class PowerData
	{
		/// <summary>
		/// The constructor
		/// </summary>
		/// <param name="voltage"></param>
		/// <param name="voltageSetpoint"></param>
		/// <param name="overVoltageProtection"></param>
		/// <param name="current"></param>
		/// <param name="overCurrentProtection"></param>
		/// <param name="isOutputOn"></param>
		/// <param name="faultStatus"></param>
		public PowerData(double voltage, double voltageSetpoint, double overVoltageProtection, double current, double overCurrentProtection, bool isOutputOn, int faultStatus)
		{
			Voltage = voltage;
			VoltageSetpoint = voltageSetpoint;
			OverVoltageProtection = overVoltageProtection;
			Current = current;
			OverCurrentProtection = overCurrentProtection;
			IsOutputOn = isOutputOn;
			FaultStatus = faultStatus;
		}

		/// <summary>
		/// Getter for the Current
		/// </summary>
		[DataMember]
		public double Current { get; set; }

		/// <summary>
		/// Getter for the fault status
		/// </summary>
		[DataMember]
		public int FaultStatus { get; set; }

		/// <summary>
		/// Getter for the output status
		/// </summary>
		[DataMember]
		public bool IsOutputOn { get; set; }

		/// <summary>
		/// Getter for OCP value
		/// </summary>
		[DataMember]
		public double OverCurrentProtection { get; set; }

		/// <summary>
		/// Getter for OVP value
		/// </summary>
		[DataMember]
		public double OverVoltageProtection { get; set; }

		/// <summary>
		/// Getter for the voltage measurement
		/// </summary>
		[DataMember]
		public double Voltage { get; set; }

		/// <summary>
		/// Getter for voltage setpoint
		/// </summary>
		[DataMember]
		public double VoltageSetpoint { get; set; }
	}
}
