Examples of Gate


Examples of org.openiaml.model.model.components.Gate

    Session container = assertHasSession(root, "Containing Session");
    Session session = assertHasSession(container, "Protected Session");
    Frame see = assertHasFrame(session, "See Your OpenID");
    Label openid = assertHasLabel(see, "Current OpenID");
    Gate gate = session.getEntryGate();
    assertEquals("Entry Gate", gate.getName());

    Frame enter = assertHasFrame(container, "Provide Current OpenID");
    assertGenerated(enter);

    // it has one text field
View Full Code Here

Examples of org.openiaml.model.model.components.Gate

    Session container = assertHasSession(root, "Containing Session");
    Session session = assertHasSession(container, "Protected Session");
    Frame see = assertHasFrame(session, "See Your OpenID");
    Label openid = assertHasLabel(see, "Current OpenID");
    Gate gate = session.getEntryGate();
    assertEquals("Entry Gate", gate.getName());

    // a Function is set within the openid label, "fieldValue is set"
    Function cond = assertHasFunction(openid, "fieldValue is set");
    assertGenerated(cond);
View Full Code Here

Examples of org.openiaml.model.model.components.Gate

   */
  public void testProvidePageHasContinueButton() throws Exception {

    Session container = assertHasSession(root, "Containing Session");
    Session session = assertHasSession(container, "Protected Session");
    Gate gate = session.getEntryGate();
    assertEquals("Entry Gate", gate.getName());

    Frame enter = assertHasFrame(container, "Provide Current OpenID");

    // there's a Button named 'resume'
    Button button = assertHasButton(enter, "Continue");
View Full Code Here

Examples of simtools.diagram.gate.Gate

        if (_elementContainer.getSelection().getShapeCount()==1 &&  _elementContainer.getSelection().getSelectedShape(0) instanceof ConnectionPathSelection){
            ConnectionPathSelection cs = (ConnectionPathSelection)_elementContainer.getSelection().getSelectedShape(0);
            Connection connection = cs.getConnection();

            if( cs.isFirstEndSelected() && connection.getFirstEndGate()!=null ){
                Gate firstGate = connection.getFirstEndGate()
                connection.disconnect(firstGate);
                ce.addEdit(new GateDisconnectEdit(connection, firstGate,true));  

            } else if( cs.isLastEndSelected() && connection.getLastEndGate()!=null  ){
                Gate lastGate = connection.getLastEndGate()
                connection.disconnect(lastGate);
                ce.addEdit(new GateDisconnectEdit(connection, lastGate,false));  
            }
        }
View Full Code Here

Examples of simtools.diagram.gate.Gate

        for(int i=0;i<_currentTrackedGates.size(); i++){
            TrackedGate tg = (TrackedGate)_currentTrackedGates.get(i);
           
            // Check whether or not a connection is allowed with the current gate
            boolean allowConnection = true;
            Gate otherGate;
           
            if (tg.connection != null){
                if (tg.isFirstEnd){
                    otherGate = tg.connection.getLastEndGate();
                }else {
View Full Code Here

Examples of simtools.diagram.gate.Gate

            for(int i=0;i<_currentTrackedGates.size();i++){

                TrackedGate tg = (TrackedGate)_currentTrackedGates.get(i);

                Gate otherGate = tg.isFirstEnd? tg.connection.getFirstEndGate() : tg.connection.getLastEndGate();


                if (tg.gate.allowConnection(otherGate)){
                    // Perform the connection
                    tg.connection.connect(tg.gate, tg.isFirstEnd);
View Full Code Here

Examples of simtools.diagram.gate.Gate

                        _dragPoint.translate(dx,dy);

                    }else if (currentElementCreator != null && !_elementHasBeenCreated){
                        _elementHasBeenCreated = true;

                        Gate selectedGate = null;
                        if(!_currentTrackedGates.isEmpty() ){
                            selectedGate =  ((TrackedGate)_currentTrackedGates.get(0)).gate;
                        }

                       // Create a new element
View Full Code Here

Examples of simtools.diagram.gate.Gate

             if (ds instanceof ConnectionPathSelection){

                 ConnectionPathSelection cs = (ConnectionPathSelection)ds;
                 Connection connection = cs.getConnection();

                 Gate firstGate = connection.getFirstEndGate()
                 if (firstGate!=null && !_elementContainer.getSelection().isSelected((Shape)firstGate.getOwner())) {
                     res = false;
                 }

                 Gate lastGate = connection.getLastEndGate();
                 if (lastGate!=null && !_elementContainer.getSelection().isSelected((Shape)lastGate.getOwner())) {
                     res = false;
                 }
             }
         }
         return res;
View Full Code Here

Examples of simtools.diagram.gate.Gate

    public TestGatedRectangle(int x, int y, int w, int h) {
        super(x, y, w, h);
        gateHolder = new GatesHolder(this);

        addGate(northGate = new Gate(this, Gate.NORTH));
        addGate(southGate = new Gate(this, Gate.SOUTH));
        addGate(eastGate = new Gate(this, Gate.EAST));
        addGate(westGate = new Gate(this, Gate.WEST));
    }
View Full Code Here

Examples of simtools.diagram.gate.Gate

        // Now Copy the connectors
        for (int i = 0; i < selectedConnectors.size(); i++) {
            Connection connection = (Connection) selectedConnectors.get(i);

            if (connection instanceof AbstractShape){
                Gate fisrtGate = (Gate) connection.getFirstEndGate();
                Gate lastGate = (Gate) connection.getLastEndGate();
               
                Gate newFg = null;
                Gate newLg = null;

                if ((fisrtGate!=null) && selectedGatedComponent.contains(fisrtGate.getOwner())){
                    newFg = (Gate) clonedGates.get(fisrtGate);
                }
                if ((lastGate!=null) && selectedGatedComponent.contains(lastGate.getOwner())){
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.