Package jasima.shopSim.util
Class TextFileReader
- java.lang.Object
-
- jasima.shopSim.util.TextFileReader
-
public class TextFileReader extends Object
This class creates aShopDefbased on the contents of a text file. This can be used to configure aShop, e.g., as part of aStaticShopExperiment. For examples of the file structure see the examples in the directory "testInstances" or the model files in the package jasima.shopSim.models.mimac.- Author:
- Torsten Hildebrandt
-
-
Constructor Summary
Constructors Constructor Description TextFileReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShopDefgetShopDef()ShopDefreadData(BufferedReader r)protected StringreadJobs(BufferedReader r, String s)static HashMap<Pair<String,String>,Double>readSetupMatrix(BufferedReader r)
-
-
-
Method Detail
-
getShopDef
public ShopDef getShopDef()
-
readData
public ShopDef readData(BufferedReader r)
-
readJobs
protected String readJobs(BufferedReader r, String s) throws IOException
- Throws:
IOException
-
readSetupMatrix
public static HashMap<Pair<String,String>,Double> readSetupMatrix(BufferedReader r) throws IOException
- Throws:
IOException
-
-