Revize 88ee8172
Přidáno uživatelem Tomáš Šimandl před více než 6 roky(ů)
sources/src/main/java/cz/zcu/kiv/offscreen/api/SubedgeInfo.java | ||
---|---|---|
7 | 7 |
/** Edge archetype index. */ |
8 | 8 |
private int archetype; |
9 | 9 |
/** Original id of edge which is taken from input JSON file. */ |
10 |
private int originalId;
|
|
10 |
private int id;
|
|
11 | 11 |
/** List of all tributes. Every attribute is stored in String array in pair as {attribute name, attribute value}. */ |
12 | 12 |
private List<String[]> attributes; |
13 | 13 | |
14 | 14 |
/** |
15 | 15 |
* Create new subedgeInfo |
16 |
* @param originalId Original id of edge which is taken from input JSON file.
|
|
16 |
* @param id Original id of edge which is taken from input JSON file.
|
|
17 | 17 |
* @param archetype Edge archetype index. |
18 | 18 |
* @param attributes List of all tributes. Every attribute is stored in String array in pair as {attribute name, attribute value}. |
19 | 19 |
*/ |
20 |
public SubedgeInfo(int originalId, int archetype, List<String[]> attributes) {
|
|
21 |
this.originalId = originalId;
|
|
20 |
public SubedgeInfo(int id, int archetype, List<String[]> attributes) {
|
|
21 |
this.id = id;
|
|
22 | 22 |
this.archetype = archetype; |
23 | 23 |
this.attributes = attributes; |
24 | 24 |
} |
25 | 25 | |
26 |
public int getOriginalId() {
|
|
27 |
return originalId;
|
|
26 |
public int getId() { |
|
27 |
return id;
|
|
28 | 28 |
} |
29 | 29 | |
30 | 30 |
public int getArchetype() { |
sources/src/test/java/cz/zcu/kiv/imiger/tests/backend/GraphFilterTest.java | ||
---|---|---|
218 | 218 |
*/ |
219 | 219 |
private boolean containsSubedgeWithId(SubedgeInfo subedgeInfo, List<SubedgeInfo> subedgeInfos) { |
220 | 220 |
for (SubedgeInfo s : subedgeInfos) { |
221 |
if (s.getOriginalId() == subedgeInfo.getOriginalId()) {
|
|
221 |
if (s.getId() == subedgeInfo.getId()) {
|
|
222 | 222 |
return true; |
223 | 223 |
} |
224 | 224 |
} |
Také k dispozici: Unified diff
Rename subedgeInfo.originalId to id