Class ObjectType
java.lang.Object
edu.nps.moves.dis7.pdus.ObjectType
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
_14Tree
,_2Lane
,_2Lane
,_2Roll
,_3Roll
,_4Lane
,_4Lane
,_8Tree
,Abatis
,AirBurst
,ApartmentBuilding
,ArealObject
,ArmoredVehicle
,Artillery
,AVLB
,Barrier
,BarrierConstruction
,BarrierFenceChain6foot
,BarrierFenceWood6foot
,BarrierHESCOBasketDoubleStacked
,BarrierHESCOBasketLarge
,BarrierHESCOBasketMedium
,BarrierHESCOBasketSmall
,BarrierJerseyPlastic
,BarrierTexas
,Breach
,BuildingRubble
,BuildingStructure
,ChainLinkFence
,Church
,ConcertinaWire
,ConcreteBarrier
,ContainerBasedBuilding
,ContainerBasedBuildingBridgeSingle
,ContainerBasedBuildingFOB
,ContainerBasedBuildingHouseDouble
,ContainerBasedBuildingHouseSingle
,ContainerBasedBuildingHouseSingleRailing
,ContainerBasedBuildingMosqueSingle
,ContainerBasedBuildingStoreSingle
,CoveredMachineGunBunker
,Crater
,Culturalfeature
,Culturalfeature
,DisturbedEarth
,DisturbedRoad
,DisturbedRoadAsphalt
,DisturbedRoadConcrete
,DisturbedRoadGravel
,DragonsTeeth
,EnvironmentalObject
,ExhaustSmoke
,FightingVehicle
,Flood
,FloodLarge
,FloodMedium
,FloodSmall
,FOBGuardTower
,FOBTrailerOffice
,GovernmentBuilding
,Grenade
,GroundBurst
,GuardHouse
,Hanger
,Hasty
,HastyFightingPosition
,IndustrialBuilding
,IndustrialProcessingPlant
,InfantryFightingPosition
,JointAssaultBridgeJAB
,Large
,LargeAreaMaintenanceShelterLAMSAviationMaintenanceAM
,LargeAreaMaintenanceShelterLAMSVehicleMaintenanceVM
,LightweightMaintenanceEnclosureLMEBradley
,LightweightMaintenanceEnclosureLMEM1
,LinearObject
,LogCrib
,M18Green
,M18Red
,M18Violet
,M18Yellow
,M60A1
,M83White
,MaintenanceStructure
,Medium
,MicrowaveTower
,Minefield
,MinefieldLaneMarker
,MortarCarrier
,MOUTBuilding
,MOUTBuildingApartment
,MOUTBuildingChurch
,MOUTBuildingControlTower
,MOUTBuildingFarmHouse
,MOUTBuildingFireStation
,MOUTBuildingGasStation
,MOUTBuildingHospital
,MOUTBuildingHouse
,MOUTBuildingMudbrickHouse
,MOUTBuildingMudbrickStore
,MOUTBuildingOfficeBuilding
,MOUTBuildingPoliceStation
,MOUTBuildingPowerStation
,MOUTBuildingSchool
,MOUTBuildingStore
,MOUTBuildingWarehouse
,MOUTBuildingWaterTower
,MTU20
,NBCHazardMarker
,NonCoveredInfantryPosition
,NonCoveredMachineGunBunker
,Obstacle
,Obstacle
,Obstacle
,Obstaclebreach
,Obstaclemarker
,Obstaclemarker
,OilRefinery
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,Other
,OverheadCoveredInfantryPosition
,Passageway
,Pier
,PointObject
,PortaPotty
,PotHole
,PowerPylon
,Prepared
,Preparedposition
,Pump
,PumpGas
,RadioTower1000ft
,RadioTower100ft
,RadioTower500ft
,RadioTVTower
,Rectangular
,RibbonBridge
,RockDrop
,RockDropCovered
,RockDropUncovered
,Rut
,Scattered
,School
,Small
,Solitary
,SpeedBump
,StationaryBridge
,Tacticalsmoke
,Tacticalsmoke
,TacticalSmokeCanister
,Tank
,TankDitch
,Tent
,TentArctic
,TentBedouin
,TentChemicallyandBiologicalProtectedShelterCBPS
,TentExpandableFrame
,TentFritsche
,TentKuchi
,TentLarge
,TentMedium
,TentModularGeneralPurposeTentSystemMGPTS
,TentSmall
,TentTEMPER
,TracksTire
,TransformerYard
,TreeDeciduous
,TreeDeciduousLarge
,TreeDeciduousMedium
,TreeDeciduousSmall
,TreeEvergreen
,TreeEvergreenLarge
,TreeEvergreenMedium
,TreeEvergreenSmall
,Triangular
,UtilityPole
,VehicleDefilade
,Windmill
,Wire
,WireCrush
The unique designation of an environmental object. Section 6.2.64
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte
category of entityprotected PlatformDomain
Domain of entity (air, surface, subsurface, space, etc.) uid 8protected ObjectKind
country to which the design of the entity is attributed uid 225protected byte
subcategory of entity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
equalsImpl
(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied objectbyte
Getter forcategory
Getter fordomain
int
Returns size of this serialized (marshalled) object in bytesGetter forobjectKind
byte
Getter forsubCategory
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setCategory
(byte pCategory) Setter forcategory
setCategory
(int pCategory) Utility setter forcategory
setDomain
(PlatformDomain pDomain) Setter fordomain
setObjectKind
(ObjectKind pObjectKind) Setter forobjectKind
setSubCategory
(byte pSubCategory) Setter forsubCategory
setSubCategory
(int pSubCategory) Utility setter forsubCategory
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
domain
Domain of entity (air, surface, subsurface, space, etc.) uid 8 -
objectKind
country to which the design of the entity is attributed uid 225 -
category
protected byte categorycategory of entity -
subCategory
protected byte subCategorysubcategory of entity
-
-
Constructor Details
-
ObjectType
public ObjectType()Constructor creates and configures a new instance object
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
setDomain
Setter fordomain
- Parameters:
pDomain
- new value of interest- Returns:
- same object to permit progressive setters
-
getDomain
-
setObjectKind
Setter forobjectKind
- Parameters:
pObjectKind
- new value of interest- Returns:
- same object to permit progressive setters
-
getObjectKind
-
setCategory
Setter forcategory
- Parameters:
pCategory
- new value of interest- Returns:
- same object to permit progressive setters
-
setCategory
Utility setter forcategory
- Parameters:
pCategory
- new value of interest- Returns:
- same object to permit progressive setters
-
getCategory
-
setSubCategory
Setter forsubCategory
- Parameters:
pSubCategory
- new value of interest- Returns:
- same object to permit progressive setters
-
setSubCategory
Utility setter forsubCategory
- Parameters:
pSubCategory
- new value of interest- Returns:
- same object to permit progressive setters
-
getSubCategory
-
marshal
Serializes an object to a DataOutputStream.- Parameters:
dos
- the OutputStream- Throws:
Exception
- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Parameters:
dis
- the InputStream- Returns:
- marshalled serialized size in bytes
- Throws:
Exception
- if something goes wrong- See Also:
-
marshal
Packs an object into the ByteBuffer.- Parameters:
byteBuffer
- The ByteBuffer at the position to begin writing- Throws:
BufferOverflowException
- if byteBuffer is too smallReadOnlyBufferException
- if byteBuffer is read onlyException
- ByteBuffer-generated exception- See Also:
-
unmarshal
Unpacks a Pdu from the underlying data.- Parameters:
byteBuffer
- The ByteBuffer at the position to begin reading- Returns:
- marshalled serialized size in bytes
- Throws:
BufferUnderflowException
- if byteBuffer is too smallException
- ByteBuffer-generated exception- See Also:
-
equals
-
equalsImpl
Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied object- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-