de.fhkl.zw.mkup.rattrap
Class Results

java.lang.Object
  extended by de.fhkl.zw.mkup.rattrap.Results

public class Results
extends java.lang.Object

This class calculates the coordinates for the visualization.

Author:
Martin Schultz

Constructor Summary
Results()
          Standard constructor.
Results(XMLClient c)
          The constructor initializes the XMLRPC Client
 
Method Summary
 void connectAndGet()
          The method connects to the XMLRPC Client und stores the resultset.
 void convertHarvesterCoordinates(java.util.Vector v)
          Converts the world grid coordinates in pixel coordinates.
 java.util.Hashtable convertHomeCoordinates(java.util.Hashtable h)
          The method converts global coordinates to pixel coordinates.
 void convertSpamCoordinates(java.util.Vector v)
          Converts the world grid coordinates in pixel coordinates.
 java.util.Vector getHarvesterCoords()
           
 java.util.Vector getResults()
           
 java.util.Vector getSpamCoords()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Results

public Results(XMLClient c)
The constructor initializes the XMLRPC Client

Parameters:
c - - the XMLRPC-Client

Results

public Results()
Standard constructor.

Method Detail

connectAndGet

public void connectAndGet()
The method connects to the XMLRPC Client und stores the resultset.


getResults

public java.util.Vector getResults()
Returns:
the resultset

convertHomeCoordinates

public java.util.Hashtable convertHomeCoordinates(java.util.Hashtable h)
The method converts global coordinates to pixel coordinates.

Parameters:
h: - This hashtable contains the global coordinates of the user's homecountry.
Returns:
A hashtable containing the coordinats for the worldmap of the user's homecountry.

convertSpamCoordinates

public void convertSpamCoordinates(java.util.Vector v)
Converts the world grid coordinates in pixel coordinates. This method is meant for the spam data.

Parameters:
v - The Vector containing the grid coordinates.

convertHarvesterCoordinates

public void convertHarvesterCoordinates(java.util.Vector v)
Converts the world grid coordinates in pixel coordinates. This method is meant for the harvester data.

Parameters:
v - The Vector containing the grid coordinates.

getHarvesterCoords

public java.util.Vector getHarvesterCoords()
Returns:
the converted coordinates for harvesters in a Vector.

getSpamCoords

public java.util.Vector getSpamCoords()
Returns:
the converted coordinates for spammers in a Vector.