|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--metaglue.AttributeDatabase
Field Summary | |
Hashtable |
attributeDB
|
Constructor Summary | |
AttributeDatabase()
|
Method Summary | |
Hashtable |
addAgent(String society,
String occupation)
Adds new occupation under society in database if necessary; society is added if necessary. |
void |
addAgentStrong(String society,
String occupation)
Adds new occupation under society in database. |
void |
addAttribute(AgentID agentID,
String attributeName)
Adds new agent along with attribute if necessary and initializes with UNDEFINED value |
void |
addAttribute(AgentID agentID,
String attributeName,
String attributeValue)
Adds new agent along with attribute if necessary and initializes with value If attributeName is null, then new UNDEFINED designation is made. |
void |
addAttribute(String society,
String occupation,
String attributeName)
Adds new agent along with attribute if necessary |
void |
addAttributeName(String occupation,
String attributeName)
|
void |
addAttributeNames(String occupation,
Vector attributeNames)
|
void |
addAttributeStrong(AgentID agentID,
String attributeName,
String attributeValue)
Adds new agent along with attribute and initializes with value |
Hashtable |
addSociety(String society)
Adds new society if necessary. |
Hashtable |
addSociety(String society,
Hashtable olevel)
Adds new society if necessary and primes with olevel table. |
void |
addSocietyStrong(String society)
Adds new society. |
void |
addSocietyStrong(String society,
Hashtable olevel)
Adds new society and primes with olevel. |
Hashtable |
cloneSociety(String society)
|
Vector |
discoverAttributes(AgentLoader agentLoader,
String occupation)
|
void |
exportHumanReadable(String xfile)
|
String |
getAttribute(AgentID agentID,
String attributeName)
|
Vector |
getAttributeNames(String occupation)
|
Vector |
getAttributes(AgentID agentID)
|
Hashtable |
getAttributes(String society)
|
Hashtable |
getAttributes(String society,
String occupation)
|
Vector |
getOccupations(String pack)
|
DefaultMutableTreeNode |
getPackageHierarchy()
|
void |
importHumanReadable(String ifile)
|
static void |
main(String[] args)
|
Enumeration |
occupations()
|
void |
removeAttributeNames(String occupation,
Vector attributeNames)
Removes the names in the list of attribute names of the occupation Any names in the list that are missing are ignored |
Vector |
removeDesignation(AgentID agentID)
|
Hashtable |
removeSociety(String society)
removes society if necessary. |
void |
setAttributeNames(String occupation,
Vector attributeNames)
|
Enumeration |
societies()
|
void |
synchronizeAgents(AgentLoader agentLoader)
|
void |
synchronizeAgents(AgentLoader agentLoader,
TreePath selection)
|
void |
updateAttribute(AgentID agentID,
String attributeName,
String attributeValue)
Value overwrites old value, adding attribute if necessary |
void |
updateDesignation(AgentID oldAgentID,
String newDesignation)
changes designation in old to new, adding new as UNDEFINED if old not present |
void |
updateSociety(String oldSociety,
String newSociety)
change society name |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public Hashtable attributeDB
Constructor Detail |
public AttributeDatabase()
Method Detail |
public DefaultMutableTreeNode getPackageHierarchy()
public Enumeration societies()
public Enumeration occupations()
public Vector getOccupations(String pack)
public Vector getAttributeNames(String occupation)
public void setAttributeNames(String occupation, Vector attributeNames)
public void addAttributeName(String occupation, String attributeName) throws AttributeAlreadyDefinedException
public void addAttributeNames(String occupation, Vector attributeNames)
public void removeAttributeNames(String occupation, Vector attributeNames)
public void synchronizeAgents(AgentLoader agentLoader, TreePath selection)
public void synchronizeAgents(AgentLoader agentLoader)
public Vector discoverAttributes(AgentLoader agentLoader, String occupation)
public Hashtable getAttributes(String society) throws MissingAgentInAttributeDBException
public Hashtable getAttributes(String society, String occupation) throws MissingAgentInAttributeDBException
public Vector getAttributes(AgentID agentID) throws MissingAgentInAttributeDBException
public String getAttribute(AgentID agentID, String attributeName) throws MissingAgentInAttributeDBException, MissingAttributeException
public void addSocietyStrong(String society) throws AgentAlreadyInAttributeDBException
public void addSocietyStrong(String society, Hashtable olevel) throws AgentAlreadyInAttributeDBException
public Hashtable cloneSociety(String society)
public void addAgentStrong(String society, String occupation) throws AgentAlreadyInAttributeDBException, MissingAgentInAttributeDBException
public void addAttributeStrong(AgentID agentID, String attributeName, String attributeValue) throws AttributeAlreadyDefinedException, MissingAgentInAttributeDBException, CorruptAttributeDBException
public Hashtable addSociety(String society)
public Hashtable addSociety(String society, Hashtable olevel)
public Hashtable removeSociety(String society)
public void updateSociety(String oldSociety, String newSociety) throws MissingAgentInAttributeDBException
public Hashtable addAgent(String society, String occupation)
public void addAttribute(String society, String occupation, String attributeName) throws CorruptAttributeDBException
public void addAttribute(AgentID agentID, String attributeName, String attributeValue)
public void addAttribute(AgentID agentID, String attributeName)
public void updateAttribute(AgentID agentID, String attributeName, String attributeValue)
public Vector removeDesignation(AgentID agentID)
public void updateDesignation(AgentID oldAgentID, String newDesignation)
public void exportHumanReadable(String xfile) throws IOException
public void importHumanReadable(String ifile) throws IOException
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |