net.aerith.misao.pixy.identification
Class DefaultIdentifier

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.pixy.identification.DefaultIdentifier

public class DefaultIdentifier
extends Operation

The DefaultIdentifier is a class to identify catalog stars read from the specified catalog reader with stars in the XML document. The result will be stored in the XML document itself.


Inner Class Summary
protected  class DefaultIdentifier.StarExtractor
          The StarExtractor is a class to extract stars from the XML data object within the specified pixels.
 
Field Summary
protected  boolean accept_negative
          True if a star is added even when no counterpart star is found in the XML document.
protected  CatalogReader reader
          The catalog reader.
protected  XmlReport report
          The XML document.
 
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
DefaultIdentifier(XmlReport report, CatalogReader reader)
          Constructs a DefaultIdentifier with an XML document and a catalog reader.
 
Method Summary
 void acceptNegative()
          Accepts to add the negative data.
 void exceptNegative()
          Excepts to add the negative data.
 void operate()
          Operates.
 boolean ready()
          Returns true if the operation is ready to start.
 
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, notifyStart, notifySucceeded, notifyWarned
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

report

protected XmlReport report
The XML document.

reader

protected CatalogReader reader
The catalog reader.

accept_negative

protected boolean accept_negative
True if a star is added even when no counterpart star is found in the XML document.
Constructor Detail

DefaultIdentifier

public DefaultIdentifier(XmlReport report,
                         CatalogReader reader)
Constructs a DefaultIdentifier with an XML document and a catalog reader.
Parameters:
report - the XML document.
reader - the catalog reader.
Method Detail

acceptNegative

public void acceptNegative()
Accepts to add the negative data.

exceptNegative

public void exceptNegative()
Excepts to add the negative data.

ready

public boolean ready()
Returns true if the operation is ready to start.
Overrides:
ready in class Operation
Returns:
true if the operation is ready to start.

operate

public void operate()
             throws java.lang.Exception
Operates.
Overrides:
operate in class Operation
Throws:
java.lang.Exception - if an error occurs.