edu.nps.moves.dismobile
Class BeamAntennaPattern

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

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

Section 5.2.4.2. Used when the antenna pattern type field has a value of 1. Specifies the direction, patter, and polarization of radiation from an antenna. 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  Orientation beamDirection
          The rotation that transformst he reference coordinate sytem into the beam coordinate system.
protected  float elevationBeamwidth
           
protected  float ex
          Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna.
protected  float ez
          Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna.
protected  short padding1
           
protected  byte padding2
           
protected  float phase
          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()
           
 Orientation getBeamDirection()
           
 float getElevationBeamwidth()
           
 float getEx()
           
 float getEz()
           
 int getMarshalledSize()
           
 short getPadding1()
           
 byte getPadding2()
           
 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(Orientation pBeamDirection)
           
 void setElevationBeamwidth(float pElevationBeamwidth)
           
 void setEx(float pEx)
           
 void setEz(float pEz)
           
 void setPadding1(short pPadding1)
           
 void setPadding2(byte pPadding2)
           
 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 Orientation beamDirection
The rotation that transformst he 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 teh 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 byte padding2

ez

protected float ez
Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna.


ex

protected float ex
Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna.


phase

protected float phase
THe phase angle between Ez and Ex in radians.

Constructor Detail

BeamAntennaPattern

public BeamAntennaPattern()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()

setBeamDirection

public void setBeamDirection(Orientation pBeamDirection)

getBeamDirection

public Orientation 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(byte pPadding2)

getPadding2

public byte 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()

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.