|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.ip.me.api.pios.configuration.ConfigurationManager
com.sap.ip.me.api.pios.rfid.TagConfigurationManager
The TagConfigurationManager is used to manage the various RFID tag Types that will be supported by an RFID reader. A tag type configuration represents a logical tag type that maps to physical RFID tag type. Since most mobile RFID readers use a set of pre-defined/supported tag types, the default configuration contains entries that match the RFID reader's most commonly used tag types. To map additional tag types, the tag type must be supported by the RFID reader. All changes to the tag type configurations are handled through this class. The RFID connection must be reopened for any changes to take effect.
Example: Add a new tag configuration
Connector connector = Connector.getInstance();
DriverInfo[] rfidDrivers = connector.listDrivers(ConnectionType.RFID);
RfidParameters parameters = new RfidParameters(rfidDrivers[0]);
RfidConnection rfid = (RfidConnection)connector.open(parameters);
TagConfigurationManager manager = rfid.getTagConfigurationManager();
Configuration tagConfiguration = manager.addTagConfiguration("NewTagType");
String[] tagParameters = tagConfiguration.getParameters();
for (int i=0; i<tagParameters.length; i++) {
tagConfiguration.setParameterValue(tagParameters[i], "NEW VALUE");
}
manager.save();
rfid.close();
com.sap.ip.me.api.pios.configuration
,
RfidConnection
Constructor Summary | |
protected |
TagConfigurationManager(ConfigurationManager confManager)
Creates a new TagConfigurationManager using the specified configuration manager. |
Method Summary | |
Configuration |
addTagConfiguration(java.lang.String tagName)
Adds a new empty tag configuration to this RFID connection. |
void |
deleteTagConfiguration(java.lang.String tagName)
Deletes a tag configuration for this RFID connection. |
Configuration |
getTagConfiguration(java.lang.String tagName)
Returns the tag Configuration object for the specified tag configuration name. |
java.lang.String[] |
listTagTypeNames()
Returns available tag names for this RFID connection. |
void |
save()
Stores all tag configuration changes. |
Methods inherited from class com.sap.ip.me.api.pios.configuration.ConfigurationManager |
add, delete, get, getConfig, getHeaderName, getParamaterValue, getParameters, getPossibleValues, getTypes, list, list, setParameterValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected TagConfigurationManager(ConfigurationManager confManager) throws ConfigurationException
confManager
- the configuration manager
ConfigurationException
- thrown if there is an error while
loading the configuration or metadata filesMethod Detail |
public Configuration addTagConfiguration(java.lang.String tagName) throws ConfigurationException
tagName
- the tag configuration name
ConfigurationException
- thrown if unable to create new tag configuration.public void deleteTagConfiguration(java.lang.String tagName) throws ConfigurationException
tagName
- the tag configuration name
ConfigurationException
- thrown if unable to delete the tag configurationpublic java.lang.String[] listTagTypeNames() throws ConfigurationException
ConfigurationException
- thrown if an error occurs while
obtaining the tag listpublic Configuration getTagConfiguration(java.lang.String tagName) throws ConfigurationException
tagName
- the tag configuration name
ConfigurationException
- thrown if unable to get the tag configuration
for this connectionpublic void save() throws ConfigurationException
save
in class ConfigurationManager
ConfigurationException
- thrown if an error occurs while saving the
tag configuration file
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |