AtomProperty.Radical

User 870ab5b546

12-05-2014 15:07:16

Hi, I'm in the process of upgrading to JChem 6.2. I have a question about the new AtomProperty.Radical class. It seems to me that I can replace the deprecated MolAtom.getRadical() with MolAtom.getRadicalValue().getIntValue() and then still be able to compare the radical values with ordinary operators. My questions are, (1) does each of the new constants in AtomProperty.Radical have a unique integer value, and (2) is each of these new values equal to the values of the old MolAtom.RADxxx constants?

ChemAxon 9c0afc9aaf

12-05-2014 15:25:24

The question was moved to the appropriate forum section.


The relevant experts will respond soon.

ChemAxon d26931946c

12-05-2014 15:33:42

Hi Bob,


 


Yes,  the integer values are unique and they are equal to the ones in the MolAtom class.


You want to decide the equality of the two values or you assume some kind of ordering between the radical values?


Regards,


Peter

User 870ab5b546

12-05-2014 16:00:24

I just want to compare the values. I'm using getIntValue() to compare them. Thanks.

User 870ab5b546

03-10-2014 17:27:27

The new AtomProperty.Radical class has a member NO_RADICAL that presumably corresponds to the old MolAtom.RAD_OFF constant. In the Constant Field Values document of the API, the value of RAD_OFF is given as 10. Is this correct? Seems to me it should be 0. Is the intValue() of AtomProperty.Radical.NO_RADICAL also 10, or is it 0?


I note that the constants in the AtomProperty.Radical class are not listed in the Constant Field Values document. (Maybe because they are objects and not primitives?) 


It would be nice to have a dynamic method MolAtom.getRadicalElectronCount(), which would return an int value of 0-4, disregarding the spin state. Then I wouldn't have to worry about AtomProperty.Radical values.

ChemAxon d26931946c

06-10-2014 09:04:07

There is MolAtom.getRadicalCount() which does exactly what you've described.


Peter