com.rubecula.darwin.examples.travelingsalesman
Class ClientMap

java.lang.Object
  extended by com.rubecula.darwin.examples.travelingsalesman.ClientMap

public class ClientMap
extends java.lang.Object

This is a map of all the clients.

Author:
Robin Hillyard TODO consider extending AToString

Constructor Summary
ClientMap(Environment environment)
          Primary Constructor
 
Method Summary
 Client addClient(java.lang.String key, Client value)
           
 java.util.Map<java.lang.String,Client> getMap()
           
 void setMap(java.util.Map<java.lang.String,Client> map)
           
 void updateEnvironment()
          XXX consider making this private
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientMap

public ClientMap(Environment environment)
Primary Constructor

Parameters:
environment -
Method Detail

addClient

public Client addClient(java.lang.String key,
                        Client value)
Parameters:
key -
value -
Returns:
the previous client for the given key (or null)

getMap

public java.util.Map<java.lang.String,Client> getMap()
Returns:
the map as set by setMap(Map).

setMap

public void setMap(java.util.Map<java.lang.String,Client> map)
Parameters:
map -

updateEnvironment

public void updateEnvironment()
XXX consider making this private



Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.