public class CollisionElasticPdu extends EntityInformationFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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.
|
protected EntityID |
collidingEntityID
This field shall identify the entity that has collided with the issuing entity.
|
protected EventIdentifier |
collisionEventID
This field shall contain an identification generated by the issuing simulation application to associate related collision events.
|
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)
|
protected float |
collisionIntermediateResultXY
tensor values
|
protected float |
collisionIntermediateResultXZ
tensor values
|
protected float |
collisionIntermediateResultYY
tensor values
|
protected float |
collisionIntermediateResultYZ
tensor values
|
protected float |
collisionIntermediateResultZZ
tensor values
|
protected Vector3Float |
contactVelocity
This field shall contain the velocity at the time the collision is detected at the point the collision is detected.
|
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)
|
protected Vector3Float |
locationOfImpact
This field shall specify the location of the collision with respect to the entity with which the issuing entity collided.
|
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
|
protected short |
pad
some padding
|
protected Vector3Float |
unitSurfaceNormal
This record shall represent the normal vector to the surface at the point of collision detection.
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
CollisionElasticPdu()
Constructor
|
getPadding, getPduStatus, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID issuingEntityID
protected EntityID collidingEntityID
protected EventIdentifier collisionEventID
protected short pad
protected Vector3Float contactVelocity
protected float mass
protected Vector3Float locationOfImpact
protected float collisionIntermediateResultXX
protected float collisionIntermediateResultXY
protected float collisionIntermediateResultXZ
protected float collisionIntermediateResultYY
protected float collisionIntermediateResultYZ
protected float collisionIntermediateResultZZ
protected Vector3Float unitSurfaceNormal
protected float coefficientOfRestitution
public int getMarshalledSize()
getMarshalledSize
in class EntityInformationFamilyPdu
public CollisionElasticPdu setIssuingEntityID(EntityID pIssuingEntityID)
issuingEntityID
public EntityID getIssuingEntityID()
issuingEntityID
public CollisionElasticPdu setCollidingEntityID(EntityID pCollidingEntityID)
collidingEntityID
public EntityID getCollidingEntityID()
collidingEntityID
public CollisionElasticPdu setCollisionEventID(EventIdentifier pCollisionEventID)
collisionEventID
public EventIdentifier getCollisionEventID()
collisionEventID
public CollisionElasticPdu setPad(short pPad)
pad
public short getPad()
pad
public CollisionElasticPdu setContactVelocity(Vector3Float pContactVelocity)
contactVelocity
public Vector3Float getContactVelocity()
contactVelocity
public CollisionElasticPdu setMass(float pMass)
mass
public float getMass()
mass
public CollisionElasticPdu setLocationOfImpact(Vector3Float pLocationOfImpact)
locationOfImpact
public Vector3Float getLocationOfImpact()
locationOfImpact
public CollisionElasticPdu setCollisionIntermediateResultXX(float pCollisionIntermediateResultXX)
collisionIntermediateResultXX
public float getCollisionIntermediateResultXX()
collisionIntermediateResultXX
public CollisionElasticPdu setCollisionIntermediateResultXY(float pCollisionIntermediateResultXY)
collisionIntermediateResultXY
public float getCollisionIntermediateResultXY()
collisionIntermediateResultXY
public CollisionElasticPdu setCollisionIntermediateResultXZ(float pCollisionIntermediateResultXZ)
collisionIntermediateResultXZ
public float getCollisionIntermediateResultXZ()
collisionIntermediateResultXZ
public CollisionElasticPdu setCollisionIntermediateResultYY(float pCollisionIntermediateResultYY)
collisionIntermediateResultYY
public float getCollisionIntermediateResultYY()
collisionIntermediateResultYY
public CollisionElasticPdu setCollisionIntermediateResultYZ(float pCollisionIntermediateResultYZ)
collisionIntermediateResultYZ
public float getCollisionIntermediateResultYZ()
collisionIntermediateResultYZ
public CollisionElasticPdu setCollisionIntermediateResultZZ(float pCollisionIntermediateResultZZ)
collisionIntermediateResultZZ
public float getCollisionIntermediateResultZZ()
collisionIntermediateResultZZ
public CollisionElasticPdu setUnitSurfaceNormal(Vector3Float pUnitSurfaceNormal)
unitSurfaceNormal
public Vector3Float getUnitSurfaceNormal()
unitSurfaceNormal
public CollisionElasticPdu setCoefficientOfRestitution(float pCoefficientOfRestitution)
coefficientOfRestitution
public float getCoefficientOfRestitution()
coefficientOfRestitution
public void marshal(java.io.DataOutputStream dos)
marshal
in class EntityInformationFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class EntityInformationFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
unmarshal
in class EntityInformationFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class EntityInformationFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class EntityInformationFamilyPdu
obj
- the object to compare to