Package jadex.extension.agr
Class MGroupType
- java.lang.Object
-
- jadex.extension.agr.MGroupType
-
public class MGroupType extends java.lang.Object
An AGR group type.
-
-
Constructor Summary
Constructors Constructor Description MGroupType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMRoleType(MRoleType role)
Add a role to this group type.MRoleType[]
getMRoleTypes()
Get the roles of this group type.java.lang.String
getName()
Get the name of the group type.void
removeMRoleType(MRoleType role)
Remove a role from this group type.void
setName(java.lang.String name)
Set the name of the group type.java.lang.String
toString()
Get a string representation of this group type.
-
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Set the name of the group type.- Parameters:
name
- The name of the group type.
-
getName
public java.lang.String getName()
Get the name of the group type.- Returns:
- The name of the group type.
-
getMRoleTypes
public MRoleType[] getMRoleTypes()
Get the roles of this group type.- Returns:
- An array of roles (if any).
-
addMRoleType
public void addMRoleType(MRoleType role)
Add a role to this group type.- Parameters:
role
- The role to add.
-
removeMRoleType
public void removeMRoleType(MRoleType role)
Remove a role from this group type.- Parameters:
role
- The role to remove.
-
toString
public java.lang.String toString()
Get a string representation of this group type.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of this group type.
-
-