/** * 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 IntegerArrayResultType(9); }
@Override public int length() { return Math.max(super.length(), this.array.size()); }
@Test public void testLength() { Assert.assertEquals(7, new IntegerArrayResultType(7).length()); }
@Test public void testToString() { Assert.assertEquals("IntegerArrayResultType", new IntegerArrayResultType(7).toString()); }
/** * 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 IntegerArrayResultType(9); }
@Test public void testIntegerArrayResultType() { IDescriptorResult type = new IntegerArrayResultType(6); Assert.assertNotNull(type); }