Examples of OrionConnector


Examples of com.kurento.kmf.orion.OrionConnector

  }

  @Bean
  @Scope("prototype")
  OrionConnector orionConnector() {
    return new OrionConnector(orionConnectorConfiguration());
  }
View Full Code Here

Examples of com.kurento.kmf.orion.OrionConnector

    OrionAttribute<String> oa4 = new OrionAttribute<>("oa4", "oa4", "temp4");

    List<OrionAttribute<String>> oaList2 = newArrayList(oa3, oa4);
    oer2.getAttributes().addAll(oaList2);

    OrionConnector op = new OrionConnector(
        new OrionConnectorConfiguration());

    ContextUpdateResponse resp = op.registerContextElements(oer1, oer2);

    log.info("Response: {}", resp);
    resp = op.deleteContextElements(oer1);
    log.info("Response: {}", resp);
    resp = op.deleteContextElements(oer2);
    log.info("Response: {}", resp);
    log.info("Test finished");
  }
View Full Code Here

Examples of com.kurento.kmf.orion.OrionConnector

  }

  @Ignore
  @Test
  public void testWithZbarMediaObject() {
    OrionConnector op = new OrionConnector(
        new OrionConnectorConfiguration());

    final OrionContextElement ctxElement = new OrionContextElement();
    ctxElement.setId("ZBarHandler_test");
    ctxElement.setType("ZBarFilter");
    ctxElement.getAttributes().add(
        new OrionAttribute<>("CodeFoundEvent", "CodeFoundEvent",
            "xxxxx"));
    ContextUpdateResponse resp = op.registerContextElements(ctxElement);

    log.info("Response: {}", resp);

    resp = op.deleteContextElements(ctxElement);
    log.info("Response: {}", resp);

    log.info("Test finished");
  }
View Full Code Here

Examples of com.kurento.kmf.orion.OrionConnector

    log.info("Test finished");
  }

  @Test
  public void testCrowdDetectorFilter () {
    final OrionConnector oc = new OrionConnector(
        new OrionConnectorConfiguration());

    final OrionContextElement fluidityElement = new OrionContextElement();
    fluidityElement.setId("CAM-ID_FluidityEvent");
    fluidityElement.setType("FluidityEvent");
    OrionAttribute<String> oaPercentage = new OrionAttribute<>("fluidityPercentage", "percentile", "0");
    OrionAttribute<String> oaLevel = new OrionAttribute<>("fluidityLevel", "level", "none");
    OrionAttribute<String> roiID1 = new OrionAttribute<>("roiID", "text", "-");
    fluidityElement.getAttributes().add(oaPercentage);
    fluidityElement.getAttributes().add(oaLevel);
    fluidityElement.getAttributes().add(roiID1);

    final OrionContextElement directionElement = new OrionContextElement();
    directionElement.setId("CAM-ID_DirectionEvent");
    directionElement.setType("DirectionEvent");
    OrionAttribute<String> oaAngle = new OrionAttribute<>("directionAngle", "degrees", "0");
    OrionAttribute<String> roiID2 = new OrionAttribute<>("roiID", "text", "-");
    directionElement.getAttributes().add(oaAngle);
    directionElement.getAttributes().add(roiID2);

    final OrionContextElement occupancyElement = new OrionContextElement();
    occupancyElement.setId("CAM-ID_OccupancyEvent");
    occupancyElement.setType("OccupancyEvent");
    OrionAttribute<String> oaOcPerc = new OrionAttribute<>("occupancyPercentage", "percentile", "0");
    OrionAttribute<String> oaOcLevel = new OrionAttribute<>("occupancyLevel", "level", "none");
    OrionAttribute<String> roiID3 = new OrionAttribute<>("roiID", "text", "-");
    occupancyElement.getAttributes().add(oaOcPerc);
    occupancyElement.getAttributes().add(oaOcLevel);
    occupancyElement.getAttributes().add(roiID3);

    ContextUpdateResponse resp = oc.registerContextElements(fluidityElement, directionElement, occupancyElement);

    log.info("Response: {}", resp);

  }
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.