source: DCWoRMS/branches/coolemall/src/simulator/workload/reader/archive/WAParser.java @ 1207

Revision 1207, 1.1 KB checked in by wojtekp, 11 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package simulator.workload.reader.archive;
2
3import java.io.IOException;
4import java.util.HashMap;
5import java.util.Map;
6
7import simulator.workload.exceptons.NoSuchCommentException;
8
9/**
10 *
11 * @author Marcin Krystek
12 *
13 */
14
15public interface WAParser {
16       
17        public HashMap<String, String> loadHeader() throws IOException;
18       
19        public HashMap<String, String[]> getIDMapping();
20       
21        public String[] getIDMapping(String waID);
22       
23        public boolean isHeaderLoaded() throws IOException;
24       
25        public String[] readTask() throws IOException;
26       
27        public String[] readTask(String taskId) throws IOException;
28       
29        public String[] readTask(String jobID, String taskId) throws IOException;
30       
31        public String getCommentValue(String label) throws NoSuchCommentException;
32       
33        public String getDataField(int field) throws NoSuchFieldException;
34       
35        public String setCommentSign(String comment) ;
36       
37        public String setFieldSeparator(String fieldSeparator) ;
38
39        public void reset() throws IOException;
40       
41        public void close() throws IOException;
42       
43        public String getFileName();
44       
45        public int getType();
46       
47        public Map<String, String> getAppProfilesLocation();
48}
Note: See TracBrowser for help on using the repository browser.