class tspMaster extends MyObject implements CSProcess{
private ProcessWrite writetoRow[] = null;
private ProcessRead readfromRow[] = null;
private Matrix costmat = null;
private Matrix totmat = null;
private Matrix dirmat = null;
private int numR;
public tspMaster(Matrix costmat, ChannelOutput[] toRow,
ChannelInput[] fromRow){
this.costmat = costmat;
numR = costmat.numRows();
writetoRow = new ProcessWrite[numR];
readfromRow = new ProcessRead[numR];
for(int r = 0; r < numR; r++){
writetoRow[r] = new ProcessWrite(toRow[r]);
readfromRow[r] = new ProcessRead(fromRow[r]);
}
}
Previous slide | Next slide | Back to first slide | View graphic version |