Files
GenericTeProgramLibrary/Source/MeasurementManagers/PowerSupplyMeasurementManager/PowerSupplySelfTestTime.cs
2025-01-03 09:50:39 -07:00

64 lines
2.2 KiB
C#

/*-------------------------------------------------------------------------
// 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;
using System.IO;
using System.Xml.Serialization;
namespace Raytheon
{
/// <summary>
/// Serialiable class to store self test and power off time to XML
/// and restore info from XML to this class
/// </summary>
[Serializable]
public class PowerSupplySelfTestTime
{
[XmlAttribute("power_system")]
public string _powerSystem { get; set; }
// date and time of last power off of a power module
[XmlAttribute("power_off_time")]
public string _powerOffTime { get; set; }
// date and time of last successful self test
[XmlAttribute("self_test_time")]
public string _selfTestTime { get; set; }
/// <summary>
/// constructor
/// </summary>
public PowerSupplySelfTestTime()
{
_powerOffTime = Raytheon.Common.GeneralConstants.DefaultConfigValue;
_powerSystem = Raytheon.Common.GeneralConstants.DefaultConfigValue;
_selfTestTime = Raytheon.Common.GeneralConstants.DefaultConfigValue;
}
/// <summary>
/// constructor
/// </summary>
public PowerSupplySelfTestTime(string powerSystem, string powerOffTime, string selfTestTime)
{
_powerOffTime = powerOffTime;
_powerSystem = powerSystem;
_selfTestTime = selfTestTime;
}
}
}