node = aptxNode;
originalNodes.put(aptxNode, this);
wrappedNodes.put(this, aptxNode);
- System.out.println(getId());
}
{
wrappedNode = new TreeNode(aptxNode);
}
-
return wrappedNode;
}
{
// expand this
aptxNode = new PhylogenyNode(wrappedNode.getNodeName());
+
}
return aptxNode;
{
final int prime = 31;
int result = 1;
- result = prime * result + ((node == null) ? 0 : node.hashCode());
+ result = (int) (prime * result
+ + ((node == null) ? 0 : (node.hashCode() * getId())));
return result;
}
{
return false;
}
- else if (getId() != other.getId())
- {
- return false;
- }
}
- else if (!node.equals(other.node))
+ if (getId() != other.getId())
+ {
+ return false;
+ }
+
+ if (!node.equals(other.node))
{
return false;
}
}
+ @Override
+ public float getYcoord()
+ {
+ return node.getYcoord();
+ }
+
}