|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule<UT2004Bot>
cz.cuni.amis.pogamut.ut2004.teamcomm.bot.UT2004TCClient
public class UT2004TCClient
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule |
|---|
act, worldView |
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
|---|
agent, controller, eventBus, log |
| Constructor Summary | |
|---|---|
UT2004TCClient(UT2004Bot bot,
cz.cuni.amis.pogamut.base.communication.worldview.IWorldView teamWorldView)
|
|
| Method Summary | |
|---|---|
protected void |
beginMessage(BeginMessage event)
|
protected void |
cleanUp()
|
protected void |
endMessage(EndMessage event)
|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getBotId()
|
int |
getBotTeam()
|
TCChannel |
getChannel(int channelId)
Returns details about bots/channels connected to the team. |
Set<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId> |
getConnectedAllBots()
Returns set of all bots connected to the same TC server. |
Set<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId> |
getConnectedChannelBots(int channelId)
Returns set of bots connected to the channel of 'channelId' of the same TC server. |
cz.cuni.amis.utils.flag.Flag<Boolean> |
getConnectedFlag()
|
Set<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId> |
getConnectedTeamBots()
Returns set of bots of the same team connected to the same TC server. |
List<TCMessage> |
getMessages()
TCMessages that came since the last EndMessage, i.e., since the last update, i.e., since the last logic() iteration. |
long |
getSimTime()
|
TCTeam |
getTeam()
Returns details about bots/channels connected to the team. |
boolean |
isChannelExist(int channelId)
|
boolean |
isConnected()
Whether your bot is connected to the TC server. |
boolean |
isConnected(Player bot)
|
boolean |
isConnected(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId)
|
boolean |
isConnectedToChannel(Player bot,
int channelId)
|
boolean |
isConnectedToChannel(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId,
int channelId)
|
boolean |
isConnectedToMyTeam(Player bot)
|
boolean |
isConnectedToMyTeam(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId)
|
TCMinaClient.RequestFuture<TCInfoTeamChannelCreated> |
requestCreateChannel()
Request to create a new channel, the channel will gets channelId assigned by TCMinaServer. |
TCMinaClient.RequestFuture<TCInfoTeamChannelDestroyed> |
requestDestroyChannel(int channelId)
Request to destroy an existing channel. |
TCMinaClient.RequestFuture<TCInfoStatus> |
requestGetStatus()
Request TCInfoStatus update from TCMinaServer. |
TCMinaClient.RequestFuture<TCInfoTeamChannelBotJoined> |
requestJoinChannel(int channelId)
Request to join an existing channel. |
TCMinaClient.RequestFuture<TCInfoTeamChannelBotLeft> |
requestLeaveChannel(int channelId)
Request to leave an existing channel. |
protected void |
selfUpdate(cz.cuni.amis.pogamut.base.communication.worldview.object.event.WorldObjectUpdatedEvent<Self> event)
|
boolean |
sendToAll(cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
|
boolean |
sendToAll(TCMessageData data)
|
boolean |
sendToAllOthers(cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
|
boolean |
sendToAllOthers(TCMessageData data)
|
boolean |
sendToBot(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId bot,
cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
|
boolean |
sendToBot(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId bot,
TCMessageData data)
|
boolean |
sendToChannel(int channelId,
cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
|
boolean |
sendToChannel(int channelId,
TCMessageData data)
|
boolean |
sendToChannelOthers(int channelId,
cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
|
boolean |
sendToChannelOthers(int channelId,
TCMessageData data)
|
boolean |
sendToTeam(cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
|
boolean |
sendToTeam(TCMessageData data)
|
boolean |
sendToTeamOthers(cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
|
boolean |
sendToTeamOthers(TCMessageData data)
|
protected void |
tcControlServerAlive(TCControlServerAlive event)
|
protected void |
tcMessage(TCMessage event)
|
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
|---|
getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UT2004TCClient(UT2004Bot bot,
cz.cuni.amis.pogamut.base.communication.worldview.IWorldView teamWorldView)
| Method Detail |
|---|
public boolean isConnected()
public cz.cuni.amis.utils.flag.Flag<Boolean> getConnectedFlag()
public boolean isConnected(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId)
public boolean isConnected(Player bot)
public boolean isConnectedToMyTeam(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId)
public boolean isConnectedToMyTeam(Player bot)
public boolean isConnectedToChannel(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId,
int channelId)
public boolean isConnectedToChannel(Player bot,
int channelId)
public boolean isChannelExist(int channelId)
public Set<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId> getConnectedAllBots()
public Set<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId> getConnectedTeamBots()
public Set<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId> getConnectedChannelBots(int channelId)
public TCTeam getTeam()
public TCChannel getChannel(int channelId)
public TCMinaClient.RequestFuture<TCInfoTeamChannelCreated> requestCreateChannel()
TCMinaServer.
When created, you will be automatically added to it as its creator.
public TCMinaClient.RequestFuture<TCInfoTeamChannelDestroyed> requestDestroyChannel(int channelId)
channelId -
public TCMinaClient.RequestFuture<TCInfoStatus> requestGetStatus()
TCInfoStatus update from TCMinaServer.
public TCMinaClient.RequestFuture<TCInfoTeamChannelBotJoined> requestJoinChannel(int channelId)
channelId -
public TCMinaClient.RequestFuture<TCInfoTeamChannelBotLeft> requestLeaveChannel(int channelId)
channelId -
public boolean sendToAll(cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
public boolean sendToAll(TCMessageData data)
public boolean sendToTeam(cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
public boolean sendToTeam(TCMessageData data)
public boolean sendToChannel(int channelId,
cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
public boolean sendToChannel(int channelId,
TCMessageData data)
public boolean sendToBot(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId bot,
cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
public boolean sendToBot(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId bot,
TCMessageData data)
public boolean sendToAllOthers(cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
public boolean sendToAllOthers(TCMessageData data)
public boolean sendToTeamOthers(cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
public boolean sendToTeamOthers(TCMessageData data)
public boolean sendToChannelOthers(int channelId,
cz.cuni.amis.utils.token.IToken messageType,
Serializable data)
public boolean sendToChannelOthers(int channelId,
TCMessageData data)
public List<TCMessage> getMessages()
TCMessages that came since the last EndMessage, i.e., since the last update, i.e., since the last logic() iteration.
This list is auto-emptied every EndMessage.
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getBotId()
public int getBotTeam()
public long getSimTime()
protected void selfUpdate(cz.cuni.amis.pogamut.base.communication.worldview.object.event.WorldObjectUpdatedEvent<Self> event)
protected void beginMessage(BeginMessage event)
protected void endMessage(EndMessage event)
protected void tcControlServerAlive(TCControlServerAlive event)
protected void tcMessage(TCMessage event)
protected void cleanUp()
cleanUp in class cz.cuni.amis.pogamut.base.agent.module.AgentModule<UT2004Bot>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||