|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICharacterManager
A character manager has the following functionality: * Keep track of the characters in the agent environment, and their commitments to the story * Cast characters to give them a place in the story
Method Summary | |
---|---|
void |
addCharacterAgent(jade.core.AID characterAgent)
Adds a character agent to the list of available characters |
void |
addSettingChange(java.util.Collection<RDFtriple> triples)
Adds multiple setting changes to be broadcast to all new characters |
void |
addSettingChange(RDFtriple triple)
Adds a setting change to be broadcast to all new characters |
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 characterAgent,
java.lang.String characterURI)
Casts a character agent to play a certain role in the story (role is determined by character manager) |
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 characterAgent)
Retrieves the name of the character's personality in the story (i.e., how they are 'casted') |
void |
removeCharacterAgent(jade.core.AID characterAgent)
Removes a character agent from the list of available characters |
Methods inherited from interface vs.IAgentModule |
---|
getAgent |
Method Detail |
---|
void addCharacterAgent(jade.core.AID characterAgent)
characterAgent
- the AID of an available character to addvoid addSettingChange(java.util.Collection<RDFtriple> triples)
triples
- the setting triplesvoid addSettingChange(RDFtriple triple)
triple
- the setting triplevoid addWantedCharacter(java.lang.String characterURI)
characterURI
- the URI of the character in the story world that we need a character agent forvoid castCharacter(jade.core.AID characterAgent, java.lang.String characterURI)
characterAgent
- the AID of an available character to addcharacterURI
- the URI representing the character Individual in the storyjade.core.AID getAgentForStoryWorldRepresentation(java.lang.String characterURI)
characterURI
- the URI of the casted agent in the story
java.util.Set<jade.core.AID> getAvailableCharacters()
java.util.Set<jade.core.AID> getCastedCharacters()
java.util.Set<jade.core.AID> getCharacters()
java.lang.String getStoryWorldRepresentationForAgent(jade.core.AID characterAgent)
characterAgent
- the AID of the casted agent
void removeCharacterAgent(jade.core.AID characterAgent)
characterAgent
- the AID of an available character to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |