public String dropCar(Car car,boolean isManifest,boolean isTwoColumnTrack){
  StringBuffer buf=new StringBuffer();
  String[] format;
  if (isManifest && !isTwoColumnTrack) {
    format=Setup.getDropManifestMessageFormat();
  }
 else   if (!isManifest && !isTwoColumnTrack) {
    format=Setup.getDropSwitchListMessageFormat();
  }
 else   if (isManifest && isTwoColumnTrack) {
    format=Setup.getDropTwoColumnByTrackManifestMessageFormat();
  }
 else {
    format=Setup.getDropTwoColumnByTrackSwitchListMessageFormat();
  }
  boolean local=false;
  if (car.getTrack() == null) {
    local=true;
  }
  for (  String attribute : format) {
    String s=getCarAttribute(car,attribute,!PICKUP,local);
    buf.append(s);
  }
  return buf.toString();
}

public String dropCar ( Car car , boolean isManifest , boolean isTwoColumnTrack ) { StringBuffer buf = new StringBuffer ( ) ; String [ ] format ; if ( isManifest && ! isTwoColumnTrack ) { format = Setup . getDropManifestMessageFormat ( ) ; } else if ( ! isManifest && ! isTwoColumnTrack ) { format = Setup . getDropSwitchListMessageFormat ( ) ; } else if ( isManifest && isTwoColumnTrack ) { format = Setup . getDropTwoColumnByTrackManifestMessageFormat ( ) ; } else { format = Setup . getDropTwoColumnByTrackSwitchListMessageFormat ( ) ; } boolean local = false ; if ( car . getTrack ( ) == null ) { local = true ; } for ( String attribute : format ) { String s = getCarAttribute ( car , attribute , ! PICKUP , local ) ; buf . append ( s ) ; } return buf . toString ( ) ; }
returns the drop car string . useful for frames like train conductor and yardmaster .
