source: DCWoRMS/trunk/src/simulator/stats/implementation/ResourceAirFlowStats.java @ 496

Revision 496, 767 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
RevLine 
[495]1package simulator.stats.implementation;
2
3import schedframe.resources.ResourceType;
4import simulator.stats.implementation.out.StatsSerializer;
5
[496]6public class ResourceAirFlowStats extends ResourceDynamicStats implements StatsInterface{
7
[495]8        protected double sumValue;
9       
[496]10        private String[] headers = { "resourceName", "timestamp", "airFlow" };
[495]11       
12        public ResourceAirFlowStats (String resourceName, ResourceType resourceType, String usageType) {
[496]13                super(resourceName, resourceType, usageType);
[495]14        }
15
[496]16        public void setSumValue(double sumValue) {
17                this.sumValue = sumValue;
[495]18        }
19
[496]20        public double getSumValue() {
21                return sumValue;
[495]22        }
[496]23       
[495]24        public Object serialize(StatsSerializer serializer) {
25                return serializer.visit(this);
26        }
27
28        public String[] getHeaders() {
29                return headers;
30        }
31
32}
Note: See TracBrowser for help on using the repository browser.