nl.tudelft.goal.ut2004.messages
Class UnrealIdOrLocation

Package class diagram package UnrealIdOrLocation
java.lang.Object
  extended by nl.tudelft.goal.ut2004.messages.UnrealIdOrLocation

public class UnrealIdOrLocation
extends Object


Constructor Summary
UnrealIdOrLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
           
UnrealIdOrLocation(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id)
           
 
Method Summary
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
           
 cz.cuni.amis.pogamut.base3d.worldview.object.ILocated toILocated(cz.cuni.amis.pogamut.base.communication.worldview.IWorldView world)
          Transforms an UnrealIdOrLocation to an ILocated.
 cz.cuni.amis.pogamut.base3d.worldview.object.ILocated toILocated(cz.cuni.amis.pogamut.base.communication.worldview.IWorldView world, AgentInfo info)
          Transforms an UnrealIdOrLocation to an ILocated.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnrealIdOrLocation

public UnrealIdOrLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)

UnrealIdOrLocation

public UnrealIdOrLocation(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()

toILocated

public cz.cuni.amis.pogamut.base3d.worldview.object.ILocated toILocated(cz.cuni.amis.pogamut.base.communication.worldview.IWorldView world,
                                                                        AgentInfo info)
Transforms an UnrealIdOrLocation to an ILocated. When this is a location it directly returned. Otherwise the UnrealId Is resolved against the bots own Id and those of objects in the world view. When the UnrealId can not be resolved this method returns null.

Parameters:
world -
info -
Returns:

toILocated

public cz.cuni.amis.pogamut.base3d.worldview.object.ILocated toILocated(cz.cuni.amis.pogamut.base.communication.worldview.IWorldView world)
Transforms an UnrealIdOrLocation to an ILocated. When this is a location it directly returned. Otherwise the UnrealId Is resolved against objects in the world view. When the UnrealId can not be resolved this method returns null.

Parameters:
world -
info -
Returns:


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