package org.gcube.accounting.analytics; import java.util.List; import org.gcube.accounting.datamodel.AggregatedUsageRecord; public class UsageServiceValue extends UsageValue { protected Class> clz; protected TemporalConstraint temporalConstraint; //USED for a list service for each identifier (package service ) //protected List filtersValue; protected List filters; protected String identifier; protected Double d; protected String orderingProperty; public String getIdentifier() { return identifier; } public void setIdentifier(String identifier) { this.identifier = identifier; } public Double getD() { return d; } public void setD(Double d) { this.d = d; } public TemporalConstraint getTemporalConstraint() { if (temporalConstraint!=null) return temporalConstraint; else return null; } public String getOrderingProperty() { return orderingProperty; } public void setOrderingProperty(String orderingProperty) { this.orderingProperty = orderingProperty; } public void setTemporalConstraint(TemporalConstraint temporalConstraint) { this.temporalConstraint = temporalConstraint; } public Class> getClz() { return clz; } public void setClz(String context,Class> clz) { this.clz = clz; } public UsageServiceValue(){} public UsageServiceValue(String context,String identifier,Class> clz,TemporalConstraint temporalConstraint,List filters){ super(); this.context=context; this.filters=filters; this.clz=clz; this.temporalConstraint=temporalConstraint; this.identifier=identifier; } public List getFilters() { return filters; } public void setFilters(List filters) { this.filters = filters; } @Override public String getContext() { return this.context; } @Override public void setContext(String context) { this.context=context; } @Override public String toString() { return "UsageServiceValue [clz=" + clz + ", temporalConstraint=" + temporalConstraint + ", filters=" + filters + ", identifier=" + identifier + ", d=" + d + ", orderingProperty=" + orderingProperty + "]"; } }