DecompositionPortAdaptation.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. */
  3. package ua.ansymo.hintco;
  4. import org.eclipse.emf.common.util.EList;
  5. /**
  6. * <!-- begin-user-doc -->
  7. * A representation of the model object '<em><b>Decomposition Port Adaptation</b></em>'.
  8. * <!-- end-user-doc -->
  9. *
  10. * <p>
  11. * The following features are supported:
  12. * </p>
  13. * <ul>
  14. * <li>{@link ua.ansymo.hintco.DecompositionPortAdaptation#getChildren <em>Children</em>}</li>
  15. * <li>{@link ua.ansymo.hintco.DecompositionPortAdaptation#getName <em>Name</em>}</li>
  16. * </ul>
  17. *
  18. * @see ua.ansymo.hintco.HintcoPackage#getDecompositionPortAdaptation()
  19. * @model abstract="true"
  20. * @generated
  21. */
  22. public interface DecompositionPortAdaptation extends PortAdaptation {
  23. /**
  24. * Returns the value of the '<em><b>Children</b></em>' containment reference list.
  25. * The list contents are of type {@link ua.ansymo.hintco.PortAdaptation}.
  26. * It is bidirectional and its opposite is '{@link ua.ansymo.hintco.PortAdaptation#getParent <em>Parent</em>}'.
  27. * <!-- begin-user-doc -->
  28. * <p>
  29. * If the meaning of the '<em>Children</em>' containment reference list isn't clear,
  30. * there really should be more of a description here...
  31. * </p>
  32. * <!-- end-user-doc -->
  33. * @return the value of the '<em>Children</em>' containment reference list.
  34. * @see ua.ansymo.hintco.HintcoPackage#getDecompositionPortAdaptation_Children()
  35. * @see ua.ansymo.hintco.PortAdaptation#getParent
  36. * @model opposite="parent" containment="true"
  37. * @generated
  38. */
  39. EList<PortAdaptation> getChildren();
  40. /**
  41. * Returns the value of the '<em><b>Name</b></em>' attribute.
  42. * <!-- begin-user-doc -->
  43. * <p>
  44. * If the meaning of the '<em>Name</em>' attribute isn't clear,
  45. * there really should be more of a description here...
  46. * </p>
  47. * <!-- end-user-doc -->
  48. * @return the value of the '<em>Name</em>' attribute.
  49. * @see ua.ansymo.hintco.HintcoPackage#getDecompositionPortAdaptation_Name()
  50. * @model unique="false" transient="true" changeable="false" volatile="true" derived="true"
  51. * annotation="http://www.eclipse.org/emf/2002/GenModel get='int _weight = this.getWeight();\n&lt;%java.lang.String%&gt; _plus = (\"(w=\" + &lt;%java.lang.Integer%&gt;.valueOf(_weight));\nreturn (_plus + \")\");'"
  52. * @generated
  53. */
  54. String getName();
  55. /**
  56. * <!-- begin-user-doc -->
  57. * <!-- end-user-doc -->
  58. * @model unique="false"
  59. * annotation="http://www.eclipse.org/emf/2002/GenModel body='int _size = this.getChildren().size();\nfinal &lt;%org.eclipse.emf.common.util.BasicEList%&gt;&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt; res = new &lt;%org.eclipse.emf.common.util.BasicEList%&gt;&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;(_size);\nfinal &lt;%org.eclipse.xtext.xbase.lib.Functions.Function1%&gt;&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;, &lt;%java.lang.Boolean%&gt;&gt; _function = new &lt;%org.eclipse.xtext.xbase.lib.Functions.Function1%&gt;&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;, &lt;%java.lang.Boolean%&gt;&gt;()\n{\n\tpublic &lt;%java.lang.Boolean%&gt; apply(final &lt;%ua.ansymo.hintco.PortAdaptation%&gt; a)\n\t{\n\t\treturn &lt;%java.lang.Boolean%&gt;.valueOf(a.isSelected());\n\t}\n};\n&lt;%java.lang.Iterable%&gt;&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt; _filter = &lt;%org.eclipse.xtext.xbase.lib.IterableExtensions%&gt;.&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;filter(this.getChildren(), _function);\nfor (final &lt;%ua.ansymo.hintco.PortAdaptation%&gt; c : _filter)\n{\n\tif ((c instanceof &lt;%ua.ansymo.hintco.DecompositionPortAdaptation%&gt;))\n\t{\n\t\tres.addAll(((&lt;%ua.ansymo.hintco.DecompositionPortAdaptation%&gt;)c).selectedAdaptations());\n\t}\n\telse\n\t{\n\t\tres.add(c);\n\t}\n}\nreturn res;'"
  60. * @generated
  61. */
  62. EList<PortAdaptation> selectedAdaptations();
  63. } // DecompositionPortAdaptation