@Override public void sendTrainList(){
  List<Train> trainList=tm.getTrainsByNameList();
  ArrayList<Attribute> aTrain;
  for (  Train train : trainList) {
    aTrain=new ArrayList<Attribute>(1);
    aTrain.add(new Attribute(TRAINS,train.getName()));
    try {
      sendMessage(aTrain);
    }
 catch (    IOException ioe) {
      log.debug("could not send train " + train.getName());
    }
  }
}

@ Override public void sendTrainList ( ) { List < Train > trainList = tm . getTrainsByNameList ( ) ; ArrayList < Attribute > aTrain ; for ( Train train : trainList ) { aTrain = new ArrayList < Attribute > ( 1 ) ; aTrain . add ( new Attribute ( TRAINS , train . getName ( ) ) ) ; try { sendMessage ( aTrain ) ; } catch ( IOException ioe ) { log . debug ( "could not send train " + train . getName ( ) ) ; } } }
send a list of trains known by operations to the client
