@Override public String toString() { return "{" + type + ": " + (from != null ? from.getId() : null) + " -> " + (to != null ? to.getId() : null) + "}"; }
public void addPlanet(Planet planet) { getPlanetMap().put(planet.getId(), planet); }