public class ThoughtModel extends java.lang.Object implements IThoughtModel, java.io.Serializable
Constructor and Description |
---|
ThoughtModel(IAgentModel agentModel,
IGlobalMap worldModel,
IFlagModel flags) |
Modifier and Type | Method and Description |
---|---|
IAgentModel |
getAgentModel()
Retrieve the agent model.
|
java.lang.String |
getCameraTilt() |
IPlayer |
getClosestOwnPlayerAtBall()
Get the player of the own team (including myself) which is closest to the
ball
|
IFlagModel |
getFlags()
Retrieve the flags.
|
java.util.List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D[]> |
getInfluencePolys()
Method gives a list of Polygons around this player and the ball.
|
float[][] |
getKickDirectionProfile() |
java.util.List<IVisibleObject> |
getObstacles() |
IPlayer |
getOpponentAtBall() |
java.util.List<IPlayer> |
getOpponentsAtBallList()
Get a list of all opponents, sorted by distance from the ball position
|
java.util.List<IPlayer> |
getOpponentsAtMeList()
Get a list of all opponents, sorted by distance from the own position
|
java.util.List<IPlayer> |
getPlayersAtBallList()
Get a list of all players, sorted by distance from the ball position
|
java.util.List<IPlayer> |
getPlayersAtMeList()
Get a list of all players, sorted by distance from the own position
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getPointToKickBall()
Get a list of points around ball in order of priority to kick to.
|
Angle |
getPreferredKickDirection() |
java.lang.String |
getRemoteCommand() |
IRole |
getRole() |
IRoleManager |
getRoleManager() |
IPlayer |
getTeammateAtBall()
Get the team-mate which is closest to the ball
|
java.util.List<IPlayer> |
getTeammatesAtBall()
Get a list of all team-mates, sorted by distance from the ball position
|
IGlobalMap |
getWorldModel()
Retrieve the world model.
|
boolean |
ownTeammateHasBall(double delta) |
void |
setRoleManager(IRoleManager manager,
IRole role) |
boolean |
update(IPerception perception)
Update models based on new perception information.
|
public ThoughtModel(IAgentModel agentModel, IGlobalMap worldModel, IFlagModel flags)
public IAgentModel getAgentModel()
IThoughtModel
getAgentModel
in interface IThoughtModel
public IGlobalMap getWorldModel()
IThoughtModel
getWorldModel
in interface IThoughtModel
public IFlagModel getFlags()
IThoughtModel
getFlags
in interface IThoughtModel
public boolean update(IPerception perception)
IThoughtModel
update
in interface IThoughtModel
perception
- The actual perception or null
if only the
internal state of the IThoughtModel should be refreshedpublic java.util.List<IVisibleObject> getObstacles()
getObstacles
in interface IThoughtModel
public java.util.List<IPlayer> getOpponentsAtMeList()
IThoughtModel
getOpponentsAtMeList
in interface IThoughtModel
public java.util.List<IPlayer> getPlayersAtMeList()
IThoughtModel
getPlayersAtMeList
in interface IThoughtModel
public java.util.List<IPlayer> getTeammatesAtBall()
IThoughtModel
getTeammatesAtBall
in interface IThoughtModel
public IPlayer getTeammateAtBall()
IThoughtModel
getTeammateAtBall
in interface IThoughtModel
public java.util.List<IPlayer> getOpponentsAtBallList()
IThoughtModel
getOpponentsAtBallList
in interface IThoughtModel
public IPlayer getOpponentAtBall()
getOpponentAtBall
in interface IThoughtModel
public java.util.List<IPlayer> getPlayersAtBallList()
IThoughtModel
getPlayersAtBallList
in interface IThoughtModel
public IPlayer getClosestOwnPlayerAtBall()
IThoughtModel
getClosestOwnPlayerAtBall
in interface IThoughtModel
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPointToKickBall()
IThoughtModel
getPointToKickBall
in interface IThoughtModel
public java.util.List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D[]> getInfluencePolys()
IThoughtModel
getInfluencePolys
in interface IThoughtModel
public float[][] getKickDirectionProfile()
getKickDirectionProfile
in interface IThoughtModel
public Angle getPreferredKickDirection()
getPreferredKickDirection
in interface IThoughtModel
public IRoleManager getRoleManager()
getRoleManager
in interface IThoughtModel
public IRole getRole()
getRole
in interface IThoughtModel
public void setRoleManager(IRoleManager manager, IRole role)
public boolean ownTeammateHasBall(double delta)
ownTeammateHasBall
in interface IThoughtModel
delta
- how much closer has the opponent to be than own playerpublic java.lang.String getRemoteCommand()
getRemoteCommand
in interface IThoughtModel
public java.lang.String getCameraTilt()
getCameraTilt
in interface IThoughtModel