When defining a functor (between categories), I am usually told that it assigns to each object of the source category an object of the target category. I do not find this very satisfactory since we are dealing with proper classes here. Judging by the definition, it must be possible to have the concept of a "map" between proper classes. I would like to know what exactly that is and how it is defined.
I have attempted to read some books on set theory in search for an answer, but they all treat classes very briefly and never mention the possibility of having anything like a map between two of them. I would be just as happy if you could point me to a book where this is explained.
ARC supposedly proves the existence of the $n$-th power-class of the set universe V for any $n \in \mathbbN$, and all so-called "good" classes provably exist, good classes being the class of all sets and "the powerclass and the union-class of a good class, and the union-class, the intersectionclass, the complement-class, the pair-class, the ordered pair-class, and the Cartesian product-class of any finite number of members of one good class".
According to the cited paper, ARC is consistent relative to ZFC plus a strongly inaccessible cardinal axiom.I think that this set theory looks quite nice, so I'm wondering why it didn't take off at all.The formal proofs should be in Muller's PhD thesis, which I don't have access to.
I'm trying to create a character generation wizard for a game. In one class I calculate the attributes of the character. In a different class, I'm displaying to the user which specialties are available based on the attributes of the character. However, I can't remember how to pass variables between different classes.
The problem is that I can't figure out how to use the "intelligence" variable from the BasicInfoPage class to the MOS class. I've tried several different things from around the Internet but nothing seems to work. What am I missing?
I'm using wxPython to create a wizard; the parent class of my classes is the Wizard from wxPython. That wizard will walk a user through the creation of a character, so the Basic Information page (class BasicInfoPage) lets the user give the character's name and "roll" for the character's attributes. That's where the "self.intelligence" comes from.
I'm trying to use the attributes created her for a page further on in the wizard, where the user selects the speciality of the character. The specialities that are available depend on the attributes the character has, e.g. if the intelligence is high enough, the character can be an Intel Anaylst.
You may have "Class" and "Instance" confused. It's not clear from your example, so I'll presume that you're using a lot of class definitions and don't have appropriate object instances of those classes.
You don't pass variables among classes. You pass variables among instances. As a practical matter only instance variables matter. [Yes, there are class variables, but they're a fairly specialized and often confusing thing, best avoided.]
You'll be happier if you have a separate object that is "built" by the pages. Each page will set some attributes of that underlying model object. Then, the pages are independent of each other, since the pages all get and set values of this underlying model object.
My problem was indeed the confusion of classes vs. instances. I was trying to do everything via classes without ever creating an actual instance. Plus, I was forcing the "BasicInfoPage" class to do too much work.
Ultimately, I created a new class (BaseAttribs) to hold all the variables I need. I then created in instance of that class when I run the wizard and pass that instance as an argument to the classes that need it, as shown below:
All you need is a reference. It's not really a simple problem that I can give some one-line solution to (other than a simple ugly global that would probably break something else), but one of program structure. You don't magically get access to a variable that was created on another instance of another class. You have to either give the intelligence reference to MOS, or take it from BasicInfoPage, however that might happen. It seems to me that the classes are designed rather oddly-- an information page, for one thing, should not generate anything, and if it does, it should give it back to whatever needs to know-- some sort of central place, which should have been the one generating it in the first place. Ordinarily, you'd set the variables there, and get them from there. Or at least, I would.
If you want the basic answer of "how do I pass variables between different classes", then here you go, but I doubt it's exactly what you want, as you look to be using some sort of controlling framework:
I have been using Vectorworks for around 5 years now but only on files that other people have made. I was wondering, when i am building a new theatre in vectorworks how i should be using classes and layers. I have got a design layer for the building itself and then another one for lighting positions but i don't understand how classes relate into this, what should i be using the classes for?
Inother quesetion, nothing to do with layers or classes, how do i makde lighting fixtures actually sit on the bars? I have placed them on the bar in the top/down view but when i go 3D they are under the theatre. This is rather frustrating.
In order for lighting fixtures to automatically assume positional height, they need to be touching an object which has been parameterized as a lighting position. That lighting position must have a 'Z' height, then the position and fixture will all be at the correct 'Z'.
My ultimate goal is to define a variable globally, assign it a value in a function of one class, and then USE it in another class's function. Is that possible? I'm building a pythonaddin for ArcMap, which requires a class for each button. I want to have a button to assign a value to a variable, and then use that variable in another class in the script.
Now, is that acceptable? In 99% of cases, no, it's not. There're many ways of passing variables and sharing data between classes, and using global variables is one of the worse ones, if not the worst.
I design circuits with multiple voltage domains, and therefore require different clearances between domains. For example, there might be some ground-referenced logic (gnd+5V) and some other logic that sits 400 V above ground (400V + 5V). Obviously a 400V bus should have large clearance to gnd, but that kind of clearance is both unnecessary and disruptive for the logic whose voltages are never more than a few volts away from 400.
Example in KiCad: I have two nets, GND and BUS (400V), which I put into two net classes, LV and HV. I set the clearance on HV to be very large (e.g. 40 mils), while the clearance for LV is only 10 mils. Now consider that I have a VCC at 5V, which belongs to the LV class. I also have a VCC+, which is 405 V above ground. VCC+ should have large clearance to GND, but small clearance to BUS. But as it stands, if I put VCC+ in the HV class then it will have large clearance to everything; if I put it in the LV class, it could potentially come too close to GND or signals close to GND.
For example, any circuitry with a galvanic connection to the power mains (e.g., the switch, fuse and primary circuit of a power transformer) must have a certain isolation distance from the secondary circuit of the transformer.
I have also been looking for the requested feature due to an actual project, and did not get it around (version 5.0 rc2). The suggestion to do it using a keepout zone is however usable, because the main problem is just a desired copper pour behaviour.
Flexible automatic design rules would need "differential net classes" that means different rules for a net depending on surrounding nets.As an example I'll explain the problem of a traditional power electronics half bridge circuit:HV---- ...
This is an old thread but I came up with a work around that I think works better and is more convenient than a keepout zone - it could be useful to others. . I created a third net class with a clearance of one half the desired class-to-class clearance. Then I drew a trace belonging to this third class between the two circuit areas. You can also add another net class for reduced clearance on interior layers.
It is not perfect; it only indirectly checks for the desired clearance. It never misses a violation but sometimes there are false positives. To fix a false positive you simply move the barrier trace to be half way between the two nearest points. Of course you have to delete the barrier traces before generating gerbers.
I do not know much about these custom design rules, but questions about them keep popping up an I have been collecting examples of working rules. You can find them in the link below. And you can of course also read the manual
Students should be given extra time to get to their last classes of the day because it can be very easy to be late to seventh or eighth period if you have to walk across campus to get to your next class. Nutrition and lunch give students extra time to get to their classes, while there are only 7 minutes to get to the last classes of the day.
Students still waste much class time, especially when going to the front of the school to receive tardy slips. To this problem, Mr. Vega will ensure multiple tardy slip locations, including near the 500 and 800, in a few weeks.
This article intrigued me because I have experienced the stress of having seven minutes to get from the 800 building to the 200 building and being stuck behind slow walkers. I learned a lot from this article, notably the fact that extending passing periods would require a longer school day. I appreciated that multiple staff administrators were interviewed, and I believe they provided new and relevant insights. However, I disagree with the conclusion that we should not extend passing period. Adding a couple of minutes to the last passing period of the day would be beneficial for people who have a longer distance to walk, and would allow people time to use the bathroom so they would not have to waste class time. I believe adding at most 5 minutes to the school day would be worth it for those benefits, and as a student I would be okay with this change. It is understandable that too much time between classes could create a safety issue, but even if two or three minutes were added to the last passing period of the day, it would still be a shorter time between classes than nutrition. I would argue that the benefits of extending this final passing period outweigh the disadvantages.
c80f0f1006