Package com.inductiveautomation.sfc.api
Class ScopeContext
- java.lang.Object
- 
- com.inductiveautomation.sfc.api.ScopeContext
 
- 
- All Implemented Interfaces:
- CommonScopes
 
 public class ScopeContext extends java.lang.Object implements CommonScopes Created by colby.clegg on 2/2/2015.
- 
- 
Constructor SummaryConstructors Constructor Description ScopeContext(PyChartScope chart)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PyChartScopegetChartScope()PyChartScopegetPrevious()Returns the previous step's scope, in the context of a transition who has an active step preceeding it.PyChartScopegetRoot()Goes up the chart scope's parent chain to find the root scope.PyChartScopegetStepOrPrevious()This returns the "step" scope, regardless of whether it represents the current step, in the context of an executing step, or "previous step", in the context of a transition.PyChartScopegetStepScope()Returns the current step's scope, in the context of the step.java.util.Optional<PyChartScope>locate(java.lang.String id)ScopeContextsetChartScope(PyChartScope chart)ScopeContextsetPreviousScope(PyChartScope stepScope)ScopeContextsetStepScope(PyChartScope step)
 
- 
- 
- 
Constructor Detail- 
ScopeContextpublic ScopeContext(PyChartScope chart) 
 
- 
 - 
Method Detail- 
setStepScopepublic ScopeContext setStepScope(PyChartScope step) 
 - 
setPreviousScopepublic ScopeContext setPreviousScope(PyChartScope stepScope) 
 - 
setChartScopepublic ScopeContext setChartScope(PyChartScope chart) 
 - 
getChartScopepublic PyChartScope getChartScope() 
 - 
getStepScopepublic PyChartScope getStepScope() Returns the current step's scope, in the context of the step. If the current context is a transition, "previous" is the step scope, or you can call getStepOrPrevious().
 - 
getPreviouspublic PyChartScope getPrevious() Returns the previous step's scope, in the context of a transition who has an active step preceeding it.
 - 
getStepOrPreviouspublic PyChartScope getStepOrPrevious() This returns the "step" scope, regardless of whether it represents the current step, in the context of an executing step, or "previous step", in the context of a transition.
 - 
getRootpublic PyChartScope getRoot() Goes up the chart scope's parent chain to find the root scope.
 - 
locatepublic java.util.Optional<PyChartScope> locate(java.lang.String id) 
 
- 
 
-