Examples of Satisfy


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

   * @generated NOT
   */
  public EList<Requirement> getSatisfies() {
    // This should return the Requirement(s) satisfied by current element
    EList<Requirement> satisfies = new BasicEList<Requirement>();
    Satisfy currentSatisfy = null;

    if(getBase_NamedElement() != null) {
      // Find Satisfy link
      Iterator<Dependency> itDep = getBase_NamedElement().getClientDependencies().iterator();

      while(itDep.hasNext()) {
        Dependency currentDependency = itDep.next();
        currentSatisfy = UMLUtil.getStereotypeApplication(currentDependency, Satisfy.class);

        if(currentSatisfy != null) {
          EList<NamedElement> suppliers = currentSatisfy.getBase_Abstraction().getSuppliers();
          Iterator<NamedElement> it = suppliers.iterator();
          while(it.hasNext()) {
            Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
            if(currentRequirement != null) {
              satisfies.add(currentRequirement);
View Full Code Here

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

   */
  public EList<NamedElement> getSatisfiedBy() {
    // This should return the NamedElement(s) that satisfy current
    // Requirement
    EList<NamedElement> satisfyBy = new BasicEList<NamedElement>();
    Satisfy currentSatisfy = null;

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

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

        if(currentSatisfy != null) {
          satisfyBy.addAll(currentSatisfy.getBase_Abstraction().getClients());
        }
      }
    }

    UnmodifiableEList<NamedElement> resultList = new UnmodifiableEList<NamedElement>(this, RequirementsPackage.eINSTANCE.getRequirement_SatisfiedBy(), satisfyBy.size(), satisfyBy.toArray());
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.