throw new KunderaException(e.getMessage());
public void dataAvailable ( String inputStreamName , StreamElement data ) { logger.debug( "I just received some data from the robot" ); logger.trace( new String( ( byte [ ] ) data.getData( SerialWrapper.RAW_PACKET ) ) ); AbstractWrapper wrapper = vsensor.getInputStream( "input1" ).getSource( "source1" ).getWrapper( ); if ( actionA == false ) { actionA = true; try { // wrapper.sendToWrapper( "h\n" ); wrapper.sendToWrapper( "d,1000,-1000\n",null,null ); } catch ( OperationNotSupportedException e ) { logger.error( e.getMessage( ) , e ); } } }
@Override public boolean inheritedFrom(AttributeName attributeName) { try { throw new OperationNotSupportedException(""); } catch (OperationNotSupportedException e) { parent.fireActionEvent(e, e.getMessage()); e.printStackTrace(); } return false; }
logger.error( e.getMessage( ) , e ); currentState = ProtocolStates.READY;
public void dispose ( ) { try { vsensor.getInputStream( "input1" ).getSource( "source1" ).getWrapper().sendToWrapper( "R\n",null,null ); } catch ( OperationNotSupportedException e ) { logger.error( e.getMessage( ) , e ); } }
@Override public boolean inheritedFrom(AttributeName attributeName) { try { throw new OperationNotSupportedException(""); } catch (OperationNotSupportedException e) { parent.fireActionEvent(e, e.getMessage()); e.printStackTrace(); } return false; }
Util.unbind(sipEnvCtx, applicationName); } catch (OperationNotSupportedException onse) { log.warn("Could not remove the JNDI context java:/sip/" + applicationName + ", cause " + onse.getMessage()); } catch (NameNotFoundException nnfe) { log.warn("Could not remove the JNDI context java:/sip/" + applicationName + ", cause " + nnfe.getMessage());
hints); } catch (OperationNotSupportedException e) { LOGGER.warning(e.getMessage()); throw new SAXException(e);
public boolean initialize ( ) { vsensor = getVirtualSensorConfiguration( ); params = vsensor.getMainClassInitialParams( ); wrapper = vsensor.getInputStream( "input1" ).getSource( "source1" ).getWrapper( ); protocolManager = new ProtocolManager( new SerComProtocol( ) , wrapper ); logger.debug( "Created protocolManager" ); try { wrapper.sendToWrapper( "h\n" ,null,null); } catch ( OperationNotSupportedException e ) { logger.error(e.getMessage(), e); } // protocolManager.sendQuery( SerComProtocol.RESET , null ); logger.debug( "Initialization complete." ); return true; }
public boolean initialize ( ) { params = getVirtualSensorConfiguration( ).getMainClassInitialParams( ); wrapper = getVirtualSensorConfiguration( ).getInputStream( "input1" ).getSource( "source1" ).getWrapper( ); protocolManager = new ProtocolManager( new SerComProtocol( ) , wrapper ); logger.debug( "Created protocolManager" ); try { wrapper.sendToWrapper( "h\n",null,null ); } catch ( OperationNotSupportedException e ) { logger.error(e.getMessage(), e); } // protocolManager.sendQuery( SerComProtocol.RESET , null ); logger.debug( "Initialization complete." ); return true; }
throw new KunderaException(e.getMessage());