Package edu.nps.moves.dis7
Class ObjectType
java.lang.Object
edu.nps.moves.dis7.ObjectType
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
_14Tree
,_2_Lane
,_2_Lane
,_2_Roll
,_3_Roll
,_4_Lane
,_4_Lane
,_8Tree
,Abatis
,AirBurst
,ApartmentBuilding
,ArealObject
,ArmoredVehicle
,Artillery
,AVLB
,Barrier
,Barrier_Construction
,Barrier_Fence_Chain_6_foot
,Barrier_Fence_Wood_6_foot
,Barrier_HESCOBasket_Double_Stacked
,Barrier_HESCOBasket_Large
,Barrier_HESCOBasket_Medium
,Barrier_HESCOBasket_Small
,Barrier_Jersey_Plastic
,Barrier_Texas
,Breach
,Building_Structure
,BuildingRubble
,ChainLinkFence
,Church
,ConcertinaWire
,ConcreteBarrier
,Container_BasedBuilding
,Container_BasedBuilding_Bridge_Single
,Container_BasedBuilding_FOB
,Container_BasedBuilding_House_Double
,Container_BasedBuilding_House_Single
,Container_BasedBuilding_House_Single_Railing
,Container_BasedBuilding_Mosque_Single
,Container_BasedBuilding_Store_Single
,CoveredMachineGunBunker
,Crater
,Culturalfeature
,Culturalfeature
,DisturbedEarth
,DisturbedRoad
,DisturbedRoad_Asphalt
,DisturbedRoad_Concrete
,DisturbedRoad_Gravel
,DragonsTeeth
,EnvironmentalObject
,ExhaustSmoke
,FightingVehicle
,Flood
,Flood_Large
,Flood_Medium
,Flood_Small
,FOB_GuardTower
,FOB_TrailerOffice
,GovernmentBuilding
,Grenade
,GroundBurst
,GuardHouse
,Hanger
,Hasty
,HastyFightingPosition
,IndustrialBuilding
,IndustrialProcessingPlant
,InfantryFightingPosition
,JointAssaultBridgeJAB
,Large
,LargeAreaMaintenanceShelterLAMSAviationMaintenanceAM
,LargeAreaMaintenanceShelterLAMSVehicleMaintenanceVM
,LightweightMaintenanceEnclosureLME_Bradley
,LightweightMaintenanceEnclosureLME_M1
,LinearObject
,LogCrib
,M18_Green
,M18_Red
,M18_Violet
,M18_Yellow
,M60A1
,M83_White
,MaintenanceStructure
,Medium
,MicrowaveTower
,Minefield
,MinefieldLaneMarker
,MortarCarrier
,MOUTBuilding
,MOUTBuilding_Apartment
,MOUTBuilding_Church
,MOUTBuilding_ControlTower
,MOUTBuilding_FarmHouse
,MOUTBuilding_FireStation
,MOUTBuilding_GasStation
,MOUTBuilding_Hospital
,MOUTBuilding_House
,MOUTBuilding_MudbrickHouse
,MOUTBuilding_MudbrickStore
,MOUTBuilding_OfficeBuilding
,MOUTBuilding_PoliceStation
,MOUTBuilding_PowerStation
,MOUTBuilding_School
,MOUTBuilding_Store
,MOUTBuilding_Warehouse
,MOUTBuilding_WaterTower
,MTU20
,NBCHazardMarker
,Non_CoveredInfantryPosition
,Non_CoveredMachineGunBunker
,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
,Pump_Gas
,Radio_TVTower
,RadioTower_1000ft
,RadioTower_100ft
,RadioTower_500ft
,Rectangular
,RibbonBridge
,RockDrop
,RockDrop_Covered
,RockDrop_Uncovered
,Rut
,Scattered
,School
,Small
,Solitary
,SpeedBump
,StationaryBridge
,Tacticalsmoke
,Tacticalsmoke
,TacticalSmoke_Canister
,Tank
,TankDitch
,Tent
,Tent_Arctic
,Tent_Bedouin
,Tent_ChemicallyandBiologicalProtectedShelterCBPS
,Tent_ExpandableFrame
,Tent_Fritsche
,Tent_Kuchi
,Tent_Large
,Tent_Medium
,Tent_ModularGeneralPurposeTentSystemMGPTS
,Tent_Small
,Tent_TEMPER
,Tracks_Tire
,TransformerYard
,Tree_Deciduous
,Tree_Deciduous_Large
,Tree_Deciduous_Medium
,Tree_Deciduous_Small
,Tree_Evergreen
,Tree_Evergreen_Large
,Tree_Evergreen_Medium
,Tree_Evergreen_Small
,Triangular
,UtilityPole
,VehicleDefilade
,Windmill
,Wire
,Wire_Crush
public class ObjectType
extends java.lang.Object
implements java.io.Serializable
The unique designation of an environmental object. Section 6.2.64
IEEE Std 1278.1-2012, IEEE Standard for Distributed Interactive Simulation—Application Protocols
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected byte
category
category of entityprotected PlatformDomain
domain
Domain of entity (air, surface, subsurface, space, etc) uid 8protected ObjectKind
objectKind
country to which the design of the entity is attributed uid 225protected byte
subCategory
subcategory of entity -
Constructor Summary
Constructors Constructor Description ObjectType()
Constructor -
Method Summary
Modifier and Type Method 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, forthis
and the supplied objectbyte
getCategory()
Getter forcategory
PlatformDomain
getDomain()
Getter fordomain
int
getMarshalledSize()
Returns the size of this serialized object in bytesObjectKind
getObjectKind()
Getter forobjectKind
byte
getSubCategory()
Getter forsubCategory
void
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.void
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.ObjectType
setCategory(byte pCategory)
Setter forcategory
ObjectType
setDomain(PlatformDomain pDomain)
Setter fordomain
ObjectType
setObjectKind(ObjectKind pObjectKind)
Setter forobjectKind
ObjectType
setSubCategory(byte pSubCategory)
Setter forsubCategory
java.lang.String
toString()
int
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.int
unmarshal(java.nio.ByteBuffer buff)
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
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns the size of this serialized object in bytes -
setDomain
Setter fordomain
-
getDomain
Getter fordomain
-
setObjectKind
Setter forobjectKind
-
getObjectKind
Getter forobjectKind
-
setCategory
Setter forcategory
-
getCategory
public byte getCategory()Getter forcategory
-
setSubCategory
Setter forsubCategory
-
getSubCategory
public byte getSubCategory()Getter forsubCategory
-
marshal
public void marshal(java.io.DataOutputStream dos) throws java.lang.ExceptionSerializes an object to a DataOutputStream.- Parameters:
dos
- the OutputStream- Throws:
java.lang.Exception
- if something goes wrong- See Also:
DataOutputStream
-
unmarshal
public int unmarshal(java.io.DataInputStream dis) throws java.lang.ExceptionUnserializes an object from a DataInputStream.- Parameters:
dis
- the InputStream- Returns:
- unmarshalled size
- Throws:
java.lang.Exception
- if something goes wrong- See Also:
DataInputStream
-
marshal
public void marshal(java.nio.ByteBuffer buff) throws java.lang.ExceptionPacks an object into the ByteBuffer.- Parameters:
buff
- The ByteBuffer at the position to begin writing- Throws:
java.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exception- See Also:
ByteBuffer
-
unmarshal
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.ExceptionUnpacks a Pdu from the underlying data.- Parameters:
buff
- The ByteBuffer at the position to begin reading- Returns:
- marshalled size
- Throws:
java.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exception- See Also:
ByteBuffer
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
equalsImpl
public boolean equalsImpl(java.lang.Object obj)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
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-