gecco.communication.server
Class RoleDefinition

java.lang.Object
  |
  +--gecco.communication.server.RoleDefinition

public class RoleDefinition
extends Object

This class defines a role, as viewed by the gecco.communication.server package.

Author:
Niklas Hallenfur

Constructor Summary
RoleDefinition(String r, boolean u)
          Constructor for the RoleDefinition object
 
Method Summary
 boolean isUnique()
          returns true if this role only can be assumed by one client at a time.
 String role()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleDefinition

public RoleDefinition(String r,
                      boolean u)
Constructor for the RoleDefinition object
Parameters:
r - Description of Parameter
u - Description of Parameter
Method Detail

isUnique

public boolean isUnique()
returns true if this role only can be assumed by one client at a time. returns false if any number of clients can assume this role
Returns:
The Unique value

role

public String role()
Description of the Method
Returns:
Description of the Returned Value