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

Field Summary
private  String rolename
          Description of the Field
private  boolean unique
          Description of the Field
 
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, registerNatives, toString, wait, wait, wait
 

Field Detail

rolename

private String rolename
Description of the Field

unique

private boolean unique
Description of the Field
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