RobotInterface - VadimKachevski/OOP_Ex3 GitHub Wiki

robotInterface

This is an interface which specify the behaviour of a Robot by these methods:

public void setPath(List<node_data> path) - With a given list of nodes will set the path for the bot to take

public List<node_data> getPath() - returns the current path

public void setGrap(graph g) -Sets the the graph for the bot

public int getId() -returns the ID of the bot

public node_data getCurrNode() -returns the current node that the bot is staying on

public void setCurrNode(node_data currNode) -Sets the current node to the bot

public int getMoney() -return the money of the bot

public void setMoney(int money) -Sets the value of the bot

public Point3D getPos() -Sets the money for the bot

public void setPos(Point3D pos) -Sets the Current position of the bot

public double getSpeed() - Returns the current speed of the bot

public void setSpeed(double speed) - Set the speed of the bot

public void botFromJSON(String json) - With a given string tries to parse it and set the data from the json to the bot

⚠️ **GitHub.com Fallback** ⚠️