|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.Service
public abstract class Service
This class is extended by the application developer to create local platform services. The message transport service is an example of a local platform service. Local platform services are used when agents must share an information space or be capable of accessing a shared object.
| Constructor Summary | |
|---|---|
Service(java.lang.Object nm)
Constructs a new instance of Service. |
|
| Method Summary | |
|---|---|
abstract void |
modifyBinding(java.lang.Object oldName,
java.lang.Object newName)
Changes the name of an agent in the service's registry if one exists. |
abstract FOS |
processAction(AgentName agentName,
int actionID,
FOS data)
Performs an action on the service. |
abstract FOS |
processPer(AgentName agentName,
int perceptionID)
Perceives information from within the service. |
void |
register(java.util.Hashtable table)
Adds the name of the service to the specified hash table. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Service(java.lang.Object nm)
nm - the name of the service.| Method Detail |
|---|
public void register(java.util.Hashtable table)
table - the hash table that the name is added to.
public abstract void modifyBinding(java.lang.Object oldName,
java.lang.Object newName)
oldName - the old name of the agent.newName - the new name of the agent.
public abstract FOS processPer(AgentName agentName,
int perceptionID)
throws MalformedLogicException
agentName - the agent that wishes to perceive the information.perceptionID - the ID of the information that is to be perceived.
MalformedLogicException - if there is a logic error.
public abstract FOS processAction(AgentName agentName,
int actionID,
FOS data)
throws MalformedLogicException
agentName - the name of the agent that is performing the action.actionID - the ID of the action that is to be performed.data - the data that is to be used in performing the action.
MalformedLogicException - if there is a logic error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||