Package model.devscore

Examples of model.devscore.IBasicCoupledModel


    // iterate over all internal and external out couplings of all imminent
    // atomic models
    for (IBasicDEVSModel m : imminents.keySet()) {
      IBasicAtomicModel<? extends AbstractState> am =
          (IBasicAtomicModel<? extends AbstractState>) m;
      IBasicCoupledModel cm = am.getParent();
      getCopyHandler()
          .copyValues(cm.getICIterator(am), cm, influencedAM, involvedCM);
      getCopyHandler().copyValues(cm.getEOCIterator(am), cm, influencedAM,
          involvedCM);
    }

    // array list which contains the involved coupled models per level
    List<Map<IBasicCoupledModel, Object>> coupledModels =
        new ArrayList<>();

    for (IBasicCoupledModel cm : involvedCM.keySet()) {
      int l = cm.getLevel();
      // if ((l == -1) && (cm.getParent() != null)) throw new
      // RuntimeException("Invalid level ("+l+") => wrong model
      // initialization");
      if (l < 0) {
        continue;
View Full Code Here


      Map<IBasicCoupledModel, Object> cm =
          new HashMap<>();

      for (IBasicCoupledModel model : theLevel.keySet()) {

        IBasicCoupledModel parent = model.getParent();

        getCopyHandler().copyValues(model.getEICIterator(model), parent,
            influencedAM, cm);
        model.clearInPorts();
View Full Code Here

      Map<IBasicCoupledModel, Object> cm =
          new HashMap<>();

      for (IBasicCoupledModel model : theLevel.keySet()) {

        IBasicCoupledModel parent = model.getParent();

        getCopyHandler().copyValues(parent.getEOCIterator(model), parent,
            influencedAM, involvedCM);

        if (level != 0) {
          coupledModels.get(level - 1).put(parent, null);
        }

        getCopyHandler().copyValues(parent.getICIterator(model), parent,
            influencedAM, cm);

        model.clearOutPorts();
      }
View Full Code Here

TOP

Related Classes of model.devscore.IBasicCoupledModel

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.