Package com.solibri.smc.api.project
Interface Project
public interface Project
Service for accessing info regarding project (.smc) file.
- Since:
- 9.10.3
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Industry associated with the project.static enum
Statuses of project file. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Return the location of the file (.smc) where the project is saved.Get theProject.SaveStatus
of the project file.Get theProject.Industry
of the project.Get the time when the project file was last saved.getScores
(Project.Industry industry, Instant fromTime, Instant toTime) Get the list of scores based on the Industry and time range provided.void
setIndustry
(Project.Industry industry) Set theProject.Industry
of the project.
-
Method Details
-
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
-
getFileStatus
Project.SaveStatus getFileStatus()Get theProject.SaveStatus
of the project file.- Returns:
- the status, empty, if no model is open
- 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
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 projectfromTime
- lower range of time-linetoTime
- higher range of time-line- Returns:
- scores of the project
- Throws:
Exception
- any exception in getting scores- Since:
- 9.12.6
-
getIndustry
Project.Industry getIndustry()Get theProject.Industry
of the project.- Returns:
- Industry of the project
- Since:
- 9.12.6
-
setIndustry
Set theProject.Industry
of the project.- Parameters:
industry
- the industry- Since:
- 9.12.6
-