Giter Site home page Giter Site logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.