Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package bLO3dTree;
- public class BLO3dTreeInternalNode extends BLO3dTreeNode {
- private float splitvalue;
- private BLO3dTreeNode left;
- private BLO3dTreeNode right;
- /**
- * @return the splitvalue
- */
- public float getSplitvalue() {
- return splitvalue;
- }
- /**
- * @return the left child
- */
- public BLO3dTreeNode getLeft() {
- return left;
- }
- /**
- * @return the right child
- */
- public BLO3dTreeNode getRight() {
- return right;
- }
- /**
- * @param newLeft the new value for left
- */
- public void setLeft(BLO3dTreeNode newLeft) {
- left = newLeft;
- }
- /**
- * @param newRight the new value for right
- */
- public void setRight(BLO3dTreeNode newRight) {
- right = newRight;
- }
- public BLO3dTreeInternalNode(int aLevel, float aSplitvalue, BLO3dTreeNode aLeft, BLO3dTreeNode aRight) {
- super(aLevel);
- splitvalue = aSplitvalue;
- left = aLeft;
- right = aRight;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement