Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

joelib.data
Class JOEDataType  view JOEDataType download JOEDataType.java

java.lang.Object
  extended byjoelib.data.JOEDataType
All Implemented Interfaces:
java.io.Serializable

public final class JOEDataType
extends java.lang.Object
implements java.io.Serializable

Data type. There exists a lot of default data types which where defined in JOEDataType. These data types are used for caching ring searches and storing special data types like comments or virtual bonds. Furthermore there exist the most important data type JOEPairData for storing descriptor values.

There exists an important difference between JOE_PAIR_DATA 55 and all other data types. Because there are many descriptor values possible for one molecule, they are hashed to enable a fast access to these values. This causes that every descriptor value must have a unique attribute name. It's not possible to store two JOEPairData data elements with the same attribute name (JOEGenericData.setAttribute(String) 55 ).
All other JOEDataType can occur multiple times, even if they have the same attribute name. It's e.g. possible to have multiple comments (JOECommentData) entries for one molecule.

Data type Data name Allowed occurence
JOE_UNDEFINED_DATA 55 Undefined multiple
JOE_VIRTUAL_BOND_DATA 55 VirtualBondData multiple
JOE_ROTAMER_LIST 55 RotamerList multiple
JOE_EXTERNAL_BOND_DATA 55 ExternalBondData multiple
JOE_COMPRESS_DATA 55 CompressData multiple
JOE_COMMENT_DATA 55 Comment multiple
JOE_ENERGY_DATA 55 EnergyData multiple
JOE_PAIR_DATA 55 PairData single attribute name (JOEGenericData.setAttribute(String) 55 )


Field Summary
private  java.lang.String defaultAttribut
           
static JOEDataType JOE_COMMENT_DATA
          Comment data.
static JOEDataType JOE_COMPRESS_DATA
          Description of the Field
static JOEDataType JOE_ENERGY_DATA
          Description of the Field
static JOEDataType JOE_EXTERNAL_BOND_DATA
          Description of the Field
static JOEDataType JOE_PAIR_DATA
          Pair data (descriptor data).
static JOEDataType JOE_RGROUP_DATA
          Rgroup data.
static JOEDataType JOE_RING_DATA
          Ring data.
static JOEDataType JOE_ROTAMER_LIST
          Description of the Field
static JOEDataType JOE_SPECTRA_DATA
          Description of the Field
static JOEDataType JOE_UNDEFINED_DATA
          Description of the Field
static JOEDataType JOE_VIRTUAL_BOND_DATA
          Description of the Field
private static java.util.LinkedList usedTypes
           
private  int value
          Description of the Field
 
Constructor Summary
private JOEDataType(int _value, java.lang.String _defaultAttr)
          Constructor for the JOEDataType object
 
Method Summary
 boolean equals(java.lang.Object obj)
          Description of the Method
static java.util.Iterator getAllTypes()
           
 java.lang.String getDefaultAttr()
          Gets the defaultAttr attribute of the JOEDataType object
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

usedTypes

private static final java.util.LinkedList usedTypes

JOE_UNDEFINED_DATA

public static final JOEDataType JOE_UNDEFINED_DATA
Description of the Field


JOE_PAIR_DATA

public static final JOEDataType JOE_PAIR_DATA
Pair data (descriptor data).

See Also:
JOEPairData

JOE_ENERGY_DATA

public static final JOEDataType JOE_ENERGY_DATA
Description of the Field


JOE_COMMENT_DATA

public static final JOEDataType JOE_COMMENT_DATA
Comment data.

See Also:
JOECommentData

JOE_COMPRESS_DATA

public static final JOEDataType JOE_COMPRESS_DATA
Description of the Field


JOE_EXTERNAL_BOND_DATA

public static final JOEDataType JOE_EXTERNAL_BOND_DATA
Description of the Field


JOE_ROTAMER_LIST

public static final JOEDataType JOE_ROTAMER_LIST
Description of the Field


JOE_VIRTUAL_BOND_DATA

public static final JOEDataType JOE_VIRTUAL_BOND_DATA
Description of the Field


JOE_RING_DATA

public static final JOEDataType JOE_RING_DATA
Ring data.

See Also:
joelib.ring.JOERingData

JOE_SPECTRA_DATA

public static final JOEDataType JOE_SPECTRA_DATA
Description of the Field


JOE_RGROUP_DATA

public static final JOEDataType JOE_RGROUP_DATA
Rgroup data.

See Also:
JOERgroupData

defaultAttribut

private java.lang.String defaultAttribut

value

private int value
Description of the Field

Constructor Detail

JOEDataType

private JOEDataType(int _value,
                    java.lang.String _defaultAttr)
Constructor for the JOEDataType object

Method Detail

getAllTypes

public static java.util.Iterator getAllTypes()

getDefaultAttr

public java.lang.String getDefaultAttr()
Gets the defaultAttr attribute of the JOEDataType object


equals

public boolean equals(java.lang.Object obj)
Description of the Method


toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).