nl.tudelft.goal.unreal.translators
Class NavPointTranslator

Package class diagram package NavPointTranslator
java.lang.Object
  extended by nl.tudelft.goal.unreal.translators.NavPointTranslator
All Implemented Interfaces:
nl.tudelft.goal.EIS2Java.translation.Java2Parameter<NavPoint>, nl.tudelft.goal.EIS2Java.translation.Parameter2Java<NavPoint>

public class NavPointTranslator
extends Object
implements nl.tudelft.goal.EIS2Java.translation.Parameter2Java<NavPoint>, nl.tudelft.goal.EIS2Java.translation.Java2Parameter<NavPoint>


Field Summary
protected  Map<cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId,NavPoint> navPoints
          To translate from Parameter2Java we are given an UnrealId.
 
Constructor Summary
NavPointTranslator()
           
 
Method Summary
 eis.iilang.Parameter[] translate(NavPoint o)
           
 NavPoint translate(eis.iilang.Parameter p)
           
 Class<NavPoint> translatesFrom()
           
 Class<NavPoint> translatesTo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

navPoints

protected Map<cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId,NavPoint> navPoints
To translate from Parameter2Java we are given an UnrealId. However we can not access the agents memory during translation. To work around this we store everything we have send to any agent.

Constructor Detail

NavPointTranslator

public NavPointTranslator()
Method Detail

translate

public eis.iilang.Parameter[] translate(NavPoint o)
                                 throws nl.tudelft.goal.EIS2Java.exception.TranslationException
Specified by:
translate in interface nl.tudelft.goal.EIS2Java.translation.Java2Parameter<NavPoint>
Throws:
nl.tudelft.goal.EIS2Java.exception.TranslationException

translate

public NavPoint translate(eis.iilang.Parameter p)
                   throws nl.tudelft.goal.EIS2Java.exception.TranslationException
Specified by:
translate in interface nl.tudelft.goal.EIS2Java.translation.Parameter2Java<NavPoint>
Throws:
nl.tudelft.goal.EIS2Java.exception.TranslationException

translatesFrom

public Class<NavPoint> translatesFrom()
Specified by:
translatesFrom in interface nl.tudelft.goal.EIS2Java.translation.Java2Parameter<NavPoint>

translatesTo

public Class<NavPoint> translatesTo()
Specified by:
translatesTo in interface nl.tudelft.goal.EIS2Java.translation.Parameter2Java<NavPoint>


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.