|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.amis.pogamut.base.agent.AbstractAgent
cz.cuni.amis.pogamut.base.agent.AbstractObservingAgent<WORLD_VIEW>
cz.cuni.amis.pogamut.base.agent.AbstractGhostAgent<WORLD_VIEW>
cz.cuni.amis.pogamut.base.agent.AbstractEmbodiedAgent<WORLD_VIEW>
cz.cuni.amis.pogamut.ut2004.bot.AbstractUT2004Bot<WorldView>
cz.cuni.amis.pogamut.ut2004.bot.ThreadedUT2004Bot<WorldView>
cz.cuni.amis.pogamut.ut2004.bot.SyncUT2004Bot<cz.cuni.amis.pogamut.ut2004.agent.worldview.UT2004SyncLockableWorldView>
bot.EmotionalBot
bot.EmotionalFemaleBot
public class EmotionalFemaleBot
Main class for female emotional bot. Emotional bot is a finite state machine. The state code is triggered by doLogic() method. This method is invoked each time synchronous batch from GameBots arrive (default each 250 ms).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.base.agent.AbstractGhostAgent |
|---|
cz.cuni.amis.pogamut.base.agent.AbstractGhostAgent.AgentAct |
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.ThreadedUT2004Bot |
|---|
logicAlive, logicRunning, logicShouldBeAlive, logicShouldRun, logicThread |
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.AbstractAgent |
|---|
DEFAULT_AGENT_TIMEOUT_MILLIS |
| Constructor Summary | |
|---|---|
EmotionalFemaleBot(cz.cuni.amis.pogamut.base.utils.logging.AgentLogger logger,
cz.cuni.amis.pogamut.ut2004.agent.worldview.UT2004SyncLockableWorldView worldView,
cz.cuni.amis.pogamut.base.communication.commands.ICommandSerializer commandSerializer)
|
|
| Method Summary | |
|---|---|
void |
beginState(StateType newState)
Called when we entered some state. |
protected cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Initialize |
createInitializeCommand()
Here we can set up our bot - his name and so. |
protected void |
doLogic()
Main method for our bot reasoning. |
void |
endState(StateType endingState)
Called when we are leaving some state. |
private ProposalType |
pickProposal(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player agent)
This method checks if it is right time to make some proposal. |
private cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player |
pickTargetPlayer(java.util.Collection<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player> values)
Choose the player with the biggest feeling toward above 0 and opposite sex. |
protected void |
prePrepareBot()
Called after the bot is set up in the platform, but BEFORE he has body in the environment or before any message from the environment arrives. |
private void |
stateAgentAlone()
This state handles a situation when the agent is alone in the environment. |
private void |
stateApproachBoys()
Explore state for our girl. |
private void |
stateFollowAgentWith()
We are following agentWith and going to cinema/park or our home. |
private void |
stateInterrupted()
Here we handle interrupters. |
private void |
statePolymorphThreat()
Not yet used. |
private void |
stateWait()
Our waiting state. |
private void |
stateWithSomebody()
Main state for handling iteraction with agentWith. |
void |
timerFinished(TimerType type)
Called anytime some timer is finished - it is not 100% accurate. |
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.SyncUT2004Bot |
|---|
doBotLogic |
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.ThreadedUT2004Bot |
|---|
getBotAlive, getLastLogicRunMillis, getLogicPeriodMillis, kill, logicThreadCreated, pause, resume, setLogicPeriodMillis, start, stop |
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.AbstractUT2004Bot |
|---|
createPasswordReply, getGameInfo, getInitializeCommand, getPasswordReply, getWorldView, initCommandRequested, readyCommandRequested, setPassword |
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.AbstractGhostAgent |
|---|
getAct |
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.AbstractAgent |
|---|
addAgentJMXComponents, getAgentState, getAgentStopTimeoutMillis, getFolder, getJMX, getLogger, getName, log, logPlatform, setAgentState, setAgentState, setAgentStateDescription, terminate, terminate, terminate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmotionalFemaleBot(cz.cuni.amis.pogamut.base.utils.logging.AgentLogger logger,
cz.cuni.amis.pogamut.ut2004.agent.worldview.UT2004SyncLockableWorldView worldView,
cz.cuni.amis.pogamut.base.communication.commands.ICommandSerializer commandSerializer)
| Method Detail |
|---|
protected void prePrepareBot()
EmotionalBot
prePrepareBot in class EmotionalBotprotected cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.Initialize createInitializeCommand()
EmotionalBot
createInitializeCommand in class EmotionalBot
protected void doLogic()
throws cz.cuni.amis.pogamut.base.exceptions.PogamutException
EmotionalBot
doLogic in class EmotionalBotcz.cuni.amis.pogamut.base.exceptions.PogamutExceptionprivate ProposalType pickProposal(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player agent)
agent -
private cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player pickTargetPlayer(java.util.Collection<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Player> values)
values -
private void stateAgentAlone()
public void timerFinished(TimerType type)
EmotionalBot
timerFinished in class EmotionalBotprivate void stateFollowAgentWith()
private void stateInterrupted()
private void statePolymorphThreat()
private void stateWait()
private void stateWithSomebody()
private void stateApproachBoys()
public void beginState(StateType newState)
beginState in class EmotionalBotnewState - new statepublic void endState(StateType endingState)
endState in class EmotionalBotendingState - state we are leaving
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||