mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetMgrImpl.java
private synchronized void eventExecuteCommandResponse(final Message message, final int systemId) throws 
            InvalidProtocolBufferException
    {
        final ExecuteCommandResponseData commandData = (ExecuteCommandResponseData) message;
        
        final AssetModel model = getAssetModelByUuid(SharedMessageUtils.convertProtoUUIDtoUUID(
                commandData.getUuid()), systemId);
        
        if (commandData.getResponseType() == CommandTypesGen.CommandResponse.Enum.GET_POSITION_RESPONSE)
        {
            final GetPositionResponseGen.GetPositionResponse data = GetPositionResponseGen.GetPositionResponse.
                    parseFrom(commandData.getResponse());

            if (model == null)
            {
                return;
            }

            if (data.hasLocation())
            {
                model.setCoordinates(data.getLocation());
            }
            else
            {
                model.setCoordinates(null);
            }

            if (data.hasOrientation())
            {
                model.setOrientation(data.getOrientation());
            }
            else
            {
                model.setOrientation(null);
            }
            
            createAssetEvent(TOPIC_ASSET_LOCATION_UPDATED, model, new HashMap<String, Object>());
        }
    }
/**
     * Event response handling for the asset namespace's GetStatusResponse.
     * @param message
     *     the message that contains the response information
     * @param systemId
     *     the system ID from which the response message originated
     * @throws InvalidProtocolBufferException
     *      proto was invalid
     */
Event response handling for the asset namespace's GetStatusResponse.
@param message
the message that contains the response information
@param systemId
the system ID from which the response message originated
@throws InvalidProtocolBufferException
proto was invalid
Event response handling for the asset namespace ' s GetStatusResponse . @param message the message that contains the response information @param systemId the system ID from which the response message originated @throws InvalidProtocolBufferException proto was invalid
private synchronized void eventExecuteCommandResponse(final Message message, final int systemId) throws 
            InvalidProtocolBufferException
    {
        final ExecuteCommandResponseData commandData = (ExecuteCommandResponseData) message;
        final AssetModel model = getAssetModelByUuid(SharedMessageUtils.convertProtoUUIDtoUUID(
                commandData.getUuid()), systemId);
        if (commandData.getResponseType() == CommandTypesGen.CommandResponse.Enum.GET_POSITION_RESPONSE)
        {
            final GetPositionResponseGen.GetPositionResponse data = GetPositionResponseGen.GetPositionResponse.
                    parseFrom(commandData.getResponse());
            if (model == null)
            {
                return;
            }
            if (data.hasLocation())
            {
                model.setCoordinates(data.getLocation());
            }
            else
            {
                model.setCoordinates(null);
            }
            if (data.hasOrientation())
            {
                model.setOrientation(data.getOrientation());
            }
            else
            {
                model.setOrientation(null);
            }
            createAssetEvent(TOPIC_ASSET_LOCATION_UPDATED, model, new HashMap<String, Object>());
        }
    }
private synchronized void eventExecuteCommandResponse ( final Message message , final int systemId ) throws InvalidProtocolBufferException { final ExecuteCommandResponseData commandData = ( ExecuteCommandResponseData ) message ; final AssetModel model = getAssetModelByUuid ( SharedMessageUtils . convertProtoUUIDtoUUID ( commandData . getUuid ( ) ) , systemId ) ; if ( commandData . getResponseType ( ) == CommandTypesGen . CommandResponse . Enum . GET_POSITION_RESPONSE ) { final GetPositionResponseGen . GetPositionResponse data = GetPositionResponseGen . GetPositionResponse . parseFrom ( commandData . getResponse ( ) ) ; if ( model == null ) { return ; } if ( data . hasLocation ( ) ) { model . setCoordinates ( data . getLocation ( ) ) ; } else { model . setCoordinates ( null ) ; } if ( data . hasOrientation ( ) ) { model . setOrientation ( data . getOrientation ( ) ) ; } else { model . setOrientation ( null ) ; } createAssetEvent ( TOPIC_ASSET_LOCATION_UPDATED , model , new HashMap < String , Object > ( ) ) ; } }
Event response handling for the asset namespace's GetStatusResponse.
Event response handling for the asset namespace ' s GetStatusResponse .