brainbox | Allows anyone
kandi X-RAY | brainbox Summary
kandi X-RAY | brainbox Summary
Logic gates are the basic building blocks of any digital system. It is an electronic circuit having one or more than one input and only one output. The relationship between the input and the output is based on a certain logic. Based on this, logic gates are named as AND gate, OR gate, NOT gate etc. Now you can edit and run your digital circuit simulation designs online on PCs, Macs, thin clients, tablets, smart phones, smart TVs and e-book readers without any installation. You can use BrainBox in the office, classroom or at home and connect even your RaspberryPi to drive real physical devices.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of brainbox
brainbox Key Features
brainbox Examples and Code Snippets
Community Discussions
Trending Discussions on brainbox
QUESTION
I am in a situation where "I don't know what I don't know" so I am unsure if this is even the correct way of approaching this problem, apologies if this comes off as plain ignorant.
I have a program which connects to Ethernet controllers. The program allows users to configure what is connected to the system and set up I/O communication.
Each controller is its own device, and may have different IO depending on what model it is. Controllers have their own API.
The program saves the configuration to an XML config file which is read at startup. I need to then connect to each unknown device and set up a connection to each, leaving me with a method of referring to each device at a later time.
Here is what I am trying to achieve:
...ANSWER
Answered 2020-Jan-24 at 20:18It sounds like you're trying to do quite a few things at once. To paraphrase what you want: to achieve (looking at both your question, your sample code and your comment)
- When your application starts, you want it to connect to a collection of different devices automatically
- When running, users can connect to and configure (the right) device
- Ensure that connections are closed when the application stops
Also your question is rather open ended and from your first statement, I'm going to assume that you're a beginner. I know that it's quite dry, but you are going to have to look up the documentation for the hardware you're using. Luckily, it looks quite comprehensive
- You need to give your class a more representative name. E.g.
BrainboxController
orBrainboxManager
as, by the sounds of it, that is what it's for. - Looks like
BB400
is one of the possible hardware devices, it is part of an inheritance hierarchy, so you don't want to restrict yourself to just that - I would avoid doing a lot of work in the constructor, it makes it harder to find problems
- Use a dictionary to store your devices, that's how you'll "refer to each device at a later time"
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install brainbox
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page