01: /*
02:
03: * Copyright 2005-2006 The Kuali Foundation.
04:
05: *
06:
07: *
08:
09: * Licensed under the Educational Community License, Version 1.0 (the "License");
10:
11: * you may not use this file except in compliance with the License.
12:
13: * You may obtain a copy of the License at
14:
15: *
16:
17: * http://www.opensource.org/licenses/ecl1.php
18:
19: *
20:
21: * Unless required by applicable law or agreed to in writing, software
22:
23: * distributed under the License is distributed on an "AS IS" BASIS,
24:
25: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26:
27: * See the License for the specific language governing permissions and
28:
29: * limitations under the License.
30:
31: */
32:
33: package edu.iu.uis.eden.engine.node;
34:
35: /**
36:
37: * The state of a {@link RouteNodeInstance} represented as a key-value pair of Strings.
38:
39: *
40:
41: * @author ewestfal
42:
43: */
44:
45: public class NodeState extends State {
46:
47: private static final long serialVersionUID = -4382379569851955918L;
48:
49: private RouteNodeInstance nodeInstance;
50:
51: private Integer lockVerNbr;
52:
53: public NodeState() {
54: }
55:
56: public NodeState(String key, String value) {
57:
58: super (key, value);
59:
60: }
61:
62: public RouteNodeInstance getNodeInstance() {
63:
64: return nodeInstance;
65:
66: }
67:
68: public void setNodeInstance(RouteNodeInstance nodeInstance) {
69:
70: this .nodeInstance = nodeInstance;
71:
72: }
73:
74: public Long getNodeStateId() {
75:
76: return getStateId();
77:
78: }
79:
80: public void setNodeStateId(Long nodeStateId) {
81:
82: setStateId(nodeStateId);
83:
84: }
85:
86: public Integer getLockVerNbr() {
87:
88: return lockVerNbr;
89:
90: }
91:
92: public void setLockVerNbr(Integer lockVerNbr) {
93:
94: this.lockVerNbr = lockVerNbr;
95:
96: }
97:
98: }
|