org.blackbox.domains
Class List

java.lang.Object
  extended by org.blackbox.shell.ObserverPatternImpl
      extended by org.blackbox.domains.List
All Implemented Interfaces:
java.lang.Comparable, Domain, ObservableEntity

public class List
extends ObserverPatternImpl
implements Domain


Field Summary
 
Fields inherited from class org.blackbox.shell.ObserverPatternImpl
curEvent
 
Constructor Summary
List()
           
List(java.lang.String n)
           
 
Method Summary
 void assertHypothesis(Hypothesis h)
          Assert a new hypothesis in this domain.
 Blackboard blackboard()
          Return the name of this domain.
 int compareTo(java.lang.Object o)
           
 int countHypothesis()
          Count the number of hypothesis in thsi domain.
 java.lang.String domainName()
          Return the name of this domain.
 java.util.Iterator iterator()
          Hypothesis iterator.
 void retractHypothesis(Hypothesis h)
          Retract an hypothesis in this domain.
 void setBlackboard(Blackboard bb)
          Set the name of this domain.
 void setDomainName(java.lang.String name)
          Set the name of this domain.
 java.lang.String toString()
           
 
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, wait, wait, wait
 
Methods inherited from interface org.blackbox.model.ObservableEntity
addObserver, removeObserver
 

Constructor Detail

List

public List()

List

public List(java.lang.String n)
Method Detail

iterator

public java.util.Iterator iterator()
Description copied from interface: Domain
Hypothesis iterator.

Specified by:
iterator in interface Domain
Returns:
a domain iterator.

domainName

public java.lang.String domainName()
Description copied from interface: Domain
Return the name of this domain.

Specified by:
domainName in interface Domain
Returns:
the name of this domain.

setDomainName

public void setDomainName(java.lang.String name)
Description copied from interface: Domain
Set the name of this domain.

Specified by:
setDomainName in interface Domain

assertHypothesis

public void assertHypothesis(Hypothesis h)
Description copied from interface: Domain
Assert a new hypothesis in this domain.

Specified by:
assertHypothesis in interface Domain
Parameters:
h - An hypothesis to assert.

retractHypothesis

public void retractHypothesis(Hypothesis h)
Description copied from interface: Domain
Retract an hypothesis in this domain.

Specified by:
retractHypothesis in interface Domain
Parameters:
h - An hypothesis to retract.

countHypothesis

public int countHypothesis()
Description copied from interface: Domain
Count the number of hypothesis in thsi domain.

Specified by:
countHypothesis in interface Domain

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

blackboard

public Blackboard blackboard()
Description copied from interface: Domain
Return the name of this domain.

Specified by:
blackboard in interface Domain
Returns:
the name of this domain.

setBlackboard

public void setBlackboard(Blackboard bb)
Description copied from interface: Domain
Set the name of this domain.

Specified by:
setBlackboard in interface Domain

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable