|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis7mobile.PduSuperclass
edu.nps.moves.dis7mobile.Pdu
edu.nps.moves.dis7mobile.MinefieldFamilyPdu
edu.nps.moves.dis7mobile.MinefieldStatePdu
public class MinefieldStatePdu
information about the complete minefield. The minefield presence, perimiter, etc. Section 7.9.2 COMPLETE 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 |
appearance
appearance bitflags |
protected short |
forceID
force ID |
protected MinefieldIdentifier |
minefieldID
Minefield ID |
protected Vector3Double |
minefieldLocation
location of center of minefield in world coords |
protected EulerAngles |
minefieldOrientation
orientation of minefield |
protected int |
minefieldSequence
Minefield sequence |
protected EntityType |
minefieldType
type of minefield |
protected java.util.List<EntityType> |
mineType
Type of mines |
protected int |
numberOfMineTypes
how many mine types |
protected short |
numberOfPerimeterPoints
Number of permieter points |
protected java.util.List<Vector2Float> |
perimeterPoints
perimeter points for the minefield |
protected int |
protocolMode
protocolMode. |
Fields inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
padding, pduStatus |
Fields inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
MinefieldStatePdu()
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 |
getAppearance()
|
short |
getForceID()
|
int |
getMarshalledSize()
|
MinefieldIdentifier |
getMinefieldID()
|
Vector3Double |
getMinefieldLocation()
|
EulerAngles |
getMinefieldOrientation()
|
int |
getMinefieldSequence()
|
EntityType |
getMinefieldType()
|
java.util.List<EntityType> |
getMineType()
|
int |
getNumberOfMineTypes()
|
short |
getNumberOfPerimeterPoints()
|
java.util.List<Vector2Float> |
getPerimeterPoints()
|
int |
getProtocolMode()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setAppearance(int pAppearance)
|
void |
setForceID(short pForceID)
|
void |
setMinefieldID(MinefieldIdentifier pMinefieldID)
|
void |
setMinefieldLocation(Vector3Double pMinefieldLocation)
|
void |
setMinefieldOrientation(EulerAngles pMinefieldOrientation)
|
void |
setMinefieldSequence(int pMinefieldSequence)
|
void |
setMinefieldType(EntityType pMinefieldType)
|
void |
setMineType(java.util.List<EntityType> pMineType)
|
void |
setNumberOfMineTypes(int pNumberOfMineTypes)
Note that setting this value will not change the marshalled value. |
void |
setNumberOfPerimeterPoints(short pNumberOfPerimeterPoints)
Note that setting this value will not change the marshalled value. |
void |
setPerimeterPoints(java.util.List<Vector2Float> pPerimeterPoints)
|
void |
setProtocolMode(int pProtocolMode)
|
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data. |
void |
unmarshal(java.io.DataInputStream dis)
|
Methods inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
getPadding, getPduStatus, marshal, setPadding, setPduStatus |
Methods inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MinefieldIdentifier minefieldID
protected int minefieldSequence
protected short forceID
protected short numberOfPerimeterPoints
protected EntityType minefieldType
protected int numberOfMineTypes
protected Vector3Double minefieldLocation
protected EulerAngles minefieldOrientation
protected int appearance
protected int protocolMode
protected java.util.List<Vector2Float> perimeterPoints
protected java.util.List<EntityType> mineType
Constructor Detail |
---|
public MinefieldStatePdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class MinefieldFamilyPdu
public void setMinefieldID(MinefieldIdentifier pMinefieldID)
public MinefieldIdentifier getMinefieldID()
public void setMinefieldSequence(int pMinefieldSequence)
public int getMinefieldSequence()
public void setForceID(short pForceID)
public short getForceID()
public short getNumberOfPerimeterPoints()
public void setNumberOfPerimeterPoints(short pNumberOfPerimeterPoints)
public void setMinefieldType(EntityType pMinefieldType)
public EntityType getMinefieldType()
public int getNumberOfMineTypes()
public void setNumberOfMineTypes(int pNumberOfMineTypes)
public void setMinefieldLocation(Vector3Double pMinefieldLocation)
public Vector3Double getMinefieldLocation()
public void setMinefieldOrientation(EulerAngles pMinefieldOrientation)
public EulerAngles getMinefieldOrientation()
public void setAppearance(int pAppearance)
public int getAppearance()
public void setProtocolMode(int pProtocolMode)
public int getProtocolMode()
public void setPerimeterPoints(java.util.List<Vector2Float> pPerimeterPoints)
public java.util.List<Vector2Float> getPerimeterPoints()
public void setMineType(java.util.List<EntityType> pMineType)
public java.util.List<EntityType> getMineType()
public void marshal(java.io.DataOutputStream dos)
marshal
in class MinefieldFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class MinefieldFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class MinefieldFamilyPdu
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)
unmarshal
in class MinefieldFamilyPdu
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 MinefieldFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
PduSuperclass
this
and the supplied object
equalsImpl
in class MinefieldFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |