Examples of DataPoint


Examples of com.coherentlogic.wb.client.core.domain.DataPoint

    private DataPointDAO dataPointDAO;

    private DataPoint dataPoint = null;

    static DataPoint createDataPoint () {
        DataPoint dataPoint = new DataPoint ();

        DataPointCountry dataPointCountry =
            IdValuePairTestHelper.create(DataPointCountry.class);

        dataPoint.setCountry(dataPointCountry);

        DataPointIndicator dataPointIndicator =
            IdValuePairTestHelper.create(DataPointIndicator.class);

        dataPoint.setDataPointIndicator(dataPointIndicator);

        dataPoint.setDate(DATE);
        dataPoint.setDecimal(DECIMAL);
        dataPoint.setId(DataPointCountryDAOTest.VALUEX);
        dataPoint.setValue(DataPointCountryDAOTest.VALUEY);

        return dataPoint;
    }
View Full Code Here

Examples of com.coherentlogic.wb.client.core.domain.DataPoint

        Long primaryKey = dataPoint.getPrimaryKey();

        assertNotNull(primaryKey);

        DataPoint dataPoint2 =
            dataPointDAO.find(primaryKey);

        assertNotNull(dataPoint2);
        assertEquals(dataPoint, dataPoint2);

        DataPointIndicator dataPointIndicator =
            dataPoint.getDataPointIndicator();

        assertNotNull(dataPointIndicator);
        assertNotNull(dataPointIndicator.getId());

        /* @see DataPointIndicatorDAOTest Where this problem doesn't exist.
         * @todo Figure out if this is correct:
         *
         * Calling .persist() will not automatically set the id value. Your JPA
         * provider will ensure that it is set before the entity is finally
         * written to db. So you are right to assume that the id will be
         * assigned when the transaction is committed. But this is not the only
         * possible case. When you call .flush() the very same will happen.
         */

//        assertNotNull(dataPointIndicator.getPrimaryKey());
        assertNotNull(dataPointIndicator.getValue());

        dataPoint2.setValue(DataPointCountryDAOTest.VALUEY);

        dataPointDAO.merge(dataPoint2);

        DataPoint dataPoint3 =
            dataPointDAO.find(primaryKey);

        assertEquals(
            DataPointCountryDAOTest.VALUEY,
            dataPoint3.getValue());

        dataPointDAO.remove(dataPoint3);

        DataPoint dataPoint4 =
            dataPointDAO.find(primaryKey);

        assertNull(dataPoint4);
    }
View Full Code Here

Examples of com.coherentlogic.wb.client.core.domain.DataPoint

    static DataPoints createDataPoints () {
        DataPoints result = new DataPoints ();

        List<DataPoint> dataPointList = new ArrayList<DataPoint> ();

        DataPoint dataPoint = DataPointDAOTest.createDataPoint();

        dataPointList.add(dataPoint);

        result.setDataPointList(dataPointList);
View Full Code Here

Examples of com.springsource.insight.util.DataPoint

            return;
        }

        mb.add(MAIL_SIZE_METRIC, PointType.GAUGE);
        int time = TimeUtil.nanosToSeconds(trace.getRange().getStart());
        DataPoint responseSizePoint = new DataPoint(time, contentSize.doubleValue());
        mb.add(responseSizePoint, MAIL_SIZE_METRIC);
    }
View Full Code Here

Examples of model.DataPoint

        }
      } else {
        List<DataPoint> listPoints = null;
        if ((listPoints = hashMap.get(h)) == null) {
          listPoints = new ArrayList<DataPoint>();
          DataPoint point = new DataPoint((int) songId, t);
          listPoints.add(point);
          hashMap.put(h, listPoints);
        } else {
          DataPoint point = new DataPoint((int) songId, t);
          listPoints.add(point);
        }
      }
    }
    try {
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.DataPoint

    public void addPointInMills(int x, int y) {
        if (this.pointArray == null){
            pointArray = new Array_Of_DataPoint<DataPoint>();
        }
        pointArray.add(new DataPoint(x, y));
        nPoints += 1;
        int[] tempX = new int[nPoints];
        int[] tempY = new int[nPoints];
        System.arraycopy(xPoints, 0, tempX, 0, xPoints.length);
        System.arraycopy(yPoints, 0, tempY, 0, yPoints.length);
View Full Code Here

Examples of net.sf.mzmine.data.DataPoint

  }

  public boolean equals(Object obj) {
    if (!(obj instanceof DataPoint))
      return false;
    DataPoint dp = (DataPoint) obj;
    return (this.mz == dp.getMZ()) && (this.intensity == dp.getIntensity());
  }
View Full Code Here

Examples of net.sourceforge.processdash.ev.ci.AbstractConfidenceInterval.DataPoint

                if (task.getDateCompleted() != null)
                    interval.addDataPoint(task.getPlanValue(),
                        task.getActualDirectTime());

            } else if (item instanceof DataPoint) {
                DataPoint point = (DataPoint) item;
                interval.addDataPoint(point.x, point.y);
            }
        }
        interval.dataPointsComplete();
    }
View Full Code Here

Examples of nz.co.abrahams.asithappens.storage.DataPoint

       
        point = new DataPoint[1];
        currentTime = System.currentTimeMillis();
       
        try {
            point[0] = new DataPoint(currentTime, snmp.getProcessorLoad(processor));
        } catch (SNMPException e) {
            //e.printStackTrace();
            point[0] = new DataPoint(currentTime);
            logger.warn("Timeout fetching processor load");
        }
       
        return new DataCollectorResponse(point, new String[0], dataType.initialSetCount());
    }
View Full Code Here

Examples of nz.co.abrahams.asithappens.storage.DataPoint

       
        point = new DataPoint[1];
        currentTime = System.currentTimeMillis();
       
        try {
            point[0] = new DataPoint(currentTime, snmp.getCiscoMemoryUsed(memoryIndex));
        } catch (SNMPException e) {
            point[0] = new DataPoint(currentTime);
            logger.warn("Timeout fetching storage used");
        }
       
        return new DataCollectorResponse(point, new String[0], dataType.initialSetCount());
    }
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.