public class MinefieldStatePdu extends MinefieldFamilyPdu implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
appearance
appearance bitflags
|
protected short |
forceID
force ID
|
protected EntityID |
minefieldID
Minefield ID
|
protected Vector3Double |
minefieldLocation
location of minefield in world coords
|
protected Orientation |
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<Point> |
perimeterPoints
perimeter points for the minefield
|
protected int |
protocolMode
protocolMode
|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp| Constructor and Description |
|---|
MinefieldStatePdu()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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() |
EntityID |
getMinefieldID() |
Vector3Double |
getMinefieldLocation() |
Orientation |
getMinefieldOrientation() |
int |
getMinefieldSequence() |
EntityType |
getMinefieldType() |
java.util.List<EntityType> |
getMineType() |
int |
getNumberOfMineTypes() |
short |
getNumberOfPerimeterPoints() |
java.util.List<Point> |
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(EntityID pMinefieldID) |
void |
setMinefieldLocation(Vector3Double pMinefieldLocation) |
void |
setMinefieldOrientation(Orientation 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<Point> pPerimeterPoints) |
void |
setProtocolMode(int pProtocolMode) |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
void |
unmarshal(java.io.DataInputStream dis) |
getExerciseID, getLength, getPadding, getPduLength, getPduType, getPduTypeEnum, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, marshalWithDisAbsoluteTimestamp, marshalWithDisAbsoluteTimestamp, marshalWithDisRelativeTimestamp, marshalWithDisRelativeTimestamp, marshalWithNpsTimestamp, marshalWithNpsTimestamp, marshalWithUnixTimestamp, marshalWithUnixTimestamp, readUnsignedInt, readUnsignedInt, setExerciseID, setPadding, setPduLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestampprotected EntityID minefieldID
protected int minefieldSequence
protected short forceID
protected short numberOfPerimeterPoints
protected EntityType minefieldType
protected int numberOfMineTypes
protected Vector3Double minefieldLocation
protected Orientation minefieldOrientation
protected int appearance
protected int protocolMode
protected java.util.List<Point> perimeterPoints
protected java.util.List<EntityType> mineType
public int getMarshalledSize()
getMarshalledSize in class MinefieldFamilyPdupublic void setMinefieldID(EntityID pMinefieldID)
public EntityID 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(Orientation pMinefieldOrientation)
public Orientation getMinefieldOrientation()
public void setAppearance(int pAppearance)
public int getAppearance()
public void setProtocolMode(int pProtocolMode)
public int getProtocolMode()
public void setPerimeterPoints(java.util.List<Point> pPerimeterPoints)
public java.util.List<Point> 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 MinefieldFamilyPdupublic void unmarshal(java.io.DataInputStream dis)
unmarshal in class MinefieldFamilyPdupublic void marshal(java.nio.ByteBuffer buff)
marshal in class MinefieldFamilyPdubuff - The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException - if buff is too smalljava.nio.ReadOnlyBufferException - if buff is read onlyByteBufferpublic void unmarshal(java.nio.ByteBuffer buff)
unmarshal in class MinefieldFamilyPdubuff - The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException - if buff is too smallByteBufferpublic boolean equals(java.lang.Object obj)
equals in class MinefieldFamilyPdupublic boolean equalsImpl(java.lang.Object obj)
Pduthis and the supplied objectequalsImpl in class MinefieldFamilyPduobj - the object to compare to