public class MRoleType
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
MRoleType()
Create a new role.
|
Modifier and Type | Method and 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.
|
protected java.lang.String name
protected int min
protected int max
public void setName(java.lang.String name)
name
- The name of the role.public java.lang.String getName()
public void setMin(int min)
min
- The minimum number of agents required for this role.public int getMin()
public void setMax(int max)
max
- The maximum number of agents allowed for this role (-1 for no restriction).public int getMax()
public java.lang.String toString()
toString
in class java.lang.Object