Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.Instance


        "MessageProducerImpl01");

    Implementation consumerImpl = waitForImplByName(null,
        "MessageConsumeImpl01");

    Instance producer = producerImpl.createInstance(null, null);

    Instance consumer = consumerImpl.createInstance(null, null);

    M1ConsumerImpl01 m1ConsumerImpl = (M1ConsumerImpl01) consumer
        .getServiceObject();

    M1ProducerImpl m1ProdImpl = (M1ProducerImpl) producer
        .getServiceObject();
View Full Code Here


        "MessageProducerImpl01");

    Implementation consumerImpl = waitForImplByName(null,
        "MessageConsumeImpl01");

    Instance consumer = consumerImpl.createInstance(null, null);

    M1ConsumerImpl01 m1ConsumerImpl = (M1ConsumerImpl01) consumer
        .getServiceObject();

    // TODO message: forcewire in message test
    m1ConsumerImpl.getQueue();

    Instance producer = producerImpl.createInstance(null, null);

    M1ProducerImpl m1ProdImpl = (M1ProducerImpl) producer
        .getServiceObject();

    m1ProdImpl.pushMessage("message 1");

    Assert.assertTrue(
View Full Code Here

        "MessageProducerImpl01");

    Implementation consumerImpl = waitForImplByName(null,
        "MessageConsumeImpl01");

    Instance producerApam1 = producer01Impl.createInstance(null, null);

    Instance consumerApam = consumerImpl.createInstance(null, null);

    M1ConsumerImpl01 consumer = (M1ConsumerImpl01) consumerApam
        .getServiceObject();

    M1ProducerImpl producer1 = (M1ProducerImpl) producerApam1
        .getServiceObject();
View Full Code Here

  }
  if (properties.isEmpty()) {
      return;
  }

  Instance inst = CST.componentBroker.getInst(instanceName);

  if (inst != null) {
      // TODO verify values of properties with some types (string, int,
      // double, string[])
      // TODO for now only string are used

      inst.setAllProperties((Map) properties);
  } else {
      out.println("The instance " + instanceName + " not exist !");
  }

    }
View Full Code Here

     * Display all the relations of an instance
     */
    @Descriptor("#display all the relations of an instance")
    public void displaywires(@Descriptor("target component") String... args) {
  String instName = args[0];
  Instance inst = CST.componentBroker.getInst(instName);
  if (inst != null) {
      dumpState(out, inst, "  ", null);
  }
    }
View Full Code Here

      }
      return;
  }

  String instanceName = args[0];
  Instance instance = CST.componentBroker.getInst(instanceName);
  if (instance == null) {
      out.println("No such instance : " + instanceName);
      return;
  }
View Full Code Here

  }
  if (properties.isEmpty()) {
      return;
  }

  Instance inst = CST.componentBroker.getInst(instanceName);

  if (inst != null) {
      // TODO verify values of properties with some types (string, int,
      // double, string[])
      // TODO for now only string are used

      inst.setAllProperties((Map) properties);
  } else {
      out.println("The instance " + instanceName + " not exist !");
  }

    }
View Full Code Here

     * Display all the relations of an instance
     */

    public void displaywires(PrintWriter out, String... args) {
  String instName = args[0];
  Instance inst = CST.componentBroker.getInst(instName);
  if (inst != null) {
      dumpState(out, inst, "  ", null);
  }
    }
View Full Code Here

      }
      return;
  }

  String instanceName = args[0];
  Instance instance = CST.componentBroker.getInst(instanceName);
  if (instance == null) {
      out.println("No such instance : " + instanceName);
      return;
  }
View Full Code Here

    @Deprecated
    public void testMyKitchenBinding() {
  logger.info("testMyKitchenBinding()");
  ApamResolver resolver = CST.apamResolver;
  Instance lightApplication = resolver.findInstByName(null, "myKitchen");

  Set<String> theoricLinks = new HashSet<String>();
  theoricLinks.add("buttonKitchen");
  theoricLinks.add("lightKitchen");

  Set<Link> listRelations = lightApplication.getRawLinks();
  Iterator<Link> it = listRelations.iterator();
  while (it.hasNext()) {
      Link rel = it.next();
      logger.debug("testMyKitchenBinding(), link to "
        + rel.getDestination().getName());
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.Instance

Copyright © 2018 www.massapicom. 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.