Search in sources :

Example 21 with ModeTransition

use of org.osate.aadl2.ModeTransition in project osate2 by osate.

the class ModeTransitionHandler method getRelativeReference.

@Override
public RelativeBusinessObjectReference getRelativeReference(final ReferenceContext ctx) {
    final ModeTransition mt = ctx.getBusinessObject(ModeTransition.class).get();
    final String name = mt.getName();
    if (name == null) {
        return AadlReferenceUtil.getUnnamedModeTransitionRelativeReference(mt);
    } else {
        return AadlReferenceUtil.buildSimpleRelativeReference(DeclarativeReferenceType.MODE_TRANSITION_NAMED.getId(), mt);
    }
}
Also used : ModeTransition(org.osate.aadl2.ModeTransition)

Aggregations

ModeTransition (org.osate.aadl2.ModeTransition)16 ModeTransitionTrigger (org.osate.aadl2.ModeTransitionTrigger)10 FeatureGroup (org.osate.aadl2.FeatureGroup)7 Mode (org.osate.aadl2.Mode)6 Subcomponent (org.osate.aadl2.Subcomponent)6 Context (org.osate.aadl2.Context)5 Feature (org.osate.aadl2.Feature)5 FlowSpecification (org.osate.aadl2.FlowSpecification)5 Classifier (org.osate.aadl2.Classifier)4 SubprogramCall (org.osate.aadl2.SubprogramCall)4 FeatureInstance (org.osate.aadl2.instance.FeatureInstance)4 ModeTransitionInstance (org.osate.aadl2.instance.ModeTransitionInstance)4 EObject (org.eclipse.emf.ecore.EObject)3 ComponentClassifier (org.osate.aadl2.ComponentClassifier)3 ComponentImplementation (org.osate.aadl2.ComponentImplementation)3 ConnectedElement (org.osate.aadl2.ConnectedElement)3 FeatureGroupType (org.osate.aadl2.FeatureGroupType)3 SubprogramSubcomponent (org.osate.aadl2.SubprogramSubcomponent)3 ArrayList (java.util.ArrayList)2 IScopeContext (org.eclipse.core.runtime.preferences.IScopeContext)2