/** * CONSTRUCTOR Phase TO DO * * @param b PARAMETER TO DO * @param offset PARAMETER TO DO * @throws IOException EXCEPTION TO DO */ Phase(Block b, int offset) throws IOException { avlFilePhase = avlFile.new Phase(b, offset); offset += AVLFile.Phase.RECORD_SIZE; for (int i = 0; i < NR_BLOCK_FILES; ++i) { blockFilePhases[i] = blockFiles[i].new Phase(b, offset); offset += ManagedBlockFile.Phase.RECORD_SIZE; } currentPhase = this; dirty = false; }
/** * CONSTRUCTOR Phase TO DO * * @throws IOException EXCEPTION TO DO */ Phase(Phase p) throws IOException { assert p != null; avlFilePhase = avlFile.new Phase(p.avlFilePhase); for (int i = 0; i < NR_BLOCK_FILES; ++i) { blockFilePhases[i] = blockFiles[i].new Phase( p.blockFilePhases[i] ); } currentPhase = this; dirty = true; }
/** * CONSTRUCTOR Phase TO DO * * @throws IOException EXCEPTION TO DO */ Phase() throws IOException { avlFilePhase = avlFile.new Phase(); for (int i = 0; i < NR_BLOCK_FILES; ++i) { blockFilePhases[i] = blockFiles[i].new Phase(); } currentPhase = this; dirty = true; }