PortInstance.java 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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>Port Instance</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.PortInstance#getUnit <em>Unit</em>}</li>
  15. * <li>{@link ua.ansymo.hintco.PortInstance#getAdaptation <em>Adaptation</em>}</li>
  16. * </ul>
  17. *
  18. * @see ua.ansymo.hintco.HintcoPackage#getPortInstance()
  19. * @model abstract="true"
  20. * @generated
  21. */
  22. public interface PortInstance extends PrecendenceNode, IDed {
  23. /**
  24. * Returns the value of the '<em><b>Unit</b></em>' container reference.
  25. * It is bidirectional and its opposite is '{@link ua.ansymo.hintco.UnitInstance#getPorts <em>Ports</em>}'.
  26. * <!-- begin-user-doc -->
  27. * <p>
  28. * If the meaning of the '<em>Unit</em>' container reference isn't clear,
  29. * there really should be more of a description here...
  30. * </p>
  31. * <!-- end-user-doc -->
  32. * @return the value of the '<em>Unit</em>' container reference.
  33. * @see #setUnit(UnitInstance)
  34. * @see ua.ansymo.hintco.HintcoPackage#getPortInstance_Unit()
  35. * @see ua.ansymo.hintco.UnitInstance#getPorts
  36. * @model opposite="ports" transient="false"
  37. * @generated
  38. */
  39. UnitInstance getUnit();
  40. /**
  41. * Sets the value of the '{@link ua.ansymo.hintco.PortInstance#getUnit <em>Unit</em>}' container reference.
  42. * <!-- begin-user-doc -->
  43. * <!-- end-user-doc -->
  44. * @param value the new value of the '<em>Unit</em>' container reference.
  45. * @see #getUnit()
  46. * @generated
  47. */
  48. void setUnit(UnitInstance value);
  49. /**
  50. * Returns the value of the '<em><b>Adaptation</b></em>' containment reference.
  51. * It is bidirectional and its opposite is '{@link ua.ansymo.hintco.PortAdaptation#getPort <em>Port</em>}'.
  52. * <!-- begin-user-doc -->
  53. * <p>
  54. * If the meaning of the '<em>Adaptation</em>' containment reference isn't clear,
  55. * there really should be more of a description here...
  56. * </p>
  57. * <!-- end-user-doc -->
  58. * @return the value of the '<em>Adaptation</em>' containment reference.
  59. * @see #setAdaptation(PortAdaptation)
  60. * @see ua.ansymo.hintco.HintcoPackage#getPortInstance_Adaptation()
  61. * @see ua.ansymo.hintco.PortAdaptation#getPort
  62. * @model opposite="port" containment="true"
  63. * @generated
  64. */
  65. PortAdaptation getAdaptation();
  66. /**
  67. * Sets the value of the '{@link ua.ansymo.hintco.PortInstance#getAdaptation <em>Adaptation</em>}' containment reference.
  68. * <!-- begin-user-doc -->
  69. * <!-- end-user-doc -->
  70. * @param value the new value of the '<em>Adaptation</em>' containment reference.
  71. * @see #getAdaptation()
  72. * @generated
  73. */
  74. void setAdaptation(PortAdaptation value);
  75. /**
  76. * <!-- begin-user-doc -->
  77. * <!-- end-user-doc -->
  78. * @model unique="false"
  79. * annotation="http://www.eclipse.org/emf/2002/GenModel body='&lt;%ua.ansymo.hintco.PortAdaptation%&gt; _adaptation = this.getAdaptation();\nboolean _tripleEquals = (_adaptation == null);\nif (_tripleEquals)\n{\n\treturn new &lt;%org.eclipse.emf.common.util.BasicEList%&gt;&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;(java.util.Collections.&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;unmodifiableList(org.eclipse.xtext.xbase.lib.CollectionLiterals.&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;newArrayList()));\n}\nboolean _isSelected = this.getAdaptation().isSelected();\nif (_isSelected)\n{\n\t&lt;%ua.ansymo.hintco.PortAdaptation%&gt; _adaptation_1 = this.getAdaptation();\n\tif ((_adaptation_1 instanceof &lt;%ua.ansymo.hintco.DecompositionPortAdaptation%&gt;))\n\t{\n\t\t&lt;%ua.ansymo.hintco.PortAdaptation%&gt; _adaptation_2 = this.getAdaptation();\n\t\treturn ((&lt;%ua.ansymo.hintco.DecompositionPortAdaptation%&gt;) _adaptation_2).selectedAdaptations();\n\t}\n\t&lt;%ua.ansymo.hintco.PortAdaptation%&gt; _adaptation_3 = this.getAdaptation();\n\treturn new &lt;%org.eclipse.emf.common.util.BasicEList%&gt;&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;(java.util.Collections.&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;unmodifiableList(org.eclipse.xtext.xbase.lib.CollectionLiterals.&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;newArrayList(_adaptation_3)));\n}\nreturn new &lt;%org.eclipse.emf.common.util.BasicEList%&gt;&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;(java.util.Collections.&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;unmodifiableList(org.eclipse.xtext.xbase.lib.CollectionLiterals.&lt;&lt;%ua.ansymo.hintco.PortAdaptation%&gt;&gt;newArrayList()));'"
  80. * @generated
  81. */
  82. EList<PortAdaptation> selectedAdaptations();
  83. /**
  84. * <!-- begin-user-doc -->
  85. * <!-- end-user-doc -->
  86. * @model kind="operation" unique="false"
  87. * annotation="http://www.eclipse.org/emf/2002/GenModel body='return false;'"
  88. * @generated
  89. */
  90. boolean isInput();
  91. /**
  92. * <!-- begin-user-doc -->
  93. * <!-- end-user-doc -->
  94. * @model unique="false" pUnique="false"
  95. * annotation="http://www.eclipse.org/emf/2002/GenModel body='return false;'"
  96. * @generated
  97. */
  98. boolean getsValueFrom(PortInstance p);
  99. /**
  100. * <!-- begin-user-doc -->
  101. * <!-- end-user-doc -->
  102. * @model unique="false"
  103. * annotation="http://www.eclipse.org/emf/2002/GenModel body='&lt;%java.lang.String%&gt; _string = this.getUnit().toString();\n&lt;%java.lang.String%&gt; _plus = (_string + \".\");\n&lt;%java.lang.String%&gt; _identifier = this.getIdentifier();\nreturn (_plus + _identifier);'"
  104. * @generated
  105. */
  106. String toString();
  107. } // PortInstance