cz.cuni.amis.pogamut.episodic.memory
Class IdGenerator
java.lang.Object
cz.cuni.amis.pogamut.episodic.memory.IdGenerator
- All Implemented Interfaces:
- Serializable
public class IdGenerator
- extends Object
- implements Serializable
IdGenerator class is used to generete unique IDs for all
nodes in agent's memory. Each node needs a unique ID due to visualization
requirements: each node's visualization is represented by a vertex that
needs a unique identifier.
There is one instantion of this class in agent's memory and reference to
it is passed to inside structures, so all the IDs are provided by
one source only.
- Author:
- Administrator
- See Also:
- Serialized Form
|
Method Summary |
int |
getNewId()
This method returns an ID that was not returned before and ensures that
the next time it is called a unique ID will be returned too. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdGenerator
public IdGenerator()
getNewId
public int getNewId()
- This method returns an ID that was not returned before and ensures that
the next time it is called a unique ID will be returned too.
- Returns:
- A new unique ID for some node.
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.