|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvs.plotagent.BasicCharacterManager
public class BasicCharacterManager
| Nested Class Summary | |
|---|---|
static class |
BasicCharacterManager.Status
|
| Field Summary | |
|---|---|
static int |
MAX_CHAR_AGENTS
|
| Constructor Summary | |
|---|---|
BasicCharacterManager(IPlotAgent owner)
|
|
| Method Summary | |
|---|---|
void |
addCharacterAgent(jade.core.AID character)
Adds a character agent to the list of available characters |
void |
addSettingChange(java.util.Collection<RDFtriple> triples)
TODO: accept StorySettingElements rather than RDFtriples. |
void |
addSettingChange(RDFtriple triple)
TODO: accept StorySettingElements rather than RDFtriples. |
void |
addWantedCharacter(java.lang.String characterURI)
Registers that given character URI is necessary to cast. castCharacter uses this information to decide what name to give a character. |
void |
castCharacter(jade.core.AID agent,
java.lang.String characterURI)
This is executed under the assumption that the character AID is already committed to character URI. |
IPlotAgent |
getAgent()
To get the Agent |
jade.core.AID |
getAgentForStoryWorldRepresentation(java.lang.String characterURI)
The inverse: retrieves the agent ID for a character's personality in the story, i.e. which agent 'controls' it. |
java.util.Set<jade.core.AID> |
getAvailableCharacters()
Retrieves all characters that are available to play a role |
java.util.Set<jade.core.AID> |
getCastedCharacters()
Retrieves all characters that are casted to play a role in the story |
java.util.Set<jade.core.AID> |
getCharacters()
Retrieves all characters the character manager knows of |
java.lang.String |
getStoryWorldRepresentationForAgent(jade.core.AID agent)
Retrieves the name of the character's personality in the story (i.e., how they are 'casted') |
void |
removeCharacterAgent(jade.core.AID character)
Removes a character agent from the list of available characters |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int MAX_CHAR_AGENTS
| Constructor Detail |
|---|
public BasicCharacterManager(IPlotAgent owner)
| Method Detail |
|---|
public void addCharacterAgent(jade.core.AID character)
ICharacterManager
addCharacterAgent in interface ICharacterManagercharacter - the AID of an available character to addpublic void addSettingChange(java.util.Collection<RDFtriple> triples)
addSettingChange in interface ICharacterManagertriples - the setting triplespublic void addSettingChange(RDFtriple triple)
addSettingChange in interface ICharacterManagertriple - the setting triplepublic void addWantedCharacter(java.lang.String characterURI)
ICharacterManager
addWantedCharacter in interface ICharacterManagercharacterURI - the URI of the character in the story world that we need a character agent for
public void castCharacter(jade.core.AID agent,
java.lang.String characterURI)
castCharacter in interface ICharacterManageragent - the AID of the CharacterAgent we are castingcharacterURI - the URI of the character in the story.public IPlotAgent getAgent()
IAgentModule
getAgent in interface IAgentModulepublic jade.core.AID getAgentForStoryWorldRepresentation(java.lang.String characterURI)
ICharacterManager
getAgentForStoryWorldRepresentation in interface ICharacterManagercharacterURI - the URI of the casted agent in the story
public java.util.Set<jade.core.AID> getAvailableCharacters()
ICharacterManager
getAvailableCharacters in interface ICharacterManagerpublic java.util.Set<jade.core.AID> getCastedCharacters()
ICharacterManager
getCastedCharacters in interface ICharacterManagerpublic java.util.Set<jade.core.AID> getCharacters()
ICharacterManager
getCharacters in interface ICharacterManagerpublic java.lang.String getStoryWorldRepresentationForAgent(jade.core.AID agent)
ICharacterManager
getStoryWorldRepresentationForAgent in interface ICharacterManageragent - the AID of the casted agent
public void removeCharacterAgent(jade.core.AID character)
ICharacterManager
removeCharacterAgent in interface ICharacterManagercharacter - the AID of an available character to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||