1
|
1 package jungle.test.operations;
|
|
2
|
|
3 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.NodePath;
|
|
4 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.NodeOperation;
|
|
5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.TreeOperation;
|
|
6
|
|
7 import org.msgpack.annotation.Message;
|
|
8
|
|
9 @Message
|
|
10 public class NetworkTreeOperation implements TreeOperation {
|
|
11
|
|
12 private NodePath path;
|
|
13 private NodeOperation operation;
|
|
14
|
|
15 public NetworkTreeOperation() {
|
|
16 path = null;
|
|
17 operation = null;
|
|
18 }
|
|
19
|
|
20 public NetworkTreeOperation(NodePath _p, NodeOperation _op) {
|
|
21 path = _p;
|
|
22 operation = _op;
|
|
23 }
|
|
24
|
|
25 @Override
|
|
26 public NodePath getNodePath() {
|
|
27 return path;
|
|
28 }
|
|
29
|
|
30 @Override
|
|
31 public NodeOperation getNodeOperation() {
|
|
32 return operation;
|
|
33 }
|
|
34
|
|
35 }
|