Sunday, June 26, 2011

CQ Simulation: Output and Input

In my last post, I let myself wander off into implementation land. That is, I started to worry that implementing calculating the median would be too complicated.

I can't approach it that way. Using the median wait time as the measure makes the most sense to me. I can't get lost in implementation at this stage.

This is what I want as the final output of the simulation:

  • Median wait time for users
  • Percent of time that computers are in use
  • Percentage of users who abandoned

The input will be a list of users, each with the following information:

  • Tick when the user gets in line
  • Waiting threshold, after which user abandons waiting
  • Amount of time user sits at computer

The input can also be viewed as a user generator that creates the list with users falling withing specified parameters. That is, users would each want to use the computer for a random amount of time between the numbers A and B. A might be 5 and B might be twenty or A might be 35 and B might be 65.

The simulation maps an input list into an output results object. The simulation includes the following facts:

  • Number of seats for users.
  • Length of time that a user can use a computer before it logs the user off.

(I noticed that I'm already referring to ticks. A tick is a unit of time, the same as a minutes, I suppose. I started calling them that back in the clock simulation.)

OK, next up: Preliminary Object Design.

No comments:

Post a Comment