org.gcube.dataanalysis.ecoengine.processing
Class LocalSimpleSplitGenerator

java.lang.Object
  extended by org.gcube.dataanalysis.ecoengine.processing.LocalSimpleSplitGenerator
All Implemented Interfaces:
ComputationalAgent, Generator

public class LocalSimpleSplitGenerator
extends Object
implements Generator


Field Summary
protected  int chunksize
           
protected  ConcurrentHashMap<Object,Map<Object,Float>> completeDistribution
           
protected  AlgorithmConfiguration config
           
protected  SpatialProbabilityDistributionGeneric distributionModel
           
protected  List<Object> environmentVectors
           
protected  ExecutorService executorService
           
protected  int lastProcessedRecordsNumber
           
protected  long lastTime
           
protected  int numberOfThreadsToUse
           
protected  ConcurrentLinkedQueue<String> probabilityBuffer
           
protected  int processedRecordsCounter
           
protected  int processedSpeciesCounter
           
protected  int spaceVectorsNumber
           
protected  float status
           
protected  boolean stopInterrupt
           
protected  boolean[] threadActivity
           
 
Constructor Summary
LocalSimpleSplitGenerator()
           
 
Method Summary
 void compute()
           
 GenericAlgorithm getAlgorithm()
           
 String getDescription()
           
 INFRASTRUCTURE getInfrastructure()
           
 List<StatisticalType> getInputParameters()
           
 String getLoad()
           
 StatisticalType getOutput()
           
 String getResourceLoad()
           
 String getResources()
           
 float getStatus()
           
 ALG_PROPS[] getSupportedAlgorithms()
           
 void init()
           
 void initializeThreads()
           
protected  void initModel()
           
 void setConfiguration(AlgorithmConfiguration config)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected AlgorithmConfiguration config

executorService

protected ExecutorService executorService

numberOfThreadsToUse

protected int numberOfThreadsToUse

threadActivity

protected boolean[] threadActivity

stopInterrupt

protected boolean stopInterrupt

distributionModel

protected SpatialProbabilityDistributionGeneric distributionModel

processedSpeciesCounter

protected int processedSpeciesCounter

spaceVectorsNumber

protected int spaceVectorsNumber

environmentVectors

protected List<Object> environmentVectors

lastTime

protected long lastTime

lastProcessedRecordsNumber

protected int lastProcessedRecordsNumber

processedRecordsCounter

protected int processedRecordsCounter

status

protected float status

chunksize

protected int chunksize

probabilityBuffer

protected ConcurrentLinkedQueue<String> probabilityBuffer

completeDistribution

protected ConcurrentHashMap<Object,Map<Object,Float>> completeDistribution
Constructor Detail

LocalSimpleSplitGenerator

public LocalSimpleSplitGenerator()
Method Detail

getStatus

public float getStatus()
Specified by:
getStatus in interface ComputationalAgent

getResourceLoad

public String getResourceLoad()
Specified by:
getResourceLoad in interface ComputationalAgent

getResources

public String getResources()
Specified by:
getResources in interface ComputationalAgent

getLoad

public String getLoad()
Specified by:
getLoad in interface Generator

init

public void init()
Specified by:
init in interface ComputationalAgent

initModel

protected void initModel()
                  throws Exception
Throws:
Exception

setConfiguration

public void setConfiguration(AlgorithmConfiguration config)
Specified by:
setConfiguration in interface ComputationalAgent

initializeThreads

public void initializeThreads()

shutdown

public void shutdown()
Specified by:
shutdown in interface ComputationalAgent

compute

public void compute()
             throws Exception
Specified by:
compute in interface ComputationalAgent
Throws:
Exception

getSupportedAlgorithms

public ALG_PROPS[] getSupportedAlgorithms()
Specified by:
getSupportedAlgorithms in interface Generator

getInfrastructure

public INFRASTRUCTURE getInfrastructure()
Specified by:
getInfrastructure in interface ComputationalAgent

getInputParameters

public List<StatisticalType> getInputParameters()
Specified by:
getInputParameters in interface ComputationalAgent

getOutput

public StatisticalType getOutput()
Specified by:
getOutput in interface ComputationalAgent

getAlgorithm

public GenericAlgorithm getAlgorithm()
Specified by:
getAlgorithm in interface Generator

getDescription

public String getDescription()
Specified by:
getDescription in interface ComputationalAgent


Copyright © 2012. All Rights Reserved.