|
||||||||||
| 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 AlgorithmConfiguration |
config
|
protected org.hibernate.SessionFactory |
connection
|
protected int |
processedRecords
|
protected ResourceFactory |
resourceManager
|
protected float |
status
|
| Constructor Summary | |
|---|---|
DataAnalysis()
|
|
| Method Summary | |
|---|---|
abstract HashMap<String,String> |
analyze()
|
void |
compute()
|
INFRASTRUCTURE |
getInfrastructure()
The weight of this procedure is the lowest as it runs on local machine |
StatisticalType |
getOutput()
|
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 |
void |
init()
|
void |
setConfiguration(AlgorithmConfiguration config)
|
void |
shutdown()
|
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 |
|---|
getDescription, getInputParameters |
| Field Detail |
|---|
protected ResourceFactory resourceManager
protected int processedRecords
protected float status
protected AlgorithmConfiguration config
protected org.hibernate.SessionFactory connection
| Constructor Detail |
|---|
public DataAnalysis()
| Method Detail |
|---|
public abstract HashMap<String,String> analyze()
throws Exception
Exception
public void compute()
throws Exception
compute in interface ComputationalAgentExceptionpublic StatisticalType getOutput()
getOutput in interface ComputationalAgentpublic 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 -
public void init()
throws Exception
init in interface ComputationalAgentExceptionpublic void setConfiguration(AlgorithmConfiguration config)
setConfiguration in interface ComputationalAgentpublic void shutdown()
shutdown in interface ComputationalAgent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||