Revision 539,
604 bytes
checked in by wojtekp, 12 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 1 | package simulator.stats.implementation; |
---|
| 2 | |
---|
| 3 | import schedframe.resources.ResourceType; |
---|
| 4 | import simulator.stats.implementation.out.StatsSerializer; |
---|
| 5 | |
---|
[539] | 6 | public class ResourceUsageStats extends ResourceDynamicStats implements StatsInterface { |
---|
[477] | 7 | |
---|
[539] | 8 | private String[] headers = { "resourceName", "timestamp", "utilization" }; |
---|
[477] | 9 | |
---|
| 10 | public ResourceUsageStats(String resourceName, ResourceType resourceType, String usageType) { |
---|
[539] | 11 | super(resourceName, resourceType, usageType); |
---|
[477] | 12 | } |
---|
| 13 | |
---|
| 14 | public Object serialize(StatsSerializer serializer) { |
---|
| 15 | return serializer.visit(this); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | public String[] getHeaders() { |
---|
| 19 | return headers; |
---|
| 20 | } |
---|
| 21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.