Interface Project


  • public interface Project
    Service for accessing info regarding project (.smc) file.
    Since:
    9.10.3
    • Method Detail

      • getFile

        Optional<File> getFile()
        Return the location of the file (.smc) where the project is saved.
        Returns:
        file location, empty, if project is not yet saved
        Since:
        9.10.3
      • getLastSaveTime

        Optional<OffsetDateTime> getLastSaveTime()
        Get the time when the project file was last saved.
        Returns:
        the save time, empty, if file is unsaved or no model is open.
      • getScores

        List<Score> getScores​(Project.Industry industry,
                              Instant fromTime,
                              Instant toTime)
                       throws Exception
        Get the list of scores based on the Industry and time range provided.

        Both lower and higher range of time-line are inclusive. List of scores is sorted in ascending order of time when the respective score was calculated.

        Parameters:
        industry - the type industry of the project
        fromTime - lower range of time-line
        toTime - higher range of time-line
        Returns:
        scores of the project
        Throws:
        Exception - any exception in getting scores
        Since:
        9.12.6