com.rubecula.darwin.examples.travelingsalesman
Class ClientMap
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientMap
public ClientMap(Environment environment)
- Primary Constructor
- Parameters:
environment
-
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.