Search in sources :

Example 11 with FeatureConfiguration

use of org.yakindu.sct.model.sgen.FeatureConfiguration in project statecharts by Yakindu.

the class AbstractDefaultFeatureValueProvider method createConfiguration.

protected FeatureConfiguration createConfiguration(FeatureType type) {
    FeatureConfiguration result = factory.createFeatureConfiguration();
    result.setType(type);
    return result;
}
Also used : FeatureConfiguration(org.yakindu.sct.model.sgen.FeatureConfiguration)

Example 12 with FeatureConfiguration

use of org.yakindu.sct.model.sgen.FeatureConfiguration in project statecharts by Yakindu.

the class FlowOptimizerFactory method create.

public FlowOptimizer create(GeneratorEntry entry) {
    FlowOptimizer optimizer = optimizerProvider.get();
    FeatureConfiguration optimizeConfig = entry.getFeatureConfiguration(FUNCTION_INLINING_FEATURE);
    optimizer.inlineReactions(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_REACTIONS, false));
    optimizer.inlineExitActions(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_EXIT_ACTIONS, false));
    optimizer.inlineEntryActions(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_ENTRY_ACTIONS, false));
    optimizer.inlineEnterSequences(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_ENTER_SEQUENCES, false));
    optimizer.inlineExitSequences(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_EXIT_SEQUENCES, false));
    optimizer.inlineChoices(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_CHOICES, false));
    optimizer.inlineEntries(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_ENTRIES, false));
    optimizer.inlineEnterRegion(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_ENTER_REGION, false));
    optimizer.inlineExitRegion(getBoolValue(optimizeConfig, FUNCTION_INLINING_FEATURE_INLINE_EXIT_REGION, false));
    return optimizer;
}
Also used : FlowOptimizer(org.yakindu.sct.model.sexec.transformation.FlowOptimizer) FeatureConfiguration(org.yakindu.sct.model.sgen.FeatureConfiguration)

Aggregations

FeatureConfiguration (org.yakindu.sct.model.sgen.FeatureConfiguration)12 FeatureType (org.yakindu.sct.model.sgen.FeatureType)6 Check (org.eclipse.xtext.validation.Check)4 FeatureParameterValue (org.yakindu.sct.model.sgen.FeatureParameterValue)4 FeatureParameter (org.yakindu.sct.model.sgen.FeatureParameter)3 GeneratorEntry (org.yakindu.sct.model.sgen.GeneratorEntry)3 ArrayList (java.util.ArrayList)1 IProject (org.eclipse.core.resources.IProject)1 Path (org.eclipse.core.runtime.Path)1 URI (org.eclipse.emf.common.util.URI)1 EObject (org.eclipse.emf.ecore.EObject)1 IEObjectDescription (org.eclipse.xtext.resource.IEObjectDescription)1 Test (org.junit.Test)1 IGeneratorDescriptor (org.yakindu.sct.generator.core.extensions.IGeneratorDescriptor)1 ILibraryDescriptor (org.yakindu.sct.generator.core.extensions.ILibraryDescriptor)1 FlowOptimizer (org.yakindu.sct.model.sexec.transformation.FlowOptimizer)1 GeneratorModel (org.yakindu.sct.model.sgen.GeneratorModel)1