public LinkStation addLink(LinkStation linkStation) { RattlerStation A = linkStation.getA(); RattlerStation B = linkStation.getB(); A.addLink(linkStation); try { B.addLink(linkStation); } catch (Exception ex) { A.removeLink(linkStation); throw; } core.store.links.Add(linkStation); return(linkStation); }