2007/06/03

Luggage simulation: discussion

Until now, the solution for this case limits the number of checkpoints. One timer is used by one checkpoint. After finishing this application, I recognized it could be more generalized.

For example, one table records the sequence of checkpoints for each destination airport. One table records those public constants for each checkpoint. One table records the time moving one item from one checkpoint to another. “Checkpoint” might be a class which has methods "check in" and "check out", and properties, speed, checking time, checking time random range, rejected rate, and so on. Therefore, each real checkpoint is an instance of this class.

Whatever, I finished my assignment. I just stop here and not improve it anymore. Ha!

No comments: