f********6 发帖数: 9 | 1 DVR Scheduler
A client is asking you to build software for their new DVR device.
Input to the system will be:
• Date
• Timespan
• Channel
At minimum, your system needs to provide an interface for the DVR system
that allows users to enter schedules, and also allows the recording
equipment to query what channel it should be recording at a certain time.
Notes For this system, account for any implementation details that you feel
are missing in whatever way you think makes the most sense. Realize that
details have been left out intentionally so that you can demonstrate your
ability to make reasonable decisions about what you implement (and how)
in the time you have available to you, and for you to explain and justify
those decisions to us.
Example
For example, if the user has entered the following schedule:
Date Time Channel
02/11/2014 5:00pm-8:00pm 314
02/11/2014 7:30pm-10:00pm 215
02/11/2014 9:00pm-11:00pm 182
Your program would respond with output somewhat equivalent to this:
Input Output
2/11/2014 6:10pm Record 314
2/11/2014 8:30pm Record 215
2/11/2014 10:30pm Record 182
2/11/2014 3:00pm Not recording
2/11/2014 7:45pm ?
Note that the behavior is undefined at 7:45, since the DVR has been
instructed to record on channel 215 and 314 at that time. Your job is to
come up with a reasonable conflict resolution system.
Tips
• This problem is bit more complicated than meets the eye. You don’t
have to solve all the problems, but being aware of the concerns should guide
your implementation without making it overly complicated.
• Consider the cases where a user schedules more than two programs to
record at the same time.
• The recording software is able to query by time for what channel to
record on, but how does it know where to save the files?
• How does the DVR know which recordings go with which instructions
from the user when the user goes to play the recordings?
大牛可以提供提供思路吗?谢谢 |
|