01: package org.drools.ruleflow.core;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: import java.io.Serializable;
20: import java.util.List;
21:
22: /**
23: * Represents a node in a RuleFlow.
24: *
25: * @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
26: */
27: public interface Node extends Serializable {
28:
29: /**
30: * Returns the id of the node
31: *
32: * @return the id of the node
33: */
34: long getId();
35:
36: /**
37: * Method for setting the id of the node
38: *
39: * @param id the id of the node
40: */
41: void setId(long id);
42:
43: /**
44: * Returns the name of the node
45: *
46: * @return the name of the node
47: */
48: String getName();
49:
50: /**
51: * Method for setting the name of the node
52: *
53: * @param name the name of the node
54: */
55: void setName(String name);
56:
57: /**
58: * Returns the incoming connections
59: * @return the incoming connections
60: */
61: List getIncomingConnections();
62:
63: /**
64: * Returns the outgoing connections
65: * @return the outgoing connections
66: */
67: List getOutgoingConnections();
68:
69: }
|