Examples of addValue()


Examples of org.radargun.reporting.html.LineChart.addValue()

      for (int category = 0; category < 3; category++) {
         double lastValue = 0, lastDev = 1;
         for (int i = 0; i < 30; ++i) {
            lastValue = lastValue + (random.nextBoolean() ? 1 : -1);
            lastDev = lastDev + random.nextDouble() - 0.3;
            chart.addValue(lastValue, lastDev, "Serie" + category, i, String.valueOf(Math.pow(2, i)));
         }
      }
      try {
         chart.setHeight(500).setWidth(600).save("/tmp/foobar.png");
      } catch (IOException e) {
View Full Code Here

Examples of org.rioproject.impl.watch.GaugeWatch.addValue()

            }
            // Generate samples to reach the checkpoint
            while (added.size() < checkpoint) {
                double d = Math.random();
                added.add(d);
                watch.addValue(d);
            }
            //mon.waitFor(added.size());
            mon.waitFor(Math.min(collectionSize, checkpoint));

            // Verify that the data has been added correctly
View Full Code Here

Examples of org.rioproject.watch.Statistics.addValue()

        for (int i = 0; i < 10; i++) {
            Vector<Double> v = new Vector<Double>();
            int count = (int) (Math.random() * 1000);
            for (int j = 0; j < count; j++) {
                double d = Math.random();
                stat.addValue(d);
                v.add(d);
            }
            assertCorrect(v, stat);
            stat.clearAll();
            assertCorrect(new Vector<Double>(), stat);
View Full Code Here

Examples of org.rssowl.core.model.internal.preferences.Preference.addValue()

  }
 
  public void putInteger(String key, int value) throws PersistenceException {
    Integer valueInteger = Integer.valueOf(value);
    Preference pref = new Preference(key, Type.INTEGER);
    pref.addValue(valueInteger.toString());
    savePreference(pref, valueInteger);
  }
 
  public void putIntegers(String key, int[] values) throws PersistenceException {
    Preference pref = new Preference(key, Type.INTEGER_ARRAY);
View Full Code Here

Examples of org.sgx.yuigwt.yui.history.HistoryBase.addValue()

       
        int newTabIndex = selChild.getInt("index");
       
        console.log("tabview selectionChange: "+newTabIndex);
       
        history.addValue("tab", newTabIndex==0 ? null : newTabIndex+"");
      }
    });    
   
    tb.selectChild(parseInt(history.get("tab"), 0));
    Y.on("history:change", new EventCallback<HistoryEvent>() {
View Full Code Here

Examples of org.simpleframework.http.message.MessageHeader.addValue()

public class MessageTest extends TestCase {
  
   public void testMessage() {
      MessageHeader message = new MessageHeader();
     
      message.addValue("Content-Length", "10");
      message.addValue("Connection", "keep-alive");
      message.addValue("Accept", "image/gif, image/jpeg, */*");
      message.addValue("Set-Cookie", "a=b");
      message.addValue("Set-Cookie", "b=c");
     
View Full Code Here

Examples of org.springframework.jdbc.core.namedparam.MapSqlParameterSource.addValue()

    String fid = ServletActionContext.getRequest().getParameter("fid");
    fid = fid == null ? "ROOT" : fid;
//    String sql = "select * from gg_xtgn where fid = '" + fid + "' order by sxh";
    String sql = "select id,jdmc,gndz,jdlb,fid from gg_xtgn where fid = :FID order by sxh";
    MapSqlParameterSource paramMap = new MapSqlParameterSource();
    paramMap.addValue("FID", fid);
    return xtgnglService.selectSplit(sql,paramMap,pagination);
  }
 
  public String delete() {
    String ids = ServletActionContext.getRequest().getParameter("id");
View Full Code Here

Examples of org.springframework.xd.rest.domain.metrics.AggregateCountsResource.addValue()

    AggregateCountsResource result = new AggregateCountsResource(entity.getName());
    ReadablePeriod increment = entity.getResolution().unitPeriod;
    DateTime end = entity.getInterval().getEnd();
    int i = 0;
    for (DateTime when = entity.getInterval().getStart(); !when.isAfter(end); when = when.plus(increment)) {
      result.addValue(new Date(when.getMillis()), entity.getCounts()[i++]);
    }
    return result;
  }
}
View Full Code Here

Examples of org.springframework.xd.shell.util.TableRow.addValue()

        .addHeader(5, new TableHeader("Groups"))
        .addHeader(6, new TableHeader("Custom Attributes"));
    for (DetailedContainerResource container : containers) {
      Map<String, String> copy = new HashMap<String, String>(container.getAttributes());
      final TableRow row = table.newRow();
      row.addValue(1, copy.remove("id"))
          .addValue(2, copy.remove("host"))
          .addValue(3, copy.remove("ip"))
          .addValue(4, copy.remove("pid"));
      String groups = copy.remove("groups");
      row.addValue(5, groups == null ? "" : groups);
View Full Code Here

Examples of org.springframework.yarn.support.console.TableRow.addValue()

        .addHeader(7, new TableHeader("State"))
        .addHeader(8, new TableHeader("FinalStatus"));

    for (ApplicationReport a : applications) {
      final TableRow row = new TableRow();
      row.addValue(1, a.getApplicationId().toString())
          .addValue(2, a.getUser())
          .addValue(3, a.getName())
          .addValue(4, a.getQueue())
          .addValue(5, DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(
              new Date(a.getStartTime())))
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.