{"size": 2160, "ext": "js", "max_stars_repo_path": "src/dis7/IFFFundamentalParameterData.js", "max_stars_repo_name": "mcgredonps/open-dis-javascript", "max_stars_repo_stars_event_min_datetime": "2016-08-25T13:40:39.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-28T23:52:05.000Z", "max_issues_repo_path": "src/dis7/IFFFundamentalParameterData.js", "max_issues_repo_name": "mcgredonps/open-dis-javascript", "max_issues_repo_issues_event_min_datetime": "2018-02-07T20:47:16.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T02:37:28.000Z", "max_forks_repo_path": "src/dis7/IFFFundamentalParameterData.js", "max_forks_repo_name": "mcgredonps/open-dis-javascript", "max_forks_repo_forks_event_min_datetime": "2018-02-01T13:45:41.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-16T14:51:48.000Z"}
{"max_stars_count": 7, "max_issues_count": 9, "max_forks_count": 5, "avg_line_length": 28.0519480519, "max_line_length": 121, "alphanum_fraction": 0.6712962963}
/**
 * Fundamental IFF atc data. Section 6.2.45
 *
 * Copyright (c) 2008-2015, MOVES Institute, Naval Postgraduate School. All rights reserved.
 * This work is licensed under the BSD open source license, available at https://www.movesinstitute.org/licenses/bsd.html
 *
 * @author DMcG
 */
// On the client side, support for a  namespace.
if (typeof dis === "undefined")
 dis = {};


// Support for node.js style modules. Ignored if used in a client context.
// See http://howtonode.org/creating-custom-modules
if (typeof exports === "undefined")
 exports = {};


dis.IFFFundamentalParameterData = function()
{
   /** ERP */
   this.erp = 0;

   /** frequency */
   this.frequency = 0;

   /** pgrf */
   this.pgrf = 0;

   /** Pulse width */
   this.pulseWidth = 0;

   /** Burst length */
   this.burstLength = 0;

   /** Applicable modes enumeration */
   this.applicableModes = 0;

   /** System-specific data */
   this.systemSpecificData = new Array(0, 0, 0);

  dis.IFFFundamentalParameterData.prototype.initFromBinary = function(inputStream)
  {
       this.erp = inputStream.readFloat32();
       this.frequency = inputStream.readFloat32();
       this.pgrf = inputStream.readFloat32();
       this.pulseWidth = inputStream.readFloat32();
       this.burstLength = inputStream.readUInt();
       this.applicableModes = inputStream.readUByte();
       for(var idx = 0; idx < 3; idx++)
       {
          this.systemSpecificData[ idx ] = inputStream.readUByte();
       }
  };

  dis.IFFFundamentalParameterData.prototype.encodeToBinary = function(outputStream)
  {
       outputStream.writeFloat32(this.erp);
       outputStream.writeFloat32(this.frequency);
       outputStream.writeFloat32(this.pgrf);
       outputStream.writeFloat32(this.pulseWidth);
       outputStream.writeUInt(this.burstLength);
       outputStream.writeUByte(this.applicableModes);
       for(var idx = 0; idx < 3; idx++)
       {
          outputStream.writeUByte(this.systemSpecificData[ idx ] );
       }
  };
}; // end of class

 // node.js module support
exports.IFFFundamentalParameterData = dis.IFFFundamentalParameterData;

// End of IFFFundamentalParameterData class

