Revision 104,
593 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package schedframe.net; |
---|
2 | |
---|
3 | import java.util.LinkedList; |
---|
4 | import java.util.List; |
---|
5 | |
---|
6 | public class Path { |
---|
7 | |
---|
8 | protected String node1Name; |
---|
9 | protected String node2Name; |
---|
10 | protected List<String> namesOfLinks; |
---|
11 | |
---|
12 | public Path(String node1Name, String node2Name, List<String> namesOfLinks){ |
---|
13 | |
---|
14 | this.node1Name = node1Name; |
---|
15 | this.node2Name = node2Name; |
---|
16 | this.namesOfLinks = new LinkedList<String>(namesOfLinks); |
---|
17 | } |
---|
18 | |
---|
19 | public List<String> getLinks(){ |
---|
20 | return this.namesOfLinks; |
---|
21 | } |
---|
22 | |
---|
23 | public String getNode1Name(){ |
---|
24 | return this.node1Name; |
---|
25 | } |
---|
26 | |
---|
27 | public String getNode2Name(){ |
---|
28 | return this.node2Name; |
---|
29 | } |
---|
30 | |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.