Class ChartCompiler
- java.lang.Object
- 
- com.inductiveautomation.sfc.uimodel.ChartCompiler
 
- 
 public class ChartCompiler extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classChartCompiler.DummyExpressionParseContextDummy context used to test expression syntaxstatic classChartCompiler.LinkOrder
 - 
Field SummaryFields Modifier and Type Field Description static com.google.common.base.Predicate<ChartUIElement>FIND_BEGIN
 - 
Constructor SummaryConstructors Constructor Description ChartCompiler(ChartUIModel model, StepRegistry registry)ChartCompiler(ChartUIModel model, StepRegistry registry, boolean addVirtualElements)ChartCompiler(ChartUIModel model, StepRegistry registry, java.util.Map<java.lang.String,java.util.UUID> previousVirtualElements)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckExpressionSyntax(java.lang.String expression)ChartCompilationResultscompile()booleanisAddVirtualElements()static booleanisBeginStep(ChartUIElement element)Tests whether or not the given element is a Begin stepbooleanisCompileParallels()static booleanisEndStep(ChartUIElement element)Tests whether or not the given element is an End stepvoidsetAddVirtualElements(boolean addVirtualElements)Set to true in order to add "virtual" (empty) elements to ensure that every step is followed by a transition, and every transition is followed by a step.voidsetCompileParallels(boolean compileParallels)Set this to false to not compile the parallel blocks.
 
- 
- 
- 
Field Detail- 
FIND_BEGINpublic static final com.google.common.base.Predicate<ChartUIElement> FIND_BEGIN 
 
- 
 - 
Constructor Detail- 
ChartCompilerpublic ChartCompiler(ChartUIModel model, StepRegistry registry) 
 - 
ChartCompilerpublic ChartCompiler(ChartUIModel model, StepRegistry registry, java.util.Map<java.lang.String,java.util.UUID> previousVirtualElements) 
 - 
ChartCompilerpublic ChartCompiler(ChartUIModel model, StepRegistry registry, boolean addVirtualElements) 
 
- 
 - 
Method Detail- 
isCompileParallelspublic boolean isCompileParallels() 
 - 
setCompileParallelspublic void setCompileParallels(boolean compileParallels) Set this to false to not compile the parallel blocks. Default is true
 - 
isAddVirtualElementspublic boolean isAddVirtualElements() 
 - 
setAddVirtualElementspublic void setAddVirtualElements(boolean addVirtualElements) Set to true in order to add "virtual" (empty) elements to ensure that every step is followed by a transition, and every transition is followed by a step. *
 - 
compilepublic ChartCompilationResults compile() 
 - 
checkExpressionSyntaxpublic static void checkExpressionSyntax(java.lang.String expression) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
isEndSteppublic static boolean isEndStep(ChartUIElement element) Tests whether or not the given element is an End step
 - 
isBeginSteppublic static boolean isBeginStep(ChartUIElement element) Tests whether or not the given element is a Begin step
 
- 
 
-