Package org.aavso.tools.vstar.input.text

Examples of org.aavso.tools.vstar.input.text.ObservationSourceAnalyser


      boolean isAdditiveLoad) throws IOException, ObservationReadError {

    this.getProgressNotifier().notifyListeners(ProgressInfo.START_PROGRESS);

    // Analyse the observation file.
    ObservationSourceAnalyser analyser = new ObservationSourceAnalyser(
        new LineNumberReader(new FileReader(obsFile)), obsFile
            .getName());
    analyser.analyse();

    // Task begins: Number of lines in file and a portion for the light
    // curve plot.
    int plotPortion = (int) (analyser.getLineCount() * 0.2);

    this.getProgressNotifier().notifyListeners(
        new ProgressInfo(ProgressType.MAX_PROGRESS, analyser
            .getLineCount()
            + plotPortion));

    NewStarFromFileTask task = new NewStarFromFileTask(obsFile, analyser,
        plotPortion, isAdditiveLoad);
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.input.text.ObservationSourceAnalyser

Copyright © 2018 www.massapicom. 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.