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)******* |