Search in sources :

Example 1 with BasicInternalEList

use of org.eclipse.emf.ecore.util.BasicInternalEList in project statecharts by Yakindu.

the class StateImpl method getLocalReactions.

/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 *
 * @generated NOT
 */
public EList<Reaction> getLocalReactions() {
    EList<Reaction> result = new BasicInternalEList<Reaction>(Reaction.class);
    EList<Scope> scopes = getScopes();
    for (Scope scope : scopes) {
        result.addAll(scope.getReactions());
    }
    return result;
}
Also used : Scope(org.yakindu.sct.model.sgraph.Scope) BasicInternalEList(org.eclipse.emf.ecore.util.BasicInternalEList) Reaction(org.yakindu.sct.model.sgraph.Reaction)

Example 2 with BasicInternalEList

use of org.eclipse.emf.ecore.util.BasicInternalEList in project statecharts by Yakindu.

the class StatechartImpl method getLocalReactions.

/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 *
 * @generated NOT
 */
public EList<Reaction> getLocalReactions() {
    EList<Reaction> result = new BasicInternalEList<Reaction>(Reaction.class);
    EList<Scope> scopes = getScopes();
    for (Scope scope : scopes) {
        result.addAll(scope.getReactions());
    }
    return result;
}
Also used : Scope(org.yakindu.sct.model.sgraph.Scope) BasicInternalEList(org.eclipse.emf.ecore.util.BasicInternalEList) Reaction(org.yakindu.sct.model.sgraph.Reaction)

Aggregations

BasicInternalEList (org.eclipse.emf.ecore.util.BasicInternalEList)2 Reaction (org.yakindu.sct.model.sgraph.Reaction)2 Scope (org.yakindu.sct.model.sgraph.Scope)2