edu.nps.moves.dis7mobile
Class LinearSegmentParameter

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

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

The specification of an individual segment of a linear segment synthetic environment object in a Linear Object State PDU Section 6.2.53 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  int generalSegmentAppearance
          general dynamic appearance attributes of the segment.
protected  int segmentDepth
          The depth of the linear segment, in meters, below ground level
protected  int segmentHeight
          The height of the linear segment, in meters, above ground shall be specified by a 16-bit unsigned integer.
protected  int segmentLength
          length of the linear segment, in meters, extending in the positive X direction
protected  Vector3Double segmentLocation
          This field shall specify the location of the linear segment in the simulated world and shall be represented by a World Coordinates record
protected  short segmentModification
          whether a modification has been made to the point objects location or orientation
protected  short segmentNumber
          the individual segment of the linear segment
protected  EulerAngles segmentOrientation
          orientation of the linear segment about the segment location and shall be represented by a Euler Angles record
protected  int segmentWidth
          The total width of the linear segment, in meters, shall be specified by a 16-bit unsigned integer.
protected  int specificSegmentAppearance
          This field shall specify specific dynamic appearance attributes of the segment.
 
Constructor Summary
LinearSegmentParameter()
          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
 int getGeneralSegmentAppearance()
           
 int getMarshalledSize()
           
 int getSegmentDepth()
           
 int getSegmentHeight()
           
 int getSegmentLength()
           
 Vector3Double getSegmentLocation()
           
 short getSegmentModification()
           
 short getSegmentNumber()
           
 EulerAngles getSegmentOrientation()
           
 int getSegmentWidth()
           
 int getSpecificSegmentAppearance()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setGeneralSegmentAppearance(int pGeneralSegmentAppearance)
           
 void setSegmentDepth(int pSegmentDepth)
           
 void setSegmentHeight(int pSegmentHeight)
           
 void setSegmentLength(int pSegmentLength)
           
 void setSegmentLocation(Vector3Double pSegmentLocation)
           
 void setSegmentModification(short pSegmentModification)
           
 void setSegmentNumber(short pSegmentNumber)
           
 void setSegmentOrientation(EulerAngles pSegmentOrientation)
           
 void setSegmentWidth(int pSegmentWidth)
           
 void setSpecificSegmentAppearance(int pSpecificSegmentAppearance)
           
 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

segmentNumber

protected short segmentNumber
the individual segment of the linear segment


segmentModification

protected short segmentModification
whether a modification has been made to the point objects location or orientation


generalSegmentAppearance

protected int generalSegmentAppearance
general dynamic appearance attributes of the segment. This record shall be defined as a 16-bit record of enumerations. The values defined for this record are included in Section 12 of SISO-REF-010.


specificSegmentAppearance

protected int specificSegmentAppearance
This field shall specify specific dynamic appearance attributes of the segment. This record shall be defined as a 32-bit record of enumerations.


segmentLocation

protected Vector3Double segmentLocation
This field shall specify the location of the linear segment in the simulated world and shall be represented by a World Coordinates record


segmentOrientation

protected EulerAngles segmentOrientation
orientation of the linear segment about the segment location and shall be represented by a Euler Angles record


segmentLength

protected int segmentLength
length of the linear segment, in meters, extending in the positive X direction


segmentWidth

protected int segmentWidth
The total width of the linear segment, in meters, shall be specified by a 16-bit unsigned integer. One-half of the width shall extend in the positive Y direction, and one-half of the width shall extend in the negative Y direction.


segmentHeight

protected int segmentHeight
The height of the linear segment, in meters, above ground shall be specified by a 16-bit unsigned integer.


segmentDepth

protected int segmentDepth
The depth of the linear segment, in meters, below ground level

Constructor Detail

LinearSegmentParameter

public LinearSegmentParameter()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()

setSegmentNumber

public void setSegmentNumber(short pSegmentNumber)

getSegmentNumber

public short getSegmentNumber()

setSegmentModification

public void setSegmentModification(short pSegmentModification)

getSegmentModification

public short getSegmentModification()

setGeneralSegmentAppearance

public void setGeneralSegmentAppearance(int pGeneralSegmentAppearance)

getGeneralSegmentAppearance

public int getGeneralSegmentAppearance()

setSpecificSegmentAppearance

public void setSpecificSegmentAppearance(int pSpecificSegmentAppearance)

getSpecificSegmentAppearance

public int getSpecificSegmentAppearance()

setSegmentLocation

public void setSegmentLocation(Vector3Double pSegmentLocation)

getSegmentLocation

public Vector3Double getSegmentLocation()

setSegmentOrientation

public void setSegmentOrientation(EulerAngles pSegmentOrientation)

getSegmentOrientation

public EulerAngles getSegmentOrientation()

setSegmentLength

public void setSegmentLength(int pSegmentLength)

getSegmentLength

public int getSegmentLength()

setSegmentWidth

public void setSegmentWidth(int pSegmentWidth)

getSegmentWidth

public int getSegmentWidth()

setSegmentHeight

public void setSegmentHeight(int pSegmentHeight)

getSegmentHeight

public int getSegmentHeight()

setSegmentDepth

public void setSegmentDepth(int pSegmentDepth)

getSegmentDepth

public int getSegmentDepth()

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.