Package jadex.rules.state.javaimpl
Class OAVWeakIdGenerator
- java.lang.Object
-
- jadex.rules.state.javaimpl.OAVWeakIdGenerator
-
- All Implemented Interfaces:
IOAVIdGenerator
public class OAVWeakIdGenerator extends java.lang.Object implements IOAVIdGenerator
Id generator using easy to read names and numbers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOAVWeakIdGenerator.OAVExternalObjectIdAn id for an OAV object.static classOAVWeakIdGenerator.OAVInternalObjectIdAn id for an OAV object.
-
Constructor Summary
Constructors Constructor Description OAVWeakIdGenerator(java.lang.ref.ReferenceQueue queue)Create a new id generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcreateId(IOAVState state, OAVObjectType type)Create a unique id.booleanisId(java.lang.Object id)Test if an object is an id.
-
-
-
Method Detail
-
createId
public java.lang.Object createId(IOAVState state, OAVObjectType type)
Create a unique id.- Specified by:
createIdin interfaceIOAVIdGenerator- Parameters:
state- The state.type- The object type.- Returns:
- The new id.
-
isId
public boolean isId(java.lang.Object id)
Test if an object is an id.- Specified by:
isIdin interfaceIOAVIdGenerator- Parameters:
state- The state.type- The object type.- Returns:
- The new id.
-
-