org.blackbox.model
Interface Domain

All Superinterfaces:
java.lang.Comparable, ObservableEntity
All Known Implementing Classes:
BlackHole, List, TimeLine

public interface Domain
extends ObservableEntity, java.lang.Comparable


Method Summary
 void assertHypothesis(Hypothesis h)
          Assert a new hypothesis in this domain.
 Blackboard blackboard()
          Return the name of this domain.
 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.
 
Methods inherited from interface org.blackbox.model.ObservableEntity
addObserver, removeObserver
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

domainName

java.lang.String domainName()
Return the name of this domain.

Returns:
the name of this domain.

setDomainName

void setDomainName(java.lang.String name)
Set the name of this domain.


blackboard

Blackboard blackboard()
Return the name of this domain.

Returns:
the name of this domain.

setBlackboard

void setBlackboard(Blackboard bb)
Set the name of this domain.


assertHypothesis

void assertHypothesis(Hypothesis h)
Assert a new hypothesis in this domain.

Parameters:
h - An hypothesis to assert.

retractHypothesis

void retractHypothesis(Hypothesis h)
Retract an hypothesis in this domain.

Parameters:
h - An hypothesis to retract.

iterator

java.util.Iterator iterator()
Hypothesis iterator.

Returns:
a domain iterator.

countHypothesis

int countHypothesis()
Count the number of hypothesis in thsi domain.