Examples of Indicator


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

        return results;
    }

    static Indicator createIndicator () {

        Indicator result = new Indicator ();

        result.setId(DataPointCountryDAOTest.ID);

        result.setIndicatorTopics(createIndicatorTopics());
        result.setName(NAME);

        Source source = IdValuePairTestHelper.create(Source.class);

        result.setSource(source);
        result.setSourceNote(SOURCE_NOTE);
        result.setSourceOrganization(SOURCE_ORGANISATION);

        return result;
    }
View Full Code Here

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

        Long primaryKey = indicator.getPrimaryKey();

        assertNotNull(primaryKey);

        Indicator indicator2 =
            indicatorDAO.find(primaryKey);

        assertNotNull(indicator2);
        assertEquals(indicator, indicator2);

        indicator2.setName(NAME1);

        indicatorDAO.merge(indicator2);

        Indicator indicator3 =
            indicatorDAO.find(primaryKey);

        assertEquals(NAME1, indicator3.getName ());

        indicatorDAO.remove(indicator3);

        Indicator indicator4 =
            indicatorDAO.find(primaryKey);

        assertNull(indicator4);
    }
View Full Code Here

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

        List<Indicator> indicatorList = result.getIndicatorList();

        assertNotNull (indicatorList);

        Indicator firstIndicator = indicatorList.get(0);

        assertEquals ("NY.GDP.MKTP.CD", firstIndicator.getId());
        assertEquals ("GDP (current US$)", firstIndicator.getName());

        Source source = firstIndicator.getSource();

        reviewIdValuePair(
            "2",
            "World Development Indicators",
            source
        );

        String expectedSourceNote = "GDP at purchaser's prices is the sum " +
            "of gross value added by all resident producers in the economy " +
            "plus any product taxes and minus any subsidies not included in " +
            "the value of the products. It is calculated without making " +
            "deductions for depreciation of fabricated assets or for " +
            "depletion and degradation of natural resources. Data are in " +
            "current U.S. dollars. Dollar figures for GDP are converted from " +
            "domestic currencies using single year official exchange rates. " +
            "For a few countries where the official exchange rate does not " +
            "reflect the rate effectively applied to actual foreign " +
            "exchange transactions, an alternative conversion factor is used.";

        assertEquals (expectedSourceNote, firstIndicator.getSourceNote());

        String expectedSourceOrganization = "World Bank national accounts " +
            "data, and OECD National Accounts data files.";

        assertEquals (expectedSourceOrganization,
            firstIndicator.getSourceOrganization());

        IndicatorTopics indicatorTopics =
            firstIndicator.getIndicatorTopics();

        assertNotNull (indicatorTopics);

        List<IndicatorTopic> indicatorTopicList =
            indicatorTopics.getIndicatorTopicList();
View Full Code Here

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

        List<Indicator> indicatorList = result.getIndicatorList();

        assertNotNull (indicatorList);

        Indicator firstIndicator = indicatorList.get(2);

        assertEquals ("EG.GDP.PUSE.KO.PP.KD", firstIndicator.getId());
        assertEquals ("GDP per unit of energy use (constant 2011 PPP $ per " +
            "kg of oil equivalent)", firstIndicator.getName());

        Source source = firstIndicator.getSource();

        reviewIdValuePair(
            "2",
            "World Development Indicators",
            source
        );

        String expectedSourceNote = "GDP per unit of energy use is the PPP " +
            "GDP per kilogram of oil equivalent of energy use. PPP GDP is " +
            "gross domestic product converted to 2011 constant " +
            "international dollars using purchasing power parity rates. An " +
            "international dollar has the same purchasing power over GDP as " +
            "a U.S. dollar has in the United States.";

        assertEquals (expectedSourceNote, firstIndicator.getSourceNote());

        String expectedSourceOrganization = "International Energy Agency " +
            "(IEA Statistics © OECD/IEA, " +
            "http://www.iea.org/stats/index.asp), and World Bank PPP data.";

        assertEquals (expectedSourceOrganization,
            firstIndicator.getSourceOrganization());

        IndicatorTopics indicatorTopics =
            firstIndicator.getIndicatorTopics();

        assertNotNull (indicatorTopics);

        List<IndicatorTopic> indicatorTopicList =
            indicatorTopics.getIndicatorTopicList();
View Full Code Here

Examples of com.gitblit.wicket.TicketsUI.Indicator

          int count = ticket.commentsCount;
          String pattern = getString("gb.nComments");
          if (count == 1) {
            pattern = getString("gb.oneComment");
          }
          indicators.add(new Indicator("fa fa-comment", count, pattern));
        }

        // participants
        if (!ArrayUtils.isEmpty(ticket.participants)) {
          int count = ticket.participants.size();
          if (count > 1) {
            String pattern = getString("gb.nParticipants");
            indicators.add(new Indicator("fa fa-user", count, pattern));
          }
        }

        // attachments
        if (!ArrayUtils.isEmpty(ticket.attachments)) {
          int count = ticket.attachments.size();
          String pattern = getString("gb.nAttachments");
          if (count == 1) {
            pattern = getString("gb.oneAttachment");
          }
          indicators.add(new Indicator("fa fa-file", count, pattern));
        }

        // patchset revisions
        if (ticket.patchset != null) {
          int count = ticket.patchset.commits;
          String pattern = getString("gb.nCommits");
          if (count == 1) {
            pattern = getString("gb.oneCommit");
          }
          indicators.add(new Indicator("fa fa-code", count, pattern));
        }

        // milestone
        if (!StringUtils.isEmpty(ticket.milestone)) {
          indicators.add(new Indicator("fa fa-bullseye", ticket.milestone));
        }

        ListDataProvider<Indicator> indicatorsDp = new ListDataProvider<Indicator>(indicators);
        DataView<Indicator> indicatorsView = new DataView<Indicator>("indicators", indicatorsDp) {
          private static final long serialVersionUID = 1L;

          @Override
          public void populateItem(final Item<Indicator> item) {
            Indicator indicator = item.getModelObject();
            String tooltip = indicator.getTooltip();

            Label icon = new Label("icon");
            WicketUtils.setCssClass(icon, indicator.css);
            item.add(icon);
View Full Code Here

Examples of de.jensd.javafx.controls.indicator.Indicator

        onReset();
    }

    private Indicator createIndicator() {
        Indicator indicator = new Indicator();
        indicator.setResult(Indicator.Result.FAIL);
        indicator.setPrefSize(100.0, 100.0);
        return indicator;
    }
View Full Code Here

Examples of org.aiotrade.lib.indicator.Indicator

        this.nameMapResult = nameMapResult;

        scala.collection.Iterator<Indicator> indicators = PersistenceManager$.MODULE$.apply().lookupAllRegisteredServices(Indicator.class, "Indicators").iterator();
        List<String> inds = new ArrayList<String>();
        while (indicators.hasNext()) {
            Indicator ind = indicators.next();
            inds.add(ind.displayName());
        }
        indicatorList.setListData(inds.toArray());

        if (inds.size() > 0) {
            indicatorList.setSelectedIndex(0);
View Full Code Here

Examples of org.jfx4ee.adm4ee.presentation.controls.indicator.Indicator

        applicationActionMenuButton.getStyleClass().add("navigation-button");
        addApplicationActionsMethods();
        AnchorPane.setBottomAnchor(applicationActionMenuButton, 0.0);
        AnchorPane.setRightAnchor(applicationActionMenuButton, 0.0);

        statusIndicator = new Indicator();
        statusIndicator.setMaxWidth(5.0);
        AnchorPane.setTopAnchor(statusIndicator, Double.MIN_VALUE);
        AnchorPane.setLeftAnchor(statusIndicator, Double.MIN_VALUE);
        AnchorPane.setBottomAnchor(statusIndicator, Double.MIN_VALUE);
View Full Code Here

Examples of org.wicketstuff.scriptaculous.Indicator

    };

    add(cart);
    add(product1);
    add(product2);
    add(new Indicator());
  }
View Full Code Here

Examples of taskrunner.Indicator

    String dataParts[] = newData.split(",");
    TimeSlice slice = new TimeSlice(date, dataParts[0]);

    if(!dataParts[0].equals("Tick")) {
      for(Integer i = 0; i < dataTypes.length && i < dataParts.length-1; i++) {
        slice.addDatumPair(new Indicator(dataTypes[i]), dataParts[i+1]);
      }

      this.addTimeSlice(slice);
    }
  }
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.