|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.dataanalysis.ecoengine.interfaces.DataAnalysis
public abstract class DataAnalysis
Implements a mono-thread data analysis process Status is managed outside the class and analysis is simply conducted by initializing and applying procedure
| Field Summary | |
|---|---|
protected int |
processedRecords
|
protected ResourceFactory |
resourceManager
|
protected float |
status
|
| Constructor Summary | |
|---|---|
DataAnalysis()
|
|
| Method Summary | |
|---|---|
abstract HashMap<String,String> |
analyze(AlgorithmConfiguration config)
Executed the core of the algorithm |
abstract void |
end()
ends the processing, e.g. |
INFRASTRUCTURE |
getInfrastructure()
The weight of this procedure is the lowest as it runs on local machine |
abstract List<StatisticalType> |
getInputParameters()
establishes input parameters for this algorithm along with their type |
String |
getResourceLoad()
calculates the number of processed records per unity of time: the timing is calculated internally by the resourceManager and used when the method is interrogated |
String |
getResources()
gets the occupancy of the resource: in this case one thread |
float |
getStatus()
gets the internal status of the operation |
abstract void |
init(AlgorithmConfiguration config)
initializes the procedure e.g. |
StatisticalType |
process(AlgorithmConfiguration config)
Processing skeleton : init-analyze-end |
static void |
visualizeResults(HashMap<String,String> results)
visualizes the results of the analysis |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gcube.dataanalysis.ecoengine.interfaces.ComputationalAgent |
|---|
getOutput |
| Field Detail |
|---|
protected ResourceFactory resourceManager
protected int processedRecords
protected float status
| Constructor Detail |
|---|
public DataAnalysis()
| Method Detail |
|---|
public abstract List<StatisticalType> getInputParameters()
getInputParameters in interface ComputationalAgent
public abstract HashMap<String,String> analyze(AlgorithmConfiguration config)
throws Exception
config -
Exception
public abstract void init(AlgorithmConfiguration config)
throws Exception
init in interface Evaluatorconfig -
Exceptionpublic abstract void end()
end in interface EvaluatorException
public StatisticalType process(AlgorithmConfiguration config)
throws Exception
process in interface Evaluatorconfig -
Exceptionpublic String getResourceLoad()
getResourceLoad in interface ComputationalAgentpublic String getResources()
getResources in interface ComputationalAgentpublic INFRASTRUCTURE getInfrastructure()
getInfrastructure in interface ComputationalAgentpublic float getStatus()
getStatus in interface ComputationalAgentpublic static void visualizeResults(HashMap<String,String> results)
results -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||