Package jadex.extension.agr
Class MRoleType
- java.lang.Object
- 
- jadex.extension.agr.MRoleType
 
- 
 public class MRoleType extends java.lang.ObjectAn AGR role.
- 
- 
Constructor SummaryConstructors Constructor Description MRoleType()Create a new role.
 - 
Method SummaryAll 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- 
setNamepublic void setName(java.lang.String name) Set the name of the role.- Parameters:
- name- The name of the role.
 
 - 
getNamepublic java.lang.String getName() Get the name of the role.- Returns:
- The name of the role.
 
 - 
setMinpublic 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.
 
 - 
getMinpublic int getMin() Get the minimum number of agents required for this role.- Returns:
- The minimum number of agents required for this role.
 
 - 
setMaxpublic 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).
 
 - 
getMaxpublic 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).
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this group type.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- A string representation of this group type.
 
 
- 
 
-