Passing arguments without a broadcast
Posted: Sep 6th, '17, 18:37
Hello everyone!
I'm currently trying to build logic gates (like AND, OR, NOT, ...) in GPBlocks. So far, I created 3 classes, an AND-class, an Input class and an output class. Now my AND class uses variables to save instances of the input and output classes, because every input and output always only belongs to one logic gate.
And this is where I'm stuck right now:
It's no problem to get values from the input instances to my AND instance. But I don't know how to pass a value to my output instance without using a broadcast. What I need would be a set-method. But I don't know exactly how to implement that. Can anyone help?
I attached my progress so far.
Thanks in advance!
I'm currently trying to build logic gates (like AND, OR, NOT, ...) in GPBlocks. So far, I created 3 classes, an AND-class, an Input class and an output class. Now my AND class uses variables to save instances of the input and output classes, because every input and output always only belongs to one logic gate.
And this is where I'm stuck right now:
It's no problem to get values from the input instances to my AND instance. But I don't know how to pass a value to my output instance without using a broadcast. What I need would be a set-method. But I don't know exactly how to implement that. Can anyone help?
I attached my progress so far.
Thanks in advance!