rero.ircfw
Class User

java.lang.Object
  extended byrero.ircfw.User
All Implemented Interfaces:
Comparable, FrameworkConstants

public class User
extends Object
implements Comparable, FrameworkConstants


Field Summary
protected  String address
           
protected  HashMap channels
           
protected  long idle
           
protected  String nickname
           
 
Fields inherited from interface rero.ircfw.interfaces.FrameworkConstants
$ADDRESS$, $DATA$, $EVENT$, $HOST$, $NICK$, $NUMERIC$, $PARMS$, $RAW$, $SERVER$, $SOURCE$, $TARGET$, $TYPE$, $USER$
 
Constructor Summary
User(String nick)
           
 
Method Summary
 int compareTo(Object b)
           
 String getAddress()
           
 HashMap getChannelData()
          returned HashMap -> key= value= can be used to determine users mode on a channel
 Set getChannels()
           
 String getFullAddress()
           
 int getIdleTime()
          returns user idle time in seconds
 int getModeFor(Channel ch)
           
 String getNick()
           
 boolean isIdle()
           
 void setAddress(String a)
           
 void setModeFor(Channel ch, int modes)
           
 void setNick(String n)
           
 String toString()
           
 void touch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nickname

protected String nickname

channels

protected HashMap channels

address

protected String address

idle

protected long idle
Constructor Detail

User

public User(String nick)
Method Detail

setNick

public void setNick(String n)

getNick

public String getNick()

compareTo

public int compareTo(Object b)
Specified by:
compareTo in interface Comparable

getChannelData

public HashMap getChannelData()
returned HashMap -> key= value= can be used to determine users mode on a channel


getChannels

public Set getChannels()

getModeFor

public int getModeFor(Channel ch)

setModeFor

public void setModeFor(Channel ch,
                       int modes)

setAddress

public void setAddress(String a)

getAddress

public String getAddress()

getFullAddress

public String getFullAddress()

touch

public void touch()

getIdleTime

public int getIdleTime()
returns user idle time in seconds


isIdle

public boolean isIdle()

toString

public String toString()