jadex.application.space.agr
Class MRoleType

java.lang.Object
  extended by jadex.application.space.agr.MRoleType

public class MRoleType
extends Object

An AGR role.


Field Summary
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  String name
          The name.
 
Constructor Summary
MRoleType()
          Create a new role.
 
Method Summary
 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.
 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(String name)
          Set the name of the role.
 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 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(String name)
Set the name of the role.

Parameters:
name - The name of the role.

getName

public 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 String toString()
Get a string representation of this group type.

Overrides:
toString in class Object
Returns:
A string representation of this group type.


Copyright © 2010. All Rights Reserved.