Hello,
I am trying to write a program which generates different outputs depending on the inputs (A, B, C & D) and previous inputs, this is fairly straightforward although my program has to work within a time frame interval (one unit arrives at the station every time unit) with this parameters:
Machine 1 must take 1 time unit to generate an output unit V.
Machine 2 takes 1 unit to generate an output W if the input was B. If the input was BC, it takes 2 time units and produces an output X.
Machine 3 takes 3 time units if the input was a D and generates an output Y, but 7 if it was DBC and it produces an output Z.
Machine 4 takes 5 time units and generates an output T.
This outputs will be queued and then selected so that the machine delivers a single stream of units.
This outputs unit must be generated every time unit after the program has started.
I am not quite sure how to approach this type of procedure, should I slow down the process so it meets the criteria or how could I affect time with C?
Thank you
[mail address removed]