Examples of TREND


Examples of fr.ippon.tatami.web.rest.dto.Trend

            currentPosition++;
        }
        List<String> mostUsedTags = findMostUsedKeys(totalTagsCount);
        List<Trend> trends = new ArrayList<Trend>();
        for (String tag : mostUsedTags) {
            Trend trend = new Trend();
            trend.setTag(tag);
            Integer recentCount = recentTagsCount.get(tag);
            Integer oldCount = oldTagsCount.get(tag);
            if (oldCount != null) {
                if (recentCount != null) {
                    if (recentCount >= oldCount) {
                        trend.setTrendingUp(true);
                    } else {
                        trend.setTrendingUp(false);
                    }
                } else {
                    trend.setTrendingUp(false);
                }
            } else {
                trend.setTrendingUp(true);
            }
            trends.add(trend);
        }
        if (trends.size() > TRENDS_SIZE) {
            return trends.subList(0, TRENDS_SIZE);
View Full Code Here

Examples of globalscreen.application.tracability.tracer.Trend

        int colorIndex = 0;
        if (!trendList.isEmpty()) {
            trendList.clear();
        }
        for (int i = 0; i < spectrumSize; i++) {
            final Trend t = new Trend(attributeName.toLowerCase() + "_" + i);
            t.setDescription("field n� " + i + "of " + attributeName.toLowerCase());
            t.setColor(colorTable.get(Integer.valueOf(colorIndex)));
            t.setUnit("No Unit");
            t.setVisibleYScale(true);
            t.setMinYScaleValue(minValue);
            t.setMaxYScaleValue(maxValue);
            try {
                t.setDrawStyle(Trend.class.getField(drawStyle).getInt(this));
            }
            catch (final Exception e) {
                t.setDrawStyle(Trend.DRAW_LINE);
            }

            try {
                t.setDotStyle(Trend.class.getField(dotStyle).getInt(this));
            }
            catch (final Exception e) {
                t.setDotStyle(Trend.FILL_OVAL_DOT);
            }
            trendList.add(t);
            trendTable.put(attributeName.toLowerCase() + "_" + i, t);
            if (colorIndex == 10) {
                colorIndex = 0;
View Full Code Here

Examples of globalscreen.application.tracability.tracer.Trend

        int size = spectrumSize;
        if (attribute.getYDimension() < spectrumSize) {
            size = attribute.getYDimension();
        }
        for (int i = 0; i < size; i++) {
            final Trend t = trendTable.get(attributeName.toLowerCase() + "_" + i);
            t.setUnit(unit);
            t.setMinYScaleValue(minValue);
            t.setMaxYScaleValue(maxValue);
        }
    }
View Full Code Here

Examples of globalscreen.application.tracability.tracer.Trend

        int colorIndex = 0;
        if (!trendList.isEmpty()) {
            trendList.clear();
        }
        for (final String element : attributeNameList) {
            final Trend t = new Trend(element.toLowerCase());
            t.setDescription(element.toLowerCase());
            t.setColor(colorTable.get(Integer.valueOf(colorIndex)));
            t.setUnit("No Unit");
            t.setVisibleYScale(true);
            t.setMinYScaleValue(defaultMinValue);
            t.setMaxYScaleValue(defaultMaxValue);
            try {
                t.setDrawStyle(Trend.class.getField(drawStyle).getInt(this));
            }
            catch (final Exception e) {
                t.setDrawStyle(Trend.DRAW_LINE);
            }

            try {
                t.setDotStyle(Trend.class.getField(dotStyle).getInt(this));
            }
            catch (final Exception e) {
                t.setDotStyle(Trend.FILL_OVAL_DOT);
            }
            trendList.add(t);
            trendTable.put(element.toLowerCase(), t);
            if (colorIndex == 10) {
                colorIndex = 0;
View Full Code Here

Examples of globalscreen.application.tracability.tracer.Trend

    public void buildTrendList() {
        final double maxValue = getMaxValue();
        final double minValue = getMinValue();
        for (int i = 0; i < m_AttributeList.size(); i++) {
            final INumberScalar attribute = (INumberScalar) m_AttributeList.get(i);
            final Trend t = trendTable.get(attribute.getName().toLowerCase());
            t.setUnit(attribute.getUnit());
            t.setMinYScaleValue(minValue);
            t.setMaxYScaleValue(maxValue);
        }
    }
View Full Code Here

Examples of org.boris.expr.function.excel.TREND

        TINV t = new TINV();
        fail("TINV not implemented");
    }

    public void testTREND() throws Exception {
        TREND t = new TREND();
        fail("TREND not implemented");
    }
View Full Code Here

Examples of twitter4j.Trend

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Trend)) return false;

        Trend trend = (Trend) o;

        if (!name.equals(trend.getName())) return false;
        if (query != null ? !query.equals(trend.getQuery()) : trend.getQuery() != null)
            return false;
        if (url != null ? !url.equals(trend.getUrl()) : trend.getUrl() != null)
            return false;

        return true;
    }
View Full Code Here

Examples of weibo4j.Trend

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String trend_name = args[1];
    Trend tm = new Trend();
    try {
      JSONObject result = tm.isFollow(trend_name);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of weibo4j.Trend

  public static void main(String[] args){
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Trend tm = new Trend();
    int trendId = Integer.parseInt(args[1]);
    try {
      JSONObject result = tm.trendsDestroy(trendId);
      Log.logInfo(String.valueOf(result));
    } catch (WeiboException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of weibo4j.Trend

  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    String uid = args[1];
    Trend tm = new Trend();
    List<UserTrend> trends = null;
    try {
      trends = tm.getTrends(uid);
      for(UserTrend t : trends){
        Log.logInfo(t.toString());
      }
    } catch (WeiboException e) {
      e.printStackTrace();
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.