aea.registries.filter
This module contains registries.
Filter Objects
class Filter(WithLogger)
This class implements the filter of an AEA.
__
init__
def __init__(resources: Resources,
decision_maker_out_queue: AsyncFriendlyQueue) -> None
Instantiate the filter.
Arguments:
resources
: the resourcesdecision_maker_out_queue
: the decision maker queue
resources
@property
def resources() -> Resources
Get resources.
decision_
maker_
out_
queue
@property
def decision_maker_out_queue() -> AsyncFriendlyQueue
Get decision maker (out) queue.
get_
active_
handlers
def get_active_handlers(protocol_id: PublicId,
skill_id: Optional[PublicId] = None) -> List[Handler]
Get active handlers based on protocol id and optional skill id.
Arguments:
protocol_id
: the protocol idskill_id
: the skill id
Returns:
the list of handlers currently active
get_
active_
behaviours
def get_active_behaviours() -> List[Behaviour]
Get the active behaviours.
Returns:
the list of behaviours currently active
handle_
new_
handlers_
and_
behaviours
def handle_new_handlers_and_behaviours() -> None
Handle the messages from the decision maker.
get_
internal_
message
async def get_internal_message() -> Optional[Message]
Get a message from decision_maker_out_queue.
handle_
internal_
message
def handle_internal_message(internal_message: Optional[Message]) -> None
Handle internal message.