plugin/src/java/org/pm4knime/node/logmanipulation/sample/SampleLogNodeModel.java
@Override
    protected void validateSettings(final NodeSettingsRO settings)
            throws InvalidSettingsException {
        // TODO: generated method stub
    	m_samplePref.validateSettings(settings);
    	
    	m_samplePercentage.validateSettings(settings);
    	
    	boolean usePercentage = settings.getBoolean(CFG_SAMPLING_PERFERENCE);
    	double value = settings.getDouble(CFG_SAMPLE_PERCENTAGE);
    	
    	if(usePercentage) {
    		// check the value if it is between 0 - .10
    		if(value > 1.0) {
    			throw new InvalidSettingsException("The current percentage " + value + 
    					"  is out of bounds. Please give value between 0 - 1.0 ");
    		}
    		
    	}else {
    		// it must be an integer value here
    		if(value == Math.floor(value) && !Double.isInfinite(value)) {
    			// this is on integer value here, also we don't allow it to be negative!! 
    		}else
    			throw new InvalidSettingsException("The current value  " + value + 
    					"  is not an integer. Please give an integer value");
    	}
    }
/**
     * {@inheritDoc} this method only validates the values but not assign the values to the parameters. 
     * Let us check another way to verify the configuration
     */
this method only validates the values but not assign the values to the parameters.
Let us check another way to verify the configuration
this method only validates the values but not assign the values to the parameters . Let us check another way to verify the configuration
@Override
    protected void validateSettings(final NodeSettingsRO settings)
            throws InvalidSettingsException {
    	m_samplePref.validateSettings(settings);
    	m_samplePercentage.validateSettings(settings);
    	boolean usePercentage = settings.getBoolean(CFG_SAMPLING_PERFERENCE);
    	double value = settings.getDouble(CFG_SAMPLE_PERCENTAGE);
    	if(usePercentage) {
    		if(value > 1.0) {
    			throw new InvalidSettingsException("The current percentage " + value + 
    					"  is out of bounds. Please give value between 0 - 1.0 ");
    		}
    	}else {
    		if(value == Math.floor(value) && !Double.isInfinite(value)) {
    		}else
    			throw new InvalidSettingsException("The current value  " + value + 
    					"  is not an integer. Please give an integer value");
    	}
    }
@ Override protected void validateSettings ( final NodeSettingsRO settings ) throws InvalidSettingsException { m_samplePref . validateSettings ( settings ) ; m_samplePercentage . validateSettings ( settings ) ; boolean usePercentage = settings . getBoolean ( CFG_SAMPLING_PERFERENCE ) ; double value = settings . getDouble ( CFG_SAMPLE_PERCENTAGE ) ; if ( usePercentage ) { if ( value > 1.0 ) { throw new InvalidSettingsException ( "The current percentage " + value + "  is out of bounds. Please give value between 0 - 1.0 " ) ; } } else { if ( value == Math . floor ( value ) && ! Double . isInfinite ( value ) ) { } else throw new InvalidSettingsException ( "The current value  " + value + "  is not an integer. Please give an integer value" ) ; } }
{@inheritDoc} this method only validates the values but not assign the values to the parameters.
{ @inheritDoc } this method only validates the values but not assign the values to the parameters .
// TODO: generated method stub // check the value if it is between 0 - .10 // it must be an integer value here // this is on integer value here, also we don't allow it to be negative!! 