Robot - YosefTwito/PackIt GitHub Wiki

  • This class represents Robot.
  • the robot knows: where he is, and where he is going, the score (fruits) he collect.
  • @authors YosefTwito and EldarTakach

The Robot:

Robots's parameters:

  1. int src - the source-node of the Robot.
  2. int dest - the destination-node of this Robot.
  3. int id - id of the robot.
  4. double value - the value of fruits collected.
  5. Point3D pos - location of the Robot.
  6. int speed - weight he can move per second.

The functions of the Robot are:

Getters/Setters :

  • to adjust an existing Robot.

Constructors:

  1. Robot().
  2. Robot(id, src, dest, pos, value, s).

robot