package simulator.stats.implementation; import java.util.Map; import java.util.TreeMap; import schedframe.resources.ResourceType; public abstract class ResourceDynamicStats { protected Map history; protected String resourceName; protected String usageType; protected ResourceType resourceType; protected double meanValue; private String[] headers = { "resourceName", "timestamp", "usage" }; public ResourceDynamicStats(String resourceName, ResourceType resourceType, String usageType) { this.resourceName = resourceName; this.resourceType = resourceType; this.usageType = usageType; this.history = new TreeMap(); this.meanValue = 0; } public void setMeanValue(double meanValue) { this.meanValue = meanValue; } public double getMeanValue() { return meanValue; } public String getResourceName() { return this.resourceName; } public ResourceType getResourceType() { return resourceType; } public String getUsageType() { return this.usageType; } public Map getHistory() { return this.history; } public String[] getHeaders() { return headers; } }