|
2010-01-26 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.epcglobal.llrp.helper.idmanager.AbstractLLRPIdManager
public abstract class AbstractLLRPIdManager
| Field Summary | |
|---|---|
protected static int |
DEFAULT_START
Define the default start (int) constant. |
protected static java.lang.String |
OWNER_KEY
Define the owner key (String) constant. |
protected static java.lang.String |
STATUS_KEY
Define the status key (String) constant. |
protected static int |
UNLIMITED
Define the unlimited (int) constant. |
| Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.helper.idmanager.IIdManager |
|---|
RESULT_IDUSED, RESULT_INVALID, RESULT_NOT_FOUND, RESULT_OVERLIMIT, RESULT_SUCCESS, STATUS_DISABLE_REQUESTED, STATUS_STANDBY, STATUS_STANDBY_NEW, STATUS_START_REQUESTED, STATUS_STARTED, STATUS_STOP_REQUESTED, STATUS_STOPPED |
| Constructor Summary | |
|---|---|
protected |
AbstractLLRPIdManager()
Constructs an instance of this class. |
protected |
AbstractLLRPIdManager(int startId,
int maxIdNum)
Constructs an instance of this class from the specified start id and max id num parameters. |
| Method Summary | |
|---|---|
protected java.util.Map |
createIDContentMap(java.lang.Object idObj,
java.lang.Object owner,
int status)
Create idcontent map with the specified owner and status parameters and return the Map result. |
protected abstract java.lang.Object |
createIdObj(int id)
Create id obj with the specified id parameter and return the Object result. |
protected abstract int |
extractId(java.lang.Object idObj)
Extract id with the specified id obj parameter and return the int result. |
java.util.List |
getIds(java.lang.Object owner)
Get ids with the specified owner parameter and return the List result. |
int |
getIdStatus(int id,
java.lang.Object owner)
Get id status with the specified id and owner parameters and return the int result. |
protected int |
getIdStatus(java.lang.Object idObj)
Get id status with the specified id obj parameter and return the int result. |
int |
getIdStatus(java.lang.Object idObj,
java.lang.Object owner)
Get id status with the specified id obj and owner parameters and return the int result. |
int |
getMaxIdNum()
Gets the max ID num (int) value. |
java.lang.Object |
getOwner(int id)
Get owner with the specified id parameter and return the Object result. |
java.lang.Object |
getOwner(java.lang.Object idObj)
Get owner with the specified id obj parameter and return the Object result. |
int |
getStartId()
Gets the start ID (int) value. |
boolean |
isAllIdsStarted(java.lang.Object owner)
Is all ids started with the specified owner parameter and return the boolean result. |
boolean |
isAllIdsStopped(java.lang.Object owner)
Is all ids stopped with the specified owner parameter and return the boolean result. |
int |
registerId(int id,
java.lang.Object owner)
Register id with the specified id and owner parameters and return the int result. |
int |
registerId(java.lang.Object idObj,
java.lang.Object owner)
Register id with the specified id obj and owner parameters and return the int result. |
int |
registerNextId(java.lang.Object owner)
Register next id with the specified owner parameter and return the int result. |
void |
removeId(java.lang.Object idObj)
Remove id with the specified id obj parameter. |
void |
removeIdsByOwner(java.lang.Object owner)
Remove ids by owner with the specified owner parameter. |
void |
reset()
Reset. |
int |
setIdStatus(int id,
java.lang.Object owner,
int status)
Set id status with the specified id, owner and status parameters and return the int result. |
int |
setIdStatus(java.lang.Object idObj,
java.lang.Object owner,
int status)
Set id status with the specified id obj, owner and status parameters and return the int result. |
void |
setMaxIdNum(int maxIdNum)
Sets the max ID num value. |
void |
setStartId(int startId)
Sets the start ID value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int DEFAULT_START
protected static final int UNLIMITED
protected static final java.lang.String OWNER_KEY
protected static final java.lang.String STATUS_KEY
| Constructor Detail |
|---|
protected AbstractLLRPIdManager()
protected AbstractLLRPIdManager(int startId,
int maxIdNum)
startId - The start ID (int) parameter.maxIdNum - The max ID num (int) parameter.| Method Detail |
|---|
protected java.util.Map createIDContentMap(java.lang.Object idObj,
java.lang.Object owner,
int status)
idObj - The ID obj (Object) parameter.owner - The owner (Object) parameter.status - The status (int) parameter.
Map) value.protected abstract java.lang.Object createIdObj(int id)
id - The ID (int) parameter.
Object) value.#getIdObj()protected abstract int extractId(java.lang.Object idObj)
idObj - The ID obj (Object) parameter.
int) value.#getId()protected int getIdStatus(java.lang.Object idObj)
idObj - The ID obj (Object) parameter.
int) value.
public int getIdStatus(java.lang.Object idObj,
java.lang.Object owner)
getIdStatus in interface IIdManageridObj - The ID obj (Object) parameter.owner - The owner (Object) parameter.
int) value.IIdManager.getIdStatus(int,Object),
IIdManager.setIdStatus(Object,Object,int),
IIdManager.setIdStatus(int,Object,int)
public int getIdStatus(int id,
java.lang.Object owner)
getIdStatus in interface IIdManagerid - The ID (int) parameter.owner - The owner (Object) parameter.
int) value.IIdManager.getIdStatus(Object,Object),
IIdManager.setIdStatus(Object,Object,int),
IIdManager.setIdStatus(int,Object,int)public java.util.List getIds(java.lang.Object owner)
getIds in interface IIdManagerowner - The owner (Object) parameter.
List) value.public int getMaxIdNum()
int) value.public java.lang.Object getOwner(java.lang.Object idObj)
getOwner in interface IIdManageridObj - The ID obj (Object) parameter.
Object) value.IIdManager.getOwner(int),
IIdManager.removeIdsByOwner(Object)public java.lang.Object getOwner(int id)
getOwner in interface IIdManagerid - The ID (int) parameter.
Object) value.IIdManager.getOwner(Object),
IIdManager.removeIdsByOwner(Object)public int getStartId()
int) value.public boolean isAllIdsStarted(java.lang.Object owner)
isAllIdsStarted in interface IIdManagerowner - The owner (Object) parameter.
boolean) value.public boolean isAllIdsStopped(java.lang.Object owner)
isAllIdsStopped in interface IIdManagerowner - The owner (Object) parameter.
boolean) value.
public int registerId(java.lang.Object idObj,
java.lang.Object owner)
registerId in interface IIdManageridObj - The ID obj (Object) parameter.owner - The owner (Object) parameter.
int) value.#getId()
public int registerId(int id,
java.lang.Object owner)
registerId in interface IIdManagerid - The ID (int) parameter.owner - The owner (Object) parameter.
int) value.#getId()public int registerNextId(java.lang.Object owner)
registerNextId in interface IIdManagerowner - The owner (Object) parameter.
int) value.public void removeId(java.lang.Object idObj)
removeId in interface IIdManageridObj - The ID obj (Object) parameter.#getId()public void removeIdsByOwner(java.lang.Object owner)
removeIdsByOwner in interface IIdManagerowner - The owner (Object) parameter.public void reset()
reset in interface IIdManager
public int setIdStatus(int id,
java.lang.Object owner,
int status)
setIdStatus in interface IIdManagerid - The ID (int) parameter.owner - The owner (Object) parameter.status - The status (int) parameter.
int) value.IIdManager.getIdStatus(Object,Object),
IIdManager.getIdStatus(int,Object),
IIdManager.setIdStatus(Object,Object,int)
public int setIdStatus(java.lang.Object idObj,
java.lang.Object owner,
int status)
setIdStatus in interface IIdManageridObj - The ID obj (Object) parameter.owner - The owner (Object) parameter.status - The status (int) parameter.
int) value.IIdManager.getIdStatus(Object,Object),
IIdManager.getIdStatus(int,Object),
IIdManager.setIdStatus(int,Object,int)public void setMaxIdNum(int maxIdNum)
setMaxIdNum in interface IIdManagermaxIdNum - The max ID num (int) parameter.public void setStartId(int startId)
setStartId in interface IIdManagerstartId - The start ID (int) parameter.
|
2010-01-26 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||