站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

FactPattern (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.brms.client.modeldriven.brxml
Class FactPattern

java.lang.Object
  extended by org.drools.brms.client.modeldriven.brxml.FactPattern
All Implemented Interfaces:
IPattern, PortableObject

public class FactPattern
extends Object
implements IPattern

A fact pattern is a declaration of a fact type, and its constraint, and perhaps a variable that is it bound to It is the equivalent of a "pattern" in drools terms.

Author:
Michael Neale

Field Summary
 String boundName
           
 Constraint[] constraints
           
 String factType
           
 
Constructor Summary
FactPattern()
           
FactPattern(String factType)
           
 
Method Summary
 void addConstraint(Constraint constraint)
           
 boolean isBound()
          Returns true if there is a variable bound to this fact.
 void removeConstraint(int idx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraints

public Constraint[] constraints

factType

public String factType

boundName

public String boundName
Constructor Detail

FactPattern

public FactPattern()

FactPattern

public FactPattern(String factType)
Method Detail

addConstraint

public void addConstraint(Constraint constraint)

removeConstraint

public void removeConstraint(int idx)

isBound

public boolean isBound()
Returns true if there is a variable bound to this fact.



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.