Examples of UniqueId


Examples of net.alteiar.shared.UniqueID

        IUniqueObject reply = messageObjectReceived(msg);
        sendTCPMessage(conn, reply);
      } else if (obj instanceof MessageSplitEnd) {
        messageObjectEndReceived((MessageSplitEnd) obj);
      } else if (obj instanceof RequestObject) {
        UniqueID id = ((RequestObject) obj).getGuid();
        ChunkObjectSend send = getObjectSend(id);

        if (send != null) {
          sendObject(conn, send);
        } else {
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  @Element
  private UniqueID id;

  public BasicBean() {
    this(new UniqueID());
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

   * this method must not be called, the id must'nt change
   *
   * @param id
   */
  public void setId(UniqueID id) {
    UniqueID oldValue = this.id;

    if (notifyRemote(PROP_ID_PROPERTY, oldValue, id)) {
      this.id = id;
      notifyLocal(PROP_ID_PROPERTY, oldValue, id);
    }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  @Override
  @SuppressWarnings("unchecked")
  public CharacterMapFilter read(Kryo kryo, Input in,
      Class<CharacterMapFilter> classObj) {

    UniqueID id = kryo.readObject(in, UniqueID.class);
    UniqueID mapID = kryo.readObject(in, UniqueID.class);
    HashSet<UniqueID> elements = kryo.readObject(in, HashSet.class);
    UniqueID filteredImageId = kryo.readObjectOrNull(in, UniqueID.class);
    Integer maxVision = kryo.readObject(in, Integer.class);

    return new CharacterMapFilter(id, mapID, elements, filteredImageId,
        maxVision);
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  }

  public void modifyDocument(final MessageModifyValue bean) {
    final ChunkObjectSend sended = factory.generateMessages(bean);

    sended.setGuid(new UniqueID());
    sendObject(client, sended);
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

    return traker.getUnitsId().size();
  }

  @Override
  public CombatTrackerUnit getElementAt(int index) {
    UniqueID beanId = traker.getUnitsId().get(index);
    return CampaignClient.getInstance().getBean(beanId);
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  }

  @Override
  public void propertyChange(PropertyChangeEvent evt) {
    if (MapBean.METH_ADD_ELEMENT_METHOD.equals(evt.getPropertyName())) {
      final UniqueID mapElementId = ((UniqueID) evt.getNewValue());
      addDrawable(new MapElementDrawable(mapElementId));
    } else if (MapBean.PROP_FILTER_PROPERTY.equals(evt.getPropertyName())) {
      Threads.execute(new MyRunnable() {
        @Override
        public void run() {
View Full Code Here

Examples of net.alteiar.shared.UniqueID

    }

    assertTrue(autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(autorizableBean.isAllowedToSee(currentPlayer));

    autorizableBean.setOwner(new UniqueID());
    sleep();

    assertTrue(!autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(!autorizableBean.isAllowedToSee(currentPlayer));
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

    assertTrue(autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(autorizableBean.isAllowedToSee(currentPlayer));

    // Change the owner to no one
    autorizableBean.setOwner(new UniqueID());
    sleep();
    assertTrue(!autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(!autorizableBean.isAllowedToSee(currentPlayer));

    // Add us as modifier
    UniqueID playerId = currentPlayer.getId();
    autorizableBean.addModifier(playerId);
    sleep();

    assertTrue("Should contain the modifier", autorizableBean
        .getModifiers().contains(playerId));
    assertTrue(autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(autorizableBean.isAllowedToSee(currentPlayer));

    // remove us as modifier
    autorizableBean.removeModifier(playerId);
    sleep();

    assertTrue("Should'nt contain the modifier", !autorizableBean
        .getModifiers().contains(playerId));
    assertTrue(!autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(!autorizableBean.isAllowedToSee(currentPlayer));

    // set list of modifier
    HashSet<UniqueID> guids = new HashSet<UniqueID>();
    for (int i = 0; i < 100; ++i) {
      guids.add(new UniqueID());
    }
    autorizableBean.setModifiers(guids);
    sleep();

    assertTrue("the owners must have been set", autorizableBean
View Full Code Here

Examples of net.alteiar.shared.UniqueID

    assertTrue(autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(autorizableBean.isAllowedToSee(currentPlayer));

    // Change the owner to no one
    autorizableBean.setOwner(new UniqueID());
    sleep();

    assertTrue(!autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(!autorizableBean.isAllowedToSee(currentPlayer));

    // Add us as user
    UniqueID playerId = currentPlayer.getId();
    autorizableBean.addUser(playerId);
    sleep();

    assertTrue("Should contain the user", autorizableBean.getUsers()
        .contains(playerId));
    assertTrue(!autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(autorizableBean.isAllowedToSee(currentPlayer));

    // remove us as user
    autorizableBean.removeUser(playerId);
    sleep();

    assertTrue("Should'nt contain the user", !autorizableBean.getUsers()
        .contains(playerId));
    assertTrue(!autorizableBean.isAllowedToApplyChange(currentPlayer));
    assertTrue(!autorizableBean.isAllowedToSee(currentPlayer));

    // set list of users
    HashSet<UniqueID> guids = new HashSet<UniqueID>();
    for (int i = 0; i < 100; ++i) {
      guids.add(new UniqueID());
    }
    autorizableBean.setUsers(guids);
    waitForChange(autorizableBean, "getUsers", guids);

    autorizableBean.setOwner(currentPlayer.getId());
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.