Comments (7)
I've made a step in this direction: I defined an abstract class for the force
calculation, another one for the force application, and then I derived them
with the
"legacy physical model" of nodes (Files and Persons)
To do: need to implement some configuration and runtime loading (like plugins)
Original comment by [email protected]
on 15 Jul 2008 at 11:08
from codeswarm.
But not sure about how to do the dynamic class loading from config file...
Original comment by [email protected]
on 15 Jul 2008 at 11:09
from codeswarm.
Have done some more job on this way, with configuration options.
Now, after some more reflexion, I've seen that there is a need for some class
renaming for more clarity... will wait till tomorrow to give it a though, but
feel
free to break it all if you have any idea on that !
Original comment by [email protected]
on 16 Jul 2008 at 10:41
from codeswarm.
Did one more step tonight.
Notice that I did divided the job on many very small classes, instead of
putting all
three separate classes :
Thus we have 3 classes ForceCalc -> ForceToSpeed -> SpeedToPosition that we can
implements in many ways, and then make many combination.
That sound ok... but it may have been really more simple to get the job done by
a
sole classe named "PhysicEngine", with the three forceCalc(), forceToSpeed() and
speedToPosition() methods !
What do you think of all this ?
Original comment by [email protected]
on 17 Jul 2008 at 11:23
from codeswarm.
3 classes does sound excessive, I think a single physics engine with different
method
makes more sense. The engine class should be specified in the config file and
dynamically loaded by java. Let me know if you need help the dynamic loading
part,
but it sounds like you figured it out.
Original comment by [email protected]
on 17 Jul 2008 at 11:36
from codeswarm.
With recent changes to the physics model, has this issue been sufficiently
addressed?
Original comment by nawglan
on 23 Jul 2008 at 12:15
- Changed state: Accepted
from codeswarm.
In terms of modularlization, it looks good to me. There may be tweaks needed in
the
future, but I'll consider this issue fixed.
Original comment by [email protected]
on 27 Jul 2008 at 5:06
- Changed state: Fixed
from codeswarm.
Related Issues (20)
- Refactor the code_swarm class to be more readable and maintainable
- run.sh does not work from /usr/local/bin or equivalent HOT 1
- significant dot-size variation when ran on desktop vs laptop (subpuxel rendering?)
- window expose events can cause code_swarm to hang sometimes
- Older CVS version uses different date format (convert_logs.py)
- Mercurial support HOT 4
- Subversion log entrys are not differentied for conversion.
- Processing Code HOT 1
- Hangs on Chaotic engine
- Histogram configuration and documentation HOT 1
- convert_logs.py - fails to convery SVN logs that contain square braces in the comments
- Allow commiter names to be translated
- Convert TFS Log
- Doesn't work for huge activity logs HOT 2
- Mercurial Log Generation - requirement 'dotencode' not supported! HOT 1
- hg_log.py doesn't work with OSX Lion HOT 3
- 3D support
- [Fatal Error] activity.xml:22858:78: Element type "event" must be followed by either attribute specifications, ">" or "/>". HOT 1
- Patch to allow svn xml log parsing
- Gravatars overlayed on non-blank backgrounds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeswarm.