org.blackbox.shell
Class BBX_Blackboard

java.lang.Object
  extended by org.blackbox.shell.ObserverPatternImpl
      extended by org.blackbox.shell.BBX_Blackboard
All Implemented Interfaces:
Blackboard, ObservableEntity

public final class BBX_Blackboard
extends ObserverPatternImpl
implements Blackboard


Field Summary
 
Fields inherited from class org.blackbox.shell.ObserverPatternImpl
curEvent
 
Constructor Summary
BBX_Blackboard(java.util.Hashtable domains)
           
 
Method Summary
 void addDomain(java.lang.String key, Domain d)
          Add a new domain in the blackboard.
 void deleteDomain(java.lang.String key)
          Remove a domain from the Blackboard.
 java.util.Stack getEventBuffer()
          Return the event buffer.
 java.util.List getNameSpace()
          Return all the domain's ids in a list.
 Domain inspectDomain(java.lang.String key)
          Return the domain called name.
 java.util.Iterator iterator()
          Return a new iterator on the content of this bb.
 boolean lookupDomain(java.lang.String key)
          Test if a Domain name is on ths Blackboard.
 
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
 
Methods inherited from interface org.blackbox.model.ObservableEntity
addObserver, removeObserver
 

Constructor Detail

BBX_Blackboard

public BBX_Blackboard(java.util.Hashtable domains)
               throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException
Method Detail

lookupDomain

public boolean lookupDomain(java.lang.String key)
Description copied from interface: Blackboard
Test if a Domain name is on ths Blackboard.

Specified by:
lookupDomain in interface Blackboard
Returns:
true if domain exists.

inspectDomain

public Domain inspectDomain(java.lang.String key)
Description copied from interface: Blackboard
Return the domain called name.

Specified by:
inspectDomain in interface Blackboard
Returns:
the domain name.

addDomain

public void addDomain(java.lang.String key,
                      Domain d)
Description copied from interface: Blackboard
Add a new domain in the blackboard.

Specified by:
addDomain in interface Blackboard

deleteDomain

public void deleteDomain(java.lang.String key)
Description copied from interface: Blackboard
Remove a domain from the Blackboard.

Specified by:
deleteDomain in interface Blackboard

getNameSpace

public java.util.List getNameSpace()
Description copied from interface: Blackboard
Return all the domain's ids in a list.

Specified by:
getNameSpace in interface Blackboard
Returns:
List of strings which are domain ids.

iterator

public java.util.Iterator iterator()
Description copied from interface: Blackboard
Return a new iterator on the content of this bb.

Specified by:
iterator in interface Blackboard

getEventBuffer

public java.util.Stack getEventBuffer()
Description copied from interface: Blackboard
Return the event buffer.

Specified by:
getEventBuffer in interface Blackboard
Returns:
the buffer