/** * @see java.lang.Object#toString() */ @Override public String toString() { return "Address=" + this.address(); }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object anObject) { boolean equals = false; if (anObject != null && this.getClass() == anObject.getClass()) { Address typedObject = (Address) anObject; if (this.address() == null) { equals = typedObject.address() == null; } else { equals = this.address().equals(typedObject.address()); } } return equals; }
@Override public String toString() { return "BacklogItem [summary=" + summary + ", story=" + story + ", sprint=" + (sprint == null ? "not committed" : sprint.address()) +"]"; } }
@Override public String toString() { return "Sprint [name=" + name + ", goals=" + goals + ", begins=" + begins + ", ends=" + ends + ", product=" + product.address() + ", committedBacklogItems=" + this.committedBacklogItems.size() + "]"; } }
/** * Removes the Actor of type anActorType and with anAddress * from my cache. * @param anActorType the Class<? extends Actor> of the concrete Actor to remove * @param anAddress the Address of the Actor to removed */ protected void removeActor(Class<? extends Actor> anActorType, Address anAddress) { ActorKeyValueTypeElement typeElement = this.typeElementFor(anActorType); typeElement.store().remove(anAddress.address()); }
/** * Answers the Actor of type anActorType and anAddress. * NOTE: This is a public internal method. * @param anActorType the Class<? extends Actor> concrete type of the Actor * @param anAddress the Address of the Actor * @return Actor */ protected Actor readActor(Class<? extends Actor> anActorType, Address anAddress) { ActorKeyValueTypeElement typeElement = this.typeElementFor(anActorType); Actor actor = typeElement.store().get(anAddress.address()); return actor; }
public MessageInfo( ActorAgent aFromAgent, ActorAgent aToAgent, Message aMessage, boolean isAsking) { super(); this.setFromAddress(aFromAgent.address().address()); this.setFromActorType(aFromAgent.actorType()); this.setToAddress(aToAgent.address().address()); this.setToActorType(aToAgent.actorType()); this.setMessageType(aMessage.getClass().getName()); this.setAsking(isAsking); }
/** * Stores anActor in my cache according to its type, anActorType. * @param anActorType the Class<? extends Actor> of the concrete Actor type * @param anActor the Actor instance to store */ protected void storeActor(Class<? extends Actor> anActorType, Actor anActor) { ActorKeyValueTypeElement typeElement = this.typeElementFor(anActorType); typeElement.store().put(anActor.address().address(), anActor); }