Revision 806,
778 bytes
checked in by wojtekp, 12 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[806] | 1 | package simulator.stats.implementation; |
---|
| 2 | |
---|
| 3 | import schedframe.resources.ResourceType; |
---|
| 4 | import simulator.stats.implementation.out.StatsSerializer; |
---|
| 5 | |
---|
| 6 | public class ResourceTemperatureStats extends ResourceDynamicStats implements StatsInterface{ |
---|
| 7 | |
---|
| 8 | protected double sumValue; |
---|
| 9 | |
---|
| 10 | private String[] headers = { "resourceName", "timestamp", "temperature" }; |
---|
| 11 | |
---|
| 12 | public ResourceTemperatureStats (String resourceName, ResourceType resourceType, String usageType) { |
---|
| 13 | super(resourceName, resourceType, usageType); |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | public void setSumValue(double sumValue) { |
---|
| 17 | this.sumValue = sumValue; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | public double getSumValue() { |
---|
| 21 | return sumValue; |
---|
| 22 | } |
---|
| 23 | |
---|
| 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.