[Ktechlab-devel] Node refactoring
Alan Grimes
agrimes at speakeasy.net
Tue May 27 04:38:53 UTC 2008
I was going after one of my favorite bugs, the one where there'll be a
junction of a few wires and a butt-load of current goes in one side, --
tens of MA, and then nothing comes out the other side... While the
matrix tweaks seem to have gotten a handle on this problem, I still
wanted to understand Node better. (parent class of ECNode (which is
actually two classes, pin and junction!) Also a parent class of some
flowpart stuff... =\
In Node I found a bunch of functionality that didn't seem related to the
core point of a node class that should definitely be refactored to a
lower point in the heirarchy... (Object is the top
ReallyReallySpecificClass is the bottom)...
Refactoring is really tricky work. Netbeans seems to do it great, but it
can't work it's magic on non-java projects. -- though it CAN load
ktechlab! =P
One feature of node that I don't think belongs there is the concept of
directionality. While directionality does exist in flowcode, it does NOT
exist in electronics... therefore I'd vote to demote directionality into
the flowcode brach and thereby make the electronics branch less buggy...
I need to get more sleep, so that's it for the day...
Ps. been thinking of starting an electric car company. =P But then we'd
need contactors, fuses, and a hole pile of parts that aren't in the
current system... -- there is stub code for a mechanics section but it
doesn't seem to have a UI yet...
I was playing with some of my circuits and one tool that is urgently
needed is an AC volt meter! =0
--
Ron Paul: A man of Peace.
Chemistry.com: A total rip-off.
Powers are not rights.
We did not invade Iraq, the government did.
More information about the Ktechlab-devel
mailing list