The Big One #43
@@ -221,6 +221,14 @@ class BDICoreAgent(BaseAgent):
|
|||||||
agentspeak.runtime.Intention(),
|
agentspeak.runtime.Intention(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Check triggers
|
||||||
|
self.bdi_agent.call(
|
||||||
|
agentspeak.Trigger.addition,
|
||||||
|
agentspeak.GoalType.achievement,
|
||||||
|
agentspeak.Literal("check_triggers"),
|
||||||
|
agentspeak.runtime.Intention(),
|
||||||
|
)
|
||||||
|
|
||||||
self._wake_bdi_loop.set()
|
self._wake_bdi_loop.set()
|
||||||
|
|
||||||
self.logger.debug(f"Added belief {self.format_belief_string(name, args)}")
|
self.logger.debug(f"Added belief {self.format_belief_string(name, args)}")
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ class Trigger(ProgramElement):
|
|||||||
:ivar plan: The plan to execute.
|
:ivar plan: The plan to execute.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
name: str = ""
|
|
||||||
condition: Belief
|
condition: Belief
|
||||||
plan: Plan
|
plan: Plan
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user