Examples of down()


Examples of com.voyagegames.core.modules.CounterUp.down()

  }

  @Test
  public void down_isNoOp() {
    CounterUp c = new CounterUp();
    c.down();
    assertTrue(c.value() == 0);
  }

  @Test
  public void down_bySpecificValueIsNoOp() {
View Full Code Here

Examples of com.voyagegames.core.modules.CounterUp.down()

  }

  @Test
  public void down_bySpecificValueIsNoOp() {
    CounterUp c = new CounterUp();
    c.down(5);
    assertTrue(c.value() == 0);
  }

}
View Full Code Here

Examples of de.fhpotsdam.unfolding.core.Coordinate.down()

          }

          // or if we have any of the children
          if (!gotParent) {
            Coordinate zoomed = coord.zoomBy(1).container();
            Coordinate[] kids = { zoomed, zoomed.right(), zoomed.down(), zoomed.right().down() };
            for (int i = 0; i < kids.length; i++) {
              zoomed = kids[i];
              // make sure we still have ints:
              zoomed.row = PApplet.round(zoomed.row);
              zoomed.column = PApplet.round(zoomed.column);
View Full Code Here

Examples of game.PlayingField.down()

            dirs++;
          }
        }
       
        PlayingField pdown = ((PlayingField)pf.makeCopy());
        numMoves = pdown.down();
        if(numMoves>0){
          if(rootlvl == level){
            R4 = new RunTree(pdown, level);
              R4.start();             
          }else{
View Full Code Here

Examples of org.hornetq.utils.VariableLatch.down()

      }

      for (int i = 100; i > 0; i--)
      {
         Assert.assertEquals(i, latch.getCount());
         latch.down();
         Assert.assertEquals(i - 1, latch.getCount());
      }

      latch.waitCompletion();
   }
View Full Code Here

Examples of org.jgroups.Channel.down()

            System.out.println("-- attempt # " + i + "/2");
            Channel c=createChannel(true);
            try {
                Map<String,Object> m=new HashMap<String,Object>();
                m.put("additional_data", new byte[] { 'b', 'e', 'l', 'a' });
                c.down(new Event(Event.CONFIG, m));
                c.connect("AddDataTest.testadditionalData()");
                UUID addr=(UUID)c.getAddress();
                System.out.println("address is " + addr);
                assert addr.getAdditionalData() != null;
                assert addr.getAdditionalData()[0] == 'b';
View Full Code Here

Examples of org.jgroups.Channel.down()

            // if jgAddress is UUID address, not the physical one, then retrieve via channel
            if (!(jgAddress instanceof IpAddress))
            {
               // this is the only way of getting physical address.
               Channel channel = transport.getChannel();
               jgAddress = (org.jgroups.Address)channel.down(new Event(Event.GET_PHYSICAL_ADDRESS, jgAddress));
            }
            if (jgAddress instanceof IpAddress)
            {
               String address = ((IpAddress)jgAddress).getIpAddress().getHostAddress();
               RSyncJob rSyncJob =
View Full Code Here

Examples of org.jgroups.Channel.down()

            // if jgAddress is UUID address, not the physical one, then retrieve via channel
            if (!(jgAddress instanceof IpAddress))
            {
               // this is the only way of getting physical address.
               Channel channel = transport.getChannel();
               jgAddress = (org.jgroups.Address)channel.down(new Event(Event.GET_PHYSICAL_ADDRESS, jgAddress));
            }
            if (jgAddress instanceof IpAddress)
            {
               String address = ((IpAddress)jgAddress).getIpAddress().getHostAddress();
               RSyncJob rSyncJob =
View Full Code Here

Examples of org.jgroups.JChannel.down()

        byte[] buf=new byte[1000];
        JChannel ch1=null, ch2=null;

        try {
            ch1=createChannel(true, 2);
            ch1.down(new Event(Event.CONFIG, m));
            ch2=createChannel(ch1); // same props as ch1 above
            ch2.down(new Event(Event.CONFIG, m));
            MyReceiver receiver=new MyReceiver();
            ch2.setReceiver(receiver);
            ch1.connect(cluster_name);
View Full Code Here

Examples of org.jgroups.protocols.UNICAST3.down()

        UNICAST3.Header hdr=UNICAST3.Header.createDataHeader(1, (short)1, true);
        msg.putHeader(unicast.getId(), hdr);

        new Thread() {
            public void run() {
                unicast.down(new Event(Event.MSG, msg));
            }
        }.start();
    }

}
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.