Examples of Symmetry


Examples of cc.redberry.core.combinatorics.Symmetry

                continue;
            if (typeData.length == 0)//redundant
                continue;
            int cpunt = random.nextInt(4);
            for (i = 0; i < cpunt; ++i)
                descriptor.getSymmetries().addUnsafe(type, new Symmetry(nextPermutation(typeData.length), false));
        }
    }
View Full Code Here

Examples of org.nfctools.llcp.pdu.Symmetry

  @Test
  public void testWellKnownServiceConnectWithSendAndDisconnect() throws Exception {
    DummyServiceAccessPoint serviceAccessPoint = new DummyServiceAccessPoint("Hello", COM_ANDROID_NPP);
    connectionManager.registerWellKnownServiceAccessPoint(COM_ANDROID_NPP, serviceAccessPoint);
    AbstractProtocolDataUnit processPdu = new Symmetry().processPdu(connectionManager);
    assertTrue(processPdu.toString(), processPdu instanceof Connect);
    assertEquals(0, connectionManager.getOpenConnectionsSize());

    Connect connect = (Connect)processPdu;
    assertEquals(1, connect.getDestinationServiceAccessPoint());
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.