Browse Source

Started work on making the images similarity search concurrent as well

master
Drew Short 11 years ago
parent
commit
b36e1e55d2
  1. 10
      src/main/scala/com/sothr/imagetools/ConcurrentEngine.scala

10
src/main/scala/com/sothr/imagetools/ConcurrentEngine.scala

@ -13,15 +13,23 @@ import scala.concurrent.{Await, blocking, Future}
import java.lang.Thread import java.lang.Thread
import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.ExecutionContext.Implicits.global
//exeternal cases
// exeternal cases //
// processing files into images
case class EngineProcessFile(file:File) case class EngineProcessFile(file:File)
case object EngineNoMoreFiles case object EngineNoMoreFiles
case object EngineIsProcessingFinished case object EngineIsProcessingFinished
case object EngineGetProcessingResults case object EngineGetProcessingResults
//finding similarities between images
case class EngineFindSimilarities(images:List[Image])
case object EngineIsSimilarityFinished
case object EngineGetSimilarityResults
//internal cases //internal cases
case class EngineFileProcessed(image:Image) case class EngineFileProcessed(image:Image)
case object EngineActorProcessingFinished case object EngineActorProcessingFinished
case class EngineCompareImages(image1:Image,image2:Image)
case object EngineActorCompareImagesRoundFinished
case object EngineActorCompareImagesFinished
case object EngineActorReactivate case object EngineActorReactivate
class ConcurrentEngine extends Engine with grizzled.slf4j.Logging { class ConcurrentEngine extends Engine with grizzled.slf4j.Logging {

Loading…
Cancel
Save