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

public class ObjectType extends Object implements Serializable
The unique designation of an environmental object. Section 6.2.64
See Also:
  • 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

    • 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

      public ObjectType setDomain(PlatformDomain pDomain)
      Setter for domain
      Parameters:
      pDomain - new value of interest
      Returns:
      same object to permit progressive setters
    • getDomain

      public PlatformDomain getDomain()
      Getter for domain
      Returns:
      value of interest
    • setObjectKind

      public ObjectType setObjectKind(ObjectKind pObjectKind)
      Setter for objectKind
      Parameters:
      pObjectKind - new value of interest
      Returns:
      same object to permit progressive setters
    • getObjectKind

      public ObjectKind getObjectKind()
      Getter for objectKind
      Returns:
      value of interest
    • setCategory

      public ObjectType setCategory(byte pCategory)
      Setter for category
      Parameters:
      pCategory - new value of interest
      Returns:
      same object to permit progressive setters
    • setCategory

      public ObjectType setCategory(int pCategory)
      Utility setter for category
      Parameters:
      pCategory - new value of interest
      Returns:
      same object to permit progressive setters
    • getCategory

      public byte getCategory()
      Getter for category
      Returns:
      value of interest
    • setSubCategory

      public ObjectType setSubCategory(byte pSubCategory)
      Setter for subCategory
      Parameters:
      pSubCategory - new value of interest
      Returns:
      same object to permit progressive setters
    • setSubCategory

      public ObjectType setSubCategory(int pSubCategory)
      Utility setter for subCategory
      Parameters:
      pSubCategory - new value of interest
      Returns:
      same object to permit progressive setters
    • getSubCategory

      public byte getSubCategory()
      Getter for subCategory
      Returns:
      value of interest
    • marshal

      public void marshal(DataOutputStream dos) throws Exception
      Serializes an object to a DataOutputStream.
      Parameters:
      dos - the OutputStream
      Throws:
      Exception - if something goes wrong
      See Also:
    • unmarshal

      public int unmarshal(DataInputStream dis) throws Exception
      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

      public void marshal(ByteBuffer byteBuffer) throws Exception
      Packs an object into the ByteBuffer.
      Parameters:
      byteBuffer - The ByteBuffer at the position to begin writing
      Throws:
      BufferOverflowException - if byteBuffer is too small
      ReadOnlyBufferException - if byteBuffer is read only
      Exception - ByteBuffer-generated exception
      See Also:
    • unmarshal

      public int unmarshal(ByteBuffer byteBuffer) throws Exception
      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 small
      Exception - ByteBuffer-generated exception
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsImpl

      public boolean equalsImpl(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 String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object