public class StockEvolutionManipulator
extends java.lang.Object
Constructor and Description |
---|
StockEvolutionManipulator() |
Modifier and Type | Method and Description |
---|---|
static org.json.JSONObject |
convertTOJSON(java.util.List<StockEvolution> se)
transforms a list of stock evolution data into a JSON object.
|
static org.jdom2.Element |
createCSVElement(java.util.List<StockEvolution> se,
java.lang.String sack)
transforms a list of stock evolution data with a stock analysis control
key into an org.jdom2.element with a csv-file embedded.
|
static java.util.Hashtable<java.lang.String,java.util.List<StockEvolution>> |
filterSEList(java.util.List<StockEvolution> se,
java.lang.String sack)
filters a list of stock evolution data with according to a stock analysis
control key.
|
static java.util.List<StockEvolution> |
readFromDisk(java.lang.String stelle)
searches for the corresponding result file in the stock directory and
retrieves a list of
StockEvolution -objects. |
public static java.util.List<StockEvolution> readFromDisk(java.lang.String stelle)
StockEvolution
-objects.stelle
- notation to be analyzedpublic static org.json.JSONObject convertTOJSON(java.util.List<StockEvolution> se)
se
- list of stock evolution datapublic static org.jdom2.Element createCSVElement(java.util.List<StockEvolution> se, java.lang.String sack) throws org.jdom2.JDOMException, java.io.IOException
se
- list of stock evolution datasack
- stock analysis control keyjava.io.IOException
- exception while reading fileorg.jdom2.JDOMException
- exception while parsing file to JDOM objectpublic static java.util.Hashtable<java.lang.String,java.util.List<StockEvolution>> filterSEList(java.util.List<StockEvolution> se, java.lang.String sack) throws org.jdom2.JDOMException, java.io.IOException
se
- list of stock evolution datasack
- stock analysis control keyjava.io.IOException
- exception while reading fileorg.jdom2.JDOMException
- exception while parsing file to JDOM object