Examples of DeriveReqt


Examples of org.eclipse.papyrus.sysml.requirements.DeriveReqt

   * @generated NOT
   */
  public EList<Requirement> getDerived() {
    // This should return the Requirement(s) derived from current
    EList<Requirement> derived = new BasicEList<Requirement>();
    DeriveReqt currentDeriveReqt = null;

    if(getBase_Class() != null) {
      Iterator<DirectedRelationship> itDep = getBase_Class().getTargetDirectedRelationships().iterator();

      // Find DeriveReqt link
      while(itDep.hasNext()) {
        DirectedRelationship currentDirectedRelationship = itDep.next();
        currentDeriveReqt = UMLUtil.getStereotypeApplication(currentDirectedRelationship, DeriveReqt.class);

        if(currentDeriveReqt != null) {
          EList<NamedElement> clients = currentDeriveReqt.getBase_Abstraction().getClients();
          Iterator<NamedElement> it = clients.iterator();
          while(it.hasNext()) {
            Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
            if(currentRequirement != null) {
              derived.add(currentRequirement);
View Full Code Here

Examples of org.eclipse.papyrus.sysml.requirements.DeriveReqt

   */
  public EList<Requirement> getDerivedFrom() {
    // This should return the Requirement(s) this Requirement is derived
    // from
    EList<Requirement> derivedFrom = new BasicEList<Requirement>();
    DeriveReqt currentDeriveReqt = null;
    if(getBase_Class() != null) {
      Iterator<DirectedRelationship> itDep = getBase_Class().getSourceDirectedRelationships().iterator();

      // Find DeriveReqt link
      while(itDep.hasNext()) {
        DirectedRelationship currentDRelationship = itDep.next();
        currentDeriveReqt = UMLUtil.getStereotypeApplication(currentDRelationship, DeriveReqt.class);

        if(currentDeriveReqt != null) {
          EList<NamedElement> suppliers = currentDeriveReqt.getBase_Abstraction().getSuppliers();
          Iterator<NamedElement> it = suppliers.iterator();
          while(it.hasNext()) {
            Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
            if(currentRequirement != null) {
              derivedFrom.add(currentRequirement);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.