|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis7mobile.LinearSegmentParameter
public class LinearSegmentParameter
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
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 |
---|
protected short segmentNumber
protected short segmentModification
protected int generalSegmentAppearance
protected int specificSegmentAppearance
protected Vector3Double segmentLocation
protected EulerAngles segmentOrientation
protected int segmentLength
protected int segmentWidth
protected int segmentHeight
protected int segmentDepth
Constructor Detail |
---|
public LinearSegmentParameter()
Method Detail |
---|
public int getMarshalledSize()
public void setSegmentNumber(short pSegmentNumber)
public short getSegmentNumber()
public void setSegmentModification(short pSegmentModification)
public short getSegmentModification()
public void setGeneralSegmentAppearance(int pGeneralSegmentAppearance)
public int getGeneralSegmentAppearance()
public void setSpecificSegmentAppearance(int pSpecificSegmentAppearance)
public int getSpecificSegmentAppearance()
public void setSegmentLocation(Vector3Double pSegmentLocation)
public Vector3Double getSegmentLocation()
public void setSegmentOrientation(EulerAngles pSegmentOrientation)
public EulerAngles getSegmentOrientation()
public void setSegmentLength(int pSegmentLength)
public int getSegmentLength()
public void setSegmentWidth(int pSegmentWidth)
public int getSegmentWidth()
public void setSegmentHeight(int pSegmentHeight)
public int getSegmentHeight()
public void setSegmentDepth(int pSegmentDepth)
public int getSegmentDepth()
public void marshal(java.io.DataOutputStream dos)
public void unmarshal(java.io.DataInputStream dis)
public void marshal(java.nio.ByteBuffer buff)
buff
- The ByteBuffer at the position to begin writing
java.nio.BufferOverflowException
- if buff is too small
java.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
buff
- The ByteBuffer at the position to begin reading
java.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsImpl(java.lang.Object obj)
this
and the supplied object
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |