edu.nps.moves.dis
Class LinearSegmentParameter

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

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

5.2.48: Linear segment parameters 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
 long fk_location
           
 long fk_orientation
           
 long fk_segmentAppearance
           
protected  Vector3Double location
          location
protected  Orientation orientation
          orientation
protected  long pad1
          segment Depth
protected  SixByteChunk segmentAppearance
          segment appearance
protected  int segmentDepth
          segment Depth
protected  int segmentHeight
          segmentHeight
protected  int segmentLength
          segmentLength
protected  short segmentNumber
          number of segments
protected  int segmentWidth
          segmentWidth
 
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
 Vector3Double getLocation()
           
 int getMarshalledSize()
           
 Orientation getOrientation()
           
 long getPad1()
           
 long getPk_LinearSegmentParameter()
          Primary key for hibernate, not part of the DIS standard
 SixByteChunk getSegmentAppearance()
           
 int getSegmentDepth()
           
 int getSegmentHeight()
           
 int getSegmentLength()
           
 short getSegmentNumber()
           
 int getSegmentWidth()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setLocation(Vector3Double pLocation)
           
 void setOrientation(Orientation pOrientation)
           
 void setPad1(long pPad1)
           
 void setPk_LinearSegmentParameter(long pKeyName)
          Hibernate primary key, not part of the DIS standard
 void setSegmentAppearance(SixByteChunk pSegmentAppearance)
           
 void setSegmentDepth(int pSegmentDepth)
           
 void setSegmentHeight(int pSegmentHeight)
           
 void setSegmentLength(int pSegmentLength)
           
 void setSegmentNumber(short pSegmentNumber)
           
 void setSegmentWidth(int pSegmentWidth)
           
 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
number of segments


segmentAppearance

protected SixByteChunk segmentAppearance
segment appearance


location

protected Vector3Double location
location


orientation

protected Orientation orientation
orientation


segmentLength

protected int segmentLength
segmentLength


segmentWidth

protected int segmentWidth
segmentWidth


segmentHeight

protected int segmentHeight
segmentHeight


segmentDepth

protected int segmentDepth
segment Depth


pad1

protected long pad1
segment Depth


fk_segmentAppearance

public long fk_segmentAppearance

fk_location

public long fk_location

fk_orientation

public long fk_orientation
Constructor Detail

LinearSegmentParameter

public LinearSegmentParameter()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()

getPk_LinearSegmentParameter

public long getPk_LinearSegmentParameter()
Primary key for hibernate, not part of the DIS standard


setPk_LinearSegmentParameter

public void setPk_LinearSegmentParameter(long pKeyName)
Hibernate primary key, not part of the DIS standard


setSegmentNumber

public void setSegmentNumber(short pSegmentNumber)

getSegmentNumber

public short getSegmentNumber()

setSegmentAppearance

public void setSegmentAppearance(SixByteChunk pSegmentAppearance)

getSegmentAppearance

public SixByteChunk getSegmentAppearance()

setLocation

public void setLocation(Vector3Double pLocation)

getLocation

public Vector3Double getLocation()

setOrientation

public void setOrientation(Orientation pOrientation)

getOrientation

public Orientation getOrientation()

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

setPad1

public void setPad1(long pPad1)

getPad1

public long getPad1()

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.