001 package org.hackystat.projectbrowser.page.sensordata; 002 003 import java.io.Serializable; 004 005 /** 006 * A simple class containing a summary of a single SDT instance. 007 * @author Philip Johnson 008 */ 009 public class SdtSummary implements Serializable { 010 011 private static final long serialVersionUID = 1L; 012 private String sdtName; 013 private String tool; 014 private long count; 015 016 /** 017 * Construct this instance. 018 * @param sdtName The SDT name. 019 * @param tool The tool that generated instances with this SDT. 020 * @param count The number of instances of this type and tool. 021 */ 022 public SdtSummary(String sdtName, String tool, long count) { 023 this.sdtName = sdtName; 024 this.tool = tool; 025 this.count = count; 026 } 027 028 /** 029 * Get the sdt name. 030 * @return The sdt name. 031 */ 032 public String getSdtName() { 033 return this.sdtName; 034 } 035 036 /** 037 * Get the number of times it occurred. 038 * @return The count of sdt instances of this type. 039 */ 040 public long getCount () { 041 return this.count; 042 } 043 044 /** 045 * The tool responsible for generating these instances. 046 * @return The tool that generated these instances. 047 */ 048 public String getTool() { 049 return this.tool; 050 } 051 }