Package net.alteiar.shared

Examples of net.alteiar.shared.UniqueID


  public final UniqueID getMapId() {
    return this.mapId;
  }

  public void setMapId(UniqueID mapId) {
    UniqueID oldValue = this.mapId;
    if (notifyRemote(PROP_MAP_ID_PROPERTY, oldValue, mapId)) {
      this.mapId = mapId;
      notifyLocal(PROP_MAP_ID_PROPERTY, oldValue, mapId);
    }
  }
View Full Code Here


  public UniqueID getFilteredImageId() {
    return filteredImageId;
  }

  public void setFilteredImageId(final UniqueID filteredImageId) {
    final UniqueID oldValue = this.filteredImageId;
    if (this.notifyRemote(PROP_FILTERED_IMAGE_ID_PROPERTY, oldValue,
        filteredImageId)) {
      this.filteredImageId = filteredImageId;

      CampaignClient.getInstance().addWaitBeanListener(
View Full Code Here

  public BeanDirectory() {
  }

  private static UniqueID getDirectoryId(BeanDirectory parent) {
    UniqueID dirId = null;
    if (parent != null) {
      dirId = parent.getId();
    }
    return dirId;
  }
View Full Code Here

  public UniqueID getParent() {
    return parent;
  }

  public void setParent(UniqueID parent) {
    UniqueID oldValue = this.parent;
    if (notifyRemote(PROP_PARENT_PROPERTY, oldValue, parent)) {
      this.parent = parent;
      notifyLocal(PROP_PARENT_PROPERTY, oldValue, parent);
    }
  }
View Full Code Here

  public void setOwner(UniqueID owner) {
    if (owner == null) {
      throw new NullPointerException("The owner could'nt be null");
    }
    UniqueID oldValue = this.owner;
    if (notifyRemote(PROP_OWNER_PROPERTY, oldValue, owner)) {
      this.owner = owner;
      notifyLocal(PROP_OWNER_PROPERTY, oldValue, owner);
    }
  }
View Full Code Here

        throw new RuntimeException("impossible de créer un joueur");
      }
      connectPlayer();

      if (rootDirectory == null) {
        UniqueID id = null;
        BeanDirectory root = new BeanDirectory(id, "ROOT");
        root.setOwner(currentPlayer.getId());

        manager.createDocument(root);
View Full Code Here

        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

  @Element
  private UniqueID id;

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

   * 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

  @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

TOP

Related Classes of net.alteiar.shared.UniqueID

Copyright © 2018 www.massapicom. 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.