class Identity implements CSProcess{
ChannelInputInt in;
ChannelOutputInt out;
public Identity(ChannelInputInt in,
ChannelOutputInt out){
this.in = in;
this.out = out;
}
public void run(){
while(true){
int item = in.read();
out.write(item);
}
}
}
Previous slide | Next slide | Back to first slide | View graphic version |