net.aerith.misao.toolkit.PhotometryCalibration
Class ReadingOperation

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.PhotometryCalibration.ReadingOperation

public class ReadingOperation
extends ReportBatchOperation

The ReadingOperation represents an operation to select the method for photometry and read data of the selected catalog from the XML files.


Field Summary
protected  PhotometryCatalogSettingDialog dialog
          The dialog to select the catalog and method for photometry.
protected  PhotometryCalibrationInternalFrame frame
          The frame.
protected  XmlReport global_report
          The dummy XML report document which contains the pairs of detected stars and catalog data used in photometry read from all XML report document files.
 
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
ReadingOperation(MultiTaskConductor conductor, PhotometryCalibrationInternalFrame frame)
          Constructs a ReadingOperation.
 
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.
 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 PhotometryCatalogSettingDialog dialog
The dialog to select the catalog and method for photometry.

frame

protected PhotometryCalibrationInternalFrame frame
The frame.

global_report

protected XmlReport global_report
The dummy XML report document which contains the pairs of detected stars and catalog data used in photometry read from all XML report document files.
Constructor Detail

ReadingOperation

public ReadingOperation(MultiTaskConductor conductor,
                        PhotometryCalibrationInternalFrame frame)
Constructs a ReadingOperation.
Parameters:
conductor - the conductor of multi task operation.
frame - the frame.
Method Detail

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.