net.aerith.misao.toolkit.AdditionalIdentification
Class AdditionalIdentificationOperation

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.util.MultiTaskOperation
                    |
                    +--net.aerith.misao.toolkit.ReportBatch.ReportBatchOperation
                          |
                          +--net.aerith.misao.toolkit.AdditionalIdentification.AdditionalIdentificationOperation

public class AdditionalIdentificationOperation
extends ReportBatchOperation

The AdditionalIdentificationOperation represents a batch operation to identify XML report documents with stars registered to the catalog database, and register the magnitude to the database.


Field Summary
protected  java.util.Vector catalog_list
          The list of catalogs to register tha magnitude to the database.
protected  IdentificationSettingDialog dialog
          The dialog to set up parameters to identify.
protected  CatalogSelectionDialog dialog2
          The dialog to select catalogs to register the magnitude to the database.
protected  java.util.Hashtable hash_failed_stars
          The list of stars failed to register tha magnitude to the database.
protected  java.util.Hashtable hash_warned_stars
          The list of stars failed to register tha magnitude to the database because already reported.
protected  CatalogReader reader_add
          The list of stars to identify with.
protected  CatalogReader reader_delete
          The list of stars to delete.
 
Fields inherited from class net.aerith.misao.toolkit.ReportBatch.ReportBatchOperation
db_manager, file_manager
 
Fields inherited from class net.aerith.misao.util.MultiTaskOperation
conductor
 
Fields inherited from class net.aerith.misao.util.Operation
monitor_set, stopped
 
Fields inherited from class net.aerith.misao.util.OperationObservable
observer_list
 
Constructor Summary
AdditionalIdentificationOperation(MultiTaskConductor conductor)
          Constructs an AdditionalIdentificationOperation.
AdditionalIdentificationOperation(MultiTaskConductor conductor, CatalogReader reader_add, CatalogReader reader_delete)
          Constructs an AdditionalIdentificationOperation.
 
Method Summary
protected  void notifyEnd(java.lang.Exception exception)
          Notifies when the operation ends.
protected  void notifyStart()
          Notifies when the operation starts.
 void operate(java.lang.Object object)
          Operates on one item.
 void setCatalogReader(CatalogReader reader_add, CatalogReader reader_delete)
          Sets the catalog reader.
 int showSettingDialog()
          Shows the dialog to set parameters.
 
Methods inherited from class net.aerith.misao.toolkit.ReportBatch.ReportBatchOperation
getDBManager, setDBManager, setFileManager
 
Methods inherited from class net.aerith.misao.util.MultiTaskOperation
operate, ready
 
Methods inherited from class net.aerith.misao.util.Operation
addMonitor, isStopped, perform, run, stop
 
Methods inherited from class net.aerith.misao.util.OperationObservable
addObserver, deleteObserver, notifyFailed, notifySucceeded, notifyWarned
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

dialog

protected IdentificationSettingDialog dialog
The dialog to set up parameters to identify.

dialog2

protected CatalogSelectionDialog dialog2
The dialog to select catalogs to register the magnitude to the database.

reader_add

protected CatalogReader reader_add
The list of stars to identify with.

reader_delete

protected CatalogReader reader_delete
The list of stars to delete.

catalog_list

protected java.util.Vector catalog_list
The list of catalogs to register tha magnitude to the database.

hash_failed_stars

protected java.util.Hashtable hash_failed_stars
The list of stars failed to register tha magnitude to the database.

hash_warned_stars

protected java.util.Hashtable hash_warned_stars
The list of stars failed to register tha magnitude to the database because already reported.
Constructor Detail

AdditionalIdentificationOperation

public AdditionalIdentificationOperation(MultiTaskConductor conductor)
Constructs an AdditionalIdentificationOperation.
Parameters:
conductor - the conductor of multi task operation.

AdditionalIdentificationOperation

public AdditionalIdentificationOperation(MultiTaskConductor conductor,
                                         CatalogReader reader_add,
                                         CatalogReader reader_delete)
Constructs an AdditionalIdentificationOperation.
Parameters:
conductor - the conductor of multi task operation.
reader_add - the list of stars to identify with.
reader_delete - the list of stars to delete.
Method Detail

setCatalogReader

public void setCatalogReader(CatalogReader reader_add,
                             CatalogReader reader_delete)
Sets the catalog reader.
Parameters:
reader_add - the list of stars to identify with.
reader_delete - the list of stars to delete.

showSettingDialog

public int showSettingDialog()
Shows the dialog to set parameters.
Overrides:
showSettingDialog in class MultiTaskOperation
Returns:
0 if OK button is pushed, or 2 if Cancel button is pushed.

notifyStart

protected void notifyStart()
Notifies when the operation starts.
Overrides:
notifyStart in class OperationObservable

notifyEnd

protected void notifyEnd(java.lang.Exception exception)
Notifies when the operation ends.
Overrides:
notifyEnd in class OperationObservable
Parameters:
exception - the exception if an error occurs, or null if succeeded.

operate

public void operate(java.lang.Object object)
             throws java.lang.Exception
Operates on one item. This is invoked from the conductor of multi task operation.
Overrides:
operate in class MultiTaskOperation
Parameters:
object - the target object to operate.
Throws:
java.lang.Exception - if an error occurs.