Package jadex.extension.agr
Class MRoleType
- java.lang.Object
-
- jadex.extension.agr.MRoleType
-
public class MRoleType extends java.lang.ObjectAn AGR role.
-
-
Constructor Summary
Constructors Constructor Description MRoleType()Create a new role.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMax()Get the maximum number of agents allowed for this role (-1 for no restriction).intgetMin()Get the minimum number of agents required for this role.java.lang.StringgetName()Get the name of the role.voidsetMax(int max)Set the maximum number of agents allowed for this role (-1 for no restriction).voidsetMin(int min)Set the minimum number of agents required for this role.voidsetName(java.lang.String name)Set the name of the role.java.lang.StringtoString()Get a string representation of this group type.
-
-
-
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:
toStringin classjava.lang.Object- Returns:
- A string representation of this group type.
-
-