jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.storage
Class ProcessQueueItem<D>

Object
  extended by com.chemaxon.overlap.storage.ProcessQueueItem<D>
Type Parameters:
D - Represented descriptor type

 class ProcessQueueItem<D>
extends Object

Process queue element data object.

Author:
Gabor Imre

Constructor Summary
ProcessQueueItem(StructureRecord mol)
          Construct new instance.
 
Method Summary
(package private)  D getDescriptor()
          Calculated descriptor if applicable or null.
(package private)  Throwable getError()
          Represented error if applicable or null.
(package private)  chemaxon.struc.Molecule getMol()
          Parsed molecule or null for parse error.
 Optional<String> getMolString()
          Get represented molecule source if present.
 int getReadno()
          Represented structure index.
(package private)  boolean isParseError()
          Check if a parse error occured.
(package private)  boolean isProcessError()
          Check if process error occured.
(package private)  void ok(D d)
          Report successfull processing.
 boolean parse()
          Forward molecule parse.
(package private)  void processError(Throwable t)
          Report that process error occured.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessQueueItem

public ProcessQueueItem(StructureRecord mol)
Construct new instance.

Parameters:
mol - Import mol representation
Method Detail

parse

public boolean parse()
Forward molecule parse.

This methow will not throw Exceptions upon parse failure. Parse failure is registered and later can be retrieved.

Returns:
True when successfull TODO: should throw MolFomatException and? report parse errro

processError

void processError(Throwable t)
Report that process error occured.

Parameters:
t - Error

ok

void ok(D d)
Report successfull processing.

Parameters:
d - Created descriptor

getReadno

public int getReadno()
Represented structure index.

Returns:
Represented structure index

getMolString

public Optional<String> getMolString()
Get represented molecule source if present.

Returns:
Molecule source if present

isParseError

boolean isParseError()
Check if a parse error occured.

Returns:
True on parse error

isProcessError

boolean isProcessError()
Check if process error occured.

Returns:
True on process error

getMol

chemaxon.struc.Molecule getMol()
Parsed molecule or null for parse error.

Returns:
Molecule

getError

Throwable getError()
Represented error if applicable or null.

Returns:
Represented error.

getDescriptor

D getDescriptor()
Calculated descriptor if applicable or null.

Returns:
Calculated descriptor

toString

public String toString()
Overrides:
toString in class Object

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)