simulation

Open source, pure Java physics / dynamics library [closed]

泄露秘密 提交于 2019-12-03 06:53:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a lightweight, pure Java physics engine to do some simulations for robotic motion control. My requirements: Rigid body physics Joint constraints and forces Convex object collision detection Lightweight, pure Java so it can be embedded in my application Ability to run simulations quickly Handles

Python alternative to Java applet?

两盒软妹~` 提交于 2019-12-03 06:31:53
Is there an alternative to making educational Java applets for physics simulations like projectile motion, gravity, etc? If you want it to run in a browser, you could use PyJamas - which is a Python-to-Javascript compiler and set of tools. I'm not sure how well it is maintained these days, though. In this day and age, you might look to the HTML 5 canvas & JS. While I'm all for the "HTML5 & JS", you can consider Jython and simply write a Java Applet in Python (2.2.3, but...) Java is not only a language, so you're free to choose. You can run IronPython in Silverlight applications: http://www

How to simulate keyboard input in ALL applications?

好久不见. 提交于 2019-12-03 06:27:14
I'm writing an app (in C#) which as a part of it must simulate and send some key strokes to another application. I'm using http://inputsimulator.codeplex.com/ project for simulating keys, and it works in many applications, but in some it doesn't - i.e. Mortal Combat 4. I've googled about it, and found many answers varying from 'it's impossible' to 'you must use XXX library' etc. Those answered scared me a lot, and even nearly convinced I'm not able to do it at that time, BUT... M$ Virtual Keyboard works. It works in ALL applications. So it IS possible... Does anyone of you, clever guys, know

Should I use Threads or Tasks - Multiple Client Simulation

你离开我真会死。 提交于 2019-12-03 06:10:03
问题 I am writing a client simulation program in which all simulated client runs some predefined routine against server - which is a web server running in azure with four instances. All simulated client run the same routine after getting connected to server. At any time I would like to simulate 300 to 800 clients using my program. My question is: Should I create N instances of client class and run them in N different threads? OR Should I use Task Library to do the things? 回答1: You certainly should

VHDL - How should I create a clock in a testbench?

删除回忆录丶 提交于 2019-12-03 04:00:54
问题 How should I create a clock in a testbench? I already have found one answer, however others on stack overflow have suggested that there are alternative or better ways of achieving this: LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY test_tb IS END test_tb; ARCHITECTURE behavior OF test_tb IS COMPONENT test PORT(clk : IN std_logic;) END COMPONENT; signal clk : std_logic := '0'; constant clk_period : time := 1 ns; BEGIN uut: test PORT MAP (clk => clk); -- Clock process definitions( clock

Improving soccer simulation algorithm

你说的曾经没有我的故事 提交于 2019-12-03 03:21:41
问题 In another question, you helped me to build a simulation algorithm for soccer. I got some very good answers there. Thanks again! Now I've coded this algorithm. I would like to improve it and find little mistakes which could be in it. I don't want to discuss how to solve it - as we did in the last question. Now I only want to improve it. Can you help me again please? Are there any mistakes? Is the structure of the nested if-clauses ok? Could it be improved? Are the tactics integrated correctly

What is a Calendar Queue?

試著忘記壹切 提交于 2019-12-03 02:37:28
I am working on a building a discrete event simulator. Wikipedia mentioned that there are several general purpose priority queues that are good for use in DES's. Specifically, it mentions that a Calendar Queue is a good structure. I found one pdf (from 1988) that mentions Calendar Queues, but for the most part I can't find anything else out about them. Would someone mind explaining what Calendar Queue's are, how they're used, and where I might find a sample implementation? A Google search finds Study of Optimised bucket widths in Calendar Queue for Discrete Event Simulator http://pioneer

What are some algorithms that will allow me to simulate planetary physics?

♀尐吖头ヾ 提交于 2019-12-03 02:20:15
问题 I'm interested in doing a "Solar System" simulator that will allow me to simulate the rotational and gravitational forces of planets and stars. I'd like to be able to say, simulate our solar system, and simulate it across varying speeds (ie, watch Earth and other planets rotate around the sun across days, years, etc). I'd like to be able to add planets and change planets mass, etc, to see how it would effect the system. Does anyone have any resources that would point me in the right direction

How to Build a Sensor Simulator for Android?

泪湿孤枕 提交于 2019-12-03 01:04:56
I am building a application for the Android platform and I would like to use the accelerometer. Now, I have found a very nice application for sensor simulation ( OpenIntents' SensorSimulator ) but, for what I want to do, a would like to create my own sensor simulator application. I have not found information on how to do this (I do not know if disassembly the jar of the Simulator is correct) and, as I said, I would like to build a smaller and simpler version of a sensor simulator, more suitable for my intents. Do you know where could I start? where can I see what are the pieces of code that I

How the dynamics of a sports simulation game works?

我只是一个虾纸丫 提交于 2019-12-03 00:35:59
I would like to create a baseball simulation game. Are these sports management games based on luck? A management game entirely based on luck is not fair, but it cannot be too predictable either. How does the logic behind these games work? christopheml As you have already figured out, the core component of such games is the match simulation engine. As Spence said so , you want that simulation to "look right" rather than to "be right". I worked on a rugby game simulation some time ago and there's an approach that works quite well. Your match is a finite state machine. Each game phase is a state,