congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
org.esa.snap.utils
Code IndexAdd Tabnine to your IDE (free)

How to use org.esa.snap.utils

Best Java code snippets using org.esa.snap.utils (Showing top 20 results out of 315)

origin: senbox-org/snap-desktop

  @Override
  public void run() {
    AdapterWatcher.INSTANCE.stopMonitor();
  }
}
origin: senbox-org/s2tbx

  public IntMatrix runTilesInParallel(int threadCount, Executor threadPool) throws Exception {
    super.executeInParallel(threadCount, threadPool);

    return this.result;
  }
}
origin: senbox-org/s2tbx

  public Int2ObjectMap<PixelSourceBands> computeCellsInParallel(int threadCount, Executor threadPool) throws Exception {
    super.executeInParallel(threadCount, threadPool);
    return this.validStatistics;
  }
}
origin: senbox-org/s2tbx

@Override
protected final void runTile(int localRowIndex, int localColumnIndex) throws IOException, IllegalAccessException, InterruptedException {
  int localTileLeftX = localColumnIndex * getTileWidth();
  int localTileTopY = localRowIndex * getTileHeight();
  int localTileWidth = getTileWidth();
  int localTileHeight = getTileHeight();
  if (localTileLeftX + localTileWidth > getImageWidth()) {
    localTileWidth = getImageWidth() - localTileLeftX;
  }
  if (localTileTopY + localTileHeight > getImageHeight()) {
    localTileHeight = getImageHeight() - localTileTopY;
  }
  runTile(localTileLeftX, localTileTopY, localTileWidth, localTileHeight, localRowIndex, localColumnIndex);
}
origin: senbox-org/s2tbx

  public void clearItems() {
    removeRange(0, size());
  }
}
origin: senbox-org/s2tbx

public int getEdgeCount() {
  return this.edges.size();
}
origin: senbox-org/s2tbx

public final long readLong() throws IOException {
  //return ((long)(readInt()) << 32) + (readInt() & 0xFFFFFFFFL);
  return ((long)(readInt()) << 32) | (readInt() & 0xFFFFFFFFL);
}
origin: senbox-org/s2tbx

protected Node(int id, BoundingBox box, Contour contour, int perimeter, int area, int numberOfComponentsPerPixel) {
  this.id = id;
  this.edges = new ArrayListExtended<Edge>(0);
  this.means = new float[numberOfComponentsPerPixel];
  this.contour = contour;
  // merged = true => force to compute costs for the first iteration
  this.flags = VALID_FLAG | MERGED_FLAG;
  this.area = area;
  this.perimeter = perimeter;
  this.box = box;
}
origin: senbox-org/s2tbx

  StorageMatrix computeMatrixCellsInParallel(int threadCount, Executor threadPool) throws Exception {
    super.executeInParallel(threadCount, threadPool);
    return this.storageMatrix;
  }
}
origin: senbox-org/snap-desktop

private static String separateWords(String text) {
  return separateWords(text, true);
}
origin: senbox-org/s2tbx

public Node getNodeAt(int index) {
  return this.nodes.get(index);
}
origin: senbox-org/snap-desktop

public static void addPromptSupport(JComponent component, Property property) {
  addPromptSupport(component, property, null);
}
origin: senbox-org/s2tbx

/**
 * Calls a method on the given object instance with the given argument.
 *
 * @param instance      the object instance
 * @param methodName    the name of the method to invoke
 * @param arg           the argument to pass to the method
 * @see PrivilegedAccessor#invokeMethod(Object,String,Object[])
 */
public static Object invokeMethod(Object instance, String methodName, Object arg)
    throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
  Object[] args = new Object[1];
  args[0] = arg;
  return invokeMethod(instance, methodName, args);
}
origin: senbox-org/s2tbx

public void addNodes(Graph subgraph) {
  this.nodes.addAll(subgraph.nodes);
}
origin: senbox-org/s2tbx

public void addNode(Node nodeToAdd) {
  this.nodes.add(nodeToAdd);
}
origin: senbox-org/s2tbx

  public Int2ObjectMap<PixelStatistic> runTilesInParallel(int threadCount, Executor threadPool) throws Exception {
    super.executeInParallel(threadCount, threadPool);

    return this.statistics;
  }
}
origin: senbox-org/s2tbx

public int getNodeCount() {
  return this.nodes.size();
}
origin: senbox-org/s2tbx

public Graph(int numberOfNodes) {
  this.nodes = new ArrayListExtended<>(numberOfNodes);
}
origin: senbox-org/s2tbx

  public ProductData runTilesInParallel(int threadCount, Executor threadPool) throws Exception {
    super.executeInParallel(threadCount, threadPool);

    return this.productData;
  }
}
origin: senbox-org/s2tbx

public final Path runTilesInParallel(int threadCount, Executor threadPool) throws Exception {
  super.executeInParallel(threadCount, threadPool);
  return this.temporaryFolder;
}
org.esa.snap.utils

Most used classes

  • DateHelper
    Utility class for date manipulation
  • StringHelper
  • AbstractImageTilesParallelComputing
  • BufferedInputStreamWrapper
  • BufferedOutputStreamWrapper
  • AbstractMatrixCellsParallelComputing,
  • AbstractParallelComputing,
  • ArrayListExtended,
  • NativeLibraryUtils,
  • ObjectMemory,
  • PrivilegedAccessor,
  • ProductHelper,
  • IntMatrix,
  • AbstractParallelComputing$ItemRunnable,
  • AdapterWatcher,
  • CollectionHelper,
  • FileHelper,
  • ObjectMemory$ItemWrapper,
  • SpringUtilities
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now