org.drools.ide.common.client.modeldriven.brl
Class CompositeFactPattern

java.lang.Object
  extended by 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

Field Summary
static String COMPOSITE_TYPE_EXISTS
           
static String COMPOSITE_TYPE_NOT
           
static String COMPOSITE_TYPE_OR
           
 String type
          this will one of: [Not, Exist, Or]
 
Constructor Summary
CompositeFactPattern()
           
CompositeFactPattern(String type)
          This type should be from the contants in this class of course.
 
Method Summary
 void addFactPattern(IFactPattern pat)
           
 void addFactPatterns(IFactPattern[] patterns)
           
 void clearFactPatterns()
           
 IFactPattern[] getPatterns()
           
 boolean removeFactPattern(int index)
          Remove a FactPattern at the provided index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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]

Constructor Detail

CompositeFactPattern

public CompositeFactPattern(String type)
This type should be from the contants in this class of course.


CompositeFactPattern

public CompositeFactPattern()
Method Detail

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-2011 JBoss by Red Hat. All Rights Reserved.