de.cm.osm2po.sd.guide
Class SdDefaultTranslator

java.lang.Object
  extended by de.cm.osm2po.sd.guide.SdDefaultTranslator
All Implemented Interfaces:
SdTranslator

public class SdDefaultTranslator
extends java.lang.Object
implements SdTranslator

Translates the model into human readable messages.

Important:
This is the only class which may know both, the model and the entirely decoupled message-system.

Author:
(c) 2013 - Carsten Moeller - info@osm2po

Constructor Summary
SdDefaultTranslator()
           
 
Method Summary
 SdMessage[] translate(SdForecast sdForecast, boolean cat)
          Translates one forecast into a sequence of messages building one senctence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SdDefaultTranslator

public SdDefaultTranslator()
Method Detail

translate

public SdMessage[] translate(SdForecast sdForecast,
                             boolean cat)
Description copied from interface: SdTranslator
Translates one forecast into a sequence of messages building one senctence.

Specified by:
translate in interface SdTranslator
Parameters:
sdForecast - SdForecast
cat - boolean, true: replace "in 50m" with "and then" e.g.
Returns:
Array of SdMessageResource

osm2po-sd-5.0.0 (c) December 24 2014 Carsten Moeller - info@osm2po.de