org.ala.layers.intersect
Class SamplingThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.ala.layers.intersect.SamplingThread
All Implemented Interfaces:
java.lang.Runnable

public class SamplingThread
extends java.lang.Thread

Author:
Adam

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SamplingThread(java.util.concurrent.LinkedBlockingQueue<java.lang.Integer> lbq, java.util.concurrent.CountDownLatch cdl, IntersectionFile[] intersectionFiles, double[][] points, java.util.ArrayList<java.lang.String> output, int threadCount, SimpleShapeFileCache simpleShapeFileCache, int gridBufferSize, IntersectCallback callback)
           
 
Method Summary
 void intersectGrid(java.lang.String filename, double[][] points, java.lang.StringBuilder sb)
           
 void intersectGridAsContextual(java.lang.String filename, java.util.HashMap<java.lang.Integer,GridClass> classes, double[][] points, java.lang.StringBuilder sb)
           
 void run()
           
 void sample(double[][] points, IntersectionFile intersectionFile, java.lang.StringBuilder sb)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SamplingThread

public SamplingThread(java.util.concurrent.LinkedBlockingQueue<java.lang.Integer> lbq,
                      java.util.concurrent.CountDownLatch cdl,
                      IntersectionFile[] intersectionFiles,
                      double[][] points,
                      java.util.ArrayList<java.lang.String> output,
                      int threadCount,
                      SimpleShapeFileCache simpleShapeFileCache,
                      int gridBufferSize,
                      IntersectCallback callback)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

sample

public void sample(double[][] points,
                   IntersectionFile intersectionFile,
                   java.lang.StringBuilder sb)

intersectGrid

public void intersectGrid(java.lang.String filename,
                          double[][] points,
                          java.lang.StringBuilder sb)

intersectGridAsContextual

public void intersectGridAsContextual(java.lang.String filename,
                                      java.util.HashMap<java.lang.Integer,GridClass> classes,
                                      double[][] points,
                                      java.lang.StringBuilder sb)


Copyright © 2014. All Rights Reserved.