|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.util.SidiousQueue<SuperLinkID> dk.deepthought.sidious.goalhandler.GoalHandlerEngine
public class GoalHandlerEngine
This class prioritizes goals and chooses which are to be sent to the
BlackBoard
.
The class extends the sidious queue and process goals asynchronously.
Field Summary | |
---|---|
private static GoalHandler |
INSTANCE
Private Singleton instance. |
private static org.apache.commons.logging.Log |
logger
Logger for this class |
Constructor Summary | |
---|---|
private |
GoalHandlerEngine()
Private constructor to facilitate singleton property. |
Method Summary | |
---|---|
static GoalHandler |
getInstance()
Returns the singleton instance of this goal handler. |
Goal |
getTopPriorityGoal(SuperLinkID id)
This method retrieves the top goal for a given SuperLinkID . |
protected void |
process(SuperLinkID item)
The processing of an item. |
void |
request(SuperLinkID id)
Request a goal to be extracted from requester with specified id. |
Methods inherited from class dk.deepthought.sidious.util.SidiousQueue |
---|
enqueue, interrupt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log logger
private static final GoalHandler INSTANCE
Constructor Detail |
---|
private GoalHandlerEngine()
Method Detail |
---|
public Goal getTopPriorityGoal(SuperLinkID id)
GoalHandler
SuperLinkID
.
getTopPriorityGoal
in interface GoalHandler
id
- the id to retrieve the top goal for
public static GoalHandler getInstance()
public final void request(SuperLinkID id)
GoalHandler
request
in interface GoalHandler
id
- the id of the requesterprotected void process(SuperLinkID item)
SidiousQueue
process
in class SidiousQueue<SuperLinkID>
item
- the item to be processed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |