Package hla.rti

Examples of hla.rti.AttributeHandleSet


    fgLongitudeHandle = rtiAmbassador.getAttributeHandle("Longitude",
        flightGearHandle);
    fgVelocityHandle = rtiAmbassador.getAttributeHandle("Velocity",
        flightGearHandle);

    AttributeHandleSet attributes = RtiFactoryFactory.getRtiFactory()
        .createAttributeHandleSet();
    attributes.add(fgAltitudeHandle);
    attributes.add(fgLatitudeHandle);
    attributes.add(fgLongitudeHandle);
    attributes.add(fgVelocityHandle);

    rtiAmbassador.subscribeObjectClassAttributes(flightGearHandle,
        attributes);

    int parachuteHandle = rtiAmbassador
        .getObjectClassHandle("HLAobjectRoot.Parachute");
    attributes = RtiFactoryFactory.getRtiFactory()
        .createAttributeHandleSet();
    attributes.add(rtiAmbassador.getAttributeHandle("Altitude",
        parachuteHandle));
    attributes.add(rtiAmbassador.getAttributeHandle("Latitude",
        parachuteHandle));
    attributes.add(rtiAmbassador.getAttributeHandle("Longitude",
        parachuteHandle));
    attributes.add(rtiAmbassador.getAttributeHandle("Status",
        parachuteHandle));
    rtiAmbassador.publishObjectClass(parachuteHandle, attributes);

    int parachuteCommandHandle = rtiAmbassador
        .getInteractionClassHandle("HLAinteractionRoot.ParachuteCommand");
View Full Code Here


    flightGearHandle   = rtiAmbassador.getObjectClassHandle("HLAobjectRoot.FlightGear");
    fgAltitudeHandle   = rtiAmbassador.getAttributeHandle("Altitude", flightGearHandle);
    fgLatitudeHandle   = rtiAmbassador.getAttributeHandle("Latitude", flightGearHandle);
    fgLongitudeHandle = rtiAmbassador.getAttributeHandle("Longitude", flightGearHandle);
   
    AttributeHandleSet attributes = RtiFactoryFactory.getRtiFactory().createAttributeHandleSet();
    attributes.add(fgAltitudeHandle);
    attributes.add(fgLatitudeHandle);
    attributes.add(fgLongitudeHandle);
    rtiAmbassador.subscribeObjectClassAttributes(flightGearHandle, attributes);
   
    parachuteHandle = rtiAmbassador.getObjectClassHandle("HLAobjectRoot.Parachute");
    pStatusHandle   = rtiAmbassador.getAttributeHandle("Status", parachuteHandle);
    pAltitudeHandle   = rtiAmbassador.getAttributeHandle("Altitude", parachuteHandle);
    pLatitudeHandle   = rtiAmbassador.getAttributeHandle("Latitude", parachuteHandle);
    pLongitudeHandle = rtiAmbassador.getAttributeHandle("Longitude", parachuteHandle);

    attributes = RtiFactoryFactory.getRtiFactory().createAttributeHandleSet();
    attributes.add(pStatusHandle);
    attributes.add(pAltitudeHandle);
    attributes.add(pLatitudeHandle);
    attributes.add(pLongitudeHandle);
    rtiAmbassador.subscribeObjectClassAttributes(parachuteHandle, attributes);
  }
View Full Code Here

TOP

Related Classes of hla.rti.AttributeHandleSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.