ConForM.CoopnTools.CoKer
Class CoopnUser

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.CoopnUser
All Implemented Interfaces:
java.lang.Cloneable

public class CoopnUser
extends java.lang.Object
implements java.lang.Cloneable

CO-OPN users. Objects of this class encapsulate a user tool.


Constructor Summary
CoopnUser(java.lang.String toolName)
          Simple constructor.
CoopnUser(java.lang.String toolName, CoopnTool tool)
          Simple constructor.
CoopnUser(java.lang.String userName, java.lang.String hostName, java.lang.String toolName)
          Constructor.
CoopnUser(java.lang.String userName, java.lang.String hostName, java.lang.String toolName, CoopnTool tool)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Returns a clone user.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getHostName()
          Return the host name associated with this user.
 CoopnTool getTool()
          Return the tool associated with this user, or null if no tools are associated.
 java.lang.String getToolName()
          Return the tool name associated with this user.
 java.lang.String getUserName()
          Return the user name associated with this user.
 int hashCode()
           
 void setTool(CoopnTool tool)
          Set the tool associated with this user, or null if no tools are associated.
 java.lang.String toString()
          Returns a String that represents this user.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoopnUser

public CoopnUser(java.lang.String toolName)
          throws java.lang.IllegalArgumentException
Simple constructor.
Parameters:
toolName - the tool name
Throws:
java.lang.IllegalArgumentException - At least one of the argument is a null reference.

CoopnUser

public CoopnUser(java.lang.String userName,
                 java.lang.String hostName,
                 java.lang.String toolName)
          throws java.lang.IllegalArgumentException
Constructor.
Parameters:
userName - the user name
hostName - the host name
toolName - the tool name
Throws:
java.lang.IllegalArgumentException - At least one of the argument is a null reference.

CoopnUser

public CoopnUser(java.lang.String toolName,
                 CoopnTool tool)
          throws java.lang.IllegalArgumentException
Simple constructor.
Parameters:
toolName - the tool name
Throws:
java.lang.IllegalArgumentException - At least one of the argument is a null reference.

CoopnUser

public CoopnUser(java.lang.String userName,
                 java.lang.String hostName,
                 java.lang.String toolName,
                 CoopnTool tool)
          throws java.lang.IllegalArgumentException
Constructor.
Parameters:
userName - the user name
hostName - the host name
toolName - the tool name
Throws:
java.lang.IllegalArgumentException - At least one of the argument is a null reference.
Method Detail

toString

public java.lang.String toString()
Returns a String that represents this user.
Overrides:
toString in class java.lang.Object

getUserName

public java.lang.String getUserName()
Return the user name associated with this user.

getHostName

public java.lang.String getHostName()
Return the host name associated with this user.

getToolName

public java.lang.String getToolName()
Return the tool name associated with this user.

getTool

public CoopnTool getTool()
Return the tool associated with this user, or null if no tools are associated.

setTool

public void setTool(CoopnTool tool)
Set the tool associated with this user, or null if no tools are associated.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public java.lang.Object clone()
Returns a clone user.
Overrides:
clone in class java.lang.Object