Examples of reconstruct()


Examples of ae.sun.awt.image.ImageRepresentation.reconstruct()

        // Retry with a BufferedImage.
        int width = 0;
        int height = 0;
        if (image instanceof ToolkitImage) {
            ImageRepresentation ir = ((ToolkitImage)image).getImageRep();
            ir.reconstruct(ImageObserver.ALLBITS);
            width = ir.getWidth();
            height = ir.getHeight();
        } else {
            width = image.getWidth(null);
            height = image.getHeight(null);
View Full Code Here

Examples of com.google.walkaround.slob.server.MutationLog.reconstruct()

        throw new RuntimeException("Failed to parse obsolete metadata: " + metadataString);
      }
      Assert.check(metadata.hasUdwMetadata(), "Metadata not udw: %s, %s", udwId, metadataString);
      convId = new SlobId(metadata.getUdwMetadata().getAssociatedConvId());
      udwOwner = new StableUserId(metadata.getUdwMetadata().getOwner());
      raw = l.reconstruct(null);
    } finally {
      tx.rollback();
    }
    WaveletName waveletName = IdHack.udwWaveletNameFromConvObjectIdAndUdwObjectId(convId, udwId);
    // TODO(ohler): avoid serialization/deserialization here
View Full Code Here

Examples of com.google.walkaround.slob.server.MutationLog.reconstruct()

      if (metadata.hasImportMetadata()
          && !metadata.getImportMetadata().getImportFinished()) {
        throw new WaveletLockedException("Conv " + id + " locked: " + metadata);
      }
      MutationLog l = convStore.create(tx, id);
      raw = l.reconstruct(null);
    } finally {
      tx.rollback();
    }
    WaveletName waveletName = IdHack.convWaveletNameFromConvObjectId(id);
    // TODO(ohler): avoid serialization/deserialization here
View Full Code Here

Examples of com.google.walkaround.slob.server.MutationLog.reconstruct()

      throws PermanentFailure, RetryableFailure {
    StateAndVersion raw;
    CheckedTransaction tx = datastore.beginTransaction();
    try {
      MutationLog l = udwStore.create(tx, udwId);
      raw = l.reconstruct(null);
    } finally {
      tx.rollback();
    }
    WaveletName waveletName = IdHack.udwWaveletNameFromConvObjectIdAndUdwObjectId(convId, udwId);
    // TODO(ohler): avoid serialization/deserialization here
View Full Code Here

Examples of com.google.walkaround.slob.server.MutationLog.reconstruct()

                  return new Permissions(false, false);
                }
                // Can't use SlobStore here, that would be a cyclic dependency.
                MutationLog mutationLog = convSlobFacilities.getMutationLogFactory()
                    .create(tx, slobId);
                StateAndVersion stateAndVersion = mutationLog.reconstruct(null);
                if (stateAndVersion.getVersion() == 0) {
                  log.info(slobId + " does not exist; " + participantId + " may not access");
                  return new Permissions(false, false);
                }
                // TODO(ohler): introduce generics to avoid the cast.
View Full Code Here

Examples of com.google.walkaround.slob.server.MutationLog.reconstruct()

                Assert.check(metadata.hasImportMetadata(), "%s: Metadata has no import: %s",
                    convId, metadata);
                Assert.check(metadata.getImportMetadata().getImportFinished(),
                    "%s: still importing: %s", convId, metadata);
                MutationLog l = convSlobFacilities.getMutationLogFactory().create(tx, convId);
                StateAndVersion stateAndVersion = l.reconstruct(null);
                Assert.check(stateAndVersion.getVersion() > 0, "%s at version 0: %s",
                    convId, stateAndVersion);
                // TODO(ohler): use generics to avoid the cast
                ReadableWaveletObject state = (ReadableWaveletObject) stateAndVersion.getState();
                if (state.getParticipants().contains(importingUser)) {
View Full Code Here

Examples of com.google.walkaround.slob.server.MutationLog.reconstruct()

            for (long version = start; it.hasNext(); version++) {
              items.add(Pair.of(version, "" + it.next()));
            }
          }
          if (!snapshotVersion.isEmpty()) {
            snapshot = mutationLog.reconstruct(Long.parseLong(snapshotVersion))
                .getState().snapshot();
          }
        } finally {
          tx.rollback();
        }
View Full Code Here

Examples of com.jme.scene.TriMesh.reconstruct()

     
      int[] indexes = {0,1,2,2,3,1,2,4,3,4,5,3,6,7,8,8,9,7,
              8,10,9,10,11,9,1,7,9,1,3,9,9,3,11,3,11,5,
              6,0,8,8,2,0,8,10,2,10,4,2,4,11,5,10,4,11,1,7,6,0,6,1};
     
      mesh.reconstruct(BufferUtils.createFloatBuffer(vertexes),
              BufferUtils.createFloatBuffer(normals),
              null, null,BufferUtils.createIntBuffer(indexes));
     
     
     
View Full Code Here

Examples of com.jme.scene.TriMesh.reconstruct()

     
      int[] indexes = {0,1,2,2,3,1,2,4,3,4,5,3,6,7,8,8,9,7,
              8,10,9,10,11,9,1,7,9,1,3,9,9,3,11,3,11,5,
              6,0,8,8,2,0,8,10,2,10,4,2,4,11,5,10,4,11,1,7,6,0,6,1};
     
      mesh.reconstruct(BufferUtils.createFloatBuffer(vertexes),
              BufferUtils.createFloatBuffer(normals),
              null, null,BufferUtils.createIntBuffer(indexes));
     
     
     
View Full Code Here

Examples of org.gd.spark.opendl.downpourSGD.Backpropagation.AutoEncoder.reconstruct()

            DownpourSGDTrain.train(da, trainList, config);
           
            double[] reconstruct_x = new double[x_feature];
            double totalError = 0;
            for(SampleVector test : testList) {
              da.reconstruct(test.getX(), reconstruct_x);
              totalError += ClassVerify.squaredError(test.getX(), reconstruct_x);
            }
            logger.info("Mean square error is " + totalError / testList.size());
    } catch(Throwable e) {
      logger.error("", e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.