net.aerith.misao.toolkit.RecordSearch
Class RecordSearchOperation

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.util.MultiTaskOperation
                    |
                    +--net.aerith.misao.toolkit.RecordSearch.RecordSearchOperation

public class RecordSearchOperation
extends MultiTaskOperation

The RecordSearchOperation represents an operation to search a record identified with the specified star from each XML report document.


Field Summary
protected  FileManager file_manager
          The file manager;
protected  java.util.ArrayList list
          The list of records.
protected  CatalogStar target_star
          The R.A and Decl.
 
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
RecordSearchOperation(MultiTaskConductor conductor, CatalogStar target_star, FileManager file_manager)
          Constructs a RecordSearchOperation.
 
Method Summary
 ObservationRecord[] getRecords()
          Gets the records searched in this operation.
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.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, notifyEnd, notifyFailed, notifySucceeded, notifyWarned
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

target_star

protected CatalogStar target_star
The R.A and Decl. and radius to search.

file_manager

protected FileManager file_manager
The file manager;

list

protected java.util.ArrayList list
The list of records.
Constructor Detail

RecordSearchOperation

public RecordSearchOperation(MultiTaskConductor conductor,
                             CatalogStar target_star,
                             FileManager file_manager)
Constructs a RecordSearchOperation.
Parameters:
conductor - the conductor of multi task operation.
target_star - the R.A. and Decl. and radius to search.
file_manager - the file manager.
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

getRecords

public ObservationRecord[] getRecords()
Gets the records searched in this operation.
Returns:
the records searched in this operation.

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.