Esempio n. 1
0
        /// <summary>
        /// Determines whether the specified Object is equal to the current
        /// UtilityIdentificatonSettingsDefinition object.
        /// </summary>
        /// <param name="ObjectToCompare">
        /// The Object to compare with the current
        /// UtilityIdentificatonSettingsDefinition object.
        /// </param>
        /// <returns>
        /// true if the specified Object is equal to the current
        /// UtilityIdentificatonSettingsDefinition object; otherwise, false.
        /// </returns>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  04/22/13 jrf 2.80.22 TQ8285 Created
        //  06/11/13 jrf 2.80.37 TQ8285 Factoring in ert utility id.
        //
        public override bool Equals(System.Object ObjectToCompare)
        {
            bool blnEquals = false;
            UtilityIdentificatonSettingsGroupDefinition SystemToCompare = ObjectToCompare as UtilityIdentificatonSettingsGroupDefinition;

            // If parameter is null return false.
            if (ObjectToCompare == null)
            {
                blnEquals = false;
            }
            // If parameter cannot be cast to HeadEndSystemSettings return false.
            else if ((System.Object)SystemToCompare == null)
            {
                blnEquals = false;
            }
            else
            {
                // Return true if all the fields match:
                blnEquals = (Name == SystemToCompare.Name) &&
                            (Description == SystemToCompare.Description) &&
                            (RFLANUtilityID == SystemToCompare.RFLANUtilityID) &&
                            (CellularGatewayAddress == SystemToCompare.CellularGatewayAddress) &&
                            (CellularGatewayPort == SystemToCompare.CellularGatewayPort) &&
                            (ERTUtilityID == SystemToCompare.ERTUtilityID);
            }

            return(blnEquals);
        }
Esempio n. 2
0
        /// <summary>
        /// Copy Constructor.
        /// </summary>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  04/22/13 jrf 2.80.22 TQ8285 Created
        //  06/11/13 jrf 2.80.37 TQ8285 Factoring in ert utility id.
        //
        public UtilityIdentificatonSettingsGroupDefinition(UtilityIdentificatonSettingsGroupDefinition SystemSettings)
        {
            InitializeMembers();

            if (null != SystemSettings)
            {
                m_strName          = SystemSettings.Name;
                m_strDescription   = SystemSettings.Description;
                m_byRFLANUtilityID = SystemSettings.RFLANUtilityID;
                if (null != SystemSettings.CellularGatewayAddress)
                {
                    m_CellularGatewayAddress = new IPAddress(SystemSettings.CellularGatewayAddress.GetAddressBytes());
                }
                m_usCellularGatwayPort = SystemSettings.CellularGatewayPort;
                m_usERTUtilityID       = SystemSettings.ERTUtilityID;
            }
            else
            {
                m_strName                = "";
                m_strDescription         = "";
                m_byRFLANUtilityID       = 0;
                m_CellularGatewayAddress = null;
                m_usCellularGatwayPort   = 0;
                m_usERTUtilityID         = 0;
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Determines whether the specified UtilityIdentificatonSettingsDefinition object is equal to the current
        /// UtilityIdentificatonSettingsDefinition object.
        /// </summary>
        /// <param name="SystemToCompare">
        /// The UtilityIdentificatonSettingsDefinition object to compare with the current
        /// UtilityIdentificatonSettingsDefinition object.
        /// </param>
        /// <returns>
        /// true if the specified UtilityIdentificatonSettingsDefinition object is equal to the current
        /// UtilityIdentificatonSettingsDefinition object; otherwise, false.
        /// </returns>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  04/22/13 jrf 2.80.22 TQ8285 Created
        //  06/11/13 jrf 2.80.37 TQ8285 Factoring in ert utility id.
        //
        public bool Equals(UtilityIdentificatonSettingsGroupDefinition SystemToCompare)
        {
            bool blnEquals = false;

            // If parameter is null return false:
            if ((object)SystemToCompare == null)
            {
                blnEquals = false;
            }
            else
            {
                // Return true if all the fields match:
                blnEquals = (Name == SystemToCompare.Name) &&
                            (Description == SystemToCompare.Description) &&
                            (RFLANUtilityID == SystemToCompare.RFLANUtilityID) &&
                            (CellularGatewayAddress == SystemToCompare.CellularGatewayAddress) &&
                            (CellularGatewayPort == SystemToCompare.CellularGatewayPort) &&
                            (ERTUtilityID == SystemToCompare.ERTUtilityID);
            }

            return(blnEquals);
        }
Esempio n. 4
0
 /// <summary>
 /// Method removes a given utility identification settings definiton from the collection.
 /// </summary>
 /// <param name="value">The element to remove.</param>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  04/22/13 jrf 2.80.22 TQ8285 Created
 //
 public void Remove(UtilityIdentificatonSettingsGroupDefinition value)
 {
     List.Remove(value);
 }
Esempio n. 5
0
 /// <summary>
 /// Method adds a given utility identification settings definiton to the collection.
 /// </summary>
 /// <param name="value">The element to add.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  04/22/13 jrf 2.80.22 TQ8285 Created
 //
 public int Add(UtilityIdentificatonSettingsGroupDefinition value)
 {
     return(List.Add(value));
 }
Esempio n. 6
0
 /// <summary>
 /// Method returns the index in the collection of the given utility identification settings definiton.
 /// </summary>
 /// <param name="value">The element to look for.</param>
 /// <returns>The element's index in the collection.</returns>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  04/22/13 jrf 2.80.22 TQ8285 Created
 //
 public int IndexOf(UtilityIdentificatonSettingsGroupDefinition value)
 {
     return(List.IndexOf(value));
 }
Esempio n. 7
0
 /// <summary>
 /// Method indicates if a given utility identification settings definiton is contained within the collection.
 /// </summary>
 /// <param name="value">The element to look for.</param>
 /// <returns>Whether or not the element is in the collection.</returns>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  04/22/13 jrf 2.80.22 TQ8285 Created
 //
 public bool Contains(UtilityIdentificatonSettingsGroupDefinition value)
 {
     return(List.Contains(value));
 }