Class CollisionElasticPdu

All Implemented Interfaces:
Marshaller, Serializable

public class CollisionElasticPdu extends EntityInformationInteractionFamilyPdu implements Serializable
7.2.4 Information about elastic collisions in a DIS exercise shall be communicated using a Collision-Elastic PDU. See 5.3.4.
See Also:
  • Field Details

    • NAME

      public static final String NAME
      The name of this PDU type
      See Also:
    • issuingEntityID

      protected EntityID issuingEntityID
      This field shall identify the entity that is issuing the PDU and shall be represented by an Entity Identifier record (see 6.2.28)
    • collidingEntityID

      protected EntityID collidingEntityID
      This field shall identify the entity that has collided with the issuing entity. This field shall be a valid identifier of an entity or server capable of responding to the receipt of this Collision-Elastic PDU. This field shall be represented by an Entity Identifier record (see 6.2.28).
    • collisionEventID

      protected EventIdentifier collisionEventID
      This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34).
    • pad

      protected short pad
      some padding
    • contactVelocity

      protected Vector3Float contactVelocity
      This field shall contain the velocity at the time the collision is detected at the point the collision is detected. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)]
    • mass

      protected float mass
      This field shall contain the mass of the issuing entity and shall be represented by a 32-bit floating point number representing kilograms
    • locationOfImpact

      protected Vector3Float locationOfImpact
      This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)].
    • collisionIntermediateResultXX

      protected float collisionIntermediateResultXX
      These six records represent the six independent components of a positive semi-definite matrix formed by pre-multiplying and post-multiplying the tensor of inertia, by the anti-symmetric matrix generated by the moment arm, and shall be represented by 32-bit floating point numbers (see 5.3.4.4)
    • collisionIntermediateResultXY

      protected float collisionIntermediateResultXY
      tensor values
    • collisionIntermediateResultXZ

      protected float collisionIntermediateResultXZ
      tensor values
    • collisionIntermediateResultYY

      protected float collisionIntermediateResultYY
      tensor values
    • collisionIntermediateResultYZ

      protected float collisionIntermediateResultYZ
      tensor values
    • collisionIntermediateResultZZ

      protected float collisionIntermediateResultZZ
      tensor values
    • unitSurfaceNormal

      protected Vector3Float unitSurfaceNormal
      This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)].
    • coefficientOfRestitution

      protected float coefficientOfRestitution
      This field shall represent the degree to which energy is conserved in a collision and shall be represented by a 32-bit floating point number. In addition, it represents a free parameter by which simulation application developers may "tune" their collision interactions.
    • byteArrayOutputStream

      protected ByteArrayOutputStream byteArrayOutputStream
      byteArrayOutputStream (baos) is used for marshal/unmarshal serialization
      See Also:
    • dataOutputStream

      protected DataOutputStream dataOutputStream
      dataOutputStream (dos) is used for marshal/unmarshal serialization
      See Also:
  • Constructor Details

    • CollisionElasticPdu

      public CollisionElasticPdu()
      Constructor creates and configures a new instance object
  • Method Details