Class MRoleType


  • public class MRoleType
    extends java.lang.Object
    An AGR role.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int max
      The maximum number of agents allowed for this role (-1 for no restriction).
      protected int min
      The minimum number of agents required for this role.
      protected java.lang.String name
      The name.
    • Constructor Summary

      Constructors 
      Constructor Description
      MRoleType()
      Create a new role.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMax()
      Get the maximum number of agents allowed for this role (-1 for no restriction).
      int getMin()
      Get the minimum number of agents required for this role.
      java.lang.String getName()
      Get the name of the role.
      void setMax​(int max)
      Set the maximum number of agents allowed for this role (-1 for no restriction).
      void setMin​(int min)
      Set the minimum number of agents required for this role.
      void setName​(java.lang.String name)
      Set the name of the role.
      java.lang.String toString()
      Get a string representation of this group type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
        The name.
      • min

        protected int min
        The minimum number of agents required for this role.
      • max

        protected int max
        The maximum number of agents allowed for this role (-1 for no restriction).
    • Constructor Detail

      • MRoleType

        public MRoleType()
        Create a new role.
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Set the name of the role.
        Parameters:
        name - The name of the role.
      • getName

        public java.lang.String getName()
        Get the name of the role.
        Returns:
        The name of the role.
      • setMin

        public void setMin​(int min)
        Set the minimum number of agents required for this role.
        Parameters:
        min - The minimum number of agents required for this role.
      • getMin

        public int getMin()
        Get the minimum number of agents required for this role.
        Returns:
        The minimum number of agents required for this role.
      • setMax

        public void setMax​(int max)
        Set the maximum number of agents allowed for this role (-1 for no restriction).
        Parameters:
        max - The maximum number of agents allowed for this role (-1 for no restriction).
      • getMax

        public int getMax()
        Get the maximum number of agents allowed for this role (-1 for no restriction).
        Returns:
        The maximum number of agents allowed for this role (-1 for no restriction).
      • toString

        public java.lang.String toString()
        Get a string representation of this group type.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this group type.