Package jadex.rules.state.javaimpl
Class OAVDebugIdGenerator
- java.lang.Object
-
- jadex.rules.state.javaimpl.OAVDebugIdGenerator
-
- All Implemented Interfaces:
IOAVIdGenerator
public class OAVDebugIdGenerator extends java.lang.Object implements IOAVIdGenerator
Id generator displaying contents of objects for debugging.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map
counters
The id counter map (type -> count).protected boolean
iscontentid
The flag indicating if content ids should be produced.
-
Constructor Summary
Constructors Constructor Description OAVDebugIdGenerator()
Create a new id generator.OAVDebugIdGenerator(boolean iscontentid)
Create a new id generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createId(IOAVState state, OAVObjectType type)
Create a unique id.boolean
isId(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:
createId
in 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:
isId
in interfaceIOAVIdGenerator
- Parameters:
state
- The state.type
- The object type.- Returns:
- The new id.
-
-