Package com.inductiveautomation.sfc.api
Interface ChartManagerService
- 
- All Superinterfaces:
- ModuleService
 
 public interface ChartManagerService extends ModuleService 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChartObserver(ChartObserver observer)Registers a ChartObserver that will be notified of chart and element events that occur.voidcancelChart(java.util.UUID instanceId)Cancel the chart instance identified byinstanceId.voidpauseChart(java.util.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(java.util.UUID instanceId)Resume the chart instance identified byinstanceId.java.util.UUIDstartChart(java.lang.String projectName, java.lang.String chartPath, java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String user)Start an instance of the chart defined atchartPath.voidunregister(StepFactory factory)Unregister aStepFactory.voidunregisterScopeLocator(ScopeLocator locator)Unregister a previously registered scope locator.
 
- 
- 
- 
Method Detail- 
registervoid register(StepFactory factory) Register aStepFactory.- Parameters:
- factory- The- StepFactoryto register.
 
 - 
unregistervoid unregister(StepFactory factory) Unregister aStepFactory.- Parameters:
- factory- The- StepFactoryto unregister.
 
 - 
registerScopeLocatorvoid registerScopeLocator(ScopeLocator locator) Register aScopeLocator, which will be used by expressions and scripting functions to resolve special scopes provided or identified by modules.
 - 
unregisterScopeLocatorvoid unregisterScopeLocator(ScopeLocator locator) Unregister a previously registered scope locator.
 - 
startChartjava.util.UUID startChart(java.lang.String projectName, java.lang.String chartPath, java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String user) throws java.lang.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:
- java.lang.Exception- if the chart cannot be started for any reason.
 
 - 
cancelChartvoid cancelChart(java.util.UUID instanceId) Cancel the chart instance identified byinstanceId.- Parameters:
- instanceId- the instance id of the chart to cancel.
 
 - 
pauseChartvoid pauseChart(java.util.UUID instanceId) Pause the chart instance identified byinstanceId.- Parameters:
- instanceId- the instance id of the chart to pause.
 
 - 
resumeChartvoid resumeChart(java.util.UUID instanceId) Resume the chart instance identified byinstanceId.- Parameters:
- instanceId- the instance id of the chart to resume.
 
 - 
addChartObservervoid addChartObserver(ChartObserver observer) Registers a ChartObserver that will be notified of chart and element events that occur.
 - 
removeChartObservervoid removeChartObserver(ChartObserver observer) Removes a previously registered ChartObserver.
 
- 
 
-