public void addTypeName(String type){
  if (type == null || _typeList.contains(type)) {
    return;
  }
  _typeList.add(0,type);
  log.debug("Train ({}) add car type ({})",getName(),type);
  setDirtyAndFirePropertyChange(TYPES_CHANGED_PROPERTY,_typeList.size() - 1,_typeList.size());
}

public void addTypeName ( String type ) { if ( type == null || _typeList . contains ( type ) ) { return ; } _typeList . add ( 0 , type ) ; log . debug ( "Train ({}) add car type ({})" , getName ( ) , type ) ; setDirtyAndFirePropertyChange ( TYPES_CHANGED_PROPERTY , _typeList . size ( ) - 1 , _typeList . size ( ) ) ; }
add a car or engine type name that this train will service .
