Ejemplo n.º 1
0
Archivo: Taxi.cs Proyecto: 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();
 }
Ejemplo n.º 2
0
 public Customers(ChannelWriter<Tuple<int, int, string>> info)
 {
     infoChannel = info;
     rand = new Random();
     timer = new Timer();
 }