Package model.devscore.couplings

Examples of model.devscore.couplings.ICouplingSet


   *           the invalid coupling exception
   */
  public void addCoupling(IBasicDEVSModel model1, IPort port1,
      Class<IBasicDEVSModel> model2, String port2,
      ISelector<IBasicDEVSModel> selector) {
    ICouplingSet couplings;
    if (model1 == this) {
      couplings = externalInCouplings;
    } else {
      couplings = internalCouplings;
    }
View Full Code Here


   * @throws InvalidCouplingException
   *           the invalid coupling exception
   */
  public void addCoupling(IBasicDEVSModel model1, IPort port1,
      IBasicDEVSModel model2, IPort port2) {
    ICouplingSet couplings;
    // if model1 is this model (self) then its an external in coupling
    if (model1 == this) {
      couplings = externalInCouplings;
    } else {
      // if model2 is this model (self) then its an external out coupling
View Full Code Here

   *           if anything is wrong
   */
  public void addCoupling(IBasicDEVSModel model1, IPort port1,
      MultiCouplingTargetList model2, String name,
      ISelector<IBasicDEVSModel> selector) {
    ICouplingSet couplings;
    if (model1 == this) {
      couplings = externalInCouplings;
    } else {
      couplings = internalCouplings;
    }
View Full Code Here

   * @param port2
   *          the port2
   */
  public void removeCoupling(IBasicDEVSModel model1, IPort port1,
      IBasicDEVSModel model2, IPort port2) {
    ICouplingSet couplingSet;
    if (model1 == this) {
      couplingSet = externalInCouplings;
    } else {
      if (model2 == this) {
        couplingSet = externalOutCouplings;
      } else {
        couplingSet = internalCouplings;
      }
    }
    couplingSet.removeCoupling(model1, port1, model2, port2);
  }
View Full Code Here

TOP

Related Classes of model.devscore.couplings.ICouplingSet

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.