Package jadex.rules.state.javaimpl
Class OAVLongIdGenerator
- java.lang.Object
- 
- jadex.rules.state.javaimpl.OAVLongIdGenerator
 
- 
- All Implemented Interfaces:
- IOAVIdGenerator
 
 public class OAVLongIdGenerator extends java.lang.Object implements IOAVIdGenerator Id generator based on long values.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleaniscontentidThe flag indicating if content ids should be produced.protected longnextidThe id counter.
 - 
Constructor SummaryConstructors Constructor Description OAVLongIdGenerator()Create a new id generator.OAVLongIdGenerator(boolean iscontentid)Create a new id generator.
 - 
Method SummaryAll Methods Static 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.static voidmain(java.lang.String[] args)Main for testing.
 
- 
- 
- 
Method Detail- 
createIdpublic java.lang.Object createId(IOAVState state, OAVObjectType type) Create a unique id.- Specified by:
- createIdin interface- IOAVIdGenerator
- Parameters:
- state- The state.
- type- The object type.
- Returns:
- The new id.
 
 - 
isIdpublic boolean isId(java.lang.Object id) Test if an object is an id.- Specified by:
- isIdin interface- IOAVIdGenerator
- Parameters:
- state- The state.
- type- The object type.
- Returns:
- The new id.
 
 - 
mainpublic static void main(java.lang.String[] args) Main for testing.- Parameters:
- args-
 
 
- 
 
-