Package net.sf.joafip.redblacktree.service

Examples of net.sf.joafip.redblacktree.service.RBTException


      final HeapRecord heapRecord) throws RBTException {
    try {
      return (AbstractHeapRBTNode<DataRecordIdentifier>) heapRecord
          .getIdNode();
    } catch (HeapException exception) {
      throw new RBTException(exception);
    }
  }
View Full Code Here


       */
      HeapRecord heapRecord;
      try {
        heapRecord = readHeapFileDataRecord(parentPositionInFile);
      } catch (HeapException exception) {
        throw new RBTException(exception);
      }
      parent = heapNode(heapRecord);
    }
  }
View Full Code Here

         */
        HeapRecord heapRecord;
        try {
          heapRecord = readHeapFileDataRecord(leftPositionInFile);
        } catch (HeapException exception) {
          throw new RBTException(exception);
        }
        left = heapNode(heapRecord);
      }
      left.setParent(this);
    }
View Full Code Here

         */
        HeapRecord heapRecord;
        try {
          heapRecord = readHeapFileDataRecord(rightPositionInFile);
        } catch (HeapException exception) {
          throw new RBTException(exception);
        }
        right = heapNode(heapRecord);
      }
      right.setParent(this);
    }
View Full Code Here

    return color;
  }

  private void checkColorSetted() throws RBTException {
    if (!colorSetted) {
      throw new RBTException("color is not setted:\n" + getClass() + "\n"
          + this.toString());
    }
  }
View Full Code Here

      this.valueChanged = true;
      try {
        final HeapRecord heapRecord = getHeapRecord();
        heapRecord.setValueIsChangedValueToSave();
      } catch (HeapException exception) {
        throw new RBTException(exception);
      }
    }
  }
View Full Code Here

  protected AbstractHeapRBTNode<Integer> heapNode(final HeapRecord heapRecord)
      throws RBTException {
    try {
      return (AbstractHeapRBTNode<Integer>) heapRecord.getFreeNode();
    } catch (HeapException exception) {
      throw new RBTException(exception);
    }
  }
View Full Code Here

  public Integer getElement() throws RBTException {
    return areaSize;
  }

  public void setElement(final Integer element) throws RBTException {
    throw new RBTException("can not set node value");
  }
View Full Code Here

  }

  private void assertSame(final IRBTNode<String> node1,
      final IRBTNode<String> node2) throws RBTException {
    if (node1 != node2) {// NOPMD
      throw new RBTException("not same node: " + nodeElement(node2)
          + " for " + nodeElement(node1) + " expected\n"
          + sysId(node2) + " " + sysId(node1) + "\n"
          + dataRecordId(node2) + " " + dataRecordId(node1));
    }
  }
View Full Code Here

  }

  private void assertEquals(final String val1, final String val2)
      throws RBTException {
    if (!val1.equals(val2)) {
      throw new RBTException(val2 + " for " + val1 + " expected");
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.redblacktree.service.RBTException

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.