Package org.eclipse.papyrus.sysml.portandflows

Examples of org.eclipse.papyrus.sysml.portandflows.FlowPort


    }
    return null;
  }

  public boolean isOutFlowPort(NamedElement element) {
    FlowPort port = getFlowPort(element);
    return port.getDirection().equals(FlowDirection.OUT);
  }
View Full Code Here


    FlowPort port = getFlowPort(element);
    return port.getDirection().equals(FlowDirection.OUT);
  }

  public boolean isInFlowPort(NamedElement element) {
    FlowPort port = getFlowPort(element);
    return port.getDirection().equals(FlowDirection.IN);
  }
View Full Code Here

    } else {
      result = EcoreUtil.equals(source.getType(), target.getType());
    }

    if (result) {
      final FlowPort sourcePort = getFlowPortApplication(source);
      final FlowPort targetPort = getFlowPortApplication(target);

      if (sourcePort == null && targetPort == null)
        return true;

      if (sourcePort != null && targetPort != null) {
        if (isOppositeDirection) {
          return sourcePort.getDirection() != targetPort.getDirection()
              || (sourcePort.getDirection() == targetPort.getDirection() && sourcePort
                  .getDirection() == FlowDirection.INOUT);
        }
        return sourcePort.getDirection() == targetPort.getDirection();
      }
    }
    return false;

  }
View Full Code Here

  @Override
  protected T doSwitch(int classifierID, EObject theEObject) {
    switch(classifierID) {
    case PortandflowsPackage.FLOW_PORT:
    {
      FlowPort flowPort = (FlowPort)theEObject;
      T result = caseFlowPort(flowPort);
      if(result == null)
        result = defaultCase(theEObject);
      return result;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.papyrus.sysml.portandflows.FlowPort

Copyright © 2018 www.massapicom. 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.