Interface IBlackboard<T>
- Type Parameters:
T
- The type of the data stored in the blackboard. T is not limited to a certain interface to allow arbitrary values to be stored here.
- All Known Implementing Classes:
Blackboard
,MDSDBlackboard
public interface IBlackboard<T>
Interface of a blackboard as defined in POSA I. See also class Blackboard for further information.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPartition
(String id, T newPartition) Add a new partition to this blackboard.getPartition
(String id) Retrieve a named partition from this blackboard.Get the set of partitions currently present on this blackboard.boolean
hasPartition
(String id) Query the blackboard for a named partition.void
Remove a named partition from the blackboard.
-
Method Details
-
getPartition
Retrieve a named partition from this blackboard. The partition has to exist on the blackboard- Parameters:
id
- ID of the partition to retrieve- Returns:
- The requested partition
-
addPartition
Add a new partition to this blackboard. The partition is required to not exist before.- Parameters:
id
- The ID of the partition to addnewPartition
- The partition to add
-
hasPartition
Query the blackboard for a named partition.- Parameters:
id
- The ID of the named partition- Returns:
- true if the partition exists on the blackboard
-
removePartition
Remove a named partition from the blackboard.- Parameters:
id
- ID of the partition to removeS
-
getPartitionIds
Get the set of partitions currently present on this blackboard.- Returns:
- the set of partition ids.
-