|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.udk.communication.translator.TranslatorContext
public class TranslatorContext
Translator context serves as the context during the FSM work. It provides respective fsm states an access to the instances of:
WARNING: the same context is used for Bot, ControlServer as well as Observer!
Constructor Summary | |
---|---|
TranslatorContext(IWorldEventQueue events,
ItemTranslator itemTranslator,
Logger log)
|
Method Summary | |
---|---|
IWorldEventQueue |
getEventQueue()
|
Map<UnrealId,Item> |
getItems()
|
ItemTranslator |
getItemTranslator()
|
Logger |
getLogger()
|
Map<UnrealId,List<NavPointNeighbourLink>> |
getNavPointLinks()
|
Map<UnrealId,NavPoint> |
getNavPoints()
|
List<NavPointNeighbourLink> |
getNeighbours()
|
void |
processNavPointLinks()
Reads getNavPointsLinks() and alters navpoints incoming and outgoing edges. |
void |
processNavPointsAndItems()
Interconnects instances of NavPoint and Item from getNavPoints() and getItems() map. |
void |
reset()
|
void |
setItems(Map<UnrealId,Item> items)
|
void |
setNavPointLinks(Map<UnrealId,List<NavPointNeighbourLink>> links)
|
void |
setNavPoints(Map<UnrealId,NavPoint> navPoints)
|
void |
setNeighbours(List<NavPointNeighbourLink> neighs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslatorContext(IWorldEventQueue events, ItemTranslator itemTranslator, Logger log)
Method Detail |
---|
public void reset()
public IWorldEventQueue getEventQueue()
public ItemTranslator getItemTranslator()
public Logger getLogger()
public List<NavPointNeighbourLink> getNeighbours()
public void setNeighbours(List<NavPointNeighbourLink> neighs)
public void setNavPointLinks(Map<UnrealId,List<NavPointNeighbourLink>> links)
public Map<UnrealId,List<NavPointNeighbourLink>> getNavPointLinks()
public void setNavPoints(Map<UnrealId,NavPoint> navPoints)
public Map<UnrealId,NavPoint> getNavPoints()
public void setItems(Map<UnrealId,Item> items)
public Map<UnrealId,Item> getItems()
public void processNavPointLinks()
Does nothing if getNavPoints() or getNavPointsLinks() returns null.
public void processNavPointsAndItems()
Note that new instances of nav points are created during this process thus the getNavPoints() will return a new map after this method finishes.
Does nothing if getNavPoints() or getItems() returns null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |