/** * Returns a type of return value calculated by this descriptor. * * @return returns a {@link DoubleResult}. */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** * Returns the specific type of the Fsp3 descriptor value. * * The Fsp3 descriptor is a single, double value. * * @return an instance of the {@link org.openscience.cdk.qsar.result.DoubleResultType} */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** * Returns the specific type of the Fsp3 descriptor value. * * The Fsp3 descriptor is a single, double value. * * @return an instance of the {@link org.openscience.cdk.qsar.result.DoubleResultType} */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** {@inheritDoc} */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** * Returns a type of return value calculated by this descriptor. * * @return returns a {@link DoubleResult}. */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** * Returns the specific type of the DescriptorResult object. * * The return value from this method really indicates what type of result will * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method * allows you to do the same thing, without actually calculating the descriptor. * * @return an object that implements the {@link org.openscience.cdk.qsar.result.IDescriptorResult} interface indicating * the actual type of values returned by the descriptor in the {@link org.openscience.cdk.qsar.DescriptorValue} object */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** * Returns the specific type of the FMF descriptor value. * * The FMF descriptor is a single, double value. * * The return value from this method really indicates what type of result will * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method * allows you to do the same thing, without actually calculating the descriptor. * * <p>Additionally, the length indicated by the result type must match the actual * length of a descriptor calculated with the current parameters. Typically, the * length of array result types vary with the values of the parameters. See * {@link org.openscience.cdk.qsar.IDescriptor} for more details. * * @return an instance of the {@link org.openscience.cdk.qsar.result.DoubleResultType} */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
/** * Returns the specific type of the FMF descriptor value. * * The FMF descriptor is a single, double value. * * The return value from this method really indicates what type of result will * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method * allows you to do the same thing, without actually calculating the descriptor. * * <p>Additionally, the length indicated by the result type must match the actual * length of a descriptor calculated with the current parameters. Typically, the * length of array result types vary with the values of the parameters. See * {@link org.openscience.cdk.qsar.IDescriptor} for more details. * * @return an instance of the {@link org.openscience.cdk.qsar.result.DoubleResultType} */ @Override public IDescriptorResult getDescriptorResultType() { return new DoubleResultType(); }
@Override public IDescriptorResult getDescriptorResultType(){ IDescriptorResult result = getDescriptor().getDescriptorResultType(); if(result instanceof DoubleArrayResultType){ return new DoubleResultType(); } else if(result instanceof IntegerArrayResultType){ return new IntegerResultType(); } else { throw new IllegalStateException(); } }
@Test public void testDoubleResultType() { IDescriptorResult type = new DoubleResultType(); Assert.assertNotNull(type); }
@Test public void testToString() { Assert.assertEquals("DoubleResultType", new DoubleResultType().toString()); }
@Test public void testLength() { Assert.assertEquals(1, new DoubleResultType().length()); }