Package com.inductiveautomation.sfc.api
Interface ChartManagerService
- All Superinterfaces:
- ModuleService
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddChartObserver(ChartObserver observer) Registers a ChartObserver that will be notified of chart and element events that occur.voidcancelChart(UUID instanceId) Cancel the chart instance identified byinstanceId.voidpauseChart(UUID instanceId) Pause the chart instance identified byinstanceId.voidregister(StepFactory factory) Register aStepFactory.voidregisterScopeLocator(ScopeLocator locator) Register aScopeLocator, which will be used by expressions and scripting functions to resolve special scopes provided or identified by modules.voidremoveChartObserver(ChartObserver observer) Removes a previously registered ChartObserver.voidresumeChart(UUID instanceId) Resume the chart instance identified byinstanceId.Start an instance of the chart defined atchartPath.voidunregister(StepFactory factory) Unregister aStepFactory.voidunregisterScopeLocator(ScopeLocator locator) Unregister a previously registered scope locator.
- 
Method Details- 
registerRegister aStepFactory.- Parameters:
- factory- The- StepFactoryto register.
 
- 
unregisterUnregister aStepFactory.- Parameters:
- factory- The- StepFactoryto unregister.
 
- 
registerScopeLocatorRegister aScopeLocator, which will be used by expressions and scripting functions to resolve special scopes provided or identified by modules.
- 
unregisterScopeLocatorUnregister a previously registered scope locator.
- 
startChartUUID startChart(String projectName, String chartPath, Map<String, Object> parameters, String user) throws ExceptionStart an instance of the chart defined atchartPath.- Parameters:
- projectName- the name of the Project the chart is defined in.
- chartPath- the path to the chart in Project- projectName.
- parameters- the parameters to be made available start in the chart's scope.
- user- the user requesting the chart be started.
- Returns:
- the UUID of the chart instance.
- Throws:
- Exception- if the chart cannot be started for any reason.
 
- 
cancelChartCancel the chart instance identified byinstanceId.- Parameters:
- instanceId- the instance id of the chart to cancel.
 
- 
pauseChartPause the chart instance identified byinstanceId.- Parameters:
- instanceId- the instance id of the chart to pause.
 
- 
resumeChartResume the chart instance identified byinstanceId.- Parameters:
- instanceId- the instance id of the chart to resume.
 
- 
addChartObserverRegisters a ChartObserver that will be notified of chart and element events that occur.
- 
removeChartObserverRemoves a previously registered ChartObserver.
 
-