Mercurial > hg > Database > jungle-network
comparison src/jungle/test/operations/NetworkTreeOperation.java @ 1:8ee02d1a2b12
add jungle.test.operations
author | one |
---|---|
date | Fri, 07 Jun 2013 19:26:08 +0900 |
parents | |
children | 20498c88a70d |
comparison
equal
deleted
inserted
replaced
0:3991a751ed00 | 1:8ee02d1a2b12 |
---|---|
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 } |