com.agentfactory.cldc
Interface Platform


public interface Platform

This interface is implemented by agent platform classes. It defines basic management functionality for persistent storage and displaying the mental state debugger interface.

Author:
Conor Muldoon

Method Summary
 void addData(java.lang.String identifier, java.lang.String s)
          Adds data to a persistent store.
 void addIDs(java.lang.Object name, IDSet ids)
          Adds IDs from the ID store that are associated with the specified agent name to the ID set.
 void display()
          Displays the interface for the platform.
 java.lang.String newStore(java.lang.String s)
          Creates a new persistent store.
 void saveID(java.lang.String sb)
          Adds an agent ID to the ID store.
 void storeName(FOS name)
          Adds an agent name to the name store.
 

Method Detail

display

void display()
Displays the interface for the platform.


newStore

java.lang.String newStore(java.lang.String s)
Creates a new persistent store.

Parameters:
s - the name of the store.
Returns:
the ID for the platform if it has been registered, null otherwise.

addData

void addData(java.lang.String identifier,
             java.lang.String s)
Adds data to a persistent store.

Parameters:
identifier - the name of the persistent store.
s - the data to add.

storeName

void storeName(FOS name)
Adds an agent name to the name store.

Parameters:
name - the name of the agent.

saveID

void saveID(java.lang.String sb)
Adds an agent ID to the ID store.

Parameters:
sb - a string representation of the ID to add.

addIDs

void addIDs(java.lang.Object name,
            IDSet ids)
Adds IDs from the ID store that are associated with the specified agent name to the ID set.

Parameters:
name - the specified agent name.
ids - the ID set that the IDs are added to.