Skip to content

Container

neta-r edited this page Dec 19, 2020 · 5 revisions

Container

Implemets Comparable.

Data Structor & Fields:

  • A CL_Pokemon pok which represents the pokemon that was chosen.
  • A CL_Agent agent which represents the pokeball that was chosen.
  • A double dist which represents the distance between them.
  • A dw_graph_algorithms algo which represents the graph.

Functions:

  • A regular constructor. (The dist field is determined by the shortestPathDist function in the graph Algorithms.
  • Getters to pok , agent and dist.
  • An implemintation of the compareTo function that comparing two containers by their dist field.

Menu

Clone this wiki locally