|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunsw.cse.mica.blackboard.DefaultBlackboard
public abstract class DefaultBlackboard
An abstract class implementing much of the basic functionality of a blackboard This functionality includes support for:
SimpleBlackboard,
SQLBlackboard| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DefaultBlackboard()
|
|
| Method Summary | |
|---|---|
java.lang.String |
connect(java.lang.String proposedName)
The connect message should be the first message sent once the agent connects to the Blackboard. |
int |
countAgentRegistrations(java.lang.String agent)
|
java.lang.String |
disconnect(java.lang.String agentName)
Disconnect the agent from the Blackboard |
java.lang.String[] |
getAgentNames()
|
java.lang.String[] |
getAgentRegistrations(java.lang.String agent)
|
java.lang.String |
getNextPermanentID()
Persistent mobs are named 0,1,2,... |
java.lang.String |
getNextTransientID()
Transient mobs are named -1,-2,-3,... |
BlackboardTransport |
getTransport()
Get the corresponding transport for this blackboard. |
TypeManager |
getTypeManager()
Acccessor methods for debugging & XMLOverTCPBlackboard |
void |
init(MicaProperties args)
Initialise the blackboard. |
java.lang.String |
register(java.lang.String agentName,
java.lang.String mobType)
Register the agent for notification of blackboard events involving a particular mobType. |
void |
sendDeletedMob(java.lang.String agentName,
Mob mob)
This method is called by the QueuedMessageSender. |
void |
sendNewMob(java.lang.String agentName,
Mob mob)
This method is called by the QueuedMessageSender. |
void |
sendReplacedMob(java.lang.String agentName,
Mob oldMob,
Mob newMob)
This method is called by the QueuedMessageSender. |
void |
sendTypeManagerChanged(java.lang.String agentName)
This method is called by the QueuedMessageSender. |
void |
setTransport(BlackboardTransport transport)
set the transport for this blackboard. |
void |
terminate()
Ask a blackboard to shut down |
java.lang.String |
unregister(java.lang.String agentName,
java.lang.String mobType)
Forget that we were interested in this frame type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface unsw.cse.mica.blackboard.BlackboardActions |
|---|
deleteMob, mobSearch, readMob, replaceMob, writeMob |
| Constructor Detail |
|---|
public DefaultBlackboard()
| Method Detail |
|---|
public void init(MicaProperties args)
throws MicaException
MicaConstants.PARAM_MICA_HOME and MicaConstants.PARAM_TYPE_PATH.
init in interface Blackboardargs - the parameters used for initialisation
MicaExceptionLocalTypeManager.loadTypesDirectory(unsw.cse.mica.util.MicaProperties)public java.lang.String getNextTransientID()
public java.lang.String getNextPermanentID()
public BlackboardTransport getTransport()
Blackboard
getTransport in interface Blackboardpublic void setTransport(BlackboardTransport transport)
Blackboard
setTransport in interface Blackboardtransport - the transport which this blackboard should use.public TypeManager getTypeManager()
getTypeManager in interface BlackboardActionspublic java.lang.String[] getAgentNames()
public int countAgentRegistrations(java.lang.String agent)
public java.lang.String[] getAgentRegistrations(java.lang.String agent)
public void terminate()
throws MicaException
Blackboard
terminate in interface BlackboardMicaExceptionpublic java.lang.String connect(java.lang.String proposedName)
BlackboardActions
connect in interface BlackboardActionsproposedName - The agent name proposed by the agent.
public java.lang.String disconnect(java.lang.String agentName)
BlackboardActions
disconnect in interface BlackboardActionsagentName - the name of the agent that is disconnecting
public java.lang.String register(java.lang.String agentName,
java.lang.String mobType)
BlackboardActions
register in interface BlackboardActionsagentName - the agent that wants to registermobType - The mob type we are interested in listening to.
public java.lang.String unregister(java.lang.String agentName,
java.lang.String mobType)
BlackboardActions
unregister in interface BlackboardActions
public void sendNewMob(java.lang.String agentName,
Mob mob)
sendNewMob in interface BlackboardMessageSenderagentName - the name of the agent for which the message is intendedmob - the mob that has been written to the blackboard
public void sendDeletedMob(java.lang.String agentName,
Mob mob)
sendDeletedMob in interface BlackboardMessageSenderagentName - the name of the agent for which the message is intendedmob - the mob that has been deleted from the blackboard
public void sendReplacedMob(java.lang.String agentName,
Mob oldMob,
Mob newMob)
sendReplacedMob in interface BlackboardMessageSenderagentName - the name of the agent for which the message is intendedoldMob - the old value of the mobnewMob - the new value of the mobpublic void sendTypeManagerChanged(java.lang.String agentName)
sendTypeManagerChanged in interface BlackboardMessageSenderagentName - the name of the agent for which the message is intended
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||