* @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);
}