< Summary

Class:Simulation.Transformation
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/Transformation.cs
Covered lines:0
Uncovered lines:194
Coverable lines:194
Total lines:459
Line coverage:0% (0 of 194)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:27
Method coverage:0% (0 of 27)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Transformation()0%2100%
get_Descriptor()0%2100%
Transformation()0%2100%
Transformation(...)0%1321100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%72800%
GetHashCode()0%56700%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%56700%
CalculateSize()0%56700%
MergeFrom(...)0%1561200%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%2101400%

File(s)

/github/workspace/Assets/Scripts/Generated/Proto/Transformation.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Simulation/transformation.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021, 8981
 6#region Designer generated code
 7
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace Simulation {
 13
 14  /// <summary>Holder for reflection information generated from Simulation/transformation.proto</summary>
 15  public static partial class TransformationReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Simulation/transformation.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TransformationReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ch9TaW11bGF0aW9uL3RyYW5zZm9ybWF0aW9uLnByb3RvEgpzaW11bGF0aW9u",
 28            "GhxTaW11bGF0aW9uL2Nvb3JkaW5hdGVzLnByb3RvIrYCCg5UcmFuc2Zvcm1h",
 29            "dGlvbhIyCghwb3NpdGlvbhgBIAEoCzIgLnNpbXVsYXRpb24uU3BoZXJpY2Fs",
 30            "Q29vcmRpbmF0ZXMSMgoIdmVsb2NpdHkYAiABKAsyIC5zaW11bGF0aW9uLlNw",
 31            "aGVyaWNhbENvb3JkaW5hdGVzEjwKEnBvc2l0aW9uX2NhcnRlc2lhbhgDIAEo",
 32            "CzIgLnNpbXVsYXRpb24uQ2FydGVzaWFuQ29vcmRpbmF0ZXMSPAoSdmVsb2Np",
 33            "dHlfY2FydGVzaWFuGAQgASgLMiAuc2ltdWxhdGlvbi5DYXJ0ZXNpYW5Db29y",
 34            "ZGluYXRlcxJAChZhY2NlbGVyYXRpb25fY2FydGVzaWFuGAUgASgLMiAuc2lt",
 35            "dWxhdGlvbi5DYXJ0ZXNpYW5Db29yZGluYXRlc2IGcHJvdG8z"));
 36      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { global::Simulation.CoordinatesReflection.Descriptor, },
 38          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 39            new pbr::GeneratedClrTypeInfo(typeof(global::Simulation.Transformation), global::Simulation.Transformation.P
 40          }));
 41    }
 42    #endregion
 43
 44  }
 45  #region Messages
 46  /// <summary>
 47  /// Relative transformation between two agents.
 48  /// </summary>
 49  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 50  public sealed partial class Transformation : pb::IMessage<Transformation>
 51  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 52      , pb::IBufferMessage
 53  #endif
 54  {
 055    private static readonly pb::MessageParser<Transformation> _parser = new pb::MessageParser<Transformation>(() => new 
 56    private pb::UnknownFieldSet _unknownFields;
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 059    public static pb::MessageParser<Transformation> Parser { get { return _parser; } }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    public static pbr::MessageDescriptor Descriptor {
 064      get { return global::Simulation.TransformationReflection.Descriptor.MessageTypes[0]; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 69    pbr::MessageDescriptor pb::IMessage.Descriptor {
 070      get { return Descriptor; }
 71    }
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 075    public Transformation() {
 76      OnConstruction();
 077    }
 78
 79    partial void OnConstruction();
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 083    public Transformation(Transformation other) : this() {
 084      position_ = other.position_ != null ? other.position_.Clone() : null;
 085      velocity_ = other.velocity_ != null ? other.velocity_.Clone() : null;
 086      positionCartesian_ = other.positionCartesian_ != null ? other.positionCartesian_.Clone() : null;
 087      velocityCartesian_ = other.velocityCartesian_ != null ? other.velocityCartesian_.Clone() : null;
 088      accelerationCartesian_ = other.accelerationCartesian_ != null ? other.accelerationCartesian_.Clone() : null;
 089      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 090    }
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 094    public Transformation Clone() {
 095      return new Transformation(this);
 096    }
 97
 98    /// <summary>Field number for the "position" field.</summary>
 99    public const int PositionFieldNumber = 1;
 100    private global::Simulation.SphericalCoordinates position_;
 101    /// <summary>
 102    /// Range in m, azimuth and elevation in rad.
 103    /// </summary>
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public global::Simulation.SphericalCoordinates Position {
 0107      get { return position_; }
 0108      set {
 0109        position_ = value;
 0110      }
 111    }
 112
 113    /// <summary>Field number for the "velocity" field.</summary>
 114    public const int VelocityFieldNumber = 2;
 115    private global::Simulation.SphericalCoordinates velocity_;
 116    /// <summary>
 117    /// Range rate in m/s, azimuth and elevation rate in rad/s.
 118    /// </summary>
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public global::Simulation.SphericalCoordinates Velocity {
 0122      get { return velocity_; }
 0123      set {
 0124        velocity_ = value;
 0125      }
 126    }
 127
 128    /// <summary>Field number for the "position_cartesian" field.</summary>
 129    public const int PositionCartesianFieldNumber = 3;
 130    private global::Simulation.CartesianCoordinates positionCartesian_;
 131    /// <summary>
 132    /// Range in m.
 133    /// </summary>
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public global::Simulation.CartesianCoordinates PositionCartesian {
 0137      get { return positionCartesian_; }
 0138      set {
 0139        positionCartesian_ = value;
 0140      }
 141    }
 142
 143    /// <summary>Field number for the "velocity_cartesian" field.</summary>
 144    public const int VelocityCartesianFieldNumber = 4;
 145    private global::Simulation.CartesianCoordinates velocityCartesian_;
 146    /// <summary>
 147    /// Velocity in m/s.
 148    /// </summary>
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public global::Simulation.CartesianCoordinates VelocityCartesian {
 0152      get { return velocityCartesian_; }
 0153      set {
 0154        velocityCartesian_ = value;
 0155      }
 156    }
 157
 158    /// <summary>Field number for the "acceleration_cartesian" field.</summary>
 159    public const int AccelerationCartesianFieldNumber = 5;
 160    private global::Simulation.CartesianCoordinates accelerationCartesian_;
 161    /// <summary>
 162    /// Acceleration in m/s^2.
 163    /// </summary>
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 166    public global::Simulation.CartesianCoordinates AccelerationCartesian {
 0167      get { return accelerationCartesian_; }
 0168      set {
 0169        accelerationCartesian_ = value;
 0170      }
 171    }
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0175    public override bool Equals(object other) {
 0176      return Equals(other as Transformation);
 0177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0181    public bool Equals(Transformation other) {
 0182      if (ReferenceEquals(other, null)) {
 0183        return false;
 184      }
 0185      if (ReferenceEquals(other, this)) {
 0186        return true;
 187      }
 0188      if (!object.Equals(Position, other.Position)) return false;
 0189      if (!object.Equals(Velocity, other.Velocity)) return false;
 0190      if (!object.Equals(PositionCartesian, other.PositionCartesian)) return false;
 0191      if (!object.Equals(VelocityCartesian, other.VelocityCartesian)) return false;
 0192      if (!object.Equals(AccelerationCartesian, other.AccelerationCartesian)) return false;
 0193      return Equals(_unknownFields, other._unknownFields);
 0194    }
 195
 196    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0198    public override int GetHashCode() {
 0199      int hash = 1;
 0200      if (position_ != null) hash ^= Position.GetHashCode();
 0201      if (velocity_ != null) hash ^= Velocity.GetHashCode();
 0202      if (positionCartesian_ != null) hash ^= PositionCartesian.GetHashCode();
 0203      if (velocityCartesian_ != null) hash ^= VelocityCartesian.GetHashCode();
 0204      if (accelerationCartesian_ != null) hash ^= AccelerationCartesian.GetHashCode();
 0205      if (_unknownFields != null) {
 0206        hash ^= _unknownFields.GetHashCode();
 0207      }
 0208      return hash;
 0209    }
 210
 211    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 212    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0213    public override string ToString() {
 0214      return pb::JsonFormatter.ToDiagnosticString(this);
 0215    }
 216
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0219    public void WriteTo(pb::CodedOutputStream output) {
 220    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0221      output.WriteRawMessage(this);
 222    #else
 223      if (position_ != null) {
 224        output.WriteRawTag(10);
 225        output.WriteMessage(Position);
 226      }
 227      if (velocity_ != null) {
 228        output.WriteRawTag(18);
 229        output.WriteMessage(Velocity);
 230      }
 231      if (positionCartesian_ != null) {
 232        output.WriteRawTag(26);
 233        output.WriteMessage(PositionCartesian);
 234      }
 235      if (velocityCartesian_ != null) {
 236        output.WriteRawTag(34);
 237        output.WriteMessage(VelocityCartesian);
 238      }
 239      if (accelerationCartesian_ != null) {
 240        output.WriteRawTag(42);
 241        output.WriteMessage(AccelerationCartesian);
 242      }
 243      if (_unknownFields != null) {
 244        _unknownFields.WriteTo(output);
 245      }
 246    #endif
 0247    }
 248
 249    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 250    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 251    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0252    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0253      if (position_ != null) {
 0254        output.WriteRawTag(10);
 0255        output.WriteMessage(Position);
 0256      }
 0257      if (velocity_ != null) {
 0258        output.WriteRawTag(18);
 0259        output.WriteMessage(Velocity);
 0260      }
 0261      if (positionCartesian_ != null) {
 0262        output.WriteRawTag(26);
 0263        output.WriteMessage(PositionCartesian);
 0264      }
 0265      if (velocityCartesian_ != null) {
 0266        output.WriteRawTag(34);
 0267        output.WriteMessage(VelocityCartesian);
 0268      }
 0269      if (accelerationCartesian_ != null) {
 0270        output.WriteRawTag(42);
 0271        output.WriteMessage(AccelerationCartesian);
 0272      }
 0273      if (_unknownFields != null) {
 0274        _unknownFields.WriteTo(ref output);
 0275      }
 0276    }
 277    #endif
 278
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0281    public int CalculateSize() {
 0282      int size = 0;
 0283      if (position_ != null) {
 0284        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
 0285      }
 0286      if (velocity_ != null) {
 0287        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Velocity);
 0288      }
 0289      if (positionCartesian_ != null) {
 0290        size += 1 + pb::CodedOutputStream.ComputeMessageSize(PositionCartesian);
 0291      }
 0292      if (velocityCartesian_ != null) {
 0293        size += 1 + pb::CodedOutputStream.ComputeMessageSize(VelocityCartesian);
 0294      }
 0295      if (accelerationCartesian_ != null) {
 0296        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccelerationCartesian);
 0297      }
 0298      if (_unknownFields != null) {
 0299        size += _unknownFields.CalculateSize();
 0300      }
 0301      return size;
 0302    }
 303
 304    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 305    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0306    public void MergeFrom(Transformation other) {
 0307      if (other == null) {
 0308        return;
 309      }
 0310      if (other.position_ != null) {
 0311        if (position_ == null) {
 0312          Position = new global::Simulation.SphericalCoordinates();
 0313        }
 0314        Position.MergeFrom(other.Position);
 0315      }
 0316      if (other.velocity_ != null) {
 0317        if (velocity_ == null) {
 0318          Velocity = new global::Simulation.SphericalCoordinates();
 0319        }
 0320        Velocity.MergeFrom(other.Velocity);
 0321      }
 0322      if (other.positionCartesian_ != null) {
 0323        if (positionCartesian_ == null) {
 0324          PositionCartesian = new global::Simulation.CartesianCoordinates();
 0325        }
 0326        PositionCartesian.MergeFrom(other.PositionCartesian);
 0327      }
 0328      if (other.velocityCartesian_ != null) {
 0329        if (velocityCartesian_ == null) {
 0330          VelocityCartesian = new global::Simulation.CartesianCoordinates();
 0331        }
 0332        VelocityCartesian.MergeFrom(other.VelocityCartesian);
 0333      }
 0334      if (other.accelerationCartesian_ != null) {
 0335        if (accelerationCartesian_ == null) {
 0336          AccelerationCartesian = new global::Simulation.CartesianCoordinates();
 0337        }
 0338        AccelerationCartesian.MergeFrom(other.AccelerationCartesian);
 0339      }
 0340      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0341    }
 342
 343    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 344    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0345    public void MergeFrom(pb::CodedInputStream input) {
 346    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0347      input.ReadRawMessage(this);
 348    #else
 349      uint tag;
 350      while ((tag = input.ReadTag()) != 0) {
 351      if ((tag & 7) == 4) {
 352        // Abort on any end group tag.
 353        return;
 354      }
 355      switch(tag) {
 356          default:
 357            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 358            break;
 359          case 10: {
 360            if (position_ == null) {
 361              Position = new global::Simulation.SphericalCoordinates();
 362            }
 363            input.ReadMessage(Position);
 364            break;
 365          }
 366          case 18: {
 367            if (velocity_ == null) {
 368              Velocity = new global::Simulation.SphericalCoordinates();
 369            }
 370            input.ReadMessage(Velocity);
 371            break;
 372          }
 373          case 26: {
 374            if (positionCartesian_ == null) {
 375              PositionCartesian = new global::Simulation.CartesianCoordinates();
 376            }
 377            input.ReadMessage(PositionCartesian);
 378            break;
 379          }
 380          case 34: {
 381            if (velocityCartesian_ == null) {
 382              VelocityCartesian = new global::Simulation.CartesianCoordinates();
 383            }
 384            input.ReadMessage(VelocityCartesian);
 385            break;
 386          }
 387          case 42: {
 388            if (accelerationCartesian_ == null) {
 389              AccelerationCartesian = new global::Simulation.CartesianCoordinates();
 390            }
 391            input.ReadMessage(AccelerationCartesian);
 392            break;
 393          }
 394        }
 395      }
 396    #endif
 0397    }
 398
 399    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 400    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 401    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0402    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 403      uint tag;
 0404      while ((tag = input.ReadTag()) != 0) {
 0405      if ((tag & 7) == 4) {
 406        // Abort on any end group tag.
 0407        return;
 408      }
 0409      switch(tag) {
 410          default:
 0411            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0412            break;
 0413          case 10: {
 0414            if (position_ == null) {
 0415              Position = new global::Simulation.SphericalCoordinates();
 0416            }
 0417            input.ReadMessage(Position);
 0418            break;
 419          }
 0420          case 18: {
 0421            if (velocity_ == null) {
 0422              Velocity = new global::Simulation.SphericalCoordinates();
 0423            }
 0424            input.ReadMessage(Velocity);
 0425            break;
 426          }
 0427          case 26: {
 0428            if (positionCartesian_ == null) {
 0429              PositionCartesian = new global::Simulation.CartesianCoordinates();
 0430            }
 0431            input.ReadMessage(PositionCartesian);
 0432            break;
 433          }
 0434          case 34: {
 0435            if (velocityCartesian_ == null) {
 0436              VelocityCartesian = new global::Simulation.CartesianCoordinates();
 0437            }
 0438            input.ReadMessage(VelocityCartesian);
 0439            break;
 440          }
 0441          case 42: {
 0442            if (accelerationCartesian_ == null) {
 0443              AccelerationCartesian = new global::Simulation.CartesianCoordinates();
 0444            }
 0445            input.ReadMessage(AccelerationCartesian);
 0446            break;
 447          }
 448        }
 0449      }
 0450    }
 451    #endif
 452
 453  }
 454
 455  #endregion
 456
 457}
 458
 459#endregion Designer generated code