Examples of Identity


Examples of org.jivesoftware.smackx.packet.DiscoverInfo.Identity

                        Verification.requestTypeGET);

        // build discover info for proxy containing information about NOT being a Socks5
        // proxy
        DiscoverInfo proxyInfo = Socks5PacketUtils.createDiscoverInfo(proxyJID, initiatorJID);
        Identity identity = new Identity("noproxy", proxyJID);
        identity.setType("bytestreams");
        proxyInfo.addIdentity(identity);

        // return the proxy identity if proxy is queried
        protocol.addResponse(proxyInfo, Verification.correspondingSenderReceiver,
                        Verification.requestTypeGET);
View Full Code Here

Examples of org.jostraca.section.Identity

    barin.setContent( bartext );
    SectionSet foobarin = new SectionSet();
    foobarin.addSection( fooin );
    foobarin.addSection( barin );

    Identity identity = new Identity();
   
    Section fooout = identity.modify( fooin, mps );
    assertTrue( fooout.getContent().equals( footext ) );
    assertTrue( fooout.getName().equals( fooname ) );

    identity.modify( barin, mps );
    assertTrue( barin.getContent().equals( bartext ) );
    assertTrue( barin.getName().equals( barname ) );   

    SectionSet  foobarout   = identity.modify( foobarin, mps );
    Enumeration sectionEnum = foobarout.enumerateSections();
    while( sectionEnum.hasMoreElements() ) {
      Section section = (Section) sectionEnum.nextElement();
      if( fooname.equals( section.getName() ) ) {
        assertTrue( section.getContent().equals( footext ) );
View Full Code Here

Examples of org.jquantlib.math.functions.Identity

        }
    }

    private void testSeveral(final Integrator I) {
        testSingle(I, "f(x) = 1",      new Constant(1.0),               0.0, 1.0, 1.0);
        testSingle(I, "f(x) = x",      new Identity(),                  0.0, 1.0, 0.5);
        testSingle(I, "f(x) = x^2",    new Square(),                    0.0, 1.0, 1.0/3.0);
        testSingle(I, "f(x) = sin(x)", new Sin(),                       0.0, Constants.M_PI, 2.0);
        testSingle(I, "f(x) = cos(x)", new Cos(),                       0.0, Constants.M_PI, 0.0);
        testSingle(I, "f(x) = Gaussian(x)", new NormalDistribution(), -10.0, 10.0, 1.0);
View Full Code Here

Examples of org.jquantlib.math.functions.Identity

    \f[ \langle x \rangle = \frac{\sum w_i x_i}{\sum w_i}. \f]
     */
    public final double mean() {
        final int size = getSampleSize();
        QL.require(size > 0 , empty_sample_set); // QA:[RG]::verified
        return expectationValue(new Identity(), new TruePredicate()).getFirst();
    }
View Full Code Here

Examples of org.jquantlib.math.functions.Identity

            return (deltaPlus - deltaMinus) / (grid.get(jmid) - grid.get(jmid - 1));
        }
    }

    public void regrid(final Array newGrid) {
        regrid(newGrid, new Identity());
    }
View Full Code Here

Examples of org.jquantlib.math.functions.Identity

            //throw new IllegalArgumentException(empty_sample_set);
        }
        final double target = -valueAtRisk(centile);

        final Ops.DoublePredicate less = new Bind2ndPredicate(new LessThanPredicate(), target);
        final Pair<Double, Integer> result = statistics.expectationValue(new Identity(), less);

        final double x = result.getFirst();
        final Integer N = result.getSecond();

        if(N.intValue() ==  0.0)
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Identity

              { 1.00.90.7 },
              { 0.91.00.3 },
              { 0.70.31.0 }
        }, flags);

        final Matrix I = new Identity(3, flags);

        final Matrix M3 = new Matrix(new double[][] {
              { 1,   2,   3,   4 },
              { 2,   0,   2,   1 },
              { 0,   1,   0,   0 }
View Full Code Here

Examples of org.nimbustools.ctxbroker.Identity

            final StringBuffer buf = new StringBuffer();
            buf.append("Broker hearing from a VM for first time, IP(s)=");

            Identity[] ids = new Identity[identities.length];
            for (int i = 0; i < identities.length; i++) {
                ids[i] = new Identity();
                ids[i].setIface(identities[i].get_interface());
                ids[i].setIp(identities[i].getIp());
                buf.append(" '").append(identities[i].getIp()).append("'");
                ids[i].setHostname(identities[i].getHostname());
                ids[i].setPubkey(identities[i].getPubkey());
View Full Code Here

Examples of org.objectweb.joram.shared.security.Identity

      long dt = Math.abs(StreamUtil.readLongFrom(is) - System.currentTimeMillis());
      if (dt > clockSynchroThreshold)
        logger.log(BasicLevel.WARN, " -> bad clock synchronization between client and server: " + dt);
      StreamUtil.writeTo(dt, nos);

      Identity identity = Identity.read(is);
      if (logger.isLoggable(BasicLevel.DEBUG))
        logger.log(BasicLevel.DEBUG, " -> read identity = " + identity);

      int key = StreamUtil.readIntFrom(is);
      if (logger.isLoggable(BasicLevel.DEBUG))
View Full Code Here

Examples of org.objectweb.joram.shared.security.Identity

                           int heartBeat) throws Exception {
    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG,
                 "SoapProxyService.setConnection(" + identityMap + ',' + heartBeat + ')');

    Identity identity = (Identity) Identity.soapDecode(identityMap);
   
    GetProxyIdNot gpin = new GetProxyIdNot(identity, null);
    gpin.invoke(AdminTopic.getDefault());
    AgentId proxyId = gpin.getProxyId();
   
    OpenConnectionNot ocn = new OpenConnectionNot(false, heartBeat)
    ocn.invoke(proxyId);

    StandardConnectionContext cc = (StandardConnectionContext) ocn.getConnectionContext();
    ProxyConnectionContext pcc = new ProxyConnectionContext(proxyId, cc.getQueue());
    connections.put(new ConnectionKey(identity.getUserName(), cc.getKey()), pcc);
   
    return cc.getKey();
  }
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.