|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Participant
Represents a participant in the conversation.
Method Summary | ||
---|---|---|
|
addAgent(String name,
Agent<T> agent)
Set an agent instance in the communication. |
|
|
getAgent(String name)
Gets the agent from its name. |
|
Collection<Agent> |
getAgents()
Retrieve the agent instance pertaining to the communication. |
|
|
getJoinable()
Return the Joinable object represents this Participant. |
|
String |
getName()
Return the user name of the participant. |
|
String |
getNickName()
Return the nick name of the participant. |
|
|
removeAgent(String name)
Method to remove an agent from the participant.. |
|
void |
setName(String name)
Set the user name of the participant. |
|
void |
setNickName(String name)
Set the nick name of the participant. |
Method Detail |
---|
void setName(String name)
name
- Name of the participant.String getName()
void setNickName(String name)
name
- Nick name of the participant.String getNickName()
<J extends javax.media.mscontrol.join.Joinable> J getJoinable()
Joinable
object represents this Participant.
Depending on the type of the Participant, the type of the
Joinable
would also change. For example,
A UserParticipant
will return an instance of
NetworkConnection
, where as a MediaParticipant
will return an instance of MediaGroup
Joinable
.<T> void addAgent(String name, Agent<T> agent)
T
- Type of Agent.agent
- An instance of Agent.Agent
Collection<Agent> getAgents()
T
- Type of Agent being returned.
<T> Agent<T> getAgent(String name)
name
- Name of the Agent
<T> Agent<T> removeAgent(String name)
T
- typename
- name of the agent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |