public String pickupCar(Car car,boolean isManifest,boolean isTwoColumnTrack){
  StringBuffer buf=new StringBuffer();
  String[] format;
  if (isManifest && !isTwoColumnTrack) {
    format=Setup.getPickupManifestMessageFormat();
  }
 else   if (!isManifest && !isTwoColumnTrack) {
    format=Setup.getPickupSwitchListMessageFormat();
  }
 else   if (isManifest && isTwoColumnTrack) {
    format=Setup.getPickupTwoColumnByTrackManifestMessageFormat();
  }
 else {
    format=Setup.getPickupTwoColumnByTrackSwitchListMessageFormat();
  }
  for (  String attribute : format) {
    String s=getCarAttribute(car,attribute,PICKUP,!LOCAL);
    buf.append(s);
  }
  return buf.toString();
}

public String pickupCar ( Car car , boolean isManifest , boolean isTwoColumnTrack ) { StringBuffer buf = new StringBuffer ( ) ; String [ ] format ; if ( isManifest && ! isTwoColumnTrack ) { format = Setup . getPickupManifestMessageFormat ( ) ; } else if ( ! isManifest && ! isTwoColumnTrack ) { format = Setup . getPickupSwitchListMessageFormat ( ) ; } else if ( isManifest && isTwoColumnTrack ) { format = Setup . getPickupTwoColumnByTrackManifestMessageFormat ( ) ; } else { format = Setup . getPickupTwoColumnByTrackSwitchListMessageFormat ( ) ; } for ( String attribute : format ) { String s = getCarAttribute ( car , attribute , PICKUP , ! LOCAL ) ; buf . append ( s ) ; } return buf . toString ( ) ; }
returns the pick up car string . useful for frames like train conductor and yardmaster .
