package org.team2471.frc.lib.data;

import org.team2471.frc.lib.motion_profiling.Path2D;

import java.util.HashMap;
import java.util.Map;

public class AutonomousConfig {
  private final String name;
  private final Map<String, Path2D> paths = new HashMap<>();

  public AutonomousConfig(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public void putPath(String name, Path2D path) {
    paths.put(name, path);
  }

  public Path2D getPath(String name) {
    return paths.get(name);
  }

  public void deletePath(String name) {
    paths.remove(name);
  }

  public void renamePath(String prevName, String newName) {
    paths.put(newName, paths.remove(prevName));
  }
}

@@ -327,58 +327,8 @@
  %7D%0A%0A
-  public String getName() %7B%0A    return name;%0A  %7D%0A%0A
   pu
@@ -657,11 +657,74 @@
 e));%0A  %7D
+%0A%0A  @Override%0A  public String toString() %7B%0A    return name;%0A  %7D
 %0A%7D%0A

use toString instead of getName in AutonomousConfig