Examples of AnalysisController


Examples of systole.view.tabs.controllers.AnalysisController

    /**
     *
     */
    public void newAnalysis() {
        AnalysisController anControl = new AnalysisController(this);
        if (anControl.createAnalysis()) {
            this.analysisList.add(anControl);
            this.mainForm.addAnalysisPanel(anControl.getFrmAnalysis());
        }
    }
View Full Code Here

Examples of systole.view.tabs.controllers.AnalysisController

    /**
     * @param analysis
     */
    public void openAnalysis(Analysis analysis) {
        AnalysisController anControl = new AnalysisController(this);
        this.analysisList.add(anControl);
        anControl.openAnalysis(analysis);
        this.mainForm.addAnalysisPanel(anControl.getFrmAnalysis());
    }
View Full Code Here

Examples of systole.view.tabs.controllers.AnalysisController

     *
     */
    public void closeAllAnalysis() {
        Iterator<AnalysisController> itClose = this.analysisList.iterator();
        while (itClose.hasNext()) {
            AnalysisController currentController = itClose.next();
            this.mainForm.getjTabPnlMain().setSelectedComponent(currentController.getFrmAnalysis());
            if (this.closeAnalysisOnExit(currentController)) {
                int closeTabNumber = this.mainForm.getjTabPnlMain().indexOfComponent(currentController.getFrmAnalysis());
                this.mainForm.getjTabPnlMain().removeTabAt(closeTabNumber);
            }
        }
    }
View Full Code Here

Examples of systole.view.tabs.controllers.AnalysisController

     */
    public void preview() {
        PreviewController previewController = new PreviewController();
        previewController.showForm(this.mainForm.getFrame());
        if (previewController.hasttoInitNewanalysis()) {
            AnalysisController anControl = new AnalysisController(this);
            if (anControl.createAnalysis(previewController.getRawSignal(), previewController.getFilePath())) {
                this.analysisList.add(anControl);
                this.mainForm.addAnalysisPanel(anControl.getFrmAnalysis());
            }
        }
        previewController = null;
    }
View Full Code Here

Examples of systole.view.tabs.controllers.AnalysisController

                    null, null));
        }
        Iterator<AnalysisController> itClose = this.analysisList.iterator();
        Vector<AnalysisController> toRemove = new Vector<AnalysisController>();
        while (itClose.hasNext()) {
            AnalysisController currentController = itClose.next();
            this.mainForm.getjTabPnlMain().setSelectedComponent(currentController.getFrmAnalysis());
            if (!this.closeAnalysisOnExit(currentController)) {
                this.analysisList.removeAll(toRemove);
                return false;
            }
            int closeTabNumber = this.mainForm.getjTabPnlMain().indexOfComponent(currentController.getFrmAnalysis());
            if (closeTabNumber != -1) {
                this.mainForm.getjTabPnlMain().removeTabAt(closeTabNumber);
                toRemove.add(currentController);
            }
        }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.AnalysisController

     */
    private List<URI> identifyOneBinary(final File tempFile) {
        // Determine the config directory:
        String sigFileLocation = sigFileFolder();
        // Here we start using the Droid API:
        AnalysisController controller = new AnalysisController();
        try {
            controller.readSigFile(sigFileLocation);
        } catch (Exception e) {
            e.printStackTrace();
            log.severe("Failed to read sig file");
        }
        log.info("Attempting to identify " + tempFile.getAbsolutePath());
        log.info("File is of length " + tempFile.length());
        controller.addFile(tempFile.getAbsolutePath());
        controller.setVerbose(false);
        controller.runFileFormatAnalysis();
        Iterator<IdentificationFile> iterator = controller.getFileCollection()
                .getIterator();
        // We identify one file only:
        if (iterator.hasNext()) {
            IdentificationFile file = iterator.next();
            waitFor(file);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.