Class StudySession
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final classShared conventions forStudySession.FormField.uiHints()keys.static final recordV2 generic UI description for renderingStudySession.StudyConfigSpecV2.static final recordV2 generic validation rules forStudySession.StudyConfigSpecV2. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStudySession(Study study) protectedStudySession(String name) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidappendStudyConfig(StudyStep studyStep, Map<String, Object> config) appendStudyConfigSpecV2(StudyStep studyStep) abstract voidapplyModificationToStep(StudySession.ModificationType modificationType, StudyStep step) applyStudyTypeToStep(StudySession.StudyType studyType, Map<String, Object> config, StudyStep step) booleancanAddAxis(StudyStep step) abstract booleanabstract StringmodificationTypes(StudyStep step) What modifications can be applied to the selected study step?voidreplaceStudyStep(StudyStep existingStudyStep, StudyStep newStudyStep) report(StudySession.ReportType reportType, StudyStep step) reportTypes(StudyStep step) abstract StringresultPathTitle(ResultPath resultPath) results()resultValues(StudyStep step) root()abstract voidrun(StudySession.RunningSite site, Supplier<Boolean> cancellationMonitor, Runnable runCompletionHandler) abstract voidsaveGeneralReport(Path path) abstract Stringabstract voidstop(StudySession.RunningSite site) studyConfigSpecV2(StudySession.StudyType studyType, StudyStep step) studyTypes(StudyStep step) Which elements of the simulationResultmust be shown in columns of the part's main tree view?
-
Constructor Details
-
StudySession
-
StudySession
-
-
Method Details
-
root
-
stepTitle
-
modificationTypes
What modifications can be applied to the selected study step?This method returns a list of
StudySession.ModificationTypeinstances that are DEFINITELY applicable for the givenStudyStep.The default implementation returns an empty list.
The implementation must guarantee the applicability of each returned modification type to the step's scenario object (if any).
The returned modifications will be shown in the context menu of a compatible study step in the UI.
- Parameters:
step- the study step to which the user is asking the list of potentially applicable modifications for- Returns:
- a list of
StudySession.ModificationTypeinstances applicable to the given study step, or an empty list if none are applicable
-
applyModificationToStep
public abstract void applyModificationToStep(StudySession.ModificationType modificationType, StudyStep step) -
resultPathTitle
-
visibleTableColumns
Which elements of the simulationResultmust be shown in columns of the part's main tree view?Simulation
Resultcontains elements with key indicators like "total cost", "equipment utilization", etc. These are specific to each concrete simulation application, so must be defined in the overridden method. Each element is described by its path inside the results - aResultPathinstance. This method must return a list of such paths defining the elements to be shown and their order.- Returns:
- List of
ResultPathpointing to result elements to be shown in the columns of the part's main tree view
-
reportTypes
-
studyTypes
-
studyConfigSpecV2
public Optional<StudySession.StudyConfigSpecV2> studyConfigSpecV2(StudySession.StudyType studyType, StudyStep step) -
applyStudyTypeToStep
-
appendStudyConfigSpecV2
-
appendStudyConfig
-
saveGeneralReport
-
runningSites
-
run
public abstract void run(StudySession.RunningSite site, Supplier<Boolean> cancellationMonitor, Runnable runCompletionHandler) -
stop
-
isRunning
-
report
-
scenario
-
canAddAxis
-
replaceStudyStep
-
stepById
-
resultPaths
-
results
-
resultValues
-
localizedResultPathTitle
-