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.
-
NONCHANNEL_CHANNELID
- Default channel id.
-
TAgent()
- Creates uninitialized TAgent.
-
TAgent(TLAgent)
-
-
addBvListener(BvListener)
- Adds a recipient of BV notifications.
-
addTControlListener(TControlListener)
- Adds a recipient of the Tango system notifications.
-
addTDataListener(int, TDataListener)
- Adds a recipient of the session data from the given channels.
-
addTDataListener(TDataListener)
- Adds a recipient of the session data.
-
exit()
- Leaves Tango system.
-
getMasterName()
- Retrieves the master of this session.
-
getParticipantNames()
- Retrieves all participants of this session.
-
getUserName()
- Retrieves this user name.
-
getVersion()
- Tango version is specified in the following format:
<major version>.<minor version>.<maintenance release>.<bug fixes>
only . may count for compatibility.
-
isAudioAvailable()
- Checks whether this application is allowed to use audio at this moment.
-
isMaster()
- Checks whether this participant is the master of this session.
-
main(String[])
-
-
receive(AppEventMessage)
- Interface for low level mechanisms.
-
removeBvListener(BvListener)
- Removes a recipient of BV notifications.
-
removeTControlListener(TControlListener)
- Removes a recipient of the Tango system notifications.
-
removeTDataListener(TDataListener)
- Removes given listener from the listener list.
-
selectiveSend(int, String[], byte[])
- Sends data to the specified participants.
-
selectiveSend(String[], byte[])
- Sends data to the specified participants.
-
send(byte[])
- Sends data to the other participants of the same session.
-
send(int, byte[])
- Sends data to the other participants of the same session.
-
setTLAgent(TLAgent)
- Initializes TAgent created with nonparam constructor.
-
toString()
-
NONCHANNEL_CHANNELID
public static final int NONCHANNEL_CHANNELID
- Default channel id.
TAgent
public TAgent()
- Creates uninitialized TAgent.
- See Also:
- setTLAgent
TAgent
public TAgent(TLAgent a)
- Parameters:
- a - low level Tango system proxy
specific for the application type
- See Also:
- setTLAgent
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
setTLAgent
public void setTLAgent(TLAgent a)
- Initializes TAgent created with nonparam constructor.
- Parameters:
- a - low level Tango system proxy
specific for the application type
exit
public void exit()
- Leaves Tango system. Cannot join Tango again.
addTDataListener
public void addTDataListener(int chId,
TDataListener l)
- Adds a recipient of the session data from the given channels.
- See Also:
- send
addTDataListener
public void addTDataListener(TDataListener l)
- Adds a recipient of the session data.
- See Also:
- send
removeTDataListener
public void removeTDataListener(TDataListener l)
- Removes given listener from the listener list.
- See Also:
- addTDataListener
addTControlListener
public void addTControlListener(TControlListener l)
- Adds a recipient of the Tango system notifications.
removeTControlListener
public void removeTControlListener(TControlListener l)
- Removes a recipient of the Tango system notifications.
- See Also:
- addTControlListener
addBvListener
public void addBvListener(BvListener l)
- Adds a recipient of BV notifications.
removeBvListener
public void removeBvListener(BvListener l)
- Removes a recipient of BV notifications.
- See Also:
- addBvListener
receive
public final void receive(AppEventMessage m)
- Interface for low level mechanisms.
Note: This is not a public interface.
- See Also:
- TLAgent
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
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
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
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
getUserName
public String getUserName()
- Retrieves this user name.
- Returns:
- user name
getParticipantNames
public String[] getParticipantNames()
- Retrieves all participants of this session.
- Returns:
- participant names
getMasterName
public String getMasterName()
- Retrieves the master of this session.
- Returns:
- the master name
isMaster
public boolean isMaster()
- Checks whether this participant is the master of this session.
- Returns:
- master status
isAudioAvailable
public boolean isAudioAvailable()
- Checks whether this application is allowed to use audio at this moment.
- Returns:
- true if audio can be used
toString
public String toString()
- Overrides:
- toString in class Object
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index