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 Details

    • domain

      protected PlatformDomain domain
      Domain of entity (air, surface, subsurface, space, etc) uid 8
    • objectKind

      protected ObjectKind objectKind
      country to which the design of the entity is attributed uid 225
    • category

      protected byte category
      category of entity
    • subCategory

      protected byte subCategory
      subcategory of entity
  • Constructor Details

  • Method Details

    • getMarshalledSize

      public int getMarshalledSize()
      Returns the size of this serialized object in bytes
    • setDomain

      public ObjectType setDomain​(PlatformDomain pDomain)
      Setter for domain
    • getDomain

      public PlatformDomain getDomain()
      Getter for domain
    • setObjectKind

      public ObjectType setObjectKind​(ObjectKind pObjectKind)
      Setter for objectKind
    • getObjectKind

      public ObjectKind getObjectKind()
      Getter for objectKind
    • setCategory

      public ObjectType setCategory​(byte pCategory)
      Setter for category
    • getCategory

      public byte getCategory()
      Getter for category
    • setSubCategory

      public ObjectType setSubCategory​(byte pSubCategory)
      Setter for subCategory
    • getSubCategory

      public byte getSubCategory()
      Getter for subCategory
    • marshal

      public void marshal​(java.io.DataOutputStream dos) throws java.lang.Exception
      Serializes 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.Exception
      Unserializes 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.Exception
      Packs an object into the ByteBuffer.
      Parameters:
      buff - The ByteBuffer at the position to begin writing
      Throws:
      java.nio.BufferOverflowException - if buff is too small
      java.nio.ReadOnlyBufferException - if buff is read only
      java.lang.Exception - ByteBuffer-generated exception
      See Also:
      ByteBuffer
    • unmarshal

      public int unmarshal​(java.nio.ByteBuffer buff) throws java.lang.Exception
      Unpacks 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 small
      java.lang.Exception - ByteBuffer-generated exception
      See Also:
      ByteBuffer
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • equalsImpl

      public 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
      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 class java.lang.Object