source: DCWoRMS/branches/coolemall/src/simulator/stats/implementation/ResourceHistoryStats.java @ 1396

Revision 1396, 694 bytes checked in by wojtekp, 11 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package simulator.stats.implementation;
2
3import java.util.List;
4
5import schedframe.resources.ResourceHistoryItem;
6import simulator.stats.implementation.out.StatsSerializer;
7
8public class ResourceHistoryStats implements StatsInterface {
9
10        private String[] headers = {"timestamp", "resourceName", "operation", "parameter" };
11
12        protected List<ResourceHistoryItem> resHist;
13       
14        public ResourceHistoryStats(List<ResourceHistoryItem> resHist) {
15                this.resHist = resHist;
16        }
17
18        public Object serialize(StatsSerializer serializer) {
19                return serializer.visit(this);
20        }
21
22        public String[] getHeaders() {
23                return headers;
24        }
25
26        public List<ResourceHistoryItem> getResourceHistory() {
27                return resHist;
28        }
29}
Note: See TracBrowser for help on using the repository browser.