Skip to content

CL_Agent

Tal edited this page Dec 20, 2020 · 2 revisions

CL_Agent

Field Details

EPS

public static final double EPS See Also: Constant Field Values

Constructor Details

CL_Agent

public CL_Agent​(directed_weighted_graph g, int start_node)

Method Details

updateTargetPokemonsList

public void updateTargetPokemonsList​(CL_Pokemon pokemon)

isMoving

public boolean isMoving()

setNextNode

public boolean setNextNode​(int dest)

update

public void update​(java.lang.String json)

toJSON

public java.lang.String toJSON()

toString

public java.lang.String toString()

Overrides:

toString in class java.lang.Object

toString1

public java.lang.String toString1()

getTargetPokemonsList

public java.util.List<java.lang.String> getTargetPokemonsList()

setTargetPokemonsList

public void setTargetPokemonsList​(java.util.List<java.lang.String> targetPokemonsList)

clearAgentTargetList

public void clearAgentTargetList()

getSrcNode

public int getSrcNode()

setCurrNode

public void setCurrNode​(int src)

getID

public int getID()

getLocation

public geo_location getLocation()

getPic

public java.lang.String getPic()

getValue

public double getValue()

getNextNode

public int getNextNode()

getSpeed

public double getSpeed()

setSpeed

public void setSpeed​(double v)

getCurrPokemon

public CL_Pokemon getCurrPokemon()

setCurrPokemon

public void setCurrPokemon​(CL_Pokemon currPokemon)

set_SDT

public void set_SDT​(long ddtt)

getCurrEdge

public edge_data getCurrEdge()

get_sg_dt

public long get_sg_dt()

set_sg_dt

public void set_sg_dt​(long _sg_dt)