![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Set layout configuration options for the Lingua Franca diagram synthesis. More...
Inherits org.lflang.diagram.synthesis.AbstractSynthesisExtensions.
Public Member Functions | |
| void | configureAction (KNode node) |
| Configures layout options for an action. | |
| void | configureDummy (KNode node) |
| Configures layout options for a dummy node. | |
| void | configureMainReactor (KNode node) |
| Configures layout options for main reactor. | |
| void | configureReaction (KNode node) |
| Configures layout options for a reaction. | |
| void | configureReactor (KNode node) |
| Configures layout options for a reactor. | |
| void | configureShutDown (KNode node) |
| Configures layout options for a shutdown action. | |
| void | configureStartUp (KNode node) |
| Configures layout options for a startup action. | |
| void | configureTimer (KNode node) |
| Configures layout options for a timer. | |
| boolean | getBooleanValue (SynthesisOption option) |
| float | getFloatValue (SynthesisOption option) |
| Object | getObjectValue (final SynthesisOption option) |
| void | orderChildren (List< KNode > nodes) |
| Orders a list of nodes by their corresponding linked instance if synthesis option for full control is enabled. | |
Static Public Attributes | |
| static final String | FULL_CONTROL = "Full Control" |
| No crossing minimization is done at all. | |
| static final String | LEGACY = "Legacy" |
| Uses semi-automatic layout. | |
| static final SynthesisOption | MODEL_ORDER |
| static final String | MODEL_ORDER_OPTION = "Model Order" |
| Synthesis option to control the order of nodes and edges by model order. | |
| static final String | STRICT = "Reactions and Reactors" |
| Reactions and reactor are strictly ordered by their model order. | |
| static final String | STRICT_REACTION_ONLY = "Reactions Only" |
| Only reactions are strictly ordered by their model order. | |
| static final Comparator< KNode > | TEXTUAL_ORDER |
| Comparator to sort KNodes based on the textual order of their linked instances. | |
| static final String | TIE_BREAKER = "Optimize Crossings" |
| Reactions and reactors are ordered by their model order if no additional crossing are created. | |
Package Functions | |
| public< T extends EObject > T | associateWith (T derived, Object source) |
| public< T extends AbstractDiagramSynthesis<?> > T | getRootSynthesis () |
Set layout configuration options for the Lingua Franca diagram synthesis.
|
packageinherited |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.configureAction | ( | KNode | node | ) |
Configures layout options for an action.
| node | The KNode of an action. |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.configureDummy | ( | KNode | node | ) |
Configures layout options for a dummy node.
| node | The KNode of a dummy node. |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.configureMainReactor | ( | KNode | node | ) |
Configures layout options for main reactor.
| node | The KNode of the main reactor. |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.configureReaction | ( | KNode | node | ) |
Configures layout options for a reaction.
Currently a reaction does not have internal behavior that is visualized and its order is always considered, therefore, nothing needs to be done.
| node | The KNode of a reaction. |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.configureReactor | ( | KNode | node | ) |
Configures layout options for a reactor.
| node | The KNode of a reactor. |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.configureShutDown | ( | KNode | node | ) |
Configures layout options for a shutdown action.
| node | The KNode of a shutdown action. |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.configureStartUp | ( | KNode | node | ) |
Configures layout options for a startup action.
| node | The KNode of a startup action. |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.configureTimer | ( | KNode | node | ) |
Configures layout options for a timer.
| node | The KNode of a timer. |
|
inherited |
|
inherited |
|
inherited |
|
packageinherited |
| void org.lflang.diagram.synthesis.util.LayoutPostProcessing.orderChildren | ( | List< KNode > | nodes | ) |
Orders a list of nodes by their corresponding linked instance if synthesis option for full control is enabled.
Ordering is done by the TEXTUAL_ORDER comparator.
| nodes | List of KNodes to be ordered. |
|
static |
No crossing minimization is done at all.
This requires that actions and timers are sorted based on their model order.
|
static |
Uses semi-automatic layout.
|
static |
|
static |
Synthesis option to control the order of nodes and edges by model order.
|
static |
Reactions and reactor are strictly ordered by their model order.
|
static |
Only reactions are strictly ordered by their model order.
|
static |
Comparator to sort KNodes based on the textual order of their linked instances.
Startup, reset and shutdown actions are not in the model and are handled separately: Startup actions will always be first. Reset actions follow after the startup action. Shutdown is always sorted last. However, shutdown actions will not have a model order set and are, therefore, implicitly ordered by their connection.
|
static |
Reactions and reactors are ordered by their model order if no additional crossing are created.