From 5892f52e557ea4d6809030a72a209164a248e7bf Mon Sep 17 00:00:00 2001 From: Jochen Keil Date: Tue, 29 Jun 2010 21:58:58 +0200 Subject: [PATCH] an interface for objects which want to be observered by antview, that means which provide data to draw the global best tours --- aco/antview/AntViewObservable.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 aco/antview/AntViewObservable.java diff --git a/aco/antview/AntViewObservable.java b/aco/antview/AntViewObservable.java new file mode 100644 index 0000000..dc79206 --- /dev/null +++ b/aco/antview/AntViewObservable.java @@ -0,0 +1,22 @@ +package aco.antview; + +import java.util.Map; + +import aco.misc.CoordinatePair; + +public interface AntViewObservable { + + /* the number of cities to draw */ + public int getNumOfCities(); + + /* the iteration of the global best tour */ + public int getGlobalBestTourIteration(); + + /* the global best tours (probably only 5 or 10 of them) + * Key = GlobalBestTourLength, Value = GlobalBestTour[] */ + public Map getGlobalBestTourMap(); + + /* get a pair of integer coordinates for a given city */ + public CoordinatePair getCoordinates(int City); + +} -- 2.11.4.GIT