Examples of Resolution


Examples of PrologPlusCG.prolog.Resolution

    }
   
   
    // qui contiendra les resultats (des hashtables) de la resolution
    if (analysisSucceeded) {
      env.aResolution = new Resolution(env, false); // false; resolution without interface
      env.aResolution.start();
     
      try {
        // run the process and wait for it to finish.
        env.aResolution.join();
View Full Code Here

Examples of ch.agent.t2.time.Resolution

    }
    if (basePeriodPattern != null)
      time = basePeriodPattern.expandIndex(time);
   
    TimeParts tp = new TimeParts();
    Resolution unit = this.baseUnit;
    switch (unit) {
    case YEAR:
      tp.setYear(time);
      break;
    case MONTH:
      tp.setYear(time / 12);
      tp.setMonth((int) (time - tp.getYear() * 12) + 1);
      break;
    case DAY:
      TimeTools.computeYMD(time, tp);
      break;
    case HOUR:
      long days = time / 24;
      tp.setHour((int) (time - days * 24));
      TimeTools.computeYMD(days, tp);
      break;
    case MIN:
      days = time/ (24 * 60);
      long minutes = time - days * 24 * 60;
      tp.setHour((int)(minutes / 60));
      tp.setMin((int) (minutes - tp.getHour() * 60));
      TimeTools.computeYMD(days, tp);
      break;
    case SEC:
      days = time / (24 * 60 * 60);
      long seconds = time - days * 24L * 60L * 60L;
      TimeTools.computeYMD(days, tp);
      TimeTools.computeHMS(seconds, tp);
      break;
    case MSEC:
      days = time / (24L * 60L * 60L * 1000L);
      long millis = time - days * 24L * 60L * 60L * 1000L;
      seconds = millis / 1000L;
      tp.setUsec((int) (millis - seconds * 1000L) * 1000);
      TimeTools.computeYMD(days, tp);
      TimeTools.computeHMS(seconds, tp);
      break;
    case USEC:
      days = time / (24L * 60L * 60L * 1000000L);
      long micros = time - days * 24L * 60L * 60L * 1000000L;
      seconds = micros / 1000000L;
      tp.setUsec((int) (micros - seconds * 1000000L));
      TimeTools.computeYMD(days, tp);
      TimeTools.computeHMS(seconds, tp);
      break;
    default:
      throw new RuntimeException("bug: " + unit.name());
    }
   
    if (subPeriodPattern != null) {
      // there is something to do even when subPeriod = 0
      subPeriodPattern.fillInSubPeriod(subPeriod, tp);
View Full Code Here

Examples of com.almilli.tivo.hme.hd.Resolution

                 
              case ResolutionInfo.EVT_RES_INFO:
                  log.debug("handleChunk: ResolutionInfo");
                  this.resolutionInfo = new ResolutionInfo(chunkInStr);
                  evt = resolutionInfo;
                  Resolution res = resolutionInfo.getCurrentResolution();
                  if(res.getWidth() != getRoot().getWidth() || res.getHeight() != getRoot().getHeight())
                  {
                      getRoot().setSize(res.getWidth(), res.getHeight());
                      width = getRoot().getWidth();
                      height = getRoot().getHeight();
                      rootBoundsChanged(getRoot().getBounds());
                  }
                  resolutionReceived = true;
View Full Code Here

Examples of com.almilli.tivo.hme.hd.Resolution

    public int getHeight() {
        return height;
    }

    ResolutionInfo createResolutionInfo(int width, int height, int aspectNumerator, int aspectDenominator) {
        Resolution resolution = new Resolution(width, height, aspectNumerator, aspectDenominator);
        List<Resolution> supported = new ArrayList<Resolution>(1);
        supported.add(resolution);
        return new ResolutionInfo(resolution, supported);
    }
View Full Code Here

Examples of com.almilli.tivo.hme.hd.Resolution

        throws Exception
    {
        super.initApp(context);

        ResolutionInfo resInfo = getResolutionInfo();
        Resolution currentRes = resInfo.getCurrentResolution();
        desiredResolution = resInfo.getPreferredResolution();

        if (log.isInfoEnabled()) {
            log.info("Current resolution is: " + currentRes);
        }

        if (currentRes.equals(desiredResolution)) {
            if (!initialized) {
                initService();
            }
        } else {
            if (log.isInfoEnabled()) {
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Resolution

    final Map<String, CimFieldInfo> fieldsInfo = parser.parse(
        getJsonObjectFromResource("/json/createmeta/fieldsinfo/valid-with-all-issue-types.json")
    );

    assertThat(fieldsInfo.get("resolution").getAllowedValues(), IsIterableContainingInAnyOrder.<Object>containsInAnyOrder(
        new Resolution(URI.create("http://localhost:2990/jira/rest/api/latest/resolution/1"), 1L, "Fixed", null),
        new Resolution(URI.create("http://localhost:2990/jira/rest/api/latest/resolution/2"), 2L, "Won't Fix", null),
        new Resolution(URI.create("http://localhost:2990/jira/rest/api/latest/resolution/3"), 3L, "Duplicate", null),
        new Resolution(URI.create("http://localhost:2990/jira/rest/api/latest/resolution/4"), 4L, "Incomplete", null),
        new Resolution(URI.create("http://localhost:2990/jira/rest/api/latest/resolution/5"), 5L, "Cannot Reproduce", null)
    ));
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Resolution

  @Override
  public Resolution parse(JSONObject json) throws JSONException {
    final BasicResolution basicResolution = basicResolutionJsonParser.parse(json);
    final String description = json.getString("description");
        final Long id = JsonParseUtil.getOptionalLong(json, "id");
    return new Resolution(basicResolution.getSelf(), basicResolution.getName(), description, id);
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Resolution

public class ResolutionJsonParserTest {
  @Test
  public void testParse() throws Exception {
    final ResolutionJsonParser parser = new ResolutionJsonParser();
    final Resolution resolution = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/resolution/complete.json"));
    Assert.assertEquals(new Resolution(toUri("http://localhost:8090/jira/rest/api/latest/resolution/4"), "Incomplete",
        "The problem is not completely described.", null), resolution);
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Resolution

    final Issue resolvedIssue = client.getIssueClient().getIssue("TST-2", pm);
    final BasicResolution basicResolution = resolvedIssue.getResolution();
    assertNotNull(basicResolution);

    final Resolution resolution = client.getMetadataClient().getResolution(basicResolution.getSelf(), pm);
    assertEquals(basicResolution.getName(), resolution.getName());
    assertEquals(basicResolution.getSelf(), resolution.getSelf());
    assertEquals("A fix for this issue is checked into the tree and tested.", resolution.getDescription());
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Resolution

  @Test
  @JiraBuildNumberDependent(BN_JIRA_5)
  public void testGetResolutions() {
    final Iterable<Resolution> resolutions = client.getMetadataClient().getResolutions(pm);
    assertEquals(5, Iterables.size(resolutions));
    final Resolution resolution = findEntityBySelfAddressSuffix(resolutions, "/1");
    assertEquals("Fixed", resolution.getName());
    assertEquals("A fix for this issue is checked into the tree and tested.", resolution.getDescription());
    assertNotNull(resolution.getSelf());
  }
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.