org.blackbox.shell
Class BBX_KSFarm

java.lang.Object
  extended by org.blackbox.shell.ObserverPatternImpl
      extended by org.blackbox.shell.BBX_KSFarm
All Implemented Interfaces:
KsFarm, ObservableEntity, org.framboise_22.rete.RuleSet

public class BBX_KSFarm
extends ObserverPatternImpl
implements KsFarm


Field Summary
 
Fields inherited from class org.blackbox.shell.ObserverPatternImpl
curEvent
 
Constructor Summary
BBX_KSFarm()
           
BBX_KSFarm(java.util.List ks)
           
 
Method Summary
 void addRule(org.framboise_22.rete.Rule ks)
           
 java.util.List getRules()
           
 java.util.Iterator iterator()
          Farm iterator.
 int size()
          The number of rules in this farm.
 java.lang.Object[] toArray()
          Return all Rules in an array.
 
Methods inherited from class org.blackbox.shell.ObserverPatternImpl
addObserver, notifyObservers, removeObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BBX_KSFarm

public BBX_KSFarm(java.util.List ks)

BBX_KSFarm

public BBX_KSFarm()
Method Detail

addRule

public void addRule(org.framboise_22.rete.Rule ks)
Specified by:
addRule in interface org.framboise_22.rete.RuleSet

getRules

public java.util.List getRules()
Specified by:
getRules in interface org.framboise_22.rete.RuleSet

toArray

public java.lang.Object[] toArray()
Description copied from interface: KsFarm
Return all Rules in an array.

Specified by:
toArray in interface KsFarm
Returns:
an array of KS

iterator

public java.util.Iterator iterator()
Description copied from interface: KsFarm
Farm iterator.

Specified by:
iterator in interface KsFarm
Returns:
a farm iterator.

size

public int size()
Description copied from interface: KsFarm
The number of rules in this farm.

Specified by:
size in interface KsFarm
Returns:
The number of rules in this farm.