Beispiel #1
0
    def setUp(self):
        self.distributorA = md.MockDistributor()
        self.distributorB = md.MockDistributor()
        self.adder = mj.MockAddJoiningNode("A", "B")
        self.packageReceiver = mr.MockReceiver()

        self.distributorA.connect(self.adder)
        self.distributorB.connect(self.adder)
        self.adder.connect(self.packageReceiver)
Beispiel #2
0
    def setUp(self):
        self.vectorDistributor = md.MockDistributor()
        self.quaternionDistributor = md.MockDistributor()
        self.joiner = imu.QuaternionVectorJoiningNode.makeFromNames(
            quaternionName="Quaternion", vectorName="Vector")
        self.receiver = mr.MockReceiver()

        self.quaternionDistributor.connect(self.joiner)
        self.vectorDistributor.connect(self.joiner)
        self.joiner.connect(self.receiver)
 def setUp(self):
     self.receiver = mh.MockReceiver()
     self.distributor = d.SingleDistributor()
     self.distributor.connect(self.receiver)
    def setUp(self):
        self.distributor = d.NamingDistributor()
        self.receiver = mh.MockReceiver()

        self.distributor.connect("A", self.receiver)
 def setUp(self):
     self.receiverA = mh.MockReceiver()
     self.receiverB = mh.MockReceiver()
     self.distributor = d.MultiDistributor()
     self.distributor.connect(self.receiverA)
     self.distributor.connect(self.receiverB)