Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.Implementation.createInstance()


    Assert.assertEquals("Property testVersionDef type is a version ", "version", client.getPropertyDefinition("testVersionDef").getType());
    Assert.assertEquals("Property testVersionDef value is 4.5.6 ", Version.parseVersion("4.5.6"), client.getPropertyObject("testVersionDef"));
   
    System.err.println("Creating an instance, defined properties should be inherited");

    Instance instClient = client.createInstance(null, null);
    System.err.println("Client instance properties, "+instClient.getAllProperties().entrySet());

    Assert.assertNotNull("Property testVersionProp must exist ",instClient.getPropertyObject("testVersionProp"));
    Assert.assertEquals("Property testVersionProp type is a version ", "version", instClient.getPropertyDefinition("testVersionProp").getType());
    Assert.assertEquals("Property testVersionProp value is 1.2.3 ", Version.parseVersion("1.2.3"), instClient.getPropertyObject("testVersionProp"));
View Full Code Here


    public void ConstraintsCheckingImplementation_tc009() {

  Implementation s1Impl = waitForImplByName(null,
    "fr.imag.adele.apam.pax.test.impl.S1Impl");

  Instance s1Inst = s1Impl.createInstance(null, null);

  S1Impl s1 = (S1Impl) s1Inst.getServiceObject();

  Instance philipsSwitch = CST.componentBroker.getInstService(s1
    .getSimpleDevice110v());
View Full Code Here

    @Test
    public void ConstraintsCheckingInstanceFilteringByInitialProperty_tc010()
      throws InvalidSyntaxException {

  Implementation samsungImpl = waitForImplByName(null, "SamsungSwitch");
  final Instance samsungInst = samsungImpl.createInstance(null,
    new HashMap<String, String>() {
        {
      put("currentVoltage", "95");
        }
    });
View Full Code Here

      put("currentVoltage", "95");
        }
    });

  Implementation lgImpl = waitForImplByName(null, "LgSwitch");
  final Instance lgInst = lgImpl.createInstance(null,
    new HashMap<String, String>() {
        {
      put("currentVoltage", "100");
        }
    });
View Full Code Here

      put("currentVoltage", "100");
        }
    });

  Implementation siemensImpl = waitForImplByName(null, "SiemensSwitch");
  final Instance siemensInst = siemensImpl.createInstance(null,
    new HashMap<String, String>() {
        {
      put("currentVoltage", "105");
        }
    });
View Full Code Here

      put("currentVoltage", "105");
        }
    });

  Implementation boschImpl = waitForImplByName(null, "BoschSwitch");
  final Instance boschInst = boschImpl.createInstance(null,
    new HashMap<String, String>() {
        {
      put("currentVoltage", "110");
        }
    });
View Full Code Here

      put("currentVoltage", "110");
        }
    });

  Implementation philipsImpl = waitForImplByName(null, "philipsSwitch");
  final Instance philipsInst = philipsImpl.createInstance(null,
    new HashMap<String, String>() {
        {
      put("currentVoltage", "117");
        }
    });
View Full Code Here

  Implementation s1Impl = waitForImplByName(null,
    "fr.imag.adele.apam.pax.test.impl.S1Impl");

  // apam.waitForIt(Constants.CONST_WAIT_TIME);

  Instance s1Inst = s1Impl.createInstance(null, null);
  S1Impl s1 = (S1Impl) s1Inst.getServiceObject();

  // apam.waitForIt(Constants.CONST_WAIT_TIME);

  for (Eletronic e : s1.getEletronicInstancesConstraintsInstance()) {
View Full Code Here

    @Test
    public void ConstraintsCheckingInstanceFilteringBySetProperty_tc011()
      throws InvalidSyntaxException {

  Implementation samsungImpl = waitForImplByName(null, "SamsungSwitch");
  final Instance samsungInst = samsungImpl.createInstance(null, null);

  Implementation lgImpl = waitForImplByName(null, "LgSwitch");
  final Instance lgInst = lgImpl.createInstance(null, null);

  Implementation siemensImpl = waitForImplByName(null, "SiemensSwitch");
View Full Code Here

  Implementation samsungImpl = waitForImplByName(null, "SamsungSwitch");
  final Instance samsungInst = samsungImpl.createInstance(null, null);

  Implementation lgImpl = waitForImplByName(null, "LgSwitch");
  final Instance lgInst = lgImpl.createInstance(null, null);

  Implementation siemensImpl = waitForImplByName(null, "SiemensSwitch");
  final Instance siemensInst = siemensImpl.createInstance(null, null);

  Implementation boschImpl = waitForImplByName(null, "BoschSwitch");
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.