Class Role

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Define serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • listener

        private AgentId listener
        The wrapped AgentId.
      • name

        private String name
        The role name.
    • Constructor Detail

      • Role

        public Role​(String name)
        Creates a new role with the specified name.
        Parameters:
        name - the role name.
      • Role

        public Role​(String name,
                    AgentId listener)
        Creates a new role with the specified name and AgentId.
        Parameters:
        name - the role name.
        listener - the wrapped AgentId.
    • Method Detail

      • setListener

        public void setListener​(AgentId listener)
        Sets the wrapped AgentId.
        Parameters:
        listener - the wrapped AgentId.
      • getListener

        public AgentId getListener()
        Returns the wrapped AgentId.
        Returns:
        the wrapped AgentId.
      • getName

        public String getName()
        Returns the role name.
        Returns:
        the role name.
      • setName

        public void setName​(String name)
        Sets the role name.
        Parameters:
        name - the role name.