package schedframe.net; import java.util.LinkedList; import java.util.List; public class Path { protected String node1Name; protected String node2Name; protected List namesOfLinks; public Path(String node1Name, String node2Name, List namesOfLinks){ this.node1Name = node1Name; this.node2Name = node2Name; this.namesOfLinks = new LinkedList(namesOfLinks); } public List getLinks(){ return this.namesOfLinks; } public String getNode1Name(){ return this.node1Name; } public String getNode2Name(){ return this.node2Name; } }