public void setChild(IOrganismo child) { this.child = child; this.childId = child.id(); memoryPoolCount = (child == null ? 1 : 2); if (this.child == this) { Log.fatal("Erro!!!"); } }
public void setParent(IOrganismo parent) { parentId = parent.id(); this.generation = parent.getGeneration() + 1; this.parent = parent; }