Sends a job to this tool and specifies a tool to reply to. @param job the Job @param replyTo the tool to notify when the job is complete (may be null)
(Job job, Tool replyTo)
| 650 | * @param replyTo the tool to notify when the job is complete (may be null) |
| 651 | */ |
| 652 | @Override |
| 653 | public void send(Job job, Tool replyTo) { |
| 654 | XMLControlElement control = new XMLControlElement(job.getXML()); |
| 655 | if (control.failedToRead() || (control.getObjectClass() == Object.class)) { |
| 656 | return; |
| 657 | } |
| 658 | receiveJobControl(job, replyTo, control); |
| 659 | } |
| 660 | |
| 661 | /** |
| 662 | * We already have the control; no need to recreate it. |
no test coverage detected