Interface Gatekeeper

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Gatekeeper
This interface is implemented by objects which are used to verify if an agent is allowed to play a certain role in a group. Objects implementing this interface could be used when creating a Group to secure it.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowAgentToTakeRole(String agentNetworkID, String roleName, Object memberCard)
    This method is called to check if an agent is allowed to play a role in a group associated with this Gatekeeper.
  • Method Details

    • allowAgentToTakeRole

      boolean allowAgentToTakeRole(String agentNetworkID, String roleName, Object memberCard)
      This method is called to check if an agent is allowed to play a role in a group associated with this Gatekeeper.
      Parameters:
      agentNetworkID - a string identifying uniquely an agent, even over multiple connected kernels
      roleName - the role the agent wants to play
      memberCard - the access card provided by the agent
      Returns:
      true if the agent should be allowed to play this role in the group, or false otherwise associated with this Gatekeeper