|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dismobile.Pdu
edu.nps.moves.dismobile.SyntheticEnvironmentFamilyPdu
edu.nps.moves.dismobile.GriddedDataPdu
public class GriddedDataPdu
Section 5.3.11.2: Information about globat, spatially varying enviornmental effects. This requires manual cleanup; the grid axis records are variable sized. UNFINISHED 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 short |
constantGrid
are domain grid axes identidal to those of the priveious domain update? |
protected int |
coordinateSystem
coordinate system of the grid |
protected EntityID |
environmentalSimulationApplicationID
environmental simulation application ID |
protected EntityType |
environmentType
type of environment |
protected int |
fieldNumber
unique identifier for each piece of enviornmental data |
protected java.util.List<GridAxisRecord> |
gridDataList
Grid data ^^^This is wrong |
protected short |
numberOfGridAxes
number of grid axes for the environmental data |
protected Orientation |
orientation
orientation of the data grid |
protected int |
padding1
padding |
protected short |
padding2
padding |
protected int |
pduNumber
sequence number for the total set of PDUS used to transmit the data |
protected int |
pduTotal
Total number of PDUS used to transmit the data |
protected long |
sampleTime
valid time of the enviormental data sample, 64 bit unsigned int |
protected long |
totalValues
total number of all data values for all pdus for an environmental sample |
protected short |
vectorDimension
total number of data values at each grid point. |
Fields inherited from class edu.nps.moves.dismobile.Pdu |
---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
GriddedDataPdu()
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 |
short |
getConstantGrid()
|
int |
getCoordinateSystem()
|
EntityID |
getEnvironmentalSimulationApplicationID()
|
EntityType |
getEnvironmentType()
|
int |
getFieldNumber()
|
java.util.List<GridAxisRecord> |
getGridDataList()
|
int |
getMarshalledSize()
|
short |
getNumberOfGridAxes()
|
Orientation |
getOrientation()
|
int |
getPadding1()
|
short |
getPadding2()
|
int |
getPduNumber()
|
int |
getPduTotal()
|
long |
getSampleTime()
|
long |
getTotalValues()
|
short |
getVectorDimension()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setConstantGrid(short pConstantGrid)
|
void |
setCoordinateSystem(int pCoordinateSystem)
|
void |
setEnvironmentalSimulationApplicationID(EntityID pEnvironmentalSimulationApplicationID)
|
void |
setEnvironmentType(EntityType pEnvironmentType)
|
void |
setFieldNumber(int pFieldNumber)
|
void |
setGridDataList(java.util.List<GridAxisRecord> pGridDataList)
|
void |
setNumberOfGridAxes(short pNumberOfGridAxes)
Note that setting this value will not change the marshalled value. |
void |
setOrientation(Orientation pOrientation)
|
void |
setPadding1(int pPadding1)
|
void |
setPadding2(short pPadding2)
|
void |
setPduNumber(int pPduNumber)
|
void |
setPduTotal(int pPduTotal)
|
void |
setSampleTime(long pSampleTime)
|
void |
setTotalValues(long pTotalValues)
|
void |
setVectorDimension(short pVectorDimension)
|
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 EntityID environmentalSimulationApplicationID
protected int fieldNumber
protected int pduNumber
protected int pduTotal
protected int coordinateSystem
protected short numberOfGridAxes
protected short constantGrid
protected EntityType environmentType
protected Orientation orientation
protected long sampleTime
protected long totalValues
protected short vectorDimension
protected int padding1
protected short padding2
protected java.util.List<GridAxisRecord> gridDataList
Constructor Detail |
---|
public GriddedDataPdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class SyntheticEnvironmentFamilyPdu
public void setEnvironmentalSimulationApplicationID(EntityID pEnvironmentalSimulationApplicationID)
public EntityID getEnvironmentalSimulationApplicationID()
public void setFieldNumber(int pFieldNumber)
public int getFieldNumber()
public void setPduNumber(int pPduNumber)
public int getPduNumber()
public void setPduTotal(int pPduTotal)
public int getPduTotal()
public void setCoordinateSystem(int pCoordinateSystem)
public int getCoordinateSystem()
public short getNumberOfGridAxes()
public void setNumberOfGridAxes(short pNumberOfGridAxes)
public void setConstantGrid(short pConstantGrid)
public short getConstantGrid()
public void setEnvironmentType(EntityType pEnvironmentType)
public EntityType getEnvironmentType()
public void setOrientation(Orientation pOrientation)
public Orientation getOrientation()
public void setSampleTime(long pSampleTime)
public long getSampleTime()
public void setTotalValues(long pTotalValues)
public long getTotalValues()
public void setVectorDimension(short pVectorDimension)
public short getVectorDimension()
public void setPadding1(int pPadding1)
public int getPadding1()
public void setPadding2(short pPadding2)
public short getPadding2()
public void setGridDataList(java.util.List<GridAxisRecord> pGridDataList)
public java.util.List<GridAxisRecord> getGridDataList()
public void marshal(java.io.DataOutputStream dos)
marshal
in class SyntheticEnvironmentFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class SyntheticEnvironmentFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class SyntheticEnvironmentFamilyPdu
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 SyntheticEnvironmentFamilyPdu
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 SyntheticEnvironmentFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied object
equalsImpl
in class SyntheticEnvironmentFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |