com.rubecula.darwin.examples.travelingsalesman
Class TravelTimes_Map

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.examples.travelingsalesman.TravelTimes_Map
All Implemented Interfaces:
TravelTimes, net.sf.tostring0.IToString

public class TravelTimes_Map
extends net.sf.tostring0.AToString
implements TravelTimes

Author:
Robin Hillyard

Field Summary
 
Fields inherited from interface net.sf.tostring0.IToString
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE
 
Constructor Summary
TravelTimes_Map()
           
 
Method Summary
 java.lang.Integer getTravelTime(java.lang.String from, java.lang.String to)
           
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> getTravelTimes()
           
 void setTravelTimes(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> travelTimes)
           
 
Methods inherited from class net.sf.tostring0.AToString
toString, toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TravelTimes_Map

public TravelTimes_Map()
Method Detail

getTravelTime

public java.lang.Integer getTravelTime(java.lang.String from,
                                       java.lang.String to)
Specified by:
getTravelTime in interface TravelTimes
Returns:
the travel time, as an Integer, between from and to.
See Also:
TravelTimes.getTravelTime(java.lang.String, java.lang.String)

getTravelTimes

public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> getTravelTimes()
Returns:
the travelTimes as set by setTravelTimes(Map).

setTravelTimes

public void setTravelTimes(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> travelTimes)
Parameters:
travelTimes -


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