org.drools.ide.common.client.modeldriven.brl
Class CompositeFactPattern
java.lang.Object
org.drools.ide.common.client.modeldriven.brl.CompositeFactPattern
- All Implemented Interfaces:
- Serializable, IPattern, PortableObject
public class CompositeFactPattern
- extends Object
- implements IPattern
Represents first order logic like Or, Not, Exists.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPOSITE_TYPE_NOT
public static final String COMPOSITE_TYPE_NOT
- See Also:
- Constant Field Values
COMPOSITE_TYPE_EXISTS
public static final String COMPOSITE_TYPE_EXISTS
- See Also:
- Constant Field Values
COMPOSITE_TYPE_OR
public static final String COMPOSITE_TYPE_OR
- See Also:
- Constant Field Values
type
public String type
- this will one of: [Not, Exist, Or]
CompositeFactPattern
public CompositeFactPattern(String type)
- This type should be from the contants in this class of course.
CompositeFactPattern
public CompositeFactPattern()
clearFactPatterns
public void clearFactPatterns()
addFactPatterns
public void addFactPatterns(IFactPattern[] patterns)
addFactPattern
public void addFactPattern(IFactPattern pat)
getPatterns
public IFactPattern[] getPatterns()
removeFactPattern
public boolean removeFactPattern(int index)
- Remove a FactPattern at the provided index. If index is less than zero or
greater than or equal to the number of patterns the effect of this method
is "no operation".
- Parameters:
index
-
- Returns:
- true if the deletion was successful, i.e. within range
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.