Package buri.ddmsence.samples.util

Examples of buri.ddmsence.samples.util.Distribution.incrementCount()


      List<TemporalCoverage> timePeriods = resource.getTemporalCoverages();
      for (TemporalCoverage timePeriod : timePeriods) {
        if (timePeriod.getStart() != null)
          distribution.incrementCount(String.valueOf(timePeriod.getStart().getYear()));
        if (timePeriod.getEnd() != null)
          distribution.incrementCount(String.valueOf(timePeriod.getEnd().getYear()));
      }
    }
    return (buildPieGraphURL("DDMS%20Date%20Distribution", distribution, PIE_GRAPH));
  }
View Full Code Here


   * @return URL representing the Google URL
   */
  private URL buildVersionGraph() throws IOException {
    Distribution distribution = new Distribution();
    for (Resource resource : getResources()) {
      distribution.incrementCount(DDMSVersion.getVersionForNamespace(resource.getNamespace()).getVersion());
    }
    return (buildPieGraphURL("DDMS%20Version%20Distribution", distribution, PIE_GRAPH));
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.