Fruit - YosefTwito/PackIt GitHub Wiki

  • This class represents a Fruit.
  • Can be a banana or an apple.
  • @authors YosefTwito and EldarTakach

The Fruit:

Fruit's parameters:

  1. double value - of the fruit.
  2. int type - apple or banana.
  3. Point3D pos - location.
  4. int from - from which node it comes.
  5. int to - to which node it goes.
  6. int tag - to mark fruits that are being visited.

The functions of the Fruit are:

Getters/Setters :

  • to adjust an existing Fruit.

Constructors:

  1. Fruit().
  2. Fruit(value, type ,pos).