01: package org.drools.spi;
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.Iterator;
21:
22: public interface RuleFlowGroup extends Serializable {
23:
24: String getName();
25:
26: public Iterator iterator();
27:
28: boolean isEmpty();
29:
30: int size();
31:
32: boolean isActive();
33:
34: boolean isAutoDeactivate();
35:
36: /**
37: * Sets the auto-deactivate status of this RuleFlowGroup.
38: * If this is set to true, an active RuleFlowGroup automatically
39: * deactivates if it has no more activations. If it had no
40: * activations when it was activated, it will be deactivated immediately.
41: */
42: void setAutoDeactivate(boolean autoDeactivate);
43: }
|