edu.nps.moves.dis7mobile
Class BeamAntennaPattern

java.lang.Object
  extended by edu.nps.moves.dis7mobile.BeamAntennaPattern
All Implemented Interfaces:
java.io.Serializable

public class BeamAntennaPattern
extends java.lang.Object
implements java.io.Serializable

Used when the antenna pattern type field has a value of 1. Specifies the direction, pattern, and polarization of radiation from an antenna. Section 6.2.9.2 Copyright (c) 2008-2010, 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
See Also:
Serialized Form

Field Summary
protected  float azimuthBeamwidth
           
protected  EulerAngles beamDirection
          The rotation that transforms the reference coordinate sytem into the beam coordinate system.
protected  float elevationBeamwidth
           
protected  float ex
          This field shall specify the magnitude of the X-component (in beam coordinates) of the Electri- cal field at some arbitrary single point in the main beam and in the far field of the antenna.
protected  float ez
          This field shall specify the magnitude of the Z-component (in beam coordinates) of the Electrical field at some arbitrary single point in the main beam and in the far field of the antenna.
protected  short padding1
           
protected  int padding2
           
protected  long padding3
          padding
protected  float phase
          This field shall specify the phase angle between EZ and EX in radians.
protected  float referenceSystem
           
 
Constructor Summary
BeamAntennaPattern()
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equalsImpl(java.lang.Object obj)
          Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object
 float getAzimuthBeamwidth()
           
 EulerAngles getBeamDirection()
           
 float getElevationBeamwidth()
           
 float getEx()
           
 float getEz()
           
 int getMarshalledSize()
           
 short getPadding1()
           
 int getPadding2()
           
 long getPadding3()
           
 float getPhase()
           
 float getReferenceSystem()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setAzimuthBeamwidth(float pAzimuthBeamwidth)
           
 void setBeamDirection(EulerAngles pBeamDirection)
           
 void setElevationBeamwidth(float pElevationBeamwidth)
           
 void setEx(float pEx)
           
 void setEz(float pEz)
           
 void setPadding1(short pPadding1)
           
 void setPadding2(int pPadding2)
           
 void setPadding3(long pPadding3)
           
 void setPhase(float pPhase)
           
 void setReferenceSystem(float pReferenceSystem)
           
 void unmarshal(java.nio.ByteBuffer buff)
          Unpacks a Pdu from the underlying data.
 void unmarshal(java.io.DataInputStream dis)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beamDirection

protected EulerAngles beamDirection
The rotation that transforms the reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by the reference system field of the antenna pattern record.


azimuthBeamwidth

protected float azimuthBeamwidth

elevationBeamwidth

protected float elevationBeamwidth

referenceSystem

protected float referenceSystem

padding1

protected short padding1

padding2

protected int padding2

ez

protected float ez
This field shall specify the magnitude of the Z-component (in beam coordinates) of the Electrical field at some arbitrary single point in the main beam and in the far field of the antenna.


ex

protected float ex
This field shall specify the magnitude of the X-component (in beam coordinates) of the Electri- cal field at some arbitrary single point in the main beam and in the far field of the antenna.


phase

protected float phase
This field shall specify the phase angle between EZ and EX in radians. If fully omni-direc- tional antenna is modeled using beam pattern type one, the omni-directional antenna shall be repre- sented by beam direction Euler angles psi, theta, and phi of zero, an azimuth beamwidth of 2PI, and an elevation beamwidth of PI


padding3

protected long padding3
padding

Constructor Detail

BeamAntennaPattern

public BeamAntennaPattern()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()

setBeamDirection

public void setBeamDirection(EulerAngles pBeamDirection)

getBeamDirection

public EulerAngles getBeamDirection()

setAzimuthBeamwidth

public void setAzimuthBeamwidth(float pAzimuthBeamwidth)

getAzimuthBeamwidth

public float getAzimuthBeamwidth()

setElevationBeamwidth

public void setElevationBeamwidth(float pElevationBeamwidth)

getElevationBeamwidth

public float getElevationBeamwidth()

setReferenceSystem

public void setReferenceSystem(float pReferenceSystem)

getReferenceSystem

public float getReferenceSystem()

setPadding1

public void setPadding1(short pPadding1)

getPadding1

public short getPadding1()

setPadding2

public void setPadding2(int pPadding2)

getPadding2

public int getPadding2()

setEz

public void setEz(float pEz)

getEz

public float getEz()

setEx

public void setEx(float pEx)

getEx

public float getEx()

setPhase

public void setPhase(float pPhase)

getPhase

public float getPhase()

setPadding3

public void setPadding3(long pPadding3)

getPadding3

public long getPadding3()

marshal

public void marshal(java.io.DataOutputStream dos)

unmarshal

public void unmarshal(java.io.DataInputStream dis)

marshal

public void marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.

Parameters:
buff - The ByteBuffer at the position to begin writing
Throws:
java.nio.BufferOverflowException - if buff is too small
java.nio.ReadOnlyBufferException - if buff is read only
Since:
??
See Also:
ByteBuffer

unmarshal

public void unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.

Parameters:
buff - The ByteBuffer at the position to begin reading
Throws:
java.nio.BufferUnderflowException - if buff is too small
Since:
??
See Also:
ByteBuffer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equalsImpl

public boolean equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object

Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.