Exemplo n.º 1
0
	    private void updateAck(UAVObject obj) {
            lock (updateAckSyncLock)
            {
                Debug.WriteLine("Received ack: " + obj.getName());
                //Assert.assertNotNull(obj);
                if (respObj != null && respObj.getObjID() == obj.getObjID()
                        && (respObj.getInstID() == obj.getInstID() || respAllInstances))
                {

                    // Indicate complete
                    respObj = null;

                    // Notify listener
                    if (transactionListener != null)
                        transactionListener.TransactionSucceeded(obj);
                }
            }
	    }
Exemplo n.º 2
0
	    private void receivedNack(UAVObject obj)
	    {
            lock (receivedNackSyncLock)
            {
                if (respObj != null && (respType == uavConsts.TYPE_OBJ_REQ || respType == uavConsts.TYPE_OBJ_ACK) &&
                        respObj.getObjID() == obj.getObjID())
                {

                    Debug.WriteLine("NAK: " + obj.getName());

                    // Indicate complete
                    respObj = null;

                    // Notify listener
                    if (transactionListener != null)
                        transactionListener.TransactionFailed(obj);
                }
            }
	    }