Smack

org.jivesoftware.smackx.workgroup.agent
Class Agent

java.lang.Object
  extended by org.jivesoftware.smackx.workgroup.agent.Agent

public class Agent
extends Object

An agent represents the agent role in a workgroup queue.

Author:
Matt Tucker

Constructor Summary
Agent(String user, int currentChats, int maxChats, Presence presence)
          Creates an Agent.
 
Method Summary
 int getCurrentChats()
          Return the number of chats this agent is currently in.
 int getMaxChats()
          Return the maximum number of chats this agent can participate in.
 Presence getPresence()
          Return this agent's presence.
 String getUser()
          Return this agent's JID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Agent

public Agent(String user,
             int currentChats,
             int maxChats,
             Presence presence)
Creates an Agent.

Parameters:
user - the agent's JID.
currentChats - the number of chats the agent is currently in.
maxChats - the maximum number of chats the agent is allowed in.
presence - the agent's presence.
Method Detail

getUser

public String getUser()
Return this agent's JID.

Returns:
this agent's JID.

getMaxChats

public int getMaxChats()
Return the maximum number of chats this agent can participate in.

Returns:
the maximum number of chats this agent can participate in.

getCurrentChats

public int getCurrentChats()
Return the number of chats this agent is currently in.

Returns:
the number of chats this agent is currently in.

getPresence

public Presence getPresence()
Return this agent's presence.

Returns:
this agent's presence.

Smack

Copyright © 2003 Jive Software.