Package com.embabel.agent.testing.common
Class EventSavingAgenticEventListener
-
- All Implemented Interfaces:
-
com.embabel.agent.event.AgenticEventListener
public final class EventSavingAgenticEventListener implements AgenticEventListener
Simple implementation of com.embabel.agent.event.AgenticEventListener that saves each kind of event to a list.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<AgentPlatformEvent>platformEventsprivate final List<AgentProcessEvent>processEvents
-
Constructor Summary
Constructors Constructor Description EventSavingAgenticEventListener()
-
Method Summary
Modifier and Type Method Description final List<AgentPlatformEvent>getPlatformEvents()final List<AgentProcessEvent>getProcessEvents()UnitonPlatformEvent(AgentPlatformEvent event)An event relating to the platform or leading to the creation of an AgentProcess, such as the choice of a goal. UnitonProcessEvent(AgentProcessEvent event)Listen to an event during the execution of an AgentProcess -
-
Method Detail
-
getPlatformEvents
final List<AgentPlatformEvent> getPlatformEvents()
-
getProcessEvents
final List<AgentProcessEvent> getProcessEvents()
-
onPlatformEvent
Unit onPlatformEvent(AgentPlatformEvent event)
An event relating to the platform or leading to the creation of an AgentProcess, such as the choice of a goal. No process is available at this point.
-
onProcessEvent
Unit onProcessEvent(AgentProcessEvent event)
Listen to an event during the execution of an AgentProcess
-
-
-
-