metaglue
Interface AttributeManager
- All Known Implementing Classes:
- AttributeManagerAgent
- public interface AttributeManager
- extends Agent
Method Summary |
void |
addAgentStrong(String society,
String occupation)
|
void |
addAttribute(AgentID agentID,
String attributeName)
|
void |
addAttribute(AgentID agentID,
String attributeName,
String attributeValue)
|
void |
addAttributeListener(AttributeListener attributeListener)
|
void |
addSocietyStrong(String society)
|
void |
addSocietyStrong(String society,
Hashtable olevel)
|
void |
deleteSociety(String oldSociety)
|
void |
exportHumanReadable(String xfile)
|
Object |
getAllAttributes()
|
String |
getAttribute(AgentID agentID,
String attributeName)
|
String |
getDefaultAttribute(AgentID agentID,
String attributeName)
|
Vector |
getDesignations(String occupation)
|
boolean |
hasAttribute(AgentID agentID,
String attributeName)
Return whether the given agent has a defined attribute (or
if there is a default attribute for) with given attributeName
This is since getAttribute throws exceptions at drop of hat. |
void |
importHumanReadable(String ifile)
|
Vector |
removeDesignation(AgentID agentID)
|
Hashtable |
removeSociety(String society)
|
void |
saveAttributes()
|
void |
synchronizeAgents()
|
void |
synchronizeAgents(Object selection)
|
void |
synchronizeAttributes()
|
void |
updateAttribute(AgentID agentID,
String attributeName,
String attributeValue)
|
void |
updateDesignation(AgentID oldAgentID,
String newDesignation)
|
void |
updateSociety(String oldSociety,
String newSociety)
|
updateSociety
public void updateSociety(String oldSociety,
String newSociety)
throws RemoteException,
MissingAgentInAttributeDBException
getAttribute
public String getAttribute(AgentID agentID,
String attributeName)
throws RemoteException,
MissingAgentInAttributeDBException,
CorruptAttributeDBException,
MissingAttributeException
hasAttribute
public boolean hasAttribute(AgentID agentID,
String attributeName)
throws RemoteException
- Return whether the given agent has a defined attribute (or
if there is a default attribute for) with given attributeName
This is since getAttribute throws exceptions at drop of hat. It
allows us to see if getAttribute is going to vomit.
getDefaultAttribute
public String getDefaultAttribute(AgentID agentID,
String attributeName)
throws RemoteException,
MissingAgentInAttributeDBException,
CorruptAttributeDBException,
MissingAttributeException
deleteSociety
public void deleteSociety(String oldSociety)
throws RemoteException,
MissingAgentInAttributeDBException
addAttribute
public void addAttribute(AgentID agentID,
String attributeName,
String attributeValue)
throws RemoteException,
CorruptAttributeDBException
addAttribute
public void addAttribute(AgentID agentID,
String attributeName)
throws RemoteException,
CorruptAttributeDBException
updateAttribute
public void updateAttribute(AgentID agentID,
String attributeName,
String attributeValue)
throws RemoteException,
CorruptAttributeDBException
getDesignations
public Vector getDesignations(String occupation)
throws CorruptAttributeDBException,
RemoteException
synchronizeAttributes
public void synchronizeAttributes()
throws RemoteException,
CorruptAttributeDBException
synchronizeAgents
public void synchronizeAgents()
throws RemoteException,
CorruptAttributeDBException
synchronizeAgents
public void synchronizeAgents(Object selection)
throws RemoteException,
CorruptAttributeDBException
addAttributeListener
public void addAttributeListener(AttributeListener attributeListener)
throws RemoteException
exportHumanReadable
public void exportHumanReadable(String xfile)
throws RemoteException
importHumanReadable
public void importHumanReadable(String ifile)
throws RemoteException
saveAttributes
public void saveAttributes()
throws RemoteException,
CorruptAttributeDBException
getAllAttributes
public Object getAllAttributes()
throws RemoteException
addSocietyStrong
public void addSocietyStrong(String society)
throws RemoteException,
AgentAlreadyInAttributeDBException
addSocietyStrong
public void addSocietyStrong(String society,
Hashtable olevel)
throws RemoteException,
AgentAlreadyInAttributeDBException,
CorruptAttributeDBException
addAgentStrong
public void addAgentStrong(String society,
String occupation)
throws RemoteException,
AgentAlreadyInAttributeDBException,
MissingAgentInAttributeDBException,
CorruptAttributeDBException
removeSociety
public Hashtable removeSociety(String society)
throws RemoteException,
CorruptAttributeDBException
removeDesignation
public Vector removeDesignation(AgentID agentID)
throws RemoteException
updateDesignation
public void updateDesignation(AgentID oldAgentID,
String newDesignation)
throws RemoteException