Revision 496,
604 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package simulator.stats.implementation; |
---|
2 | |
---|
3 | import schedframe.resources.ResourceType; |
---|
4 | import simulator.stats.implementation.out.StatsSerializer; |
---|
5 | |
---|
6 | public class ResourceUsageStats extends ResourceDynamicStats implements StatsInterface { |
---|
7 | |
---|
8 | private String[] headers = { "resourceName", "timestamp", "utilization" }; |
---|
9 | |
---|
10 | public ResourceUsageStats(String resourceName, ResourceType resourceType, String usageType) { |
---|
11 | super(resourceName, resourceType, usageType); |
---|
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.