source: xssim/trunk/src/simulator/workload/reader/archive/WAParser.java @ 104

Revision 104, 1.0 KB checked in by wojtekp, 13 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;
5
6import simulator.workload.exceptons.NoSuchCommentException;
7
8/**
9 *
10 * @author Marcin Krystek
11 *
12 */
13
14public interface WAParser {
15       
16        public HashMap<String, String> loadHeader() throws IOException;
17       
18        public HashMap<String, String[]> getIDMapping();
19       
20        public String[] getIDMapping(String waID);
21       
22        public boolean isHeaderLoaded() throws IOException;
23       
24        public String[] readTask() throws IOException;
25       
26        public String[] readTask(String taskId) throws IOException;
27       
28        public String[] readTask(String jobID, String taskId) throws IOException;
29       
30        public String getCommentValue(String label) throws NoSuchCommentException;
31       
32        public String getDataField(int field) throws NoSuchFieldException;
33       
34        public String setCommentSign(String comment) ;
35       
36        public String setFieldSeparator(String fieldSeparator) ;
37
38        public void reset() throws IOException;
39       
40        public void close() throws IOException;
41       
42        public String getFileName();
43       
44        public int getType();
45}
Note: See TracBrowser for help on using the repository browser.