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.
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
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.
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.
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.