Google Answers Logo
View Question
 
Q: Java EventScheduling with Tokens Due Thursday 10/6 ( No Answer,   0 Comments )
Question  
Subject: Java EventScheduling with Tokens Due Thursday 10/6
Category: Computers > Programming
Asked by: fsusucks-ga
List Price: $60.00
Posted: 06 Oct 2005 03:30 PDT
Expires: 05 Nov 2005 02:30 PST
Question ID: 577032
What you will be doing is simulating a 3-team, 3 legged- relay race
through java coding. It is not a complex assignment, but neither me or
my friend can figure it out and it is due in 11 hours.
........
If you believe this price deserves a higher take, please dont pass up
the question. I am a fair man, and I will happily pay more if theres a
reason why.
Also, please dont disregard it bc its a bit lengthy. I tried making it
short, but this is the best. It can be read in sections. ALso, if I
come across anything while Im awake which could def be ambiguous to
you, I will post throughout the nite.
........
1. Your goal will be to simulate a relay race. The race track is 1000
yards long and there are 3 running lanes. Each lane has runners
positioned at 0, 300, and 600 yards respectively. A runner stops after
telling the next one to proceed (or providing a baton to that person).

2. Each runner will run at a constant speed obtained through sampling
a normal distribution with a mean of 3 yards/sec and a standard
deviation of 1 yard/sec.

3. All synchronization (one runner telling the next one to go in a
lane) will be done through event scheduling, not by checking the
current time.

4. Create your own visualization of this relay race, by using SimPack
and the SYNC option on next_event, and Processing.

In the jist of it, runner 1 - Team A, runner 1 - Team B, and runner 1
- Team C are going to be initialized at point zero (by eachs token).
The token holds one special attribute, attr : double. It is a data
container. It updates dynamically with respect to the 300 yd waiting[]
person. ? . So, once the events declared equals certain distance, than
the token becomes activated for runner2 and runner1 goes into
resting[] mode.

You dont have to code in this language, but the extra functionality we
are using which could be relevant to your research is the first 3
commands here:
http://www.cise.ufl.edu/~fishwick/simpackj/doc/index.html

This site discusses Schedule Modelling:
http://www.cise.ufl.edu/~fishwick/book/section2_2_6.html#queue5

And lastly, here is an example code of a single-server event
scheduler. It has some relevancy, but I dont know if itll be more used
for you in terms of research or to really understand some of the
unrare words like void setup() and draw() and loop() (which is not
neccesary to know I will manipulate).
http://www.cise.ufl.edu/~fishwick/simpackj/simpackproc/models/ssq/applet/BasicEventScheduling.pde

***** Also, MOST IMPORTANTLY! This question's face value has a timed
limit. At 8:00 pm thursday october 6, I am going to drop this question
(if possible to do)*******
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy