Building Controls Virtual Test Bed
|
This class reads the XML configuration file and stores the data in the BACnetObjectType
data type.
More...
Public Member Functions | |
BACnetObjectType (final String name, final String instance, final ArrayList< BACnetPropertyValue > mapPI, final HashMap mapOTname, final HashMap mapOTinst, final HashMap piOrder, final HashMap otOrder) | |
Construct an instance of BACnet object. More... | |
BACnetObjectType () | |
Empty constructor. More... | |
String | getBOTName () |
Get the bacnet object type name. More... | |
String | getBOTInst () |
Get the instance of the bacnet object type. More... | |
ArrayList< BACnetPropertyValue > | getBOTPI () |
Get the map of the property identifier. More... | |
HashMap | getBACnetObjectTypeNameMap () |
Get the map of the object type. More... | |
HashMap | getBACnetObjectTypeInstanceMap () |
Get the map of the object type. More... | |
HashMap | getBACnetObjectTypePropertyIdentifierOrder () |
Get the map of the property identifier index. More... | |
HashMap | getBACnetObjectTypeOrder () |
Get the map of the bacnet object type index. More... | |
ArrayList< BACnetObjectType > | parseObjectType (final String s) throws ParserConfigurationException, SAXException, IOException |
Read bacnet object types from the xml configuration. More... | |
ArrayList< String > | readDeviceInst (final String s) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException |
Read ArrayList String from xml configuration file. More... | |
BACnetObjectType | readBacnetDeviceObjectType (final String dev_inst, final String s) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException |
Read Bancet DeviceObjectType from xml configuration file. More... | |
BACnetObjectType | readBacnetNonDeviceObjectType (final String dev_inst, final String obj_inst, final String obj_name, final String s) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException |
Read NonDevice BACnetObjectType from xml configuration file. More... | |
String | convertObjectName (String orStr) |
Convert object name to the same convention as in BacnetDeviceManager. More... | |
Protected Attributes | |
String | bot_name |
The BACnetObjectType name. More... | |
String | bot_instance |
The BACnetObjectType instance. More... | |
ArrayList< BACnetPropertyValue > | bot_mapPI |
ArrayList with elements of BACnetPropertyValue. More... | |
HashMap | bot_mapOTname |
Hashmap containing the index and name of the objecty type pair. More... | |
HashMap | bot_mapOTinst |
Hashmap containing the index and object instance number pair for BACnet Device Object and device instance number and object instance number pair for BACnet non-Device Object. More... | |
HashMap | bot_piOrder |
Hashmap containing the name and index pair of property identifier. More... | |
HashMap | bot_otOrder |
Hashmap containing the instance and index pair of object type. More... | |
Static Private Attributes | |
static final String | LS = System.getProperty("line.separator") |
System-dependent line separator. More... | |
This class reads the XML configuration file and stores the data in the BACnetObjectType
data type.
Definition at line 98 of file BACnetObjectType.java.
|
inline |
Construct an instance of BACnet object.
name | name of the object type |
instance | instance number of the object type |
mapPI | ArrayList containing the elements of BACnetPropertyValue(name and value pair) |
mapOTname | Hashmap containing the index and name of the objecty type pair |
mapOTinst | Hashmap containing the index and object instance number pair for BACnet Device Object and device instance number and object instance number pair for BACnet nonDevice Object |
piOrder | Hashmap containing the name and index pair of property identifier |
otOrder | Hashmap containing the instance and index pair of object type |
Definition at line 113 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.bot_instance, bacnet.util.BACnetObjectType.bot_mapOTinst, bacnet.util.BACnetObjectType.bot_mapOTname, bacnet.util.BACnetObjectType.bot_mapPI, bacnet.util.BACnetObjectType.bot_name, bacnet.util.BACnetObjectType.bot_otOrder, and bacnet.util.BACnetObjectType.bot_piOrder.
|
inline |
Empty constructor.
Definition at line 134 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.readBacnetDeviceObjectType(), and bacnet.util.BACnetObjectType.readBacnetNonDeviceObjectType().
|
inline |
Convert object name to the same convention as in BacnetDeviceManager.
orStr | object name in xml configuration file |
Definition at line 532 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.readBacnetDeviceObjectType(), and bacnet.util.BACnetObjectType.readBacnetNonDeviceObjectType().
|
inline |
Get the map of the object type.
Definition at line 176 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.bot_mapOTinst.
|
inline |
Get the map of the object type.
Definition at line 167 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.bot_mapOTname.
|
inline |
Get the map of the bacnet object type index.
Definition at line 192 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.bot_otOrder.
|
inline |
Get the map of the property identifier index.
Definition at line 184 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.bot_piOrder.
|
inline |
Get the instance of the bacnet object type.
Definition at line 149 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.bot_instance.
Referenced by bacnet.util.BACnetDeviceManager.readCompleteObjectPropertyList(), bacnet.util.BACnetDeviceManager.readDevicePropertyList(), and bacnet.util.BACnetDeviceManager.readObjectList().
|
inline |
Get the bacnet object type name.
Definition at line 141 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.bot_name.
Referenced by bacnet.util.BACnetDeviceManager.readCompleteObjectPropertyList(), bacnet.util.BACnetDeviceManager.readDeviceArray(), bacnet.util.BACnetDeviceManager.readDevicePropertyList(), and bacnet.util.BACnetDeviceManager.readObjectList().
|
inline |
Get the map of the property identifier.
Definition at line 158 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.bot_mapPI.
|
inline |
Read bacnet object types from the xml configuration.
s | name of configuration file |
FileNotFoundException | if configuration file couldn't be found |
ParserConfigurationException | if configuration file couldn't be read properly |
SAXException | if error occurs while configuration file is parsed |
IOException | if I/O error occurs while parsing configuration file |
Definition at line 206 of file BACnetObjectType.java.
References i, bacnet.util.BACnetObjectType.LS, bacnet.util.BACnetObjectType.readBacnetDeviceObjectType(), bacnet.util.BACnetObjectType.readBacnetNonDeviceObjectType(), and bacnet.util.BACnetObjectType.readDeviceInst().
|
inline |
Read Bancet DeviceObjectType from xml configuration file.
s | xml configuration file path |
dev_inst | device instance |
FileNotFoundException | if configuration file can't be found |
ParserConfigurationException | if configuration file couldn't be read properly |
SAXException | if error occurs while configuration file is parsed |
IOException | if I/O error occurs while parsing configuration file |
Definition at line 308 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.convertObjectName().
Referenced by bacnet.util.BACnetObjectType.parseObjectType().
|
inline |
Read NonDevice BACnetObjectType from xml configuration file.
dev_inst | device instance number |
obj_inst | object instance number |
FileNotFoundException | if configuration file can't be found |
ParserConfigurationException | if configuration file couldn't be read properly |
SAXException | if error occurs while configuration file is parsed |
IOException | if I/O error occurs while parsing configuration file |
Definition at line 418 of file BACnetObjectType.java.
References bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.convertObjectName().
Referenced by bacnet.util.BACnetObjectType.parseObjectType().
|
inline |
Read ArrayList String from xml configuration file.
s | xml configuation file path |
FileNotFoundException | if configuration file can't be found |
ParserConfigurationException | if configuration file couldn't be read properly |
SAXException | if error occurs while configuration file is parsed |
IOException | if I/O error occurs while parsing configuration file |
Definition at line 257 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.parseObjectType().
|
protected |
The BACnetObjectType instance.
Definition at line 541 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.getBOTInst().
|
protected |
Hashmap containing the index and object instance number pair for BACnet Device Object and device instance number and object instance number pair for BACnet non-Device Object.
Definition at line 551 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.getBACnetObjectTypeInstanceMap().
|
protected |
Hashmap containing the index and name of the objecty type pair.
Definition at line 547 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.getBACnetObjectTypeNameMap().
|
protected |
ArrayList with elements of BACnetPropertyValue.
Definition at line 544 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.getBOTPI().
|
protected |
The BACnetObjectType name.
Definition at line 538 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.getBOTName().
|
protected |
Hashmap containing the instance and index pair of object type.
Definition at line 557 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.getBACnetObjectTypeOrder().
|
protected |
Hashmap containing the name and index pair of property identifier.
Definition at line 554 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.BACnetObjectType(), and bacnet.util.BACnetObjectType.getBACnetObjectTypePropertyIdentifierOrder().
|
staticprivate |
System-dependent line separator.
Definition at line 560 of file BACnetObjectType.java.
Referenced by bacnet.util.BACnetObjectType.parseObjectType().