Exemple #1
0
                                  "flow")
printStatus(status, 3)

status = oms.addConnectorToTLMBus("model.tlm.wc1.bus2", "model.tlm.wc1.f",
                                  "effort")
printStatus(status, 0)

status = oms.addTLMBus("model.tlm.wc2.bus2", oms.tlm_domain_output, 1,
                       oms.default)
printStatus(status, 0)

status = oms.addConnectorToTLMBus("model.tlm.wc2.bus2", "model.tlm.wc2.y",
                                  "value")
printStatus(status, 0)

status = oms.addTLMConnection("model.tlm.wc1.bus1", "model.tlm.wc2.bus2",
                              0.001, 0.3, 100, 0)
printStatus(status, 0)

src, status = oms.list("model.tlm")
print src

status = oms.deleteConnectorFromTLMBus("model.tlm.wc1.bus2", "model.tlm.wc1.x")
printStatus(status, 0)

status, src = oms.list("model.tlm")
print src

status = oms.delete("model")
printStatus(status, 0)

## Result:
Exemple #2
0
printStatus(status, 0)

status = oms.addConnectorToTLMBus("test.eoo.foo2.tlm", "test.eoo.foo2.v",
                                  "flow")
printStatus(status, 0)

status = oms.addBus("test.eoo.foo2.bus")
printStatus(status, 0)

status = oms.addConnectorToBus("test.eoo.foo2.bus", "test.eoo.foo2.u1")
printStatus(status, 0)

status = oms.addConnectorToBus("test.eoo.foo2.bus", "test.eoo.foo2.u2")
printStatus(status, 0)

status = oms.addTLMConnection("test.eoo.foo.tlm", "test.eoo.foo2.tlm", 0.001,
                              0.3, 100, 0)
printStatus(status, 0)

status = oms.addConnection("test.eoo.foo.y1", "test.eoo.foo2.u1")
printStatus(status, 0)

status = oms.addConnection("test.eoo.foo.y2", "test.eoo.foo2.u2")
printStatus(status, 0)

status = oms.addConnection("test.eoo.foo.bus", "test.eoo.foo2.bus")
printStatus(status, 0)

status, src = oms.list("test")
printStatus(status, 0)
print(src)