Class ChartCompiler
- java.lang.Object
-
- com.inductiveautomation.sfc.uimodel.ChartCompiler
-
public class ChartCompiler extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChartCompiler.DummyExpressionParseContext
Dummy context used to test expression syntaxstatic class
ChartCompiler.LinkOrder
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Predicate<ChartUIElement>
FIND_BEGIN
-
Constructor Summary
Constructors 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkExpressionSyntax(java.lang.String expression)
ChartCompilationResults
compile()
boolean
isAddVirtualElements()
static boolean
isBeginStep(ChartUIElement element)
Tests whether or not the given element is a Begin stepboolean
isCompileParallels()
static boolean
isEndStep(ChartUIElement element)
Tests whether or not the given element is an End stepvoid
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.void
setCompileParallels(boolean compileParallels)
Set this to false to not compile the parallel blocks.
-
-
-
Field Detail
-
FIND_BEGIN
public static final com.google.common.base.Predicate<ChartUIElement> FIND_BEGIN
-
-
Constructor Detail
-
ChartCompiler
public ChartCompiler(ChartUIModel model, StepRegistry registry)
-
ChartCompiler
public ChartCompiler(ChartUIModel model, StepRegistry registry, java.util.Map<java.lang.String,java.util.UUID> previousVirtualElements)
-
ChartCompiler
public ChartCompiler(ChartUIModel model, StepRegistry registry, boolean addVirtualElements)
-
-
Method Detail
-
isCompileParallels
public boolean isCompileParallels()
-
setCompileParallels
public void setCompileParallels(boolean compileParallels)
Set this to false to not compile the parallel blocks. Default is true
-
isAddVirtualElements
public boolean isAddVirtualElements()
-
setAddVirtualElements
public 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. *
-
compile
public ChartCompilationResults compile()
-
checkExpressionSyntax
public static void checkExpressionSyntax(java.lang.String expression) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isEndStep
public static boolean isEndStep(ChartUIElement element)
Tests whether or not the given element is an End step
-
isBeginStep
public static boolean isBeginStep(ChartUIElement element)
Tests whether or not the given element is a Begin step
-
-