123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /**
- */
- package ua.ansymo.hintco;
- import org.eclipse.emf.common.util.EList;
- /**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Decomposition Port Adaptation</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link ua.ansymo.hintco.DecompositionPortAdaptation#getChildren <em>Children</em>}</li>
- * <li>{@link ua.ansymo.hintco.DecompositionPortAdaptation#getName <em>Name</em>}</li>
- * </ul>
- *
- * @see ua.ansymo.hintco.HintcoPackage#getDecompositionPortAdaptation()
- * @model abstract="true"
- * @generated
- */
- public interface DecompositionPortAdaptation extends PortAdaptation {
- /**
- * Returns the value of the '<em><b>Children</b></em>' containment reference list.
- * The list contents are of type {@link ua.ansymo.hintco.PortAdaptation}.
- * It is bidirectional and its opposite is '{@link ua.ansymo.hintco.PortAdaptation#getParent <em>Parent</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Children</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Children</em>' containment reference list.
- * @see ua.ansymo.hintco.HintcoPackage#getDecompositionPortAdaptation_Children()
- * @see ua.ansymo.hintco.PortAdaptation#getParent
- * @model opposite="parent" containment="true"
- * @generated
- */
- EList<PortAdaptation> getChildren();
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see ua.ansymo.hintco.HintcoPackage#getDecompositionPortAdaptation_Name()
- * @model unique="false" transient="true" changeable="false" volatile="true" derived="true"
- * annotation="http://www.eclipse.org/emf/2002/GenModel get='int _weight = this.getWeight();\n<%java.lang.String%> _plus = (\"(w=\" + <%java.lang.Integer%>.valueOf(_weight));\nreturn (_plus + \")\");'"
- * @generated
- */
- String getName();
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model unique="false"
- * annotation="http://www.eclipse.org/emf/2002/GenModel body='int _size = this.getChildren().size();\nfinal <%org.eclipse.emf.common.util.BasicEList%><<%ua.ansymo.hintco.PortAdaptation%>> res = new <%org.eclipse.emf.common.util.BasicEList%><<%ua.ansymo.hintco.PortAdaptation%>>(_size);\nfinal <%org.eclipse.xtext.xbase.lib.Functions.Function1%><<%ua.ansymo.hintco.PortAdaptation%>, <%java.lang.Boolean%>> _function = new <%org.eclipse.xtext.xbase.lib.Functions.Function1%><<%ua.ansymo.hintco.PortAdaptation%>, <%java.lang.Boolean%>>()\n{\n\tpublic <%java.lang.Boolean%> apply(final <%ua.ansymo.hintco.PortAdaptation%> a)\n\t{\n\t\treturn <%java.lang.Boolean%>.valueOf(a.isSelected());\n\t}\n};\n<%java.lang.Iterable%><<%ua.ansymo.hintco.PortAdaptation%>> _filter = <%org.eclipse.xtext.xbase.lib.IterableExtensions%>.<<%ua.ansymo.hintco.PortAdaptation%>>filter(this.getChildren(), _function);\nfor (final <%ua.ansymo.hintco.PortAdaptation%> c : _filter)\n{\n\tif ((c instanceof <%ua.ansymo.hintco.DecompositionPortAdaptation%>))\n\t{\n\t\tres.addAll(((<%ua.ansymo.hintco.DecompositionPortAdaptation%>)c).selectedAdaptations());\n\t}\n\telse\n\t{\n\t\tres.add(c);\n\t}\n}\nreturn res;'"
- * @generated
- */
- EList<PortAdaptation> selectedAdaptations();
- } // DecompositionPortAdaptation
|