public boolean acceptsTypeName(String type){
  return _typeList.contains(type);
}

public boolean acceptsTypeName ( String type ) { return _typeList . contains ( type ) ; }
returns true if this train will service the type of car or engine .
