Package fr.imag.adele.apam

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


  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");
  final Instance boschInst = boschImpl.createInstance(null, null);

  Implementation philipsImpl = waitForImplByName(null, "philipsSwitch");
View Full Code Here


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

  Implementation boschImpl = waitForImplByName(null, "BoschSwitch");
  final Instance boschInst = boschImpl.createInstance(null, null);

  Implementation philipsImpl = waitForImplByName(null, "philipsSwitch");
  final Instance philipsInst = philipsImpl.createInstance(null, null);

  samsungInst.setProperty("currentVoltage", "95");
View Full Code Here

  Implementation boschImpl = waitForImplByName(null, "BoschSwitch");
  final Instance boschInst = boschImpl.createInstance(null, null);

  Implementation philipsImpl = waitForImplByName(null, "philipsSwitch");
  final Instance philipsInst = philipsImpl.createInstance(null, null);

  samsungInst.setProperty("currentVoltage", "95");
  lgInst.setProperty("currentVoltage", "100");
  siemensInst.setProperty("currentVoltage", "105");
  boschInst.setProperty("currentVoltage", "110");
View Full Code Here

      }
  };

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

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

  // auxListInstanceReferencedBy("#################",s1.getEletronicInstancesConstraintsInstance());
  auxListInstances("-------Available instances before using the list-------");
View Full Code Here

    @Test
    public void FunctionCall_tc093() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");

  Instance subjectA = subjectAimpl.createInstance(null, null);

  S6Impl s6 = (S6Impl) subjectA.getServiceObject();

  auxListProperties("\t", subjectA);
View Full Code Here

    @Test
    public void FunctionCallEscaped_tc094() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");

  Instance subjectA = subjectAimpl.createInstance(null, null);

  auxListProperties("\t", subjectA);

  String template = "after fetching a property value (pointing to a function which the '@' was escaped with backslash) the returned value do not correspond to the returned function. Value '%s' was returned instead of '%s'";
  String message = String.format(template,
View Full Code Here

    @Test
    public void SubstitutionGetPropertyEscaped_tc095() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");

  Instance subjectA = subjectAimpl.createInstance(null, null);

  auxListProperties("\t", subjectA);

  String templace = "after fetching a property value (pointing to metasubstitution) with '$' escaped (with backslash), the content should not be processed by metasubtitution. Value was %s instead of %s";
  String message = String.format(templace,
View Full Code Here

    @Test
    public void SubstitutionGetPropertyOutsideDefinictionInSpecPropertyNowhere_tc091() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");

  Instance subjectA = subjectAimpl.createInstance(null, null);

  auxListProperties("\t", subjectA);

  Assert.assertTrue(
    "Given two composites A B, was not possible to reach the right value for a property of A through B by substituion (e.g. in B declare a property with the value '$AImpl.$property'): when there is only a definition in the Spec and no property in the Impl",
View Full Code Here

    @Test
    public void SubstitutionGetPropertyOutsideDefinitionInSpecPropertyInImpl_tc090() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");

  Instance subjectA = subjectAimpl.createInstance(null, null);

  auxListProperties("\t", subjectA);

  Assert.assertTrue(
    "Given two composites A B, was not possible to reach the right value for a property of A through B by substituion (e.g. in B declare a property with the value '$AImpl.$property') ",
View Full Code Here

    @Test
    public void SubstitutionGetPropertyOutsideDefinitionNowherePropertyInImpl_tc092() {
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");

  Instance subjectA = subjectAimpl.createInstance(null, null);

  auxListProperties("\t", subjectA);

  System.err.println(subjectA.getProperty("property-case-08"));
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.