Showing the changes to Source/Libraries/GSF.Core/Parsing/MultiSourceFrameImageParserBase.cs (1 of 930 files). Show all
Unified · Split
| @@ -1,14 +1,21 @@ | |||
| 1 | //******************************************************************************************************* | 1 | //****************************************************************************************************** |
| 2 | // MultiSourceFrameImageParserBase.cs - Gbtc | 2 | // MultiSourceFrameImageParserBase.cs - Gbtc |
| 3 | // | 3 | // |
| 4 | // Tennessee Valley Authority, 2011 | 4 | // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. |
| 5 | // No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved. | ||
| 6 | // | 5 | // |
| 7 | // This software is made freely available under the TVA Open Source Agreement (see below). | 6 | // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See |
| 8 | // Code in this file licensed to GSF under one or more contributor license agreements listed below. | 7 | // the NOTICE file distributed with this work for additional information regarding copyright ownership. |
| 8 | // The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may | ||
| 9 | // not use this file except in compliance with the License. You may obtain a copy of the License at: | ||
| 10 | // | ||
| 11 | // http://www.opensource.org/licenses/eclipse-1.0.php | ||
| 12 | // | ||
| 13 | // Unless agreed to in writing, the subject software distributed under the License is distributed on an | ||
| 14 | // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the | ||
| 15 | // License for the specific language governing permissions and limitations. | ||
| 9 | // | 16 | // |
| 10 | // Code Modification History: | 17 | // Code Modification History: |
| 11 | // ----------------------------------------------------------------------------------------------------- | 18 | // ---------------------------------------------------------------------------------------------------- |
| 12 | // 12/03/2008 - J. Ritchie Carroll | 19 | // 12/03/2008 - J. Ritchie Carroll |
| 13 | // Generated original version of source code. | 20 | // Generated original version of source code. |
| 14 | // 06/19/2009 - Pinal C. Patel | 21 | // 06/19/2009 - Pinal C. Patel |
| @@ -19,243 +26,10 @@ · 4 unmodified lines | |||
| 19 | // Added new header and license agreement. | 26 | // Added new header and license agreement. |
| 20 | // 11/01/2012 - J. Ritchie Carroll | 27 | // 11/01/2012 - J. Ritchie Carroll |
| 21 | // Updated to use concurrent dictionaries and new recreate parsed output list. | 28 | // Updated to use concurrent dictionaries and new recreate parsed output list. |
| 29 | // 12/14/2012 - Starlynn Danyelle Gilliam | ||
| 30 | // Modified Header. | ||
| 22 | // | 31 | // |
| 23 | //******************************************************************************************************* | ||
| 24 | |||
| 25 | #region [ TVA Open Source Agreement ] | ||
| 26 | /* | ||
| 27 | |||
| 28 | THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE,REPRODUCTION, DISTRIBUTION, | ||
| 29 | MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORIGINALLY RELEASED BY THE | ||
| 30 | TENNESSEE VALLEY AUTHORITY, A CORPORATE AGENCY AND INSTRUMENTALITY OF THE UNITED STATES GOVERNMENT | ||
| 31 | ("GOVERNMENT AGENCY"). GOVERNMENT AGENCY IS AN INTENDED THIRD-PARTY BENEFICIARY OF ALL SUBSEQUENT | ||
| 32 | DISTRIBUTIONS OR REDISTRIBUTIONS OF THE SUBJECT SOFTWARE. ANYONE WHO USES, REPRODUCES, DISTRIBUTES, | ||
| 33 | MODIFIES OR REDISTRIBUTES THE SUBJECT SOFTWARE, AS DEFINED HEREIN, OR ANY PART THEREOF, IS, BY THAT | ||
| 34 | ACTION, ACCEPTING IN FULL THE RESPONSIBILITIES AND OBLIGATIONS CONTAINED IN THIS AGREEMENT. | ||
| 35 | |||
| 36 | Original Software Designation: openPDC | ||
| 37 | Original Software Title: The GSF Open Source Phasor Data Concentrator | ||
| 38 | User Registration Requested. Please Visit https://naspi.tva.com/Registration/ | ||
| 39 | Point of Contact for Original Software: J. Ritchie Carroll <mailto:jrcarrol@tva.gov> | ||
| 40 | |||
| 41 | 1. DEFINITIONS | ||
| 42 | |||
| 43 | A. "Contributor" means Government Agency, as the developer of the Original Software, and any entity | ||
| 44 | that makes a Modification. | ||
| 45 | |||
| 46 | B. "Covered Patents" mean patent claims licensable by a Contributor that are necessarily infringed by | ||
| 47 | the use or sale of its Modification alone or when combined with the Subject Software. | ||
| 48 | |||
| 49 | C. "Display" means the showing of a copy of the Subject Software, either directly or by means of an | ||
| 50 | image, or any other device. | ||
| 51 | |||
| 52 | D. "Distribution" means conveyance or transfer of the Subject Software, regardless of means, to | ||
| 53 | another. | ||
| 54 | |||
| 55 | E. "Larger Work" means computer software that combines Subject Software, or portions thereof, with | ||
| 56 | software separate from the Subject Software that is not governed by the terms of this Agreement. | ||
| 57 | |||
| 58 | F. "Modification" means any alteration of, including addition to or deletion from, the substance or | ||
| 59 | structure of either the Original Software or Subject Software, and includes derivative works, as that | ||
| 60 | term is defined in the Copyright Statute, 17 USC § 101. However, the act of including Subject Software | ||
| 61 | as part of a Larger Work does not in and of itself constitute a Modification. | ||
| 62 | |||
| 63 | G. "Original Software" means the computer software first released under this Agreement by Government | ||
| 64 | Agency entitled openPDC, including source code, object code and accompanying documentation, if any. | ||
| 65 | |||
| 66 | H. "Recipient" means anyone who acquires the Subject Software under this Agreement, including all | ||
| 67 | Contributors. | ||
| 68 | |||
| 69 | I. "Redistribution" means Distribution of the Subject Software after a Modification has been made. | ||
| 70 | |||
| 71 | J. "Reproduction" means the making of a counterpart, image or copy of the Subject Software. | ||
| 72 | |||
| 73 | K. "Sale" means the exchange of the Subject Software for money or equivalent value. | ||
| 74 | |||
| 75 | L. "Subject Software" means the Original Software, Modifications, or any respective parts thereof. | ||
| 76 | |||
| 77 | M. "Use" means the application or employment of the Subject Software for any purpose. | ||
| 78 | |||
| 79 | 2. GRANT OF RIGHTS | ||
| 80 | |||
| 81 | A. Under Non-Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor, | ||
| 82 | with respect to its own contribution to the Subject Software, hereby grants to each Recipient a | ||
| 83 | non-exclusive, world-wide, royalty-free license to engage in the following activities pertaining to | ||
| 84 | the Subject Software: | ||
| 85 | |||
| 86 | 1. Use | ||
| 87 | |||
| 88 | 2. Distribution | ||
| 89 | |||
| 90 | 3. Reproduction | ||
| 91 | |||
| 92 | 4. Modification | ||
| 93 | |||
| 94 | 5. Redistribution | ||
| 95 | |||
| 96 | 6. Display | ||
| 97 | |||
| 98 | B. Under Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor, with | ||
| 99 | respect to its own contribution to the Subject Software, hereby grants to each Recipient under Covered | ||
| 100 | Patents a non-exclusive, world-wide, royalty-free license to engage in the following activities | ||
| 101 | pertaining to the Subject Software: | ||
| 102 | |||
| 103 | 1. Use | ||
| 104 | |||
| 105 | 2. Distribution | ||
| 106 | |||
| 107 | 3. Reproduction | ||
| 108 | |||
| 109 | 4. Sale | ||
| 110 | |||
| 111 | 5. Offer for Sale | ||
| 112 | |||
| 113 | C. The rights granted under Paragraph B. also apply to the combination of a Contributor's Modification | ||
| 114 | and the Subject Software if, at the time the Modification is added by the Contributor, the addition of | ||
| 115 | such Modification causes the combination to be covered by the Covered Patents. It does not apply to | ||
| 116 | any other combinations that include a Modification. | ||
| 117 | |||
| 118 | D. The rights granted in Paragraphs A. and B. allow the Recipient to sublicense those same rights. | ||
| 119 | Such sublicense must be under the same terms and conditions of this Agreement. | ||
| 120 | |||
| 121 | 3. OBLIGATIONS OF RECIPIENT | ||
| 122 | |||
| 123 | A. Distribution or Redistribution of the Subject Software must be made under this Agreement except for | ||
| 124 | additions covered under paragraph 3H. | ||
| 125 | |||
| 126 | 1. Whenever a Recipient distributes or redistributes the Subject Software, a copy of this Agreement | ||
| 127 | must be included with each copy of the Subject Software; and | ||
| 128 | |||
| 129 | 2. If Recipient distributes or redistributes the Subject Software in any form other than source code, | ||
| 130 | Recipient must also make the source code freely available, and must provide with each copy of the | ||
| 131 | Subject Software information on how to obtain the source code in a reasonable manner on or through a | ||
| 132 | medium customarily used for software exchange. | ||
| 133 | |||
| 134 | B. Each Recipient must ensure that the following copyright notice appears prominently in the Subject | ||
| 135 | Software: | ||
| 136 | |||
| 137 | No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved. | ||
| 138 | |||
| 139 | C. Each Contributor must characterize its alteration of the Subject Software as a Modification and | ||
| 140 | must identify itself as the originator of its Modification in a manner that reasonably allows | ||
| 141 | subsequent Recipients to identify the originator of the Modification. In fulfillment of these | ||
| 142 | requirements, Contributor must include a file (e.g., a change log file) that describes the alterations | ||
| 143 | made and the date of the alterations, identifies Contributor as originator of the alterations, and | ||
| 144 | consents to characterization of the alterations as a Modification, for example, by including a | ||
| 145 | statement that the Modification is derived, directly or indirectly, from Original Software provided by | ||
| 146 | Government Agency. Once consent is granted, it may not thereafter be revoked. | ||
| 147 | |||
| 148 | D. A Contributor may add its own copyright notice to the Subject Software. Once a copyright notice has | ||
| 149 | been added to the Subject Software, a Recipient may not remove it without the express permission of | ||
| 150 | the Contributor who added the notice. | ||
| 151 | |||
| 152 | E. A Recipient may not make any representation in the Subject Software or in any promotional, | ||
| 153 | advertising or other material that may be construed as an endorsement by Government Agency or by any | ||
| 154 | prior Recipient of any product or service provided by Recipient, or that may seek to obtain commercial | ||
| 155 | advantage by the fact of Government Agency's or a prior Recipient's participation in this Agreement. | ||
| 156 | |||
| 157 | F. In an effort to track usage and maintain accurate records of the Subject Software, each Recipient, | ||
| 158 | upon receipt of the Subject Software, is requested to register with Government Agency by visiting the | ||
| 159 | following website: https://naspi.tva.com/Registration/. Recipient's name and personal information | ||
| 160 | shall be used for statistical purposes only. Once a Recipient makes a Modification available, it is | ||
| 161 | requested that the Recipient inform Government Agency at the web site provided above how to access the | ||
| 162 | Modification. | ||
| 163 | |||
| 164 | G. Each Contributor represents that that its Modification does not violate any existing agreements, | ||
| 165 | regulations, statutes or rules, and further that Contributor has sufficient rights to grant the rights | ||
| 166 | conveyed by this Agreement. | ||
| 167 | |||
| 168 | H. A Recipient may choose to offer, and to charge a fee for, warranty, support, indemnity and/or | ||
| 169 | liability obligations to one or more other Recipients of the Subject Software. A Recipient may do so, | ||
| 170 | however, only on its own behalf and not on behalf of Government Agency or any other Recipient. Such a | ||
| 171 | Recipient must make it absolutely clear that any such warranty, support, indemnity and/or liability | ||
| 172 | obligation is offered by that Recipient alone. Further, such Recipient agrees to indemnify Government | ||
| 173 | Agency and every other Recipient for any liability incurred by them as a result of warranty, support, | ||
| 174 | indemnity and/or liability offered by such Recipient. | ||
| 175 | |||
| 176 | I. A Recipient may create a Larger Work by combining Subject Software with separate software not | ||
| 177 | governed by the terms of this agreement and distribute the Larger Work as a single product. In such | ||
| 178 | case, the Recipient must make sure Subject Software, or portions thereof, included in the Larger Work | ||
| 179 | is subject to this Agreement. | ||
| 180 | |||
| 181 | J. Notwithstanding any provisions contained herein, Recipient is hereby put on notice that export of | ||
| 182 | any goods or technical data from the United States may require some form of export license from the | ||
| 183 | U.S. Government. Failure to obtain necessary export licenses may result in criminal liability under | ||
| 184 | U.S. laws. Government Agency neither represents that a license shall not be required nor that, if | ||
| 185 | required, it shall be issued. Nothing granted herein provides any such export license. | ||
| 186 | |||
| 187 | 4. DISCLAIMER OF WARRANTIES AND LIABILITIES; WAIVER AND INDEMNIFICATION | ||
| 188 | |||
| 189 | A. No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER | ||
| 190 | EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT | ||
| 191 | SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | ||
| 192 | PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR | ||
| 193 | FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS | ||
| 194 | AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR | ||
| 195 | RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS | ||
| 196 | RESULTING FROM USE OF THE SUBJECT SOFTWARE. FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND | ||
| 197 | LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT | ||
| 198 | "AS IS." | ||
| 199 | |||
| 200 | B. Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST GOVERNMENT AGENCY, ITS | ||
| 201 | AGENTS, EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE | ||
| 202 | OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM | ||
| 203 | SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE | ||
| 204 | SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS GOVERNMENT AGENCY, ITS AGENTS, | ||
| 205 | EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY | ||
| 206 | LAW. THE FOREGOING RELEASE AND INDEMNIFICATION SHALL APPLY EVEN IF THE LIABILITIES, DEMANDS, DAMAGES, | ||
| 207 | EXPENSES OR LOSSES ARE CAUSED, OCCASIONED, OR CONTRIBUTED TO BY THE NEGLIGENCE, SOLE OR CONCURRENT, OF | ||
| 208 | GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT. RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE | ||
| 209 | IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT. | ||
| 210 | |||
| 211 | 5. GENERAL TERMS | ||
| 212 | |||
| 213 | A. Termination: This Agreement and the rights granted hereunder will terminate automatically if a | ||
| 214 | Recipient fails to comply with these terms and conditions, and fails to cure such noncompliance within | ||
| 215 | thirty (30) days of becoming aware of such noncompliance. Upon termination, a Recipient agrees to | ||
| 216 | immediately cease use and distribution of the Subject Software. All sublicenses to the Subject | ||
| 217 | Software properly granted by the breaching Recipient shall survive any such termination of this | ||
| 218 | Agreement. | ||
| 219 | |||
| 220 | B. Severability: If any provision of this Agreement is invalid or unenforceable under applicable law, | ||
| 221 | it shall not affect the validity or enforceability of the remainder of the terms of this Agreement. | ||
| 222 | |||
| 223 | C. Applicable Law: This Agreement shall be subject to United States federal law only for all purposes, | ||
| 224 | including, but not limited to, determining the validity of this Agreement, the meaning of its | ||
| 225 | provisions and the rights, obligations and remedies of the parties. | ||
| 226 | |||
| 227 | D. Entire Understanding: This Agreement constitutes the entire understanding and agreement of the | ||
| 228 | parties relating to release of the Subject Software and may not be superseded, modified or amended | ||
| 229 | except by further written agreement duly executed by the parties. | ||
| 230 | |||
| 231 | E. Binding Authority: By accepting and using the Subject Software under this Agreement, a Recipient | ||
| 232 | affirms its authority to bind the Recipient to all terms and conditions of this Agreement and that | ||
| 233 | Recipient hereby agrees to all terms and conditions herein. | ||
| 234 | |||
| 235 | F. Point of Contact: Any Recipient contact with Government Agency is to be directed to the designated | ||
| 236 | representative as follows: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>. | ||
| 237 | |||
| 238 | */ | ||
| 239 | #endregion | ||
| 240 | |||
| 241 | #region [ Contributor License Agreements ] | ||
| 242 | |||
| 243 | //****************************************************************************************************** | 32 | //****************************************************************************************************** |
| 244 | // | ||
| 245 | // Copyright © 2011, Grid Protection Alliance. All Rights Reserved. | ||
| 246 | // | ||
| 247 | // The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may | ||
| 248 | // not use this file except in compliance with the License. You may obtain a copy of the License at: | ||
| 249 | // | ||
| 250 | // http://www.opensource.org/licenses/eclipse-1.0.php | ||
| 251 | // | ||
| 252 | // Unless agreed to in writing, the subject software distributed under the License is distributed on an | ||
| 253 | // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the | ||
| 254 | // License for the specific language governing permissions and limitations. | ||
| 255 | // | ||
| 256 | //****************************************************************************************************** | ||
| 257 | |||
| 258 | #endregion | ||
| 259 | 33 | ||
| 260 | #pragma warning disable 0809 | 34 | #pragma warning disable 0809 |
| 261 | 35 | ||