com.daylight
Class DaylightObject

java.lang.Object
  extended by com.daylight.DaylightCppObject
      extended by com.daylight.DaylightObject
Direct Known Subclasses:
Atom, AtomBondCollection, Bond, Conformation, DayString, Depiction, Fingerprint, Integer, PathSet, Pattern, Real, Sequence, Stream, Transform, VectorBinding

public abstract class DaylightObject
extends DaylightCppObject

Base class for all Daylight Objects


Field Summary
 
Fields inherited from class com.daylight.DaylightCppObject
ref
 
Constructor Summary
DaylightObject()
           
 
Method Summary
 void appendStringProperty(java.lang.String propertyName, java.lang.String value)
          from dt_appendstring.
static boolean checkProgramLicense(java.lang.String program)
          from dt_check_license.
static boolean checkToolkitLicense(java.lang.String toolkit)
          from dt_check_license.
static void clearErrors()
          from dt_errorclear.
static void disableVirtualHandles()
          from dt_vh_disable.
 boolean equals(java.lang.Object obj)
           
protected  void finalize()
          Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
 DaylightObject getAdjunct()
          from dt_adjunct.
 DaylightObject getAncestor()
           
 DaylightObject getBase()
          from dt_base.
 boolean getBooleanProperty(java.lang.String propertyName)
          from dt_boolean.
static ChiralValue getChiralClass(ChiralValue chival)
          from dt_chiclass.
static int getChiralOrder(ChiralValue chival)
          from dt_chiorder.
 int getCount(DaylightObjectType type)
          from dt_count.
static java.lang.String[] getErrors(DaylightErrorType errorLevel)
          from dt_errors.
static int getExistingObjectCount()
          gets the count of existing daylight objects.
 DaylightObject getHandleProperty(java.lang.String propertyName)
          from dt_gethandle.
 int getIntegerProperty(java.lang.String propertyName)
          from dt_integer.
 DaylightObject getParent()
          from dt_parent.
 java.lang.String[] getPropertyNames()
          from dt_propnames.
 PropertyType getPropertyType(java.lang.String propertyName)
          from dt_proptype.
 float getRealProperty(java.lang.String propertyName)
          from dt_real.
static java.lang.String getRuntimeLibraryCreationDate()
          from dt_info.
static java.lang.String getRuntimeLibraryVersion()
          from dt_info.
 Stream getStream(DaylightObjectType type)
          from dt_stream.
 java.lang.String getStringProperty(java.lang.String propertyName)
          from dt_string.
 DaylightObjectType getType()
          from dt_type.
 java.lang.String getTypename()
          from dt_typename.
 int getUniqueId()
          from dt_uid.
 int getUniqueIdRange(DaylightObjectType type)
          from dt_uidrange.
static DaylightErrorType getWorstErrorType()
          from dt_errorworst.
 int hashCode()
           
 boolean isNullObject()
          returns true if the object is the NULL_OB.
static void mpInitialize()
          from dt_mp_initialize
static boolean mpLock(DaylightObject obj)
          from dt_mp_lock
static boolean mpTrylock(DaylightObject obj)
          from dt_mp_trylock
static boolean mpUnlock(DaylightObject obj)
          from dt_mp_unlock
static void saveError(java.lang.String name, DaylightErrorType errorType, java.lang.String message)
          from dt_errorsave.
 void setAdjunct(DaylightObject obj)
          from dt_setadjunct.
 void setBooleanProperty(java.lang.String propertyName, boolean value)
          from dt_setboolean.
 void setHandleProperty(java.lang.String propertyName, DaylightObject obj)
          from dt_setHandle.
 void setIntegerProperty(java.lang.String propertyName, int value)
          from dt_setinteger.
 void setRealProperty(java.lang.String propertyName, float value)
          from dt_setreal.
 void setStringProperty(java.lang.String propertyName, java.lang.String value)
          from dt_setstring.
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaylightObject

public DaylightObject()
Method Detail

isNullObject

public boolean isNullObject()
                     throws DaylightException
returns true if the object is the NULL_OB.

Throws:
DaylightException

getAdjunct

public DaylightObject getAdjunct()
                          throws DaylightException
from dt_adjunct. Caller is responsible for deleting returned object.

Throws:
DaylightException

setAdjunct

public void setAdjunct(DaylightObject obj)
                throws DaylightException
from dt_setadjunct.

Throws:
DaylightException

getCount

public int getCount(DaylightObjectType type)
             throws DaylightException
from dt_count.

Throws:
DaylightException

getStream

public Stream getStream(DaylightObjectType type)
                 throws DaylightException
from dt_stream.

Throws:
DaylightException

getBase

public DaylightObject getBase()
                       throws DaylightException
from dt_base.

Throws:
DaylightException

getParent

public DaylightObject getParent()
                         throws DaylightException
from dt_parent.

Throws:
DaylightException

getType

public DaylightObjectType getType()
                           throws DaylightException
from dt_type.

Throws:
DaylightException

getTypename

public java.lang.String getTypename()
                             throws DaylightException
from dt_typename.

Throws:
DaylightException

getUniqueId

public int getUniqueId()
                throws DaylightException
from dt_uid.

Throws:
DaylightException

getUniqueIdRange

public int getUniqueIdRange(DaylightObjectType type)
                     throws DaylightException
from dt_uidrange.

Throws:
DaylightException

getPropertyNames

public java.lang.String[] getPropertyNames()
                                    throws DaylightException
from dt_propnames.

Throws:
DaylightException

getPropertyType

public PropertyType getPropertyType(java.lang.String propertyName)
                             throws DaylightException
from dt_proptype.

Throws:
DaylightException

getHandleProperty

public DaylightObject getHandleProperty(java.lang.String propertyName)
                                 throws DaylightException
from dt_gethandle.

Throws:
DaylightException

setHandleProperty

public void setHandleProperty(java.lang.String propertyName,
                              DaylightObject obj)
                       throws DaylightException
from dt_setHandle.

Throws:
DaylightException

getBooleanProperty

public boolean getBooleanProperty(java.lang.String propertyName)
                           throws DaylightException
from dt_boolean.

Throws:
DaylightException

setBooleanProperty

public void setBooleanProperty(java.lang.String propertyName,
                               boolean value)
                        throws DaylightException
from dt_setboolean.

Throws:
DaylightException

getIntegerProperty

public int getIntegerProperty(java.lang.String propertyName)
                       throws DaylightException
from dt_integer.

Throws:
DaylightException

setIntegerProperty

public void setIntegerProperty(java.lang.String propertyName,
                               int value)
                        throws DaylightException
from dt_setinteger.

Throws:
DaylightException

getRealProperty

public float getRealProperty(java.lang.String propertyName)
                      throws DaylightException
from dt_real.

Throws:
DaylightException

setRealProperty

public void setRealProperty(java.lang.String propertyName,
                            float value)
                     throws DaylightException
from dt_setreal.

Throws:
DaylightException

getStringProperty

public java.lang.String getStringProperty(java.lang.String propertyName)
                                   throws DaylightException
from dt_string.

Throws:
DaylightException

setStringProperty

public void setStringProperty(java.lang.String propertyName,
                              java.lang.String value)
                       throws DaylightException
from dt_setstring.

Throws:
DaylightException

appendStringProperty

public void appendStringProperty(java.lang.String propertyName,
                                 java.lang.String value)
                          throws DaylightException
from dt_appendstring.

Throws:
DaylightException

getRuntimeLibraryCreationDate

public static java.lang.String getRuntimeLibraryCreationDate()
                                                      throws DaylightException
from dt_info.

Throws:
DaylightException

getRuntimeLibraryVersion

public static java.lang.String getRuntimeLibraryVersion()
                                                 throws DaylightException
from dt_info.

Throws:
DaylightException

checkToolkitLicense

public static boolean checkToolkitLicense(java.lang.String toolkit)
                                   throws DaylightException
from dt_check_license.

Throws:
DaylightException

checkProgramLicense

public static boolean checkProgramLicense(java.lang.String program)
                                   throws DaylightException
from dt_check_license.

Throws:
DaylightException

getErrors

public static java.lang.String[] getErrors(DaylightErrorType errorLevel)
                                    throws DaylightException
from dt_errors.

Throws:
DaylightException

clearErrors

public static void clearErrors()
                        throws DaylightException
from dt_errorclear.

Throws:
DaylightException

saveError

public static void saveError(java.lang.String name,
                             DaylightErrorType errorType,
                             java.lang.String message)
                      throws DaylightException
from dt_errorsave.

Throws:
DaylightException

getWorstErrorType

public static DaylightErrorType getWorstErrorType()
                                           throws DaylightException
from dt_errorworst.

Throws:
DaylightException

getExistingObjectCount

public static int getExistingObjectCount()
                                  throws DaylightException
gets the count of existing daylight objects. Construction of an object increments this count. destruction of an object decrements this count.

Throws:
DaylightException

getChiralClass

public static ChiralValue getChiralClass(ChiralValue chival)
                                  throws DaylightException
from dt_chiclass.

Throws:
DaylightException

getChiralOrder

public static int getChiralOrder(ChiralValue chival)
                          throws DaylightException
from dt_chiorder.

Throws:
DaylightException

disableVirtualHandles

public static void disableVirtualHandles()
                                  throws DaylightException
from dt_vh_disable. Calling this function disables the use of virtual handles within the toolkit. This can provide a performance boost for some toolkit applications.

Throws:
DaylightException

mpInitialize

public static void mpInitialize()
                         throws DaylightException
from dt_mp_initialize

Throws:
DaylightException

mpLock

public static boolean mpLock(DaylightObject obj)
                      throws DaylightException
from dt_mp_lock

Throws:
DaylightException

mpUnlock

public static boolean mpUnlock(DaylightObject obj)
                        throws DaylightException
from dt_mp_unlock

Throws:
DaylightException

mpTrylock

public static boolean mpTrylock(DaylightObject obj)
                         throws DaylightException
from dt_mp_trylock

Throws:
DaylightException

getAncestor

public DaylightObject getAncestor()
                           throws DaylightException
Throws:
DaylightException

finalize

protected void finalize()
                 throws java.lang.Throwable
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object