net.aerith.misao.toolkit.AgentDesktop
Class AgentBatchExaminationOperation

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.util.MultiTaskOperation
                    |
                    +--net.aerith.misao.toolkit.BatchExamination.BatchExaminationOperation
                          |
                          +--net.aerith.misao.toolkit.AgentDesktop.AgentBatchExaminationOperation

public class AgentBatchExaminationOperation
extends BatchExaminationOperation

The AgentBatchExaminationOperation represents a batch operation of image examination on the selected images using the agent.


Field Summary
protected  Agent agent
          The agent.
 
Fields inherited from class net.aerith.misao.toolkit.BatchExamination.BatchExaminationOperation
dialog
 
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
AgentBatchExaminationOperation(MultiTaskConductor conductor, Agent agent)
          Constructs an AgentBatchExaminationOperation.
 
Method Summary
protected  ExaminationOperator createExaminationOperator(XmlInstruction instruction)
          Creates the examination operator.
 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, notifyStart, notifySucceeded, notifyWarned
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

agent

protected Agent agent
The agent.
Constructor Detail

AgentBatchExaminationOperation

public AgentBatchExaminationOperation(MultiTaskConductor conductor,
                                      Agent agent)
Constructs an AgentBatchExaminationOperation.
Parameters:
conductor - the conductor of multi task operation.
agent - the agent.
Method Detail

showSettingDialog

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

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 BatchExaminationOperation
Parameters:
object - the target object to operate.
Throws:
java.lang.Exception - if an error occurs.

createExaminationOperator

protected ExaminationOperator createExaminationOperator(XmlInstruction instruction)
Creates the examination operator.
Overrides:
createExaminationOperator in class BatchExaminationOperation
Parameters:
instruction - the XML instruction element.
Returns:
the examination operator.