Example #1
0
File: Taxi.cs Project: vonwenm/Jibu
 // The constructor taking the input info channel and the output acknowledge channel.
 public Taxi(ChannelReader<Tuple<int, int, string>> info, ChannelWriter<string> ack)
 {
     customerInfoChannel = info;
     ackChannel = ack;
     timer = new Timer();           
     rand = new Random();
 }
Example #2
0
 public Customers(ChannelWriter<Tuple<int, int, string>> info)
 {
     infoChannel = info;
     rand = new Random();
     timer = new Timer();
 }