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.
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 TypeMethodDescriptionbooleanallowAgentToTakeRole(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 thisGatekeeper.
-
Method Details
-
allowAgentToTakeRole
This method is called to check if an agent is allowed to play a role in a group associated with thisGatekeeper.- Parameters:
agentNetworkID- a string identifying uniquely an agent, even over multiple connected kernelsroleName- the role the agent wants to playmemberCard- the access card provided by the agent- Returns:
trueif the agent should be allowed to play this role in the group, orfalseotherwise associated with thisGatekeeper
-