123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- /**
- */
- package ua.ansymo.hintco;
- import org.eclipse.emf.common.util.EList;
- /**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Port Instance</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link ua.ansymo.hintco.PortInstance#getUnit <em>Unit</em>}</li>
- * <li>{@link ua.ansymo.hintco.PortInstance#getAdaptation <em>Adaptation</em>}</li>
- * </ul>
- *
- * @see ua.ansymo.hintco.HintcoPackage#getPortInstance()
- * @model abstract="true"
- * @generated
- */
- public interface PortInstance extends PrecendenceNode, IDed {
- /**
- * Returns the value of the '<em><b>Unit</b></em>' container reference.
- * It is bidirectional and its opposite is '{@link ua.ansymo.hintco.UnitInstance#getPorts <em>Ports</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Unit</em>' container reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Unit</em>' container reference.
- * @see #setUnit(UnitInstance)
- * @see ua.ansymo.hintco.HintcoPackage#getPortInstance_Unit()
- * @see ua.ansymo.hintco.UnitInstance#getPorts
- * @model opposite="ports" transient="false"
- * @generated
- */
- UnitInstance getUnit();
- /**
- * Sets the value of the '{@link ua.ansymo.hintco.PortInstance#getUnit <em>Unit</em>}' container reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Unit</em>' container reference.
- * @see #getUnit()
- * @generated
- */
- void setUnit(UnitInstance value);
- /**
- * Returns the value of the '<em><b>Adaptation</b></em>' containment reference.
- * It is bidirectional and its opposite is '{@link ua.ansymo.hintco.PortAdaptation#getPort <em>Port</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Adaptation</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Adaptation</em>' containment reference.
- * @see #setAdaptation(PortAdaptation)
- * @see ua.ansymo.hintco.HintcoPackage#getPortInstance_Adaptation()
- * @see ua.ansymo.hintco.PortAdaptation#getPort
- * @model opposite="port" containment="true"
- * @generated
- */
- PortAdaptation getAdaptation();
- /**
- * Sets the value of the '{@link ua.ansymo.hintco.PortInstance#getAdaptation <em>Adaptation</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Adaptation</em>' containment reference.
- * @see #getAdaptation()
- * @generated
- */
- void setAdaptation(PortAdaptation value);
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model unique="false"
- * annotation="http://www.eclipse.org/emf/2002/GenModel body='<%ua.ansymo.hintco.PortAdaptation%> _adaptation = this.getAdaptation();\nboolean _tripleEquals = (_adaptation == null);\nif (_tripleEquals)\n{\n\treturn new <%org.eclipse.emf.common.util.BasicEList%><<%ua.ansymo.hintco.PortAdaptation%>>(java.util.Collections.<<%ua.ansymo.hintco.PortAdaptation%>>unmodifiableList(org.eclipse.xtext.xbase.lib.CollectionLiterals.<<%ua.ansymo.hintco.PortAdaptation%>>newArrayList()));\n}\nboolean _isSelected = this.getAdaptation().isSelected();\nif (_isSelected)\n{\n\t<%ua.ansymo.hintco.PortAdaptation%> _adaptation_1 = this.getAdaptation();\n\tif ((_adaptation_1 instanceof <%ua.ansymo.hintco.DecompositionPortAdaptation%>))\n\t{\n\t\t<%ua.ansymo.hintco.PortAdaptation%> _adaptation_2 = this.getAdaptation();\n\t\treturn ((<%ua.ansymo.hintco.DecompositionPortAdaptation%>) _adaptation_2).selectedAdaptations();\n\t}\n\t<%ua.ansymo.hintco.PortAdaptation%> _adaptation_3 = this.getAdaptation();\n\treturn new <%org.eclipse.emf.common.util.BasicEList%><<%ua.ansymo.hintco.PortAdaptation%>>(java.util.Collections.<<%ua.ansymo.hintco.PortAdaptation%>>unmodifiableList(org.eclipse.xtext.xbase.lib.CollectionLiterals.<<%ua.ansymo.hintco.PortAdaptation%>>newArrayList(_adaptation_3)));\n}\nreturn new <%org.eclipse.emf.common.util.BasicEList%><<%ua.ansymo.hintco.PortAdaptation%>>(java.util.Collections.<<%ua.ansymo.hintco.PortAdaptation%>>unmodifiableList(org.eclipse.xtext.xbase.lib.CollectionLiterals.<<%ua.ansymo.hintco.PortAdaptation%>>newArrayList()));'"
- * @generated
- */
- EList<PortAdaptation> selectedAdaptations();
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model kind="operation" unique="false"
- * annotation="http://www.eclipse.org/emf/2002/GenModel body='return false;'"
- * @generated
- */
- boolean isInput();
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model unique="false" pUnique="false"
- * annotation="http://www.eclipse.org/emf/2002/GenModel body='return false;'"
- * @generated
- */
- boolean getsValueFrom(PortInstance p);
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model unique="false"
- * annotation="http://www.eclipse.org/emf/2002/GenModel body='<%java.lang.String%> _string = this.getUnit().toString();\n<%java.lang.String%> _plus = (_string + \".\");\n<%java.lang.String%> _identifier = this.getIdentifier();\nreturn (_plus + _identifier);'"
- * @generated
- */
- String toString();
- } // PortInstance
|