|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvs.plotagent.BetterPerceptionManager
public class BetterPerceptionManager
Better implementation of perception handling. Better separation of concerns between creating setting/perception, and registering result of operator. In comparison to BasicPerceptionManager, this one doesn't start interpreting the operator result as setting/perceptions up till the point where characters need to be informed. Also easier to install perception rules since it is clearer where this should be done. NOTE: Experimental; if bugs occur, one might use BasicPerceptionManager instead.
| Constructor Summary | |
|---|---|
BetterPerceptionManager(IPlotAgent owner)
Constructor |
|
| Method Summary | |
|---|---|
java.util.Set<FabulaCausality> |
explainCausalities()
Explain the motivations, the causalities or enablements that the interfaced class produced. |
java.util.Set<FabulaElement> |
explainElements()
Explain the fabula elements that the interfaced class produced |
IAgent |
getAgent()
To get the Agent |
void |
informCharacters()
Sends new perceptions and setting elements to the characters |
void |
registerOperatorResult(OperatorResult or)
Register operator results |
void |
sendPerceptions(java.util.Vector<StoryPerception> perceptions,
jade.core.AID character)
|
void |
sendSettingElements(java.util.Vector<StorySettingElement> setting_elements,
jade.core.AID character)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BetterPerceptionManager(IPlotAgent owner)
owner - plot agent that owns this perception manager| Method Detail |
|---|
public void registerOperatorResult(OperatorResult or)
IPerceptionManager
registerOperatorResult in interface IPerceptionManageror - the Operator Result to registerpublic void informCharacters()
IPerceptionManager
informCharacters in interface IPerceptionManager
public void sendPerceptions(java.util.Vector<StoryPerception> perceptions,
jade.core.AID character)
public void sendSettingElements(java.util.Vector<StorySettingElement> setting_elements,
jade.core.AID character)
public IAgent getAgent()
IAgentModule
getAgent in interface IAgentModulepublic java.util.Set<FabulaCausality> explainCausalities()
IExplainable
explainCausalities in interface IExplainablepublic java.util.Set<FabulaElement> explainElements()
IExplainable
explainElements in interface IExplainable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||