1 package cz.cuni.amis.pogamut.udk.communication.messages;
2
3 import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
4
5
6 /**
7 * Translator String UnrealID <-> Int UnrealId.
8 * <p><p>
9 * It holds maps for translating string UnrealID into int id, every new string UnrealID is given a unique
10 * number and returned.
11 */
12 public class UnrealIdTranslator {
13
14 /**
15 * Returns UnrealId object for a specified string, creates a new one if none exists.
16 *
17 * @param unrealId
18 * @return
19 */
20 public UnrealId getId(String unrealId) {
21 return UnrealId.get(unrealId);
22 }
23
24 }