Package madkit.kernel
Interface Gatekeeper
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.
- Since:
- MaDKit 3.0
- Version:
- 2.0
- Author:
- Fabien Michel
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allowAgentToTakeRole
(String agentNetworkID, String roleName, Object memberCard)
-
Method Details
-
allowAgentToTakeRole
- 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:
true
if the agent should be allowed to play this role in the group, orfalse
otherwise associated with thisGatekeeper
-