3
|
1 package models;
|
|
2
|
|
3 import java.util.HashMap;
|
|
4 import java.util.Iterator;
|
|
5
|
|
6 import com.tinkerpop.blueprints.Vertex;
|
|
7
|
|
8 public class NodeModel {
|
|
9
|
7
|
10 protected Vertex vertex;
|
|
11 protected Object id;
|
3
|
12
|
7
|
13 protected final String ID = "id";
|
3
|
14
|
7
|
15 protected final String TOULMIN = "toulmin";
|
|
16 protected final String TITLE = "title";
|
|
17 protected final String CONTENTS = "contents";
|
|
18 protected final String DATA = "d";
|
|
19 protected final String WARRANT = "w";
|
|
20 protected final String BACKING = "b";
|
|
21 protected final String REBUTTLE = "r";
|
|
22 protected final String AUTHOR = "author";
|
|
23 protected final String USERS = "users";
|
|
24 protected final String TYPE = "type";
|
|
25 protected final String MENTIONS = "mentions";
|
3
|
26
|
7
|
27 protected final String STATUS = "status";
|
|
28 protected final String PASS = "pass";
|
|
29 protected final String FAIL = "fail";
|
|
30 protected final String AGREED = "agreed";
|
|
31 protected final String DENIED = "denied";
|
3
|
32
|
7
|
33 protected final String QUESTION = "question";
|
|
34 protected final String REFUTATION = "refutation";
|
3
|
35
|
7
|
36 protected final String MAJORITY = "majority";
|
|
37 protected final String UNANIMOUSLY = "unanimously";
|
3
|
38
|
|
39
|
|
40 public NodeModel(Vertex vertex) {
|
|
41 this.vertex = vertex;
|
|
42 this.id = vertex.getId();
|
|
43 }
|
7
|
44
|
3
|
45 public void setId(Object id) {
|
|
46 this.id = id;
|
|
47 }
|
|
48
|
|
49 public Object getId() {
|
|
50 return this.id;
|
|
51 }
|
|
52
|
|
53 public Vertex getVertex() {
|
|
54 return this.vertex;
|
|
55 }
|
7
|
56
|
12
|
57
|
3
|
58 }
|