dk.deepthought.sidious.blackboard
Interface BlackBoard

All Known Implementing Classes:
BlackBoardEngine

public interface BlackBoard

Implementations of this interface acts as blackboards. The purpose of the blackboards are to facilitate the communication between the various components of the system.

Author:
Deepthought

Method Summary
 void deliverResult(java.lang.Object result)
          Delivers the result of any calculation onto the blackboard.
 double getAdjustableSetting(SuperLinkID requesterID, SuperLinkID adjustableID)
          Returns the current setting of the adjustable associated with the specified adjustableID and requesterID.
 PlanRequester getRequester(SuperLinkID requester)
          Returns a reference to the plan requester associated with the specified id.
 void requestPlan(PlanRequester requester)
          Registers the specified caller as a requester of a plan.
 

Method Detail

deliverResult

void deliverResult(java.lang.Object result)
Delivers the result of any calculation onto the blackboard.

Parameters:
result - the result to deliver

getRequester

PlanRequester getRequester(SuperLinkID requester)
Returns a reference to the plan requester associated with the specified id.

If no requester is associated with the specified id, planning for the specified id is stopped in the Planner, and null is returned.

Parameters:
requester - the id of the requested requester
Returns:
a reference to the specified plan requester, or null if requester does not exist
See Also:
PlannerEngine

requestPlan

void requestPlan(PlanRequester requester)
Registers the specified caller as a requester of a plan. Caller will be notified when a plan has been devised.

Parameters:
requester - the requester of a plan

getAdjustableSetting

double getAdjustableSetting(SuperLinkID requesterID,
                            SuperLinkID adjustableID)
Returns the current setting of the adjustable associated with the specified adjustableID and requesterID.

Parameters:
requesterID - the id of the plan requester
adjustableID - the id of the adjustable to get the setting from
Returns:
the setting of the adjustable


Copyright © Deepthought Development - All Rights Reserved.