All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class webwisdom.tango.TAgent

java.lang.Object
   |
   +----webwisdom.tango.TAgent

public class TAgent
extends Object
implements TLListener
General Tango system proxy. This interface is the same for all application types.


Variable Index

 o NONCHANNEL_CHANNELID
Default channel id.

Constructor Index

 o TAgent()
Creates uninitialized TAgent.
 o TAgent(TLAgent)

Method Index

 o addBvListener(BvListener)
Adds a recipient of BV notifications.
 o addTControlListener(TControlListener)
Adds a recipient of the Tango system notifications.
 o addTDataListener(int, TDataListener)
Adds a recipient of the session data from the given channels.
 o addTDataListener(TDataListener)
Adds a recipient of the session data.
 o exit()
Leaves Tango system.
 o getMasterName()
Retrieves the master of this session.
 o getParticipantNames()
Retrieves all participants of this session.
 o getUserName()
Retrieves this user name.
 o getVersion()
Tango version is specified in the following format:
<major version>.<minor version>.<maintenance release>.<bug fixes>
only . may count for compatibility.
 o isAudioAvailable()
Checks whether this application is allowed to use audio at this moment.
 o isMaster()
Checks whether this participant is the master of this session.
 o main(String[])
 o receive(AppEventMessage)
Interface for low level mechanisms.
 o removeBvListener(BvListener)
Removes a recipient of BV notifications.
 o removeTControlListener(TControlListener)
Removes a recipient of the Tango system notifications.
 o removeTDataListener(TDataListener)
Removes given listener from the listener list.
 o selectiveSend(int, String[], byte[])
Sends data to the specified participants.
 o selectiveSend(String[], byte[])
Sends data to the specified participants.
 o send(byte[])
Sends data to the other participants of the same session.
 o send(int, byte[])
Sends data to the other participants of the same session.
 o setTLAgent(TLAgent)
Initializes TAgent created with nonparam constructor.
 o toString()

Variables

 o NONCHANNEL_CHANNELID
 public static final int NONCHANNEL_CHANNELID
Default channel id.

Constructors

 o TAgent
 public TAgent()
Creates uninitialized TAgent.

See Also:
setTLAgent
 o TAgent
 public TAgent(TLAgent a)
Parameters:
a - low level Tango system proxy specific for the application type
See Also:
setTLAgent

Methods

 o getVersion
 public static String getVersion()
Tango version is specified in the following format:
<major version>.<minor version>.<maintenance release>.<bug fixes>
only . may count for compatibility.

Returns:
Tango version
 o setTLAgent
 public void setTLAgent(TLAgent a)
Initializes TAgent created with nonparam constructor.

Parameters:
a - low level Tango system proxy specific for the application type
 o exit
 public void exit()
Leaves Tango system. Cannot join Tango again.

 o addTDataListener
 public void addTDataListener(int chId,
                              TDataListener l)
Adds a recipient of the session data from the given channels.

See Also:
send
 o addTDataListener
 public void addTDataListener(TDataListener l)
Adds a recipient of the session data.

See Also:
send
 o removeTDataListener
 public void removeTDataListener(TDataListener l)
Removes given listener from the listener list.

See Also:
addTDataListener
 o addTControlListener
 public void addTControlListener(TControlListener l)
Adds a recipient of the Tango system notifications.

 o removeTControlListener
 public void removeTControlListener(TControlListener l)
Removes a recipient of the Tango system notifications.

See Also:
addTControlListener
 o addBvListener
 public void addBvListener(BvListener l)
Adds a recipient of BV notifications.

 o removeBvListener
 public void removeBvListener(BvListener l)
Removes a recipient of BV notifications.

See Also:
addBvListener
 o receive
 public final void receive(AppEventMessage m)
Interface for low level mechanisms.

Note: This is not a public interface.

See Also:
TLAgent
 o send
 public void send(int chId,
                  byte chData[])
Sends data to the other participants of the same session. This interface facilitate creation of compound applications containing multiple subapplications. Do not use multiple channels for a single application.

Parameters:
chId - channel to send data into
chData - data to be sent
See Also:
addTDataListener
 o selectiveSend
 public void selectiveSend(int chId,
                           String part[],
                           byte chData[])
Sends data to the specified participants. Do not use multiple channels for a single application.

Parameters:
chId - channel to send data into
part - recipient names
chData - data to be sent
See Also:
send
 o send
 public void send(byte data[])
Sends data to the other participants of the same session.

Parameters:
data - data to be sent
See Also:
addTDataListener
 o selectiveSend
 public void selectiveSend(String part[],
                           byte data[])
Sends data to the specified participants.

Parameters:
part - recipient names
data - data to be sent
See Also:
send
 o getUserName
 public String getUserName()
Retrieves this user name.

Returns:
user name
 o getParticipantNames
 public String[] getParticipantNames()
Retrieves all participants of this session.

Returns:
participant names
 o getMasterName
 public String getMasterName()
Retrieves the master of this session.

Returns:
the master name
 o isMaster
 public boolean isMaster()
Checks whether this participant is the master of this session.

Returns:
master status
 o isAudioAvailable
 public boolean isAudioAvailable()
Checks whether this application is allowed to use audio at this moment.

Returns:
true if audio can be used
 o toString
 public String toString()
Overrides:
toString in class Object
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index